Abstract. The optimal planning of distributed generation which intends to maximize the capacity genetration of distributed generations (DG) is mainly studied in this paper. Firstly, the probabilistic models of wind power generation and photovoltaic power generation are established under the premise of considering the uncertainties of DGs. Secondly, on the basis of this, the DG maximum admission capacity model with the maximum capacity of the DGs as the objective function is established. The model introduces different types of constraints, including voltage level constraint, line power constraint for the traditional distribution network. In addition, in order to adapt to the active management mode, we introduce DG output constraint, OLTC tap constraint, and reactive power compensation constraint.