SCIENCE & MATHS

Ellipse Calculator

Area, perimeter, eccentricity, foci, latus rectum and directrix of an ellipse from two axes, or one axis with the eccentricity or focal distance.

Exact area πab, the perimeter from the elliptic integral with Ramanujan’s approximation beside it, eccentricity, focal distance and foci, latus rectum, flattening, and the point at any angle both ways.

Example: a = 5, b = 3: area 47.124, perimeter 25.527, eccentricity 0.8, foci 4 either side of the centre; at 45° the geometric point (2.65, 2.65) differs from the parametric (3.54, 2.12).

v0.1.0 · last reviewed 22 September 2026
Loading the workspace…
BUILT TO BE UNDERSTOOD

Exact area.
Perimeter by integral.

The relations between the axes and the foci, why the perimeter is hard, and two angles that differ.

Axes, foci, eccentricity

An ellipse has a semi-major axis a and a semi-minor axis b, with the focal distance c = √(a² − b²) and the eccentricity e = c ÷ a — 0 for a circle, approaching 1 for a long thin ellipse. The two foci sit at (±c, 0), and every point on the curve has the same total distance 2a to the pair of them, which is exactly what the two-pins-and-a-string construction exploits. The semi-latus rectum b² ÷ a is the half-height directly above a focus, the quantity orbital mechanics uses; the directrix sits at x = ±a ÷ e. Give the page any one of these with a and it recovers b.

Area and perimeter

The area is πab exactly — the circle's πr² stretched. The perimeter has no closed form in elementary functions: it is 4a·E(e²), the complete elliptic integral of the second kind, which this page evaluates by the arithmetic-geometric mean to about fifteen digits. Ramanujan's second approximation, π(a + b)(1 + 3h ÷ (10 + √(4 − 3h))) with h = ((a − b) ÷ (a + b))², is shown beside it: it is accurate to better than one part in ten million for ordinary shapes, which is why it is the one most calculators quietly use.

Two different angles

The point "at 45°" is ambiguous on an ellipse. The geometric angle is the one you would measure with a protractor from the centre, giving the point at radius r(θ) = ab ÷ √((b cos θ)² + (a sin θ)²). The parametric angle t is the one in the standard parameterisation (a cos t, b sin t), which is the angle on the circumscribed circle before the squash — not the same number except at 0°, 90°, 180° and 270°. Both are given, because mixing them up is one of the commonest errors in CAD, plotting and orbital work. Nothing leaves the browser; the same four anonymous usage counts as the rest of the site apply.

SOURCES

  • Area = πab exactly; perimeter 4a·E(e²), the complete elliptic integral of the second kind by the arithmetic-geometric mean, with Ramanujan II for comparison; c = √(a² − b²), e = c/a

Last reviewed 22 September 2026. How results are checked: How we verify.