Mathwords logoMathwords

Buffon's Needle Problem — Definition, Formula & Examples

Buffon's Needle Problem is a classic probability question that asks: if you drop a needle of a certain length onto a floor with equally spaced parallel lines, what is the probability the needle crosses a line? The surprising result connects geometric probability to the number π\pi.

Given a needle of length ll dropped uniformly at random onto a plane ruled with parallel lines spaced dd apart (where ldl \leq d), the probability that the needle intersects a line is P=2lπdP = \frac{2l}{\pi d}. This result, first posed by Georges-Louis Leclerc, Comte de Buffon, in 1777, is derived by integrating over the uniform distributions of the needle's distance from the nearest line and its angle of orientation.

Key Formula

P=2lπdP = \frac{2l}{\pi d}
Where:
  • PP = Probability that the needle crosses a line
  • ll = Length of the needle (must satisfy l ≤ d)
  • dd = Distance between adjacent parallel lines
  • π\pi = The mathematical constant pi (≈ 3.14159)

How It Works

Imagine parallel lines drawn on the floor, each a distance dd apart. You drop a needle of length ll so that its center lands at a random distance xx from the nearest line (where 0xd/20 \leq x \leq d/2) and at a random angle θ\theta (where 0θπ0 \leq \theta \leq \pi). The needle crosses a line whenever xl2sinθx \leq \frac{l}{2}\sin\theta. Integrating this condition over the joint uniform distribution of xx and θ\theta yields the crossing probability 2lπd\frac{2l}{\pi d}. By rearranging, you can estimate π\pi experimentally: drop the needle many times, count crossings, and solve for π2lNdC\pi \approx \frac{2l \cdot N}{d \cdot C}, where NN is total drops and CC is the number of crossings.

Worked Example

Problem: A needle of length 3 cm is dropped onto a floor with parallel lines spaced 6 cm apart. What is the probability it crosses a line? If you drop it 1000 times and it crosses 318 times, what estimate of π does this give?
Find the crossing probability: Apply the formula with l = 3 and d = 6.
P=2(3)π(6)=66π=1π0.3183P = \frac{2(3)}{\pi(6)} = \frac{6}{6\pi} = \frac{1}{\pi} \approx 0.3183
Estimate π from the experiment: Rearrange the formula to solve for π. Use N = 1000 total drops and C = 318 crossings.
π2lNdC=2(3)(1000)6(318)=600019083.1447\pi \approx \frac{2l \cdot N}{d \cdot C} = \frac{2(3)(1000)}{6(318)} = \frac{6000}{1908} \approx 3.1447
Answer: The theoretical crossing probability is approximately 0.3183. The experiment with 318 crossings out of 1000 drops estimates π ≈ 3.1447.

Why It Matters

Buffon's Needle is one of the earliest examples of a Monte Carlo method — using randomness to estimate a deterministic quantity. It appears in introductory probability and statistics courses to illustrate geometric probability and the surprising role of π\pi outside of geometry. The underlying technique of random sampling to approximate integrals is foundational in computational statistics, physics simulations, and machine learning.

Common Mistakes

Mistake: Using the formula when the needle length exceeds the line spacing (l > d).
Correction: The formula P = 2l/(πd) applies only when l ≤ d. For longer needles, the derivation changes and the probability formula becomes more complex, involving an arccosine term.