History of Math

Archimedes and the Squeeze for π

Archimedes estimated π without trigonometry by doubling regular polygons around a unit circle. This demo starts at a hexagon, doubles up to 6144 sides, and shows how each doubling locks more decimal places of π from both sides.

6 minLevel 2/3The interactive stage stays ad-free.
Sides6Lower bound3.000000000Upper bound3.464101615Gap4.64e-1Digits locked0
r = 1inside · lower boundoutside · upper bound

perimeters: 6.000000000 < 2π < 6.928203230 · gap = 0.464101615

π =3.141592653589790 decimal places guaranteed

96 sides: Archimedes squeezed π between 223/71 ≈ 3.140845 and 22/7 ≈ 3.142857. With only 96 sides both bounds already agree to two decimal places.

Start with a hexagon around the unit circle. Doubling the sides pushes the inscribed perimeter up and the circumscribed perimeter down. When both bounds agree on the first 3 decimals of π, the squeeze has locked those digits. With reduced motion enabled, “Watch the squeeze” jumps straight to the target instead of animating.

What you are seeing

1

A regular polygon drawn inside the unit circle has a perimeter shorter than the circle, so half its perimeter is a lower bound for π.

2

A matching polygon drawn outside the circle has a longer perimeter, so half its perimeter is an upper bound for π.

3

Each doubling uses a2 = 2ab/(a+b) and b = √(a2·b) to update the two perimeters, closing the gap by roughly a factor of four.

Why it matters

This is one of the first rigorous numerical algorithms in history. It shows how a strict error bound can be squeezed to any desired accuracy, the same idea behind modern certified numerics.

Complexity & details

Each doubling costs O(1). Reaching n sides takes O(log n) doublings; locking m decimal digits needs about O(log m) doublings.

Frequently asked questions

Why does the gap shrink so fast?+

The inscribed and circumscribed perimeters approach each other quadratically: doubling the sides reduces the gap by about a factor of four, so each doubling tends to win about half a decimal digit more.

Did Archimedes use this exact update rule?+

Archimedes used geometric recursions equivalent to these algebraic ones. The formulas shown here are a compact algebraic restatement of his doubling construction.