🧮
🧮 Math & statistics

Ellipse Calculator (area, perimeter, eccentricity)

Results update as you type.

Your numbers

Understanding the ellipse calculator — concept and principle

An ellipse is a stretched circle: the set of points whose distances to two fixed points, the foci, add up to the same constant. It is described by its semi-major axis a (half the longest width) and semi-minor axis b (half the shortest width). This calculator gives the area, the perimeter, the eccentricity and the focal distance. Ellipses appear in planetary orbits, oval tables, arches and the slanted cross-section of a cylinder.

Ellipse with a = 5, b = 3 drawn with two pins and a stringPins sit at the foci, 4 from the centre. From the top point the string runs 5 to each pin, 10 in total, which equals 2a. Area is 15π ≈ 47.12, perimeter ≈ 25.53, eccentricity 0.8.Two pins and a loop of string55a = 5b = 3c = 4string: 5 + 5 = 10 = 2a · e = c ÷ a = 0.8area = π·a·b = 15π≈ 47.12perimeter (Ramanujan)≈ 25.53
a, b and c form a 3-4-5 right triangle: c² = a² − b².

How it is calculated

Lengths share one unit; the area is in that unit squared; e has no unit.

The principle

An ellipse is a circle of radius a squeezed in one direction by the factor b/a. Squeezing scales every area by the same factor, so πa² becomes πa² × (b/a) = πab. The perimeter is harder: it has no formula in elementary functions and equals the complete elliptic integral 4a·E(e). In 1914 Srinivasa Ramanujan published approximations that are remarkably close to this integral. His second one is exact for a circle and still within about 0.04% for an ellipse flattened to a line. The focal relation c² = a² − b² comes from the vertex at the end of the minor axis: its distance to each focus is a, giving a right triangle with legs b and c.

Worked example

  1. Inputs: a = 5, b = 3.
  2. Area: π × 5 × 3 = 15π ≈ 47.1238898.
  3. h = (2/8)² = 0.0625; √(4 − 0.1875) ≈ 1.952562; correction = 0.1875 ÷ 11.952562 ≈ 0.015687.
  4. Perimeter ≈ π × 8 × 1.015687 ≈ 25.52699886 (the exact integral agrees to about 9 significant digits).
  5. c = √(25 − 9) = 4, and e = 4 ÷ 5 = 0.8.
How Area changes with Semi-major axis aHow Area changes with Semi-major axis a0204060801001.252.53.7556.257.510Example: 47.1238898Semi-major axis a
Each point is the calculator re-run with only “Semi-major axis a” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Semi-major axis aArea
1.2511.78097245
2.523.5619449
3.7535.34291735
547.1238898
6.2558.90486225
7.570.68583471
1094.24777961

How to read the result

Eccentricity runs from 0 (a perfect circle) toward 1 (a very flat ellipse). Earth’s orbit has e of about 0.017, almost circular, while many comets exceed 0.9. The perimeter always lies between that of a circle of radius b and one of radius a.

Common mistakes

Keep in mind: The perimeter shown is an approximation, though an extremely good one. For precision manufacturing, compute the elliptic integral numerically and include material thickness and tolerances in real designs.

Frequently asked questions

Is there an exact formula for the perimeter of an ellipse?

Only as an infinite series or the elliptic integral 4a·E(e); there is no closed form with ordinary functions.

How do I draw an ellipse with string?

Fix two pins at the foci, 2c apart, tie a loop of string with total free length 2a, and trace with a pencil keeping it taut.

What happens if a = b?

Then c = 0 and e = 0, the ellipse is a circle, and all formulas reduce to the circle formulas.

Sources: S. Ramanujan, Modular equations and approximations to π, Quarterly Journal of Mathematics 45 (1914), 350–372 · NIST Digital Library of Mathematical Functions, §19.9 (elliptic integrals and the perimeter of an ellipse)

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →