Microgrid is a promising small-scale power generation and distribution system. The selling price of wind turbine equipment (WT), photovoltaic generation equipment (PV), and battery energy storage equipment (BES) have a significant impact on the microgrid profits, which in turn affects the planning capacity of renewable energy. This paper proposes an optimal capacity planning method of wind-photovoltaic-storage equipment considering different energy selling income in microgrid. Stochastic characteristics of renewable energy (WT and PV), selling price of different energy, and timing coupling characteristic are considered in the proposed model. Besides, the configuration capacity of WT, PV and BES are modeled as discrete decision variables according to the type of specific equipment. And comprehensive life cycle cost (LCC) are considered as objective function. It can be found that the proposed collaborative capacity planning model is a mathematical programming problem with complex non-linear constraints and integer variables. To solve this problem, a cultural gray wolf optimization algorithm (CGWO) is applied in this paper. The proposed method's efficiency, convergence, superiority, and effectiveness are verified through a case study. Moreover, the impact of different new energy sales prices on capacity planning results is also revealed in the article.