Ellipse Calculator

Quick answer

The ellipse calculator finds the area, perimeter, eccentricity, focal distance, foci, vertices and semi-latus rectum of an ellipse from its two semi-axes and centre.

Area
47.12389
Perimeter (Ramanujan II)
25.526999
Linear eccentricity c (centre to focus)
4
Eccentricity e
0.8
Semi-latus rectum
1.8
Focus 1 x
-4
Focus 1 y
0
Focus 2 x
4
Focus 2 y
0
Vertices on the major axis (distance from centre)
5

Ellipses are stretched circles. Planetary orbits, whispering galleries, elliptical gears, running tracks and the shadow of a tilted circle are all ellipses. The two foci have the property that the sum of the distances to any point on the ellipse is constant (2a).

How to use the Ellipse Calculator

  1. Semi-axis a (along x)
  2. Semi-axis b (along y)
  3. Centre x (h)
  4. Centre y (k)

Results update as you type, and everything is calculated in your browser.

How it works

Enter the semi-axis along x (a) and along y (b) and the centre (h, k). The larger semi-axis is the major one. The perimeter uses Ramanujan’s second approximation, which is extremely accurate.

Inputs explained

Field What to enter
Semi-axis a (along x) Units: cm, m, mm, in, ft, yd …
Semi-axis b (along y) Units: cm, m, mm, in, ft, yd …
Centre x (h) A number
Centre y (k) A number

What each result means

  • Area = pi×[Semi-axis a (along x)]×[Semi-axis b (along y)]
  • Perimeter (Ramanujan II) = pi×([Semi-axis a (along x)] + [Semi-axis b (along y)])×(1 + 3×(([Semi-axis a (along x)] – [Semi-axis b (along y)])÷([Semi-axis a (along x)] + [Semi-axis b (along y)]))^2÷(10 + sqrt(4 – 3×(([Semi-axis a (along x)] – [Semi-axis b (along y)])÷([Semi-axis a (along x)] + [Semi-axis b (along y)]))^2)))
  • Linear eccentricity c (centre to focus) = sqrt(abs([Semi-axis a (along x)]^2 – [Semi-axis b (along y)]^2))
  • Eccentricity e = sqrt(abs([Semi-axis a (along x)]^2 – [Semi-axis b (along y)]^2))÷max([Semi-axis a (along x)], [Semi-axis b (along y)])
  • Semi-latus rectum = min([Semi-axis a (along x)], [Semi-axis b (along y)])^2÷max([Semi-axis a (along x)], [Semi-axis b (along y)])
  • Vertices on the major axis (distance from centre) = max([Semi-axis a (along x)], [Semi-axis b (along y)])

Example values

How the main result changes when Semi-axis a changes and everything else stays at the example values above:

Semi-axis a (along x) (cm) Area (cm²)
2.5 23.5619
3.75 35.3429
5 47.1239
6.25 58.9049
7.5 70.6858
10 94.2478

Formula

A = π·a·b, c = √(a² − b²), e = c/a P ≈ π(a + b)(1 + 3h/(10 + √(4 − 3h))), h = ((a − b)/(a + b))²

Worked example

Inputs: Semi-axis a (along x): 5 cm; Semi-axis b (along y): 3 cm; Centre x (h): 0; Centre y (k): 0.
Results: Area = 47.12389 cm²; Perimeter (Ramanujan II) = 25.526999 cm; Linear eccentricity c (centre to focus) = 4 cm; Eccentricity e = 0.8; Semi-latus rectum = 1.8 cm; Focus 1 x = -4; Focus 1 y = 0; Focus 2 x = 4; Focus 2 y = 0; Vertices on the major axis (distance from centre) = 5.

Key terms

Focus
One of two points whose distance sum to any point of the ellipse is 2a.
Major axis
The longest diameter of the ellipse.

Frequently asked questions

What is the equation of an ellipse?

(x − h)²/a² + (y − k)²/b² = 1.

Why is there no exact perimeter formula?

It requires an elliptic integral; Ramanujan's formula is accurate to many digits.

What is the eccentricity of a circle?

0.

Where are the foci?

On the major axis, c = √(a² − b²) from the centre.

Sources

  1. OpenStax: Precalculus 2e
  2. Wolfram MathWorld: Ellipse

Cite this calculator

Speedy Calculator. (2026). Ellipse Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/ellipse/