π

Buffon's Needle

Estimating π through geometric probability

Drop some needles to estimate π…
Crossing lineNot crossingClick on the canvas to drop a needle at that position

Needle length must not exceed line spacing.

50 px

Length of each dropped needle

80 px

Distance between parallel lines

5,000

Simulation stops after this many needles

×5

5 Needles added per animation frame