Buffon's Needle
Home · Interesting Math Problems · Problem 13 · Geometry & measurement

1. The problem

A floor is made of parallel planks of width d. You drop a needle (or matchstick) of length l ≤ d at random. What is the chance it lands across a crack between two planks?

Georges-Louis Leclerc, Comte de Buffon, asked this in 1733 — one of the first problems of geometric probability.

2. The answer

2l / (πd)
is the chance of crossing. For a needle as long as the plank is wide, that is 2/π ≈ 63.7 %.
π ≈ 2l·N / (d·C)
Drop N needles, count C crossings, and you have an experiment that measures π.

3. Working it out

Describe a landing by two numbers: the distance x from the needle's centre to the nearest crack (0 to d/2), and the angle θ between needle and cracks (0 to π/2). Both are uniform. The needle crosses when

x ≤ (l/2) sin θ

The chance is the area under this curve divided by the area of the whole rectangle of possibilities:

P = [ ∫0π/2 (l/2) sin θ dθ ] / [ (d/2)(π/2) ] = (l/2) / (πd/4) = 2l / (πd)

Why does π appear in a problem about straight lines? Because the needle's direction is random, and directions live on a circle.

4. Drop needles

Needle length / plank width: 0.80
Needles dropped
0
Crossing a crack
0
Estimate of π
–

The estimate settling down (true π shown dashed)

5. Fine print

  • The estimate improves only slowly: the error shrinks like 1/√N. To get π right to 3 decimal places you need several million needles. It is a lesson in Monte Carlo methods, not a practical way to compute π.
  • In 1901 Mario Lazzarini reported 3,408 needles giving π ≈ 355/113, correct to six decimal places — a result almost certainly arranged by stopping at a convenient count.
  • "Buffon's noodle": for a curved wire of length l the expected number of crossings is still 2l/(πd), whatever its shape.