Happy Pi Day! It’s March 14, or 3/14, matching the first three digits of π.

π is one of the fundamental constants of mathematics: the ratio of a circle’s circumference to its diameter.

π is an irrational number — it can never be written as a fraction of two whole numbers, and it does not have a terminating or repeating decimal expansion. The decimal expansion of π goes on forever, never showing any repeating pattern.

Since π is irrational, all we can ever hope to do is get better and better decimal approximations.

So, how did the ancients first approximate π?

## How They Found π

The Greek mathematician Archimedes developed one of the first somewhat rigorous approaches to approximating π. Archimedes observed that polygons drawn inside and outside a circle would have perimeters somewhat close to the circumference of the circle.

As described in Jorg Arndt and Cristoph Haenel’s book Pi Unleashed, Archimedes started with hexagons:

We start with a circle of diameter equal to one, so that, by definition, its circumference will equal π. Using some basic geometry and trigonometry, Archimedes observed that the length of each of the sides of the inscribed blue hexagon would be 1/2, and the lengths of the sides of the circumscribed red hexagon would be 1/√3.

The perimeter of the inscribed blue hexagon has to be smaller than the circumference of the circle, since the hexagon fits entirely inside the circle. The six sides of the hexagon all have length 1/2, so this perimeter is 6 × 1/2 = 3.

Similarly, the circumference of the circle has to be less than the perimeter of the circumscribed red hexagon, and this perimeter is 6 × 1/√3, which is about 3.46.

This gives us the inequalities 3 < π < 3.46, already moving us closer to 3.14.

Archimedes, through some further clever geometry, figured out how to estimate the perimeters for polygons with twice as many sides. He went from a 6-sided polygon, to a 12-sided polygon, to a 24-sided polygon, to a 48-sided polygon, and ended up with a 96-sided polygon. This final estimate gave a range for π between 3.1408 and 3.1428, which is accurate to two places.

Archimedes’ method of approximating π with polygons, and similar techniques developed in China and India, would be the dominant way mathematicians would approach the calculation of the digits π for centuries.

Today we use algorithms based on the idea of infinite series from calculus, and our ever-faster computers allow us to find trillions of digits of

π.