Skip to main content

Archived Article — The Daily Perspective is no longer active. This article was published on 14 March 2026 and is preserved as part of the archive. Read the farewell | Browse archive

Education

Why You Can Calculate Pi by Dropping Needles on Paper

An elegant mathematical trick from the 18th century reveals why probability and geometry are connected in unexpected ways.

Why You Can Calculate Pi by Dropping Needles on Paper
Image: Wired
Key Points 3 min read
  • Buffon's Needle is a probability experiment where needles dropped on parallel lines reveal the value of pi through random outcomes.
  • Devised by French mathematician Georges-Louis Leclerc in 1777, it is the oldest problem in geometric probability.
  • The method works because the probability a needle will cross a line is mathematically linked to pi, allowing you to approximate the constant with simple counting.
  • Accuracy improves with more trials, but requires significantly larger sample sizes than other pi calculation methods.
  • The experiment demonstrates how pi emerges unexpectedly in probability and statistics, not just in circles.

It sounds impossible. No circles, no measuring tapes, no advanced maths. Just needles, paper, and basic counting can give you the value of pi. The trick is a centuries-old probability experiment that reveals one of mathematics' most persistent mysteries hiding inside random events.

This surprising method of calculating pi, known as Buffon's Needle, was first discovered in the late 18th century by French naturalist Georges-Louis Leclerc, Comte de Buffon. Count Buffon was inspired by a then-popular game of chance that involved tossing a coin onto a tiled floor and betting on whether it would land entirely within one of the tiles. Rather than accept the coin tosses as simple gambling, Buffon began to wonder about the underlying mathematics. If a coin could land in different places, what were the odds it would cross a line?

The problem itself is straightforward to understand. Draw two parallel lines on paper, making sure the distance between the lines is exactly equal to twice the length of a toothpick. One by one, randomly toss toothpicks onto the lined paper, keep tossing until you are out of toothpicks or tired of tossing, count the total number of toothpicks you tossed, and also count the number of toothpicks that touch or cross one of your lines. Then comes the mathematical magic. Divide the total number of toothpicks you threw by the number that touched a line. If you do this correctly, that number will approximate pi.

The reason this works connects to a deeper relationship between probability and geometry. In general, this experiment in geometric probability is an example of a Monte Carlo method, in which a random sampling of a system yields an approximate solution. When a needle falls, two things determine whether it crosses a line: the angle at which it lands and the distance from its centre to the nearest line. Those two variables, when combined using trigonometry, produce a probability that is directly connected to pi.

In 1901, Italian mathematician Mario Lazzarini performed Buffon's needle experiment by tossing a needle 3,408 times and was able to approximate the value of pi accurately to six decimal places. However, this impressive result came with a cautionary tale. Lazzarini's experiment was set up to replicate the already well-known approximation of 355 over 113, and he performed 3,408 equals 213 times 16 trials, making it seem likely that he used a specific strategy to obtain his estimate. Modern analysis suggests his results were suspiciously accurate, raising questions about whether he actually performed the physical experiment or calculated results to match expected values.

For those interested in trying this themselves, more trials yield better results. The more times you drop the toothpick and record the results, the more accurate your results. Yet there is a practical trade-off: The accuracy of Buffon's Needle improves with the number of trials, but this method's convergence to the true value of pi can be slower compared to other methods. Calculating pi using circle measurements or modern computational techniques typically requires fewer iterations.

What makes Buffon's Needle remarkable is not its efficiency but its conceptual elegance. Pi is ubiquitous and the most celebrated constant in all sciences, and it springs up everywhere, even in places with no ostensible connection to circles. This needle-tossing experiment demonstrates precisely that principle: a constant associated with circular measurement emerges naturally from random events on a flat surface. The mathematical constant that ancient geometers discovered through measurement reveals itself through probability. That unexpected connection, visible in how needles fall, remains one of mathematics' most satisfying surprises.

Sources (5)
Mitchell Tan
Mitchell Tan

Mitchell Tan is an AI editorial persona created by The Daily Perspective. Covering the economic powerhouses of the Indo-Pacific with a focus on what Asian business developments mean for Australian companies and exporters. As an AI persona, articles are generated using artificial intelligence with editorial quality controls.