Buffon’s needle: finding π by dropping needles
Drop needles on a floor of wooden boards and count how many cross a line. Out comes π.
The story
Buffon was a French naturalist best known for his books on animals and the Earth. In 1733 he asked a curious question: if you drop a needle onto a floor made of parallel boards, what is the chance it lands across one of the cracks between them?
The answer, which he published in 1777, was a surprise. When the needle is exactly as long as the boards are wide, the chance is 2/π. A number that belongs to circles had appeared in a question about straight needles and straight lines.
That means you can estimate π by throwing needles: drop many, count how many cross a line, and work out 2 × (needles dropped) ÷ (needles crossing). People have tried it by hand. In 1901 an Italian, Mario Lazzarini, claimed a nearly perfect answer from 3,408 throws, so perfect that many now suspect he stopped at a convenient moment.
Play with it
How it works, step by step
- 1
Let the needle length equal the gap between lines.
- 2
Whether it crosses depends on where its centre lands and on the angle it lies at.
- 3
Averaging over every angle brings in sin θ, and averaging sin over half a turn gives 2/π.
- 4
So P(cross) = 2/π ≈ 0.637.
- 5
Rearranged: π ≈ 2 × dropped ÷ crossing. More drops, better estimate.
With needle length = line gap, the chance of crossing is 2/π, so π ≈ 2 × drops ÷ crossings.
Try it yourself
1You drop 100 needles and 64 cross a line. What estimate of π does that give? Give 3 significant figures.
2Roughly what fraction of needles should cross a line?
3What do we call estimating a number with random trials?
Did you know?
- Using random trials to estimate a number is called a Monte Carlo method. Computers use it for weather, finance and physics.
- The estimate improves slowly: to get one more correct digit you need about 100 times more drops.
- Buffon also wrote a 36-volume natural history of the world.