Uses of the constant
The following is a list of significant formulae involving the mathematical constant π. Many of these formulae can be found in the article Pi, or the article Approximations of π.

where C is the circumference of a circle, d is the diameter, and r is the radius. More generally,

where L and w are, respectively, the perimeter and the width of any curve of constant width.

where A is the area of a circle. More generally,

where A is the area enclosed by an ellipse with semi-major axis a and semi-minor axis b.

where C is the circumference of an ellipse with semi-major axis a and semi-minor axis b and
are the arithmetic and geometric iterations of
, the arithmetic-geometric mean of a and b with the initial values
and
.

where A is the area between the witch of Agnesi and its asymptotic line; r is the radius of the defining circle.

where A is the area of a squircle with minor radius r,
is the gamma function.

where A is the area of an epicycloid with the smaller circle of radius r and the larger circle of radius kr (
), assuming the initial point lies on the larger circle.

where A is the area of a rose with angular frequency k (
) and amplitude a.

where L is the perimeter of the lemniscate of Bernoulli with focal distance c.

where V is the volume of a sphere and r is the radius.

where SA is the surface area of a sphere and r is the radius.

where H is the hypervolume of a 3-sphere and r is the radius.

where SV is the surface volume of a 3-sphere and r is the radius.
Regular convex polygons
[edit] Sum S of internal angles of a regular convex polygon with n sides:

Area A of a regular convex polygon with n sides and side length s:

Inradius r of a regular convex polygon with n sides and side length s:

Circumradius R of a regular convex polygon with n sides and side length s:

- Coulomb's law for the electric force in vacuum:

- Approximate period of a simple pendulum with small amplitude:

- Exact period of a simple pendulum with amplitude
(
is the arithmetic–geometric mean): 
- Period of a spring-mass system with spring constant
and mass
: 
- The buckling formula:

A puzzle involving "colliding billiard balls":

is the number of collisions made (in ideal conditions, perfectly elastic with no friction) by an object of mass m initially at rest between a fixed wall and another object of mass b2Nm, when struck by the other object.[1] (This gives the digits of π in base b up to N digits past the radix point.)
(integrating two halves
to obtain the area of the unit circle)
(integrating a quarter of a circle with a radius of two
to obtain
)



[2][note 2] (see also Cauchy distribution)
(see Dirichlet integral)
(see Gaussian integral).
(when the path of integration winds once counterclockwise around 0. See also Cauchy's integral formula).
[3]
(see also Proof that 22/7 exceeds π).


(where
is the arithmetic–geometric mean;[4] see also elliptic integral)
Note that with symmetric integrands
, formulas of the form
can also be translated to formulas
.
Efficient infinite series
[edit]
(see also Double factorial)


(see Chudnovsky algorithm)
(see Srinivasa Ramanujan, Ramanujan–Sato series)
The following are efficient for calculating arbitrary binary digits of π:
[5]
(see Bailey–Borwein–Plouffe formula)


Plouffe's series for calculating arbitrary decimal digits of π:[6]

Other infinite series
[edit]
(see also Basel problem and Riemann zeta function)

, where B2n is a Bernoulli number.
[7]



(see Leibniz formula for pi)
(Newton, Second Letter to Oldenburg, 1676)[8]
(Madhava series)







In general,

where
is the
th Euler number.[9]


(see Gregory coefficients)
(where
is the rising factorial)[10]
(Nilakantha series)
(where
is the
th Fibonacci number)
(where
is the
th Lucas number)
(where
is the sum-of-divisors function)
(where
is the number of prime factors of the form
of
)[11][12]
(where
is the number of prime factors of the form
of
)[13]

[14]
The last two formulas are special cases of

which generate infinitely many analogous formulas for
when
(derived from Euler's solution to the Basel problem)
Some formulas relating π and harmonic numbers are given here. Further infinite series involving π are:[15]
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 | |
where
is the Pochhammer symbol for the rising factorial. See also Ramanujan–Sato series.




(the original Machin's formula)




(Euler)
where the numerators are the odd primes; each denominator is the multiple of four nearest to the numerator.

(see also Wallis product)
(another form of Wallis product)
Viète's formula:

A double infinite product formula involving the Thue–Morse sequence:

where
and
is the Thue–Morse sequence (Tóth 2020).
Infinite product representation :
[16]


where
such that
.

where
is the
th Fibonacci number.

whenever
and
,
,
are positive real numbers (see List of trigonometric identities). A special case is

(Euler's identity)
The following equivalences are true for any complex
:

[17]
Also

Suppose a lattice
is generated by two periods
. We define the quasi-periods of this lattice by
and
where
is the Weierstrass zeta function (
and
are in fact independent of
). Then the periods and quasi-periods are related by the Legendre identity:

[18]
(Ramanujan,
is the lemniscate constant)[19]
[18]



For more on the fourth identity, see Euler's continued fraction formula.
Iterative algorithms
[edit] 
(closely related to Viète's formula)
(where
is the h+1-th entry of m-bit Gray code,
)[20]
(quadratic convergence)[21]
(cubic convergence)[22]
(Archimedes' algorithm, see also harmonic mean and geometric mean)[23]
For more iterative algorithms, see the Gauss–Legendre algorithm and Borwein's algorithm.
(asymptotic growth rate of the central binomial coefficients)
(asymptotic growth rate of the Catalan numbers)
(Stirling's approximation)

(where
is Euler's totient function)

The symbol
means that the ratio of the left-hand side and the right-hand side tends to one as
.
The symbol
means that the difference between the left-hand side and the right-hand side tends to zero as
.
Hypergeometric inversions
[edit] With
being the hypergeometric function:

where

and
is the sum of two squares function.
Similarly,