Fast power flow calculation is generally required in static security analysis and power system optimal planning. And the classical DC power flow algorithm, due to its simple mathematical model, linearized equation, and rapid solving speed, is widely utilized. However, the classical DC power flow algorithm has been found to be only suitable for high voltage transmission networks with small branch impedance ratio. To address this issue, a general fast power flow algorithm is proposed. Utilizing this method, the classical DC power flow algorithm is firstly performed to obtain the initial values of the branch active power flow. And the nodal voltage angles are then calculated by the established node-injected reactive power equations. Secondly, through the identical transformation and approximate treatment of the node power flow equation, a voltage offset calculation method for PQ nodes is proposed. Finally, the active power flow and active power loss can be calculated based on the corrected phase angles and node voltages. Simulation studies on standard IEEE power systems, such as the IEEE 33-bus and IEEE 118-bus systems, etc., were conducted by the presented algorithm, compared with those by the back/forward sweep, classical DC power flow and Newton-Raphson algorithms. It is indicated that, the proposed power flow algorithm has the superiority in satisfactory calculation speed and non-sensitivity on the network impedance ratio. INDEX TERMS Power flow algorithm, transmission and distribution network, high impedance ratio of branch, bus voltage amplitude deviation.