The problem of emergency evacuation has been widely concerned by academic circles, especially indoor emergency evacuation. In this paper, Netlogo simulation tool is used to establish a multi-agent simulation model of classroom evacuation, study the problem of classroom emergency evacuation, and analyze the impact of factors such as layout of classroom facilities on evacuation efficiency. First, the simulation model is established and the model is verified. Then, the classroom evacuation process was simulated to analyze the impact of the number of staff, exit width, exit number and classroom layout on evacuation. The results show that with the increase of the number of people, evacuation becomes more and more difficult. At this time, double exits allowing two people to walk together, increasing the number of channels and optimizing the layout of tables and chairs can greatly improve evacuation efficiency. Finally, the corresponding improvement is proposed to improve the efficiency of classroom evacuation.