Skip to content

Ellipse Calculator: Area, Perimeter, Foci and Equation

Area, exact perimeter, eccentricity, foci, latus rectum and standard equation of an ellipse from its axes, foci or eccentricity.

Your details

Known values

Half the width of the ellipse. Any length unit: the results use the same unit (square units for the area).

Half the height. The larger of the two semi-axes is the semi-major axis a.

Results update as you type

Area πab

47.1239

Perimeter (exact, AGM)
25.527
Perimeter, Ramanujan II approximation
25.527
Standard equation
x²/25 + y²/9 = 1
Semi-major axis a
5
Semi-minor axis b
3
Eccentricity e = c/a
0.8
Linear eccentricity c = √(a² − b²)
4
Distance between the foci 2c
8
Foci
(−4, 0), (4, 0)
Vertices (ends of the major axis)
(−5, 0), (5, 0)
Co-vertices (ends of the minor axis)
(0, −3), (0, 3)
Latus rectum 2b²/a
3.6
Semi-latus rectum b²/a
1.8
Directrices
x = −6.25, x = 6.25
Flattening 1 − b/a
0.4
Orientation
Major axis horizontal (along x)

Ramanujan’s approximation differs from the exact AGM perimeter by 0.0000000024 %.

Step-by-step solution
  1. Semi-major axis a = 5, semi-minor axis b = 3
  2. A = πab = π × 5 × 3 = 47.1239
  3. c = √(a² − b²) = √(25 − 9) = 4
  4. e = c/a = 4 / 5 = 0.8
  5. P = 4a·E(e) = 25.526999
  6. λ = ((a − b)/(a + b))² = 0.0625 → P ≈ π(a + b)(1 + 3λ/(10 + √(4 − 3λ))) = 25.526999
  7. 2b²/a = 2 × 9 / 5 = 3.6

An ellipse is the set of points whose distances to two fixed points, the foci, add up to the same constant. Planet orbits, elliptical tables, arches, gears, the cross-section of a tilted cylinder and the shadow of a ball on a slanted surface are all ellipses, which is why the same handful of quantities keeps coming back: the area, the perimeter, how stretched the shape is, and where the foci sit.

This calculator gives all of them at once. Enter the two semi-axes — or the semi-major axis with either the focal distance cc or the eccentricity ee — and, if you like, the centre (h,k)(h, k). You get the area πab\pi ab, the perimeter computed exactly with the arithmetic-geometric mean, the Ramanujan approximation with its error, the eccentricity, the linear eccentricity cc, the coordinates of the foci, vertices and co-vertices, the latus rectum, the directrices, the flattening and the standard equation of the ellipse.

Lengths can be in any unit, as long as you use the same one for every input: results come back in that unit, and the area in that unit squared. For a quick perimeter of many shapes side by side, the perimeter calculator also covers ellipses; this page goes further with the focal geometry and the equation.

How to use this calculator

  1. Choose what you know: Semi-axes (half-width and half-height), a + focal distance c, or a + eccentricity e.
  2. Type the values. With semi-axes, the larger one automatically becomes the semi-major axis aa and decides whether the ellipse is wide or tall. In the other two modes, pick whether the major axis is horizontal or vertical.
  3. Optionally enter the centre (h,k)(h, k). It only moves the ellipse, so it changes the equation, foci, vertices and directrices but not the area, perimeter or eccentricity.
  4. Read the area first, then the perimeter, the standard equation and the focal properties. The steps show every substitution.

If you have the full axes (the whole width and height), halve them first: aa and bb are always semi-axes.

The formula

For semi-major axis aa and semi-minor axis bb (a≥b>0a \ge b > 0), centred at (h,k)(h, k) with a horizontal major axis:

(x−h)2a2+(y−k)2b2=1\frac{(x-h)^2}{a^2} + \frac{(y-k)^2}{b^2} = 1

For a vertical major axis, a2a^2 goes under the yy term instead.

A=πabc=a2−b2e=caℓ=2b2aA = \pi a b \qquad c = \sqrt{a^2 - b^2} \qquad e = \frac{c}{a} \qquad \ell = \frac{2b^2}{a}

The foci are at (h±c, k)(h \pm c,\ k), the vertices at (h±a, k)(h \pm a,\ k), the co-vertices at (h, k±b)(h,\ k \pm b) and the directrices are the lines x=h±a2/cx = h \pm a^2/c.

Perimeter. There is no elementary formula: the exact value is P=4a E(e)P = 4a\,E(e), where EE is the complete elliptic integral of the second kind. The calculator evaluates it with the arithmetic-geometric mean (AGM) of aa and bb, which converges in a handful of steps to full machine precision:

P=2πM(a,b)(a2−∑n≥02n−1cn2),c02=a2−b2P = \frac{2\pi}{M(a, b)}\Big(a^2 - \sum_{n \ge 0} 2^{n-1} c_n^2\Big), \qquad c_0^2 = a^2 - b^2

