With a wide coverage of more than 100km in long-reach passive optical networks (LR-PON), there is longer idle time for optical network units (ONUs) in a polling cycle. It is beneficial to reduce the energy consumption of ONUs to make ONUs in idle state to enter low energy consumption mode (i.e. sleep or doze mode). Based on which, an improved dynamic bandwidth allocation algorithm (IEDBA) was proposed. IEDBA makes ONUs sleep immediately after upward and downward transmission by changing the scheduling order without waiting for the arrival of gate frames, which can extend the ONUs’ sleep time. The simulation results show that the proposed algorithm can achieve both low energy consumption of ONUs and low delay of downward packets.