---
title: "Ising Critical Fluctuations Interactive Lab | Sandbox Physics"
description: "Why do large patches of aligned spins appear near a critical temperature? Neighboring spins favor the same direction, and heat keeps trying to flip them. Near the critical temperature neither tendency wins quickly, so patches of many sizes form and dissolve. A finite sheet rounds this transition and limits the largest patch."
canonical_url: "https://sandboxphysics.com/labs/ising-critical-fluctuations/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/ising-critical-fluctuations/"
last_modified: "2026-10-24"
---

D-X1 · Watch order form and dissolve

# Ising Critical Fluctuations

**Why do large patches of aligned spins appear near a critical temperature?** Neighboring spins favor the same direction, and heat keeps trying to flip them. Near the critical temperature neither tendency wins quickly, so patches of many sizes form and dissolve. A finite sheet rounds this transition and limits the largest patch.

Heat a sheet of tiny magnets and watch its domains break apart. Paint a patch directly on the lattice, then compare its survival at different temperatures and sizes.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

This classical square-lattice Ising model uses nearest-neighbor ferromagnetic coupling, periodic edges and random-site Metropolis flips. Temperature and field are measured relative to the coupling energy; one sweep means one attempted update per spin on average, not elapsed physical time. Each new condition discards two hundred and fifty-six sweeps before recording. A finite warm-up does not guarantee equilibration, especially near criticality. Consecutive samples are correlated; the displayed fluctuation is the spread in a moving window, not an uncertainty estimate or a measured critical exponent. Painting deliberately disturbs the state and restarts the warm-up. The infinite zero-field critical temperature is shown only as an analytic reference.

Recorded alignment over sweeps

How often each alignment occurs

Simulated Metropolis samples; one sample per sweep. The window contains correlated states.

Scientific sources

- [Metropolis et al. (1953), Equation of State Calculations by Fast Computing Machines](https://doi.org/10.1063/1.1699114)
- [Onsager (1944), Crystal Statistics I](https://doi.org/10.1103/PhysRev.65.117)

## Where the idea came from

[Why very different materials behave alike near a critical point](https://sandboxphysics.com/stories/thermal-complexity/wilson-critical-scales/) [Explore heat, chance and collective behaviour](https://sandboxphysics.com/stories/thermal-complexity/)

Physics tutorial

## Small magnets make a collective transition

**Background** Imagine a sheet of tiny magnets, each pointing up or down. Neighbors prefer to agree, but heat continually disturbs their alignment.

**Why it matters** A magnet can lose its overall alignment abruptly even though each individual moment survives. The interesting change happens in the way many moments cooperate.

Start with the essentials

- **Focus question**: Why do large patches of aligned spins appear near a critical temperature?
- **One-sentence intuition**: Near the transition, competing thermal disorder and neighbor alignment produce patches on many scales.

### Core mathematical model

#### Energy favors neighbors that agree

$$
E=-J\sum_{\langle i,j\rangle}s_i s_j-h\sum_i s_i,\qquad s_i\in\{-1,1\}
$$

Each neighboring pair is counted once and the positive coupling sets the energy scale. The applied field favors one spin direction. All edges wrap around to the opposite edge.

#### How a proposed flip is accepted

$$
P_{\mathrm{accept}}=\min\!\left(1,e^{-\Delta E/(k_B T)}\right)
$$

A flip that lowers the energy is accepted. A flip that raises it can still occur, with a probability that grows as the temperature rises. Random-site proposals satisfy detailed balance with the thermal distribution.

#### The spread of recorded alignment

$$
m=\frac{1}{N}\sum_i s_i,\qquad\sigma_m=\sqrt{\langle m^2\rangle-\langle m\rangle^2}
$$

The net alignment is the mean spin of the whole sheet. Its displayed spread is calculated from the recorded moving window. Correlated samples and slow changes near criticality require longer runs for precise statistical work.

### Common difficulties

#### A finite sheet keeps fluctuating

**Typical misconception** The alignment should jump at exactly the reference critical temperature.

**Better mental model** The exact reference belongs to an infinite sheet at zero field. A finite lattice rounds the transition, and a short recorded window can stay mostly in one direction.

### Run the experiment

1. 01

   #### Find the restless patches

   Choose Large restless patches and watch the bright boundaries move.

   **What to observe:** Large connected regions form and change shape. The alignment trace records their changing imbalance.

2. 02

   #### Change the temperature

   Compare Order survives with Heat breaks the patches.

   **What to observe:** Cold spins tend to agree. At high temperature, small patches continually break apart.

3. 03

   #### Disturb the sheet yourself

   Drag across the lattice to paint an opposite patch.

   **What to observe:** The patch may shrink, grow or merge with its surroundings. Recording resumes after the new warm-up.

4. 04

   #### Change the room available

   Compare lattice widths at the same temperature, then export the samples.

   **What to observe:** A larger lattice can hold larger patches. Estimating a critical exponent requires longer runs and a defined finite-size analysis.

Physical conclusion

The transition concerns collective order: heat changes how far the spins can keep one another aligned.

Fields & matter · Starter path

## From a field to an electron microscope

Map an electric field and steer a charged particle. Then find the electron's wavelength and use electron beams to see a crystal and a surface.

[Start here → **Make an Electric Field Visible** Move the probe around a dipole and check that the field always points downhill on the potential landscape. Observe · 8 min](https://sandboxphysics.com/labs/electric-field/)

1. [1 Make an Electric Field Visible](https://sandboxphysics.com/labs/electric-field/)
2. [2 A Charge Bending through Fields](https://sandboxphysics.com/labs/charged-particle/)
3. [3 Electron Wavelength & Voltage](https://sandboxphysics.com/labs/electron-wavelength/)
4. [4 Electron Diffraction & Reciprocal Space](https://sandboxphysics.com/labs/electron-diffraction/)
5. [5 TEM Bright Field, Dark Field & SAED](https://sandboxphysics.com/labs/tem-mode-selector/)
6. [6 SEM Secondary-Electron Topography](https://sandboxphysics.com/labs/sem-topography/)

[View the full path →](https://sandboxphysics.com/topics/fields-and-matter/#starter-path)