Ramanujan’s second approximation, published in 1914, is shown alongside:

P≈π(a+b)(1+3λ10+4−3λ),λ=(a−ba+b)2P \approx \pi (a+b)\left(1 + \frac{3\lambda}{10 + \sqrt{4 - 3\lambda}}\right), \qquad \lambda = \left(\frac{a-b}{a+b}\right)^2

Worked example

Semi-axes 5 and 3, centred at the origin. Area: A=π×5×3=15π≈47.1239A = \pi \times 5 \times 3 = 15\pi \approx 47.1239. Linear eccentricity: c=25−9=4c = \sqrt{25 - 9} = 4, so the foci are at (±4,0)(\pm 4, 0) and the eccentricity is e=4/5=0.8e = 4/5 = 0.8. Latus rectum: 2×9/5=3.62 \times 9 / 5 = 3.6. Directrices: x=±25/4=±6.25x = \pm 25/4 = \pm 6.25. Equation: x225+y29=1\frac{x^2}{25} + \frac{y^2}{9} = 1.

The exact perimeter is P≈25.526999P \approx 25.526999, and Ramanujan’s formula gives 25.52699925.526999 — identical to six decimals.

A very flat ellipse, a = 10 and b = 1. Exact perimeter 40.639740.6397; Ramanujan 40.639340.6393, an error of only 0.0012 %. The naive circle-like guess 2π(a2+b2)/2≈44.65042\pi\sqrt{(a^2+b^2)/2} \approx 44.6504 is noticeably off.

From the eccentricity: a=13a = 13 and e=0.6e = 0.6 give c=7.8c = 7.8, b=131−0.36=10.4b = 13\sqrt{1 - 0.36} = 10.4, area 424.7433424.7433 and perimeter 73.740373.7403.

Eccentricity, foci and the shape of an ellipse

The eccentricity e=c/ae = c/a measures how far the foci are from the centre relative to the size of the ellipse. It goes from 0 for a circle (both foci at the centre, a=ba = b) towards 1 for a needle-thin ellipse. Some reference values:

Eccentricity Ratio b/a What it looks like
0 1 Circle
0.0167 0.99986 Earth’s orbit: indistinguishable from a circle by eye
0.5 0.866 Clearly oval
0.8 0.6 The 5 × 3 example above
0.967 0.255 Halley’s comet orbit

Because b/a=1−e2b/a = \sqrt{1 - e^2}, the shape depends on ee alone; aa only scales it. The flattening 1−b/a1 - b/a is the same idea used by geodesists to describe the Earth’s ellipsoid (about 1/298).

The reflective property follows from the definition: a ray leaving one focus bounces off the ellipse straight into the other focus. Whispering galleries and kidney-stone lithotripters use exactly this.

How accurate is Ramanujan’s perimeter formula?

Ramanujan’s second formula is astonishingly good: its relative error grows roughly like λ5\lambda^5, so it is exact to about nine significant digits for ordinary ellipses and stays below 0.04 % even when the ellipse collapses into a segment (where the true perimeter is 4a4a). Simpler formulas you may meet, such as 2π(a2+b2)/22\pi\sqrt{(a^2+b^2)/2} or π(a+b)\pi(a+b), are off by several percent for elongated ellipses. Since the AGM gives the exact value instantly, the calculator uses it as the main result and shows Ramanujan’s value so you can see how close it comes.

Frequently asked questions

What is the formula for the area of an ellipse?

Area = π × a × b, where a and b are the semi-axes (half the length and half the width). A circle is the special case a = b = r, which gives πr². An ellipse with semi-axes 5 and 3 has an area of 15π ≈ 47.12 square units.

Why is there no simple exact formula for the perimeter?

The arc length of an ellipse leads to an elliptic integral that cannot be written with elementary functions. It can still be computed to any precision, and the arithmetic-geometric mean does so in just a few iterations, which is what this calculator uses.

How do I find the foci of an ellipse?

Compute c = √(a² − b²). The foci lie on the major axis, at distance c on each side of the centre: (h ± c, k) for a horizontal ellipse, (h, k ± c) for a vertical one. For a = 5 and b = 3, c = 4.

What is the latus rectum of an ellipse?

It is the chord through a focus perpendicular to the major axis. Its length is 2b²/a; half of it, b²/a, is the semi-latus rectum, the parameter p used in the polar equation r = p / (1 + e·cos θ) of orbits.

Can I get the ellipse from its eccentricity?

Yes. Choose a + eccentricity e: the calculator finds b = a√(1 − e²) and c = a·e, then everything else. The eccentricity must be at least 0 and strictly less than 1.

What is the difference between the major axis and the semi-major axis?

The major axis is the longest diameter, 2a; the semi-major axis is half of it, a. All formulas on this page use the semi-axes a and b.

Sources

Last updated:

More Math calculators

People also use