When the power transformer is reconnected to the power grid, and if there is a large residual flux in the iron core, an inrush current may result. To suppress inrush current, the detailed information of the residual flux needs to be known. In this article, a residual flux density measurement method for a single-phase transformer core based on energy changes is proposed. First, when positive and negative dc voltages (referred to as the direction along or opposite to the initial residual flux density) are applied, the positive and negative energy changes of the power source can be obtained by measured response currents. Then, the direction of the residual flux density is determined by comparing the gained energy changes. The magnitude of residual flux density can be calculated by the empirical formula between residual flux density and positive energy. The square iron core is investigated in this work to establish the corresponding empirical formula by finite element method. Finally, the accuracy of the empirical formula is verified on the experimental platform. The results show that the relative error of the proposed method is within 5%, which has higher accuracy than existing methods.