The perimeter of an ellipse is the arc length of one complete circuit. Let
and
be the semimajor axis and semiminor
axis, and let
be the eccentricity.
The arc length of the ellipse from to
in the counterclockwise direction is
|
(1)
| |||
|
(2)
| |||
|
(3)
|
where ,
is an incomplete elliptic
integral of the second kind with elliptic modulus
(the eccentricity), and
is the corresponding complete
elliptic integral of the second kind (N. M. Nobre, pers. comm., Oct. 24,
2019). To represent
in the Wolfram
Language, the second argument of EllipticE[t,
m] is the elliptic parameter
rather than the elliptic
modulus
.
The entire perimeter of the ellipse is given by setting
, which is equivalent to four times the length of
one of the ellipse's quadrants,
|
(4)
| |||
|
(5)
| |||
|
(6)
|
where
is a complete elliptic integral
of the second kind with elliptic modulus
(the eccentricity). The perimeter can be computed using
the rapidly converging Gauss-Kummer series
as
|
(7)
| |||
|
(8)
|
(OEIS A056981 and A056982), where
is a binomial coefficient and
|
(9)
|
This can also be written analytically as
|
(10)
| |||
|
(11)
|
where
is a hypergeometric function,
is a complete
elliptic integral of the first kind, and
is a complete
elliptic integral of the second kind. Here,
is the elliptic modulus.
Approximations to the perimeter include
|
(12)
| |||
|
(13)
| |||
|
(14)
|
where the last two are due to Ramanujan (1913-1914), and (14) has a relative error of for small values of
. The error surfaces are illustrated above for these
functions.
Inki (2026, Section 3) gives an approximation using three square roots and a fixed number of arithmetic-geometric
mean steps. For with
,
put
,
,
, and
.
Set
and
for
, and let
.
The approximation is
|
(15)
|
where
is chosen to make the branches agree at
.
The flat-ellipse branch uses Legendre's relation between the complete
elliptic integral of the first kind and the complete
elliptic integral of the second kind. High-precision sampling found a maximum
relative error of approximately
for this formula. The four- and six-square-root
variants had sampled maxima of
and
,
respectively. These figures measure approximation error before rounding to the target
precision. Inki credits Claude Opus 5.5 with the derivations and computations.