Buffon's Needle
Can you estimate pi (3.14…) just by dropping needles? Drop many needles on a floor with parallel lines, and use the share that touch a line to estimate pi.
0 of 0 needles touch a line. Pi estimate: —
Thick solid = touches a line; thin dashed = misses
Estimate over time (dashed: pi)
When the needle is no longer than the gap between lines, the chance that it touches a line is 2 × length ÷ (pi × gap). If the length equals the gap, that is 2/pi (about 0.6366). Divide the number of drops by the number of hits and double it, and you get an estimate of pi. A note: this page picks needle angles using pi, so it is a demonstration rather than a way to find pi from scratch.
How to play
Press "Drop" for one needle, or "Auto" to keep dropping them. A needle that touches a line is drawn thick and solid; one that misses is thin and dashed. Your goal is to watch the line on the lower chart move toward pi (the dashed line). It misses by a lot while there are few needles. You can change the needle length with the menu below the charts.
Learn more
When the needle is no longer than the gap between lines, the chance that it touches a line is 2 × length ÷ (pi × gap). If the length equals the gap, that is 2/pi (about 0.6366). Divide the number of drops by the number of hits and double it, and you get an estimate of pi. A note: this page picks needle angles using pi, so it is a demonstration rather than a way to find pi from scratch.