Home▸Articles▸AI & Machine Learning

3D Schelling Segregation: A Model of Social Dynamics

A simulation that illustrates how individual preferences can lead to large-scale social patterns.

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

What is the 3D Schelling Segregation Model?

The 3D Schelling segregation model, developed by economist Thomas Schelling in the 1970s, is a classic example of agent-based modeling. In this model, individuals are placed in a grid or space and each has preferences regarding their neighbors. If an individual's neighborhood does not meet their preference threshold, they may move to another location.

The model demonstrates how individual choices can lead to large-scale patterns of segregation, even when no single individual desires such outcomes.

How Does the Model Work?

In each iteration of the simulation, individuals evaluate their current neighborhood. If the number of neighbors who are 'like' them (i.e., share similar preferences) falls below a certain threshold, they will move to an unoccupied cell in the grid that meets their preference criteria.

This process continues until all individuals have either moved or found a satisfactory location, leading to stable patterns of segregation.

live demo · related simulation● LIVE

Why Does It Matter?

The 3D Schelling segregation model provides insights into how individual preferences and behaviors can lead to complex social outcomes. It helps explain phenomena such as residential segregation in cities, which may not be driven by overtly discriminatory policies but rather by the collective behavior of individuals.

Understanding these dynamics is crucial for developing policies that promote integration and reduce social disparities.

Real-World Applications

The principles underlying the Schelling segregation model have been applied to various fields, including urban planning, sociology, and economics. For example, it has been used to predict how changes in housing policies might affect neighborhood composition.

By simulating different scenarios, policymakers can better understand potential outcomes of their decisions before implementing them.

Frequently asked questions

What are the key parameters in the Schelling model?

The main parameters include the preference threshold for individuals and the proportion of 'like' neighbors required to be satisfied. These can vary across different simulations to explore how different conditions lead to varying degrees of segregation.

How does the 3D aspect of the model affect its outcomes?

In a 3D model, individuals not only consider their immediate neighbors but also those in adjacent layers. This can result in more complex spatial patterns and potentially different levels of segregation compared to a 2D model.

Can the model be used to predict real-world segregation?

While the model provides valuable insights, it is an abstraction and cannot perfectly predict real-world outcomes. However, it can help policymakers understand potential trends and make informed decisions based on these simulations.

Are there any limitations of the Schelling model?

The model assumes that individuals are rational and have clear preferences, which may not always be the case in real life. Additionally, it does not account for external factors such as economic status or policy interventions, which can also influence segregation patterns.

Try it live

Everything above runs in your browser — open 3D Schelling Segregation and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open 3D Schelling Segregation simulation

What did you find?

Add reproduction steps (optional)