π

Arbitrary Precision Pi Calculator

🤖 Auto-selected
Using Gauss–Legendre — best choice for this digit target.
Ready — choose a formula and digit target, then press Run.

Gauss–Legendre

Quadratically convergent — doubles correct digits each iteration. Reaches hundreds of digits in ~10 steps. The fastest converging algorithm here.

Quadratic convergence

Machin's Formula

Uses arctangent identities: π/4 = 4·arctan(1/5) − arctan(1/239). Linearly convergent, but very fast per digit — used for record calculations historically.

Linear — fast series

Nilakantha Series

An improvement on Leibniz: π = 3 + 4/(2·3·4) − 4/(4·5·6) + … Converges much faster than Leibniz but still slowly versus Machin or GL.

Cubic convergence

Leibniz Series

The classic: π/4 = 1 − 1/3 + 1/5 − 1/7 + … Beautiful but painfully slow — needs millions of terms for just a few correct digits.

Extremely slow