TOPICS
Search

Ellipse Arc Length and Perimeter


The perimeter of an ellipse is the arc length of one complete circuit. Let a and b be the semimajor axis and semiminor axis, and let e=sqrt(1-b^2/a^2) be the eccentricity.

The arc length of the ellipse from (a,0) to (acost,bsint) in the counterclockwise direction is

s(t)=a[E(e)+E(t-1/2pi,e)]
(1)
=aE(sqrt(1-(b^2)/(a^2)))+aE(t-1/2pi,sqrt(1-(b^2)/(a^2)))
(2)
=bE(t,sqrt(1-(a^2)/(b^2))),
(3)

where 0<=t<=2pi, E(t,e) is an incomplete elliptic integral of the second kind with elliptic modulus e (the eccentricity), and E(e)=E(pi/2,e) is the corresponding complete elliptic integral of the second kind (N. M. Nobre, pers. comm., Oct. 24, 2019). To represent E(t,e) in the Wolfram Language, the second argument of EllipticE[t, m] is the elliptic parameter m=e^2 rather than the elliptic modulus e.

The entire perimeter p of the ellipse is given by setting t=2pi, which is equivalent to four times the length of one of the ellipse's quadrants,

p=aE(2pi,e)
(4)
=4aE(1/2pi,e)
(5)
=4aE(e),
(6)

where E(e) is a complete elliptic integral of the second kind with elliptic modulus e (the eccentricity). The perimeter can be computed using the rapidly converging Gauss-Kummer series as

p=pi(a+b)sum_(n=0)^(infty)(1/2; n)^2h^(2n)
(7)
=pi(a+b)(1+1/4h^2+1/(64)h^4+1/(256)h^6+...)
(8)

(OEIS A056981 and A056982), where (n; k) is a binomial coefficient and

 h=(a-b)/(a+b).
(9)

This can also be written analytically as

p=pi(a+b)_2F_1(-1/2,-1/2;1;h^2)
(10)
=2(a+b)[2E(h)+(h^2-1)K(h)],
(11)

where _2F_1(a,b;c;z) is a hypergeometric function, K(k) is a complete elliptic integral of the first kind, and E(k) is a complete elliptic integral of the second kind. Here, k is the elliptic modulus.

EllipsePerimeter

Approximations to the perimeter include

p approx pisqrt(2(a^2+b^2))
(12)
 approx pi[3(a+b)-sqrt((a+3b)(3a+b))]
(13)
 approx pi(a+b)(1+(3h^2)/(10+sqrt(4-3h^2))),
(14)

where the last two are due to Ramanujan (1913-1914), and (14) has a relative error of ∼3·2^(-17)h^(10) for small values of h. 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 a>=b>=0 with a>0, put t=b/a, a_1=(a+b)/2, b_1=sqrt(ab), and c_1=(a-b)/2. Set a_(j+1)=(a_j+b_j)/2 and b_(j+1)=sqrt(a_jb_j) for j=1,2, and let K_3=pia/(a_3+b_3). The approximation is

 p approx {(4pi)/(a_3+b_3)(a_2^2+(b_1c_1^2)/(b_2+b_1))   for t>=0.1; 4a[1+(t^2)/2(K_3-1/2)+(t^4)/(16)(K_3-5/4)+gammat^6]   for t<0.1,
(15)

where gamma approx 0.1136228983147862 is chosen to make the branches agree at t=0.1. 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 4.0×10^(-8) for this formula. The four- and six-square-root variants had sampled maxima of 4.1×10^(-17) and 8.1×10^(-37), respectively. These figures measure approximation error before rounding to the target precision. Inki credits Claude Opus 5.5 with the derivations and computations.


See also

Arc Length, Complete Elliptic Integral of the Second Kind, Ellipse, Perimeter

Portions of this entry contributed by Nuno Miguel Nobre

Explore with Wolfram|Alpha

References

Abbott, P. "On the Perimeter of an Ellipse." Mathematica J. 11, 172-185, 2009.Inki, M. "Improved Approximations for the Perimeter of an Ellipse." Hexagon, Nov. 27, 2026. https://hexagonmath.org/2611.01145v1.Ramanujan, S. "Modular Equations and Approximations to pi." Quart. J. Pure. Appl. Math. 45, 350-372, 1913-1914.Sloane, N. J. A. Sequences A056981 and A056982 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W., with contributions by Nuno Miguel Nobre. "Ellipse Arc Length and Perimeter." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/EllipseArcLengthandPerimeter.html

Subject classifications