With the rapid development of economy, the power industry and transportation industry's carbon emissions is more and more serious.?In order to alleviate the pressure of the air pollution, the power grid and electric cars, gradually become a hot research topic.?Microgrid is a kind of low voltage power grid, which contains a variety of distributed power supply, energy storage device and load, and electric vehicle belongs to the movable energy storage device, which can reverse power supply to the micro-grid by electric vehicle during peak load. This paper proposes a method of micro-grid planning for the uncertainty of EV.firstly, electric vehicles using simulation by Monte Carlo, to solve the uncertainty of electric vehicle, and then, use the nonlinear programming tools of Lingo to slove microgrid programming model, at last, the numerical results verify the effectiveness. The results show that the V2G of electric vehicles in the form of a nuanced grid will reduce the total cost of the micro-grid system planning.