Home/Geometry/Ellipse Calculator

Ellipse Calculator

Calculate the area, perimeter, eccentricity, foci and directrices of any ellipse, with formulas and step-by-step working.

📖 Reading time: 12–14 minutes  ·  Last updated: 2 August 2026  ·  Reviewed by Mohsin Iqbal

Quick Answer: How Do You Calculate an Ellipse?

An ellipse is defined by two semi-axes: the semi-major axis (a) and semi-minor axis (b). Its area is A = πab — exact and simple. Its perimeter has no exact elementary formula; this calculator uses the highly accurate Ramanujan approximation (typically correct to more than 8 significant figures) rather than a rough estimate. Choose a mode below and enter what you know.

⚠️ An ellipse's perimeter cannot be written as a simple formula — unlike its area, it requires an elliptic integral with no closed form in elementary functions. This calculator shows the Ramanujan II approximation (essentially exact for practical purposes) alongside a genuine numerical integration for verification, rather than presenting a rough estimate as if it were precise.
Formula Summary
Area: A = πab  |  Eccentricity: e = √(1 − b²/a²)  |  Linear eccentricity: c = √(a² − b²)
Perimeter (Ramanujan): P ≈ π(a+b)(1 + 3h/(10+√(4−3h))), where h = ((a−b)/(a+b))²
Foci: (±c, 0)  |  Directrices: x = ±a/e  |  Semi-latus rectum: b²/a
Choose a Mode and Enter Known Values

Every mode uses a combination that fully determines the ellipse. a is always the semi-major (longer) axis — enter them either way round and this calculator will relabel them correctly.

Keyboard: Enter calculates, Esc resets.

Select a measurement unit above to see perimeter and area conversions.

Results
Area

PropertyValue
Step-by-Step Working

Common uses: tap one to load a typical example.

Calculator Features

📐Three practical solve modes
🧮Step-by-step working
🎯Ramanujan perimeter, verified by numerical integration
🚫Detects impossible & invalid inputs
🔄Unit conversion (linear & area)
🖨Printable / PDF results
📊CSV export
📋Copy results & formula
🎚Decimal precision control
📱Mobile friendly

🧭 Jump to a section

What Is an Ellipse?

An ellipse is the set of all points where the sum of the distances to two fixed points (the foci) is constant. Visually, it's a "stretched circle" — flattened along one direction. Every ellipse has a semi-major axis (a, the longer half-width) and a semi-minor axis (b, the shorter half-width), which together determine everything else about its shape.

💡 Did You Know? Unlike every polygon-based shape on this site, an ellipse's perimeter has no exact formula using ordinary algebra — it genuinely requires calculus (an elliptic integral). This isn't a limitation of this calculator; it's a real mathematical fact discovered by Ramanujan and others, who spent real effort finding extremely accurate approximations instead.

Properties of an Ellipse

Ellipse vs Circle

PropertyEllipseCircle
AxesTwo different lengths (a ≠ b)One radius (a = b)
FociTwo distinct pointsBoth coincide at the centre
Eccentricity0 < e < 1e = 0
Perimeter formulaNo exact elementary formulaExact: 2πr
RelationshipA circle is an ellipse with equal semi-axes

See the dedicated circle calculator for that specific case.

Area Formula

A = π × a × b

Simple and exact — a direct generalisation of a circle's A = πr², since a circle is just an ellipse with a = b = r. An ellipse with semi-axes 5 and 3 has an area of π×5×3 ≈ 47.124 square units.

Bounding Box and Area Efficiency

The smallest rectangle that fully contains an ellipse — its bounding box — always has width 2a and height 2b, giving a bounding rectangle area of 2a×2b = 4ab. Comparing that to the ellipse's own area of πab gives a strikingly simple result:

Area efficiency = πab / 4ab = π/4 ≈ 78.54%

An ellipse always fills exactly 78.54% of its bounding rectangle — regardless of how elongated it is. A near-circular ellipse and a very flattened one both occupy precisely that same fraction, since the a and b terms cancel out of the ratio entirely. This is genuinely useful for designers and fabricators estimating material waste when cutting an elliptical piece from rectangular stock.

This calculator also classifies every ellipse by how elongated it is, purely from its eccentricity: 🟢 Circle (e = 0), 🔵 Nearly Circular (e < 0.3), 🟠 Moderately Elongated (0.3 ≤ e < 0.7), or 🔴 Highly Elongated (e ≥ 0.7) — a quick visual read to complement the exact numbers.

Perimeter and Elliptic Integrals

The exact perimeter of an ellipse is P = 4a·E(e), where E(e) is the complete elliptic integral of the second kind — a function with no expression in ordinary algebra, only as an infinite series or an integral that must be evaluated numerically. This calculator uses two independent methods and shows both:

For almost every practical purpose these two values agree to more decimal places than any real-world measurement could ever be taken to — this calculator shows both so you can see that agreement for yourself, rather than asking you to trust a single unverified formula.

Eccentricity

e = √(1 − b²/a²)

Eccentricity is a number between 0 and 1 describing how elongated an ellipse is. e = 0 is a perfect circle; as e approaches 1, the ellipse becomes an increasingly flattened sliver. Planetary orbits are ellipses with the Sun at one focus — Earth's orbit has an eccentricity of only about 0.017 (very nearly circular), while a typical comet's orbit can exceed 0.9.

Foci and Directrices

The two foci sit on the major axis at (±c, 0), where c = √(a²−b²) is the linear eccentricity. They have a beautiful reflective property: a ray of light, or a sound wave, leaving one focus and bouncing off the ellipse always arrives at the other focus — the principle behind "whispering gallery" rooms and elliptical reflector telescopes. Each ellipse also has two directrices — lines at x = ±a/e — used in the classical focus-directrix definition of a conic section.

Coordinate Geometry

An ellipse centred at the origin, with its major axis along the x-axis, satisfies the standard equation x²/a² + y²/b² = 1. Every point on it can also be written in parametric form as (a·cos θ, b·sin θ) for θ from 0 to 2π — this calculator uses that parametrisation to draw the scale diagram. The four vertices sit at (±a, 0) and (0, ±b).

Worked Examples

Area from semi-axes — a=5, b=3

A = π×5×3 ≈ 47.124 square units

Perimeter (Ramanujan) — a=5, b=3

h = ((5−3)/(5+3))² = 0.0625
P ≈ π×8×(1 + 3×0.0625/(10+√(4−0.1875))) ≈ 25.527 units

Eccentricity and foci — a=5, b=3

e = √(1−9/25) = √0.36 = 0.8; c = √(25−9) = 4, so foci at (±4, 0)

Missing axis from area — Area=50, a=10

b = Area/(πa) = 50/(π×10) ≈ 1.592 units

Missing axis from eccentricity — e=0.6, a=10

b = a×√(1−e²) = 10×√(1−0.36) = 8 units

Astronomy — a satellite orbit

A low-Earth orbit with semi-major axis 7000 km and eccentricity 0.168 has semi-minor axis ≈ 6899.5 km — nearly circular but not quite

Whispering gallery — architectural acoustics

An elliptical room with a=10 m, b=6 m: e=0.8, foci at ±8 m — sound from one focus point reflects precisely to the other

Impossible-input example

Eccentricity entered as 1.2: eccentricity must be strictly less than 1, since 1 or more describes a parabola or hyperbola, not a closed ellipse
The calculator correctly rejects this rather than returning a meaningless shape

Real-World Applications

FieldUse
AstronomyPlanetary and satellite orbits (Kepler's first law): all orbits are ellipses with the larger body at one focus
ArchitectureElliptical windows, domes, and whispering-gallery rooms using the focus-reflection property
EngineeringElliptical gears, cams, and pressure vessel heads
Sports & recreationAthletics tracks and elliptical exercise machines
OpticsElliptical mirrors and reflectors that focus light or sound from one focal point to another
LandscapingElliptical garden beds, pools, and lawn areas

Real-World Examples

🛰 Satellite orbits
Kepler's elliptical orbits
🎤 Whispering galleries
Focus-to-focus acoustics
🏃 Running tracks
Athletics field design
🪟 Architecture
Elliptical windows & domes
⚙️ Engineering
Elliptical gears & cams
🏊 Pools & landscaping
Elliptical pools & gardens

Glossary

Semi-major axis (a)
Half the length of the ellipse's longer axis.
Semi-minor axis (b)
Half the length of the ellipse's shorter axis.
Focus (plural: foci)
One of two special points inside the ellipse; distances to both foci from any point on the ellipse always sum to 2a.
Eccentricity (e)
A number from 0 (circle) to just under 1 (very elongated) describing the ellipse's shape.
Linear eccentricity (c)
The distance from the centre to each focus, c = √(a²−b²).
Directrix
One of two lines (x = ±a/e) used in the classical focus-directrix definition of an ellipse.
Semi-latus rectum
Half the length of the chord through a focus, perpendicular to the major axis; equals b²/a.
Elliptic integral
A type of integral with no elementary closed-form antiderivative, required to compute an ellipse's exact perimeter.

Common Mistakes

MistakeFix
Using P = π(a+b) for perimeterThis crude estimate can be off by several percent for elongated ellipses — use the Ramanujan approximation instead
Confusing the full axes (2a, 2b) with the semi-axes (a, b)All the formulas on this page use the semi-axes; double them for the full major/minor axis lengths
Assuming an ellipse's perimeter has an exact formulaIt doesn't — only very accurate approximations exist, and this calculator is transparent about that
Mixing up eccentricity with linear eccentricitye is a dimensionless ratio (0 to 1); c is an actual length, in the same units as a and b
Forgetting eccentricity must be less than 1e ≥ 1 describes a parabola or hyperbola, not a closed ellipse

Formula Cheat Sheet

Quick Reference

Area: A = πab
Perimeter (Ramanujan): P ≈ π(a+b)(1+3h/(10+√(4−3h))), h=((a−b)/(a+b))²
Eccentricity: e = √(1−b²/a²)  |  Linear eccentricity: c = √(a²−b²)
Foci: (±c, 0)  |  Directrices: x = ±a/e  |  Semi-latus rectum: b²/a
Standard equation: x²/a² + y²/b² = 1  |  Parametric form: (a·cos θ, b·sin θ)

Practice Questions

Beginner (with answers)

  1. Find the area of an ellipse with semi-axes 6 and 4.
  2. Find the area of an ellipse with semi-axes 10 and 8.
  3. An ellipse has a=5, b=5. What special shape is it?
  4. Find the eccentricity of an ellipse with a=10, b=8.
  5. Find the linear eccentricity (c) of an ellipse with a=13, b=5.
Show answers

1) π×6×4≈75.398   2) π×10×8≈251.327   3) A circle (a=b)   4) e=√(1−64/100)=0.6   5) c=√(169−25)=12

Advanced (with answers)

  1. Find the perimeter (Ramanujan) of an ellipse with a=6, b=4.
  2. An ellipse has area 50 and semi-major axis a=10. Find b.
  3. An ellipse has eccentricity 0.6 and semi-major axis a=10. Find b.
  4. Find the foci of an ellipse with a=13, b=5.
  5. Find the semi-latus rectum of an ellipse with a=6, b=4.
Show answers

1) h=(2/10)²=0.04, P≈π×10×(1+0.12/(10+√3.88))≈31.731   2) b=50/(π×10)≈1.592   3) b=10×√(1−0.36)=8   4) c=√(169−25)=12, foci at (±12,0)   5) b²/a=16/6≈2.667

🔑 Key Takeaways

Frequently Asked Questions

Calculation Assumptions

ℹ️ What this calculator assumes

About This Calculator

✅ Reviewed by Mohsin Iqbal

This calculator has been reviewed for mathematical accuracy against standard Euclidean geometry. Unlike every polygon-based calculator on this site, an ellipse's perimeter genuinely has no exact elementary formula, so this page is explicit about using an approximation (Ramanujan's, one of the most accurate known) rather than presenting it as exact. That approximation was independently verified against a direct numerical integration of the true elliptic integral, and the two were confirmed to agree to around 10 significant figures across a wide range of test cases. Each solve mode was also cross-checked against the others using the same reference ellipse (semi-axes 5 and 3) to confirm identical results, and invalid input combinations (eccentricity outside [0,1), non-positive axes) are explicitly detected and explained.

Last updated: 2 August 2026  ·  Last reviewed: 2 August 2026  ·  Educational information only.

Printable Formula Sheet

A one-page reference with every ellipse formula on this page.

Ellipse Formula Sheet

MegaCalcOnline.com  ·  Area, perimeter, eccentricity and foci formulas

QR code linking to the online Ellipse Calculator at megacalconline.com

Scan for the live calculator

FindFormula
AreaA = πab
Perimeter (Ramanujan)P ≈ π(a+b)(1+3h/(10+√(4−3h))), h=((a−b)/(a+b))²
Eccentricitye = √(1−b²/a²)
Linear eccentricityc = √(a²−b²)
Foci(±c, 0)
Directricesx = ±a/e
Semi-latus rectumb²/a
Standard equationx²/a² + y²/b² = 1

References

Every formula and worked example on this page was independently verified — see “About This Calculator” above for the full review notes.