Ellipse Calculator
Calculate ellipse area, perimeter, and eccentricity from semi-major and semi-minor axes.
About this calculator
Given the two half-axis lengths of an ellipse — the longer semi-major axis and the shorter semi-minor axis — this calculator returns the area (pi times one axis times the other), an approximate perimeter, and the eccentricity, a single number between 0 and 1 describing how stretched the shape is. Area treats both axes with perfectly equal weight — lengthening either one by ten percent grows the area by the identical proportional amount — but eccentricity treats them very differently and in opposite directions: stretching the semi-major axis while holding the semi-minor axis fixed makes the ellipse more elongated and pushes eccentricity up toward 1, while stretching the semi-minor axis while holding the semi-major axis fixed rounds the shape out and pushes eccentricity back down toward 0. When the two axes are equal, eccentricity comes out to exactly 0, because the ellipse has become a circle.
Perimeter has no simple closed-form formula for an ellipse in general, so the calculator uses a well-known approximation from the mathematician Ramanujan that stays close to the true value across ordinary axis ratios rather than evaluating an exact integral. One limitation worth naming: the calculator never checks that the semi-major axis you enter is actually the longer of the two — if the semi-minor axis field holds the larger value, the eccentricity formula ends up dividing a bigger number by a smaller one inside a square root of a negative quantity, and the result comes back as an undefined, non-numeric value instead of a warning.
Inputs
Results
Area
47.12
How to Use This Calculator
- Enter the Semi-Major Axis (a) — the longer half-axis — and the Semi-Minor Axis (b) — the shorter half-axis.
- Area = π × a × b; when a = b the ellipse becomes a circle with radius a.
- Perimeter uses the Ramanujan approximation: π × (3(a+b) − √((3a+b)(a+3b))), which is accurate to within 0.5%.
- Eccentricity e = √(1 − b²/a²) ranges from 0 (circle) to just under 1 (very elongated ellipse).
- The Ellipse Metrics chart plots the semi-major axis, semi-minor axis, area (÷π), and eccentricity side by side for quick comparison.
- Both axes must be positive; a must be ≥ b (swap them if needed).
How the result changes with Semi-Major Axis (a)
| Semi-Major Axis (a) | Area |
|---|---|
| 2.5 | 23.56 |
| 3.75 | 35.34 |
| 7.5 | 70.69 |
| 13 | 122.52 |
What each input means
- Semi-Major Axis (a)
- Length of the semi-major axis.
- Semi-Minor Axis (b)
- Length of the semi-minor axis.
How this is calculated
Formula
Area = πab, Perimeter ≈ π(3(a+b) - √((3a+b)(a+3b)))Worked example, using the default values
- Identify Input ParametersSemi-Major Axis (a) = 5, Semi-Minor Axis (b) = 3 = 2 input(s) provided
- Calculate AreaArea47.12 = 47.12
- Calculate PerimeterPerimeter25.53 = 25.53
- Calculate EccentricityEccentricity0.8 = 0.8
Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does stretching one axis raise eccentricity while stretching the other lowers it?
Eccentricity measures how far the ellipse has departed from being a perfect circle. Growing the semi-major axis while the semi-minor axis stays fixed stretches the shape longer in one direction without making it any rounder, so eccentricity climbs toward 1. Growing the semi-minor axis while the semi-major axis stays fixed does the opposite — it rounds the shape out toward a circle — so eccentricity falls toward 0.
What does an eccentricity of exactly 0 mean?
It means the two axes are equal in length, which makes the shape a circle rather than an elongated ellipse. A circle is really just the special case of an ellipse where the semi-major and semi-minor axes happen to be the same number, and the eccentricity formula returns exactly zero whenever that happens.
Why does the perimeter use an approximation instead of an exact formula?
Unlike a circle's circumference, an ellipse's true perimeter requires evaluating an integral that has no simple closed-form expression in elementary functions. The calculator instead uses a well-regarded approximation, attributed to the mathematician Ramanujan, which stays close to the true perimeter across the range of axis ratios a typical user would enter.
What happens if I accidentally make the semi-minor axis larger than the semi-major axis?
The eccentricity formula ends up taking the square root of a negative number, since it subtracts the ratio of the two axes squared from one, and that ratio exceeds one once the semi-minor axis is the larger value. The calculator does not catch this ahead of time, so eccentricity comes back as an undefined result rather than a prompt to swap the two fields.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Area Calculator
Calculate the area and perimeter of common shapes — rectangle, circle, triangle, trapezoid, and ellipse.
Geometry & MeasurementCircle Calculator
Calculate radius, diameter, circumference, area, sector area, and arc length of a circle from any known value.
Geometry & Measurement2D Shape Master Calculator
Complete 2D geometry calculator for all common shapes — rectangles, squares, circles, triangles, ellipses, parallelograms, rhombuses, trapezoids, and regular polygons. Calculate area, perimeter, angles, and more.
More in Math & Statistics.