By Tim King · Updated
Domino Run Simulator
Virtual Dominoes With Real Physics, Set the Height and Spacing
OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.
How the Domino Run Simulator works
This domino run simulator topples a line of dominoes. The floor starts with a full line of dominoes. Press Topple to tip the first one and watch the wave run along the row; Stand them up resets them in place so you can change the height or spacing and try again. Click the floor to add a single domino, or press and drag along it to lay a whole line at the current spacing. Drag a standing domino with the mouse to tip it yourself.
A domino run is one of the cleanest demonstrations of stored energy there is. A standing domino has its centre of mass raised above the floor. Tipping it past its balance point lets gravity turn that height into motion, and the falling domino hands some of that motion to the next one. As long as each tile delivers more than its neighbour needs to tip, the wave keeps going on its own. This simulator runs that as real rigid-body physics with the open-source Matter.js engine. Each domino has mass, floor friction and a pivot about its bottom edge, and the wave you see comes out of the collisions rather than a scripted animation.
How the domino run simulator works
Press and drag along the floor to lay a straight line, or click to place tiles one at a time. A fresh row is laid across the floor when the page loads, so you can press Topple straight away. Topple gives the first upright domino a sideways push near its top, like a flick of a finger, and starts the clock. Stand them up returns every tile to upright where it lies, so you can rerun the same layout after changing a slider. Clear empties the floor. The sliders apply to tiles already placed as well as new ones.
The two controls are the ones that matter in a real run:
- Domino height, from 20 to 100 pixels. Tile thickness is a fifth of the height, close to the proportions of a standard 48 mm by 24 mm by 7.5 mm toppling domino stood on end.
- Spacing, set as a multiple of the height, from 0.3 to 1.2. It is measured between tile centres, so the same setting gives the same behaviour at any size.
Why spacing decides everything
A falling domino has to hit its neighbour above that tile's centre of mass, or it only shoves the base along the floor. It also needs time to pick up speed before contact.
| Spacing | What happens |
|---|---|
| 0.3 to 0.4 | Tiles nearly touch and tip almost together in a slow, quiet slump |
| 0.5 to 0.7 | The sweet spot: a clean, fast ripple with a crisp click at each hit |
| 0.8 to 0.9 | Still works, but each strike lands low and the wave is fragile |
| 1.0 and up | A falling tile lies flat before it reaches the next one, so the run stops |
Professional domino builders work in the same range. Most lay standard tiles about half to two thirds of a tile height apart, because that leaves room for a finger if a tile goes early and still gives a reliable strike.
Where the physics shows up
- Wave speed grows with height. In a real row, the wave speed is roughly proportional to the square root of the domino height, so tiles four times taller carry the wave about twice as fast. For example, lay a full row at height 30, topple it and note the run time, then press Stand them up, set the height to 90 and run it again.
- Dominoes amplify. Because each tile only needs a nudge to tip, a domino can knock over one about one and a half times its own size. The physicist Lorne Whitehead showed in 1983 that a chain of steadily growing dominoes turns a tiny push into a very large fall, and it is a standard classroom demonstration of energy release.
- Records run into millions. The Domino Day events in the Netherlands toppled more than 4 million tiles in a single chain in 2009. Runs that size are built in sections with gaps that are closed only at the end, since one early fall could otherwise wipe out weeks of work.
Reading the result
The panel updates about four times a second:
- Dominoes is the number of tiles on the floor.
- Fallen counts tiles tilted more than about 29 degrees from upright, with the share of the row in brackets. 100 % means the whole run went.
- Still standing is the rest. If the number freezes above zero while nothing moves, the wave died at a gap or a tile that was too far away.
- Run time is the seconds since you pressed Topple. Divide the length of the row by it for the wave speed, or compare two runs of the same length at different settings.
Tips and pitfalls
- Build in short lines. Several short drags give you control over the gaps; one long drag can leave a tile too close to a wall or its neighbour.
- Mixed heights. Change the height slider between lines to build a growing chain. A short domino striking a much taller one low down will often fail, just as in real life.
- Clicks add, never replace. Clicking on top of an existing tile places a second one in the same spot, which jams the run. Clear and relay a messy section rather than patching it.
- Compare with 3D. The 3D domino toppling tool runs the same idea with depth and curves, and the marble run and Newton's cradle simulators show other ways energy passes along a chain.
FAQ
What spacing gives the best run?
Between 0.5 and 0.7 times the domino height. Closer than about 0.35 and the tiles slump over almost together; wider than about 0.9 and a falling domino lands flat before it reaches its neighbour, so the wave stops.
Do taller dominoes topple faster?
The wave travels faster along taller dominoes, roughly in proportion to the square root of the height, even though each tile takes longer to fall. Lay a full row at two heights, topple each and compare the run time in the panel.
How do I lay a line of dominoes?
Press and drag along the floor and the tool places tiles at the current spacing as you go. A single click places one tile. Clear empties the floor and Stand them up restores every fallen tile to upright where it stands.
Can I change the height or spacing after placing tiles?
Yes. The sliders apply to tiles already on the floor as well as new ones, so you can lay a line, topple it, press Stand them up, adjust the spacing and try again without rebuilding.
See also: all Simulations & Screensavers tools, Images, Audio, Video & Screen, PDF, SVG, Generative Art, Chart Makers, 3D Model Viewers, Drawing Pads, Mockups & 3D Making, Diagram Makers, 3D Science, Tracker Music.
Related tools
Physics Sandbox
Drop shapes, drag them around and play with gravity, bounce and friction.
Plinko Game
Drop balls down a peg board and watch the bins fill up.
Double Pendulum
Chaotic two-rod pendulum with a traced path; angle, length and speed sliders.
Falling Sand
Paint sand, water and walls and watch them settle; fullscreen.
3D Domino Toppling
Line up 3D dominoes and topple them with real physics.