Home▸Articles▸Society & Economics

Crowd Evacuation: Social Force Model (2D)

A model that simulates human movement in emergency situations, providing insights into crowd behavior and evacuation strategies.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is the Social Force Model?

The social force model, developed by Dirk Helbing and Peter Molnar in 1995, is a computational approach that simulates pedestrian movement. Each individual is treated as an autonomous agent with its own set of forces acting upon it, including attractive forces towards the exit, repulsive forces from obstacles like walls or other people, and frictional forces due to ground contact.

This model captures the complex interactions between individuals in a crowd, allowing researchers to study phenomena such as lane formation, bottlenecks, and panic behavior during evacuations.

How Does the Model Work?

In the social force model, each agent is assigned a desired velocity vector that points towards the exit. This vector is influenced by attractive forces from the target (exit) and repulsive forces from other agents or obstacles in the environment. The resulting net force on an agent causes it to accelerate according to Newton's second law of motion: F = ma. Agents also experience friction, which opposes their movement.

The model iteratively updates each agent’s position based on its velocity and acceleration at each time step, leading to realistic crowd dynamics that can be observed in simulations.

live demo · related simulation● LIVE

Why Does It Matter?

Understanding the social force model is crucial for designing safe and efficient evacuation plans. By simulating different scenarios, urban planners, architects, and emergency response teams can identify potential bottlenecks and optimize exit designs to improve crowd flow during emergencies.

Moreover, this model helps in predicting and mitigating panic behavior, which often exacerbates the severity of evacuations.

Real-World Applications

The social force model has been applied in various real-world settings. For instance, it can be used to design safer stadiums by identifying areas where crowd congestion may occur during events like concerts or sports games.

In addition, this model aids in the development of emergency response strategies for large-scale events and buildings, ensuring that people can evacuate quickly and safely.

Frequently asked questions

How does changing the exit width affect crowd behavior?

Reducing the exit width increases congestion and slows down evacuation times. Narrower exits create bottlenecks where individuals must wait for others to pass, leading to increased pressure and potentially panic.

What causes panic in a crowded space according to this model?

Panic is modeled as an increase in repulsive forces between agents due to heightened anxiety. This can lead to erratic movements, pushing behavior, and reduced overall efficiency of the evacuation process.

Can the social force model predict individual behaviors during an evacuation?

While the model provides a macroscopic view of crowd dynamics, it does not predict individual behaviors with high precision. Instead, it offers insights into collective behavior patterns and helps in understanding how different factors influence overall crowd movement.

How can this model be improved for better accuracy?

Improvements could include incorporating more detailed psychological models of human decision-making during emergencies, as well as accounting for the effects of lighting conditions, sound, and other environmental factors on crowd behavior.

Try it live

Everything above runs in your browser — open Crowd Evacuation: Social Force Model (2D) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Crowd Evacuation: Social Force Model (2D) simulation

What did you find?

Add reproduction steps (optional)