Skip to content

How does a bell curve build from falling balls?

Drop balls through rows of pegs and watch the pile grow into the bell shape of the normal distribution.

Galton board

Key values as a table
BinBallsExpected
100.1
210.9
384.8
41016.1
53236.3
66658
77567.7
85258
93636.3
101616.1
1144.8
1200.9
1300.1

Result

Balls dropped so far: 300 The average bin is 6.97; theory says 7. The busiest bin, number 7, holds 25% of the balls (theory: bin 7, 23%).
Board

%

Drop balls through rows of pegs and watch the pile grow into the bell shape of the normal distribution.

The board fills the screen: drop balls with play, one at a time with step, faster or slower, and zoom in on the pile.

How to use

  1. Choose how many rows of pegs the balls fall through and how likely each ball is to bounce right. 50 percent is a fair board.
  2. Press Play on the board to drop more balls, or Step to drop one at a time, and watch the bars grow. The dashed curve shows how many balls the theory expects in each bin.
  3. Compare the average and spread you see with the expected ones. Change the size of the first run to see how the shape settles.

How it works

At every peg a ball bounces left or right, about as likely either way on a fair board. After the last row its place depends only on how many times it went right. Many different routes lead to the middle bins and only one route leads to each edge, so the middle fills up the most. The pile becomes a bell.

The count of rights is a binomial number: with n rows and a chance p to go right, the chance of exactly k rights is C(n, k) p^k (1 − p)^(n − k). Its average is n·p and its spread is √(n·p·(1 − p)). With 12 rows and p = 0.5 that is an average of 6 rights and a spread of 1.73 bins. As n grows the bars follow the normal curve more closely (the central limit theorem). A bias such as 80 percent shifts and squeezes the pile.

Francis Galton built the board in the 1870s to show how many small random pushes add up to a bell curve. With only a few hundred balls the pile is bumpy: chance alone moves each bar up and down, so it never matches the curve exactly.

Method

No outside data is used: the tool works only with what you enter, in your browser.

Sources and methods

Frequently asked questions

Why does a Galton board make a bell curve?

Each ball's final place is the sum of many small left and right bounces. Sums of many small independent random steps pile up in a bell shape.

Why is my pile not perfectly symmetric?

Balls are random. With a few hundred balls each bar varies by a few balls. More balls bring the shape closer to the theory.

What happens when the bias is not 50 percent?

The pile shifts towards the favoured side and becomes narrower and lopsided. The average moves to rows times the chance of going right.

How many rows give a good normal curve?

More rows give a smoother, closer curve. With about ten rows the bars already follow the curve well on a fair board.

Is the first run the same every time?

Yes. The first run is fixed so a shared link shows the same pile. Dropping more balls adds new random ones.

Send feedback