The concept of time-of-use (TOU) electricity pricing is widely recognized as a key strategy to bridge the gap between electricity availability and consumption, enhance the efficiency of electricity, and refine the patterns of electricity usage. Nonetheless, the existing policy on pricing electricity based on TOU electricity pricing is missing a theoretical approach that evaluates the load properties and the advantages of investing in the power grid. Consequently, the article suggests a method for optimizing electricity prices based on TOU electricity pricing to reduce the costs associated with investing in power grids. Initially, a model for optimizing electricity prices based on TOU electricity pricing is developed, offering support for the pricing strategy of the power grid; Subsequently, a method for dividing TOU electricity pricing using the Gaussian Mixture Module (GMM) clustering algorithm is introduced, offering theoretical backing for the creation of such pricing strategies; Following this, a detailed optimization approach for electricity pricing of electricity TOU electricity pricing is suggested, along with taking into account the benefits of grid investments and the power grid’s load properties, the formulation of the electricity pricing strategy for TOU electricity pricing; Ultimately, this approach is corroborated by the Chongqing power system in China, aiming to minimize disparities in peak load valleys and enhance the advantages of grid investments, thereby offering technical assistance for the scientific determination of TOU electricity pricing.