Galton Board
Pour balls through rows of pegs and watch them pile up into the binomial bell curve, with real bounces or exact coin flips.
Balls bounce off the pegs and pile up into a bell curve. Tap a peg to remove it; in Physics mode, drag the funnel sideways or tilt the board, and in Coin flips mode every bounce goes right with the chance you choose.
How is Galton Board working for you?
About Galton Board
- Invented
- Francis Galton, described in 1877 and 1889
- Distribution
- Binomial, approaching the normal curve
- Middle bin of 12 rows
- 924 of 4,096 paths, about 22.6%
- Spread
- Standard deviation √(n p (1 − p)) bins
Good for: Short breaks, Learning by watching
A Galton board is a tilted board of pegs that sorts falling balls into bins by chance. Francis Galton built one in the 1870s to show how heights and other traits spread out around an average: balls poured from a funnel bounce left or right off each row of pegs and collect in bins at the bottom. Each bounce is like a coin flip, so a ball's bin counts how many times it went right, and the pile follows the binomial distribution. With many rows its outline approaches the smooth bell of the normal distribution, which Abraham de Moivre found as the limit of the binomial in 1733 and which the central limit theorem explains far more generally.
This board has two modes. In Physics mode the balls are real bouncing disks that fall under gravity, lose speed on each hit, roll off the pegs and land on the next row, and nothing tells them to go left or right: the bell curve comes out of the mechanics. Tilt the board or move the funnel and the pile drifts; make the pegs bouncy and it spreads wider than the binomial, a reminder that real boards only approximate the ideal model and that the result depends on how elastic the bounces are, which Kozlov and Mitrofanova explored in simulations of the board. In Coin flips mode every peg sends a ball right with exactly the chance you set, so the bins follow Binomial(rows, p) to the letter.
A white outline shows the exact distribution for the board in front of you, and a dashed pink curve the normal curve with the same mean and standard deviation, both scaled to the balls already in the bins. Tap any peg to take it out: balls that reach the gap fall through to the row below the next, and the outline is recomputed for the new board, so you can predict and test what each missing peg does. Run up to 5,000 balls through 24 rows, then save a PNG, a video or GIF, or the bin counts as a spreadsheet file.
How to use Galton Board
- Press Play. Balls leave the funnel one at a time, bounce down through the rows of pegs and pile up in the bins at the bottom.
- Compare with theory. The white outline is the exact distribution for this board and the dashed pink line is the normal curve. The counter above the board compares the pile's mean and standard deviation with the expected values. When the last ball lands, the run adds a row to the Runs table with its mean and standard deviation and the settings that differ between rows; Reset clears the table.
- Change the board. Set Rows of pegs, Balls and Drop rate, and raise Speed to fill the bins faster. A new number of rows or balls restarts the run.
- Switch modes. Physics bounces real balls off the pegs; Coin flips makes every bounce a coin toss with the Chance of going right you choose, such as 70% for a lopsided pile.
- Tilt and aim. In Physics mode, change Tilt, Bounciness and Peg roughness, or drag the funnel sideways (or use Funnel position) to drop balls off center.
- Remove pegs. Tap a peg to take it out or put it back, and watch the outline change. Restore all pegs puts the full board back.
- Export. Save a PNG or a video or GIF, or download the bin counts with their shares and expected shares, and the Runs table, as CSV files. Record full run drops every ball again from the start and records until the last one settles.
Frequently asked questions
What does a Galton board show?
It shows how many small random events add up. Each ball makes one left-or-right choice per row, and its final bin is the total number of right turns. Most balls make a mix of lefts and rights and land near the middle; very few go the same way every time, so the pile is tall in the center and thin at the edges.
Why do the balls make a bell curve?
A ball's position is the sum of many independent steps to the left or right. The number of ways to make k right turns out of n is the binomial coefficient C(n, k), which is largest in the middle and shrinks toward the edges. As the number of rows grows, the binomial distribution approaches the normal distribution (the de Moivre-Laplace theorem), and the central limit theorem says the same happens for sums of almost any independent random steps.
What are the chances of landing in each bin?
With n rows and a chance p of going right at each peg, bin k gets a share C(n, k) p^k (1 − p)^(n − k). On a fair 12-row board the middle bin collects 924 of the 4,096 possible paths, about 22.6% of the balls, and each edge bin only 1 path in 4,096. The mean bin is n p and the standard deviation is the square root of n p (1 − p).
Is a real Galton board exactly binomial?
Not quite. Real balls carry momentum from one peg to the next, spin, and knock into each other, so their bounces aren't perfectly independent coin flips. In this tool's Physics mode the outcome depends on bounciness, friction and the spacing of the pegs: the default board matches the binomial spread closely, while Bouncy pegs spread wider. Kozlov and Mitrofanova simulated a model board for different degrees of elasticity of the ball-to-peg collisions, and Chernov and Dolgopyat studied how a ball moves on an idealized, frictionless board.
What happens when I remove a peg?
A ball that reaches a missing peg falls straight through the gap to the peg two rows below, skipping two coin flips. The white outline then shows the exact distribution for the modified board. Taking out two columns on either side of the middle, as in the Missing pegs preset, splits the pile into two peaks.
Who invented the Galton board?
Francis Galton, an English polymath, described it in his 1877 lecture Typical Laws of Heredity and again in his 1889 book Natural Inheritance. He called it a quincunx, after the pattern of five dots on a die face that its pegs repeat; it is also known as a bean machine.
Can I leave it running at night?
Yes. Set Balls to 5,000 and lower Drop rate and Speed so the balls fall slowly, then press Full screen and lower the screen brightness. It makes no sound and stops when the last ball lands.
References
- Galton, F. (1877). Typical laws of heredity. Nature 15, 492–495.
- Galton, F. (1889). Natural Inheritance. London: Macmillan.
- de Moivre, A. (1738). The Doctrine of Chances (2nd ed.). London: H. Woodfall.
- Kozlov, V. V., & Mitrofanova, M. Yu. (2003). Galton board. Regular and Chaotic Dynamics 8(4), 431–439.
- Chernov, N., & Dolgopyat, D. (2007). Diffusive motion and recurrence on an idealized Galton board. Physical Review Letters 99(3), 030601.





