With the gradual progress of the construction of a new power system, a high proportion of new energy connections, large-scale energy storage facilities, cross-regional transmission and distribution projects continue to be built, and more and more capacity related investment in the power grid. However, the current capacity electricity price formation mechanism in China cannot realize the effective recovery and fair allocation of capacity cost, and the cost recovery effect is poor. Aiming at the problem that capacity cost is difficult to recover effectively, this paper puts forward a method to readjust the ratio of capacity cost in capacity price and energy price based on BARY curve. Aiming at the problem of equitable allocation of capacity cost on the user side, this paper proposes a user classification method based on user load rate clustering to realize differentiated capacity cost allocation for users with different load rates.