Installing energy storage system in microgrid can effectively promote the local consumption of renewable energy. However, at this stage, the cost of energy storage is high and it is difficult to popularize and apply it on a large scale. In this paper, the life model of energy storage battery is established based on the equivalent total cycle number model, and the capacity configuration of microgrid energy storage system considering the life loss cost of the full life cycle of energy storage is proposed. We used the equivalent cycle number to calculate the operation cost of the energy storage investment, and the capacity and power of the energy storage are configured from the perspective of the full life cycle income of the energy storage and the rate of wind and light abandonment by using the correlation between the processing capacity and power of the expected continuous discharge time. And we select winter and summer for simulation, the results show that the proposed method can not only ensure the energy storage economy, but also further improve the utilization rate of renewable energy, compared with the pursuit of maximum energy storage income or the use of a single typical day for energy storage configuration.