⬭

Ellipse Calculator

An ellipse's area, perimeter (Ramanujan's approximation and the exact value from the elliptic integral, so you can see the error), eccentricity and foci from its two semi-axes.

Math & AlgebraRuns in your browser

Result…

Only labels the answers: the working is the same in any unit.

Half the width: the distance from the centre to the edge along one axis. Half the full axis.

Half the height, at right angles to a. Either can be the longer one.

 

…

How it's calculated

Area = πab
Perimeter ≈ π(a + b)(1 + 3h ÷ (10 + √(4 − 3h))), h = (a − b)² ÷ (a + b)²  (Ramanujan II)
Exact perimeter = 4a E(e), E = ∫₀^{π/2} √(1 − e² sin² t) dt
c = √(a² − b²), e = c ÷ a (a ≥ b)

Works from the semi-axes, half the full width and height. The area πab is exact. The perimeter of an ellipse is a complete elliptic integral of the second kind, which has no closed form, so the calculator gives two values: Ramanujan's second approximation (1914), and the integral itself evaluated with Gauss's arithmetic-geometric mean, which converges to full double precision in a few steps and agrees with direct numerical integration. The difference shows how good the approximation is for your shape: zero for a circle, under a millionth for moderate ellipses, and growing as the ellipse flattens. The foci lie on the long axis at a distance c = √(a² − b²) from the centre; the eccentricity c ÷ a runs from 0 (a circle) towards 1 (a flat line).

Your numbers, step by step

    About the Ellipse calculator

    This ellipse calculator takes the two semi-axes of an oval, half its width and half its height, and returns the area, the perimeter, the eccentricity and where the foci sit. The area πab is exact, but an ellipse's perimeter has no simple formula. So the calculator gives two values side by side: Ramanujan's well-known approximation, and the exact value of the elliptic integral, evaluated to full precision. The gap between them shows how far you can trust the approximation for your shape. Students use it for conic sections and calculus homework. Makers and builders use it to size oval tables, flower beds, ponds, running tracks and trim. Every step is written out with your numbers, and the formulas match those listed by Wolfram MathWorld. For a round shape, the circle area calculator is simpler.

    How to use it

    1. Pick a “Length unit”, such as cm, m, in or ft. It only labels the answers.
    2. Type “Semi-axis a” and “Semi-axis b”: half the full width and half the full height. Either can be the longer one.
    3. Read the area, then compare “Perimeter (Ramanujan II)” with “Perimeter (exact)”; “Approximation error” is the difference.
    4. Use the eccentricity and the focus distances when you need the shape's foci, for example to draw it with two pins and a loop of string.

    Worked example

    An oval lawn is 16 m long and 10 m wide, so a = 8 m and b = 5 m. The area is π × 8 × 5 = 125.66 m². With h = (8 − 5)² ÷ (8 + 5)² = 0.0533, Ramanujan's formula gives a perimeter of 41.386276 m, and the exact elliptic integral gives 41.386276 m too: they differ by about 0.0000000004 m. Each focus is √(8² − 5²) = 6.245 m from the centre, 12.49 m apart, and the eccentricity is 6.245 ÷ 8 = 0.781.

    Updated

    Questions people ask

    How do you calculate the area of an ellipse?

    Multiply π by the two semi-axes: area = π × a × b. An ellipse 10 cm wide and 6 cm tall has a = 5 and b = 3, so its area is π × 5 × 3 = 47.12 cm².

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

    Only as an elliptic integral, P = 4a × E(e), which has no answer in ordinary functions. The calculator evaluates it numerically and also shows Ramanujan's approximation, π(a + b)(1 + 3h ÷ (10 + √(4 − 3h))) with h = (a − b)² ÷ (a + b)².

    How accurate is Ramanujan's ellipse perimeter approximation?

    For most ovals the error is far below a millionth of the perimeter. It grows only for very flat ellipses and stays under about 0.04% even for a nearly flat line.

    What is the eccentricity of an ellipse?

    It measures how stretched the ellipse is: e = c ÷ a, where c = √(a² − b²) is the distance from the centre to each focus. A circle has e = 0; the flatter the ellipse, the closer e gets to 1.

    Should I enter the full width or half of it?

    Half. The semi-axes run from the centre to the edge. Entering the full width and height gives an area four times too big and a perimeter twice too long.

    More in Math & Algebra