The distribution loss of the distribution network has changed greatly because of the access of distributed generation, which has a certain impact on the power quality of the distribution network. In order to solve the above problems, this paper constructs a 10 kV grid model containing distributed generation, studies the impact of distributed generation on the distribution of network loss, and grasps the characteristics of network loss changes under different scales of distributed generation and different grid-connected conditions. Finally, this paper constructs a mathematical model containing distributed generation and proposes control measures to ensure the safe and stable operation of the grid.