The Mathematics of π

Exploring the formulas that define and approximate pi

Pi (π) appears in countless formulas across mathematics, physics, and engineering. Below are some of the most important and beautiful formulas involving this fundamental constant.

Fundamental Definitions

Circle Circumference

Definition
C = 2πr

The most fundamental definition: π is the ratio of a circle's circumference to its diameter.

d = 2r

Circle Area

Definition
A = πr²

The area of a circle is proportional to the square of its radius, with π as the constant of proportionality.

Infinite Series

Leibniz Formula

1674
π/4 = 1 - 1/3 + 1/5 - 1/7 + 1/9 - ...

One of the simplest infinite series for π, discovered by Gottfried Wilhelm Leibniz. While elegant, it converges very slowly (after 500,000 terms, it's only accurate to 5 decimal places).

Nilakantha Series

15th Century
π = 3 + 4/(2×3×4) - 4/(4×5×6) + 4/(6×7×8) - ...

Discovered by the Indian mathematician Nilakantha Somayaji, this series converges much faster than the Leibniz formula.

Ramanujan's Formula

1910
1/π = (2√2)/9801 ∑k=0 (4k)!(1103+26390k)/(k!43964k)

An extremely rapidly converging series discovered by Srinivasa Ramanujan. Each term adds about 8 decimal digits of precision.

Infinite Products

Wallis Product

1656
π/2 = (2×2)/(1×3) × (4×4)/(3×5) × (6×6)/(5×7) × ...

Discovered by John Wallis, this was the first infinite sequence ever found for π.

Viète's Formula

1593
2/π = √(1/2) × √(1/2 + 1/2√(1/2)) × ...

The first infinite product in mathematics, discovered by François Viète.

Continued Fractions

Simple Continued Fraction

General
π = 3 + 1/(7 + 1/(15 + 1/(1 + 1/(292 + ...))))

The simple continued fraction representation of π has no apparent pattern.

Generalized Continued Fraction

1706
π = 4/(1 + 1²/(3 + 2²/(5 + 3²/(7 + ...))))

Discovered by William Brouncker, this was the first continued fraction representation of π.

Integrals and Calculus

Gaussian Integral

Probability
-∞ e-x² dx = √π

This integral is fundamental in probability theory and statistics.

Basel Problem

1734
n=1 1/n² = π²/6

Solved by Euler, this showed a deep connection between π and the integers.

Modern Computation Formulas

Chudnovsky Algorithm

1989
1/π = 12 ∑k=0 (-1)k (6k)!(13591409+545140134k)/((3k)!(k!)³ 6403203k+3/2

Used to set several π calculation records, including the first computation of over 1 billion digits.

BBP Formula

1995
π = ∑k=0 1/16k (4/(8k+1) - 2/(8k+4) - 1/(8k+5) - 1/(8k+6))

The Bailey-Borwein-Plouffe formula allows calculating specific binary or hexadecimal digits of π without calculating preceding digits.

Explore More