At present, the traditional scheduling mode of power grids generally dispatches according to the power generation cost within the safe range. Transmission costs are evenly distributed to customers according to their load ratios. There are no methods for the rational distribution of transmission costs according to the utilization degree of generation and load to transmission network resources. This traditional scheduling mode will render transmission cost distribution unfair, and it is difficult to guide reasonable load distribution in time and space. Therefore, an optimal economic scheduling method for power systems based on the whole-system-cost electricity price is proposed in this paper. For the power generation and the transmission sides, the whole-system-cost electricity price model was constructed according to the power flow tracking method. For the load side, a demand-side response model of users’ responses to electricity price changes was established. Finally, the IEEE 57 node standard model was used to simulate optimal economic scheduling. The results show that the proposed method can guide the rational distribution of power flow. The power flow is shifted moderately from far away to near the power generation center, allowing for the load demand to be guided to meet nearby customers’ demands and preventing the line from blocking, the latter of which is conducive to ensuring the safety of the power grid.