Ellipse Calculator

Enter an ellipse's semi-major and semi-minor axes to get its area, perimeter, eccentricity, and distance between foci, with the formulas shown.

Quick Facts

Area formula
A = πab
Product of the semi-major and semi-minor axes, times π.
Perimeter formula (approx.)
P ≈ π[3(a+b) − √((3a+b)(a+3b))]
Ramanujan's approximation; no simple exact formula exists.
Eccentricity
e = √(1 − b²/a²)
0 = perfect circle; closer to 1 = more elongated.
Foci distance from center
c = √(a² − b²)
Sum of distances to both foci from any point on the ellipse equals 2a.

Your Results

Calculated
Area
-
A = π × a × b
Perimeter (approx.)
-
Ramanujan's approximation
Eccentricity
-
e = √(1 − b²/a²), unitless
Distance Between Foci
-
2c = 2√(a² − b²)

Ready

Enter the semi-major and semi-minor axes, then press Calculate.

Formula and Method for the Ellipse Calculator

An ellipse is the set of all points whose distances to two fixed points, called the foci, add up to a constant. In standard position it is described by x²/a² + y²/b² = 1, where a is the semi-major axis (half the longest diameter) and b is the semi-minor axis (half the shortest diameter). This calculator takes those two axis lengths and derives the area, an approximate perimeter, the eccentricity, and the distance between the foci.

How the calculation works

Enter the semi-major axis (a) and semi-minor axis (b), with a ≥ b, in the same unit. The area follows directly from A = πab — a clean generalization of a circle's A = πr² (a circle is just an ellipse with a = b = r). The perimeter has no simple exact formula in elementary terms; the true value requires an elliptic integral, so this calculator uses Ramanujan's second approximation, P ≈ π[3(a+b) − √((3a+b)(a+3b))], which stays within about 0.04% of the exact perimeter for every possible ellipse shape. Eccentricity, e = √(1 − b²/a²), is a unitless number from 0 (a circle) up to just under 1 (a very flattened ellipse) that describes how elongated the shape is. The foci sit a distance c = √(a² − b²) from the center along the major axis, so the distance between the two foci is 2c.

Common mistakes

  • Semi-axis vs. full axis: a and b are half the major and minor diameters. The full major axis length is 2a, not a — doubling it by accident doubles every downstream result that depends on it.
  • Swapping a and b: the semi-major axis a must be the larger (or equal) value. If b is entered larger than a, the eccentricity formula e = √(1 − b²/a²) breaks down (it would try to take the square root of a negative number), so check which axis is actually longer before calculating.
  • Treating the perimeter as exact: unlike the area, the perimeter of an ellipse has no closed-form elementary formula. Ramanujan's approximation used here is extremely accurate, but it is still an approximation, not an identity.

Real-world applications

  • Orbital mechanics: planets, comets, and satellites travel on elliptical orbits with the sun or a planet at one focus (Kepler's first law).
  • Architecture and design: elliptical arches, domes, and "whispering gallery" rooms rely on the two-foci reflection property.
  • Engineering: elliptical gears, cams, and pipe cross-sections are sized using the same area and perimeter relationships.
  • Sports and landscaping: elliptical running tracks and garden beds use the perimeter estimate to plan edging or lane material.

Frequently Asked Questions

What is the formula for the area of an ellipse?
The area of an ellipse is A = πab, where a is the semi-major axis and b is the semi-minor axis. For example, an ellipse with a = 10 cm and b = 6 cm has an area of π × 10 × 6 ≈ 188.5 cm².
Is there an exact formula for the perimeter of an ellipse?
No simple exact formula exists — the true perimeter requires an elliptic integral. This calculator uses Ramanujan's approximation, P ≈ π[3(a+b) − √((3a+b)(a+3b))], which stays within about 0.04% of the exact value for any ellipse shape.
What does eccentricity mean?
Eccentricity e = √(1 − b²/a²) measures how elongated an ellipse is, on a scale from 0 to just under 1. An eccentricity of 0 means the ellipse is a perfect circle (a = b); values closer to 1 describe a longer, flatter ellipse.
Where are the foci of an ellipse and why do they matter?
Each focus sits a distance c = √(a² − b²) from the center along the major axis. The defining property of an ellipse is that the sum of the distances from any point on the curve to the two foci is always 2a — the basis for planetary orbits and whispering-gallery designs.