What is an ellipse calculator?
An ellipse is a stretched circle — an oval with two axes instead of one. It is the shape of a planet's orbit, a running track, and the cross-section of a tilted glass of water. This ellipse calculator takes the two semi-axes, a and b, and gives you the three numbers that describe the shape: the area, the eccentricity, and the perimeter.
The semi-major axis a is half the longest width, and the semi-minor axis b is half the shortest. When a and b are equal, the ellipse is a circle, and the calculator still works — the eccentricity comes out as zero and the perimeter becomes the familiar 2πr. When they differ, the ellipse stretches, and the eccentricity measures by how much.
Ellipses are the most common curve in the sky. Every planet orbits the sun in an ellipse, with the sun at one focus, and every moon orbits its planet the same way. The same shape appears in whispering galleries, where a sound made at one focus can be heard clearly at the other, and in the design of lenses, gears, and running tracks.
How an ellipse calculator works
The area is the simplest of the three: A = π × a × b. It is the circle formula, πr², with the radius split into two different numbers — stretch a circle by different amounts in two directions and the area scales by the product of the stretches. For the default example, a = 5 and b = 3, so the area is π × 15 = 47.12. A circle of radius 5 would have an area of 78.54, so squashing one axis from 5 to 3 cuts the area by the same ratio, 3/5.
The eccentricity is e = √(1 − b²/a²), taking a as the larger axis. For the default, e = √(1 − 9/25) = √(0.64) = 0.8. An eccentricity of 0 is a circle; as e grows toward 1, the ellipse gets longer and thinner. Earth's orbit has an eccentricity of about 0.017 — nearly a circle — while Halley's comet has one of about 0.967, a long thin loop.
The perimeter is the hard one. There is no simple exact formula for the perimeter of an ellipse — unlike the area — so the calculator uses Ramanujan's approximation, which is accurate to a tiny fraction of a percent for most ellipses. The formula is P ≈ π × [3(a + b) − √((3a + b)(a + 3b))]. For the default, that gives π × [24 − √252] = π × 8.1255 = 25.53.
The semi-axes a and b — which is which
The semi-major axis a is the longer one, and the semi-minor axis b is the shorter one. That is the convention, and it matters for the eccentricity formula, which takes a as the larger axis. This calculator accepts the numbers in either order — if you enter a = 3 and b = 5, it treats 5 as the major axis for the eccentricity — but the area and the perimeter come out the same either way, because they are symmetric in a and b.
The full axes are twice the semi-axes: a = 5 means the ellipse is 10 units wide, and b = 3 means it is 6 units tall. People often mix up the full width with the semi-axis, and the area comes out four times too big, because the area uses a × b and doubling both numbers multiplies the product by four. If your area looks far too large, check whether you entered the full width instead of half of it.
The two foci sit on the major axis at a distance of c = a × e from the centre. For the default, c = 5 × 0.8 = 4, so the foci are at (±4, 0). The defining property of an ellipse is that the sum of the distances from any point on it to the two foci is constant — and that constant is 2a, the length of the major axis.
A worked example: three ellipses, step by step
First, the default on this page. a = 5, b = 3. Area: π × 5 × 3 = 47.12. Eccentricity: √(1 − 9/25) = √0.64 = 0.8. Perimeter by Ramanujan: π × [3 × 8 − √(18 × 14)] = π × [24 − 15.8745] = π × 8.1255 = 25.53. The foci are at (±4, 0), since c = 5 × 0.8 = 4.
Second, the circle case: a = 4, b = 4. Area: π × 16 = 50.27, which is the familiar πr² with r = 4. Eccentricity: √(1 − 1) = 0, as it must be for a circle. Perimeter: Ramanujan gives π × [24 − √(16 × 16)] = π × 8 = 25.13, which is exactly 2π × 4 = 25.13. The approximation is exact for a circle, which is a good sign that it is trustworthy for ellipses too.
Third, a long thin one: a = 10, b = 6. Area: π × 60 = 188.50. Eccentricity: √(1 − 36/100) = √0.64 = 0.8 — the same as the default, because the ratio b/a is the same, 0.6. Perimeter: π × [48 − √(36 × 28)] = π × [48 − 31.749] = π × 16.251 = 51.05. Two ellipses with the same shape but different sizes have the same eccentricity, and their perimeters scale with their size.
Where ellipses show up in real life
Orbits are the most important use. Kepler discovered that planets move in ellipses with the sun at one focus, and that single fact replaced centuries of circles-upon-circles. The eccentricity of an orbit decides how much a planet's distance from the sun varies over the year — Earth's 0.017 means almost no variation, while Mercury's 0.206 means a real difference between its closest and farthest points.
Architecture and acoustics use the two-focus property. A whispering gallery is an elliptical room where a whisper at one focus is heard clearly at the other, because the sound reflects off the walls and the distances add up to the same total from every point. The same idea shapes concert halls and the domes of cathedrals, where the foci are placed where the speaker and the audience sit.
Everyday objects are ellipses too: a coin seen at an angle, the rim of a glass, the shadow of a ball, the path of a point on a rolling wheel that is not at the centre. A circle area calculator handles the round case, and a perimeter calculator covers the perimeters of the straight-edged shapes that pair with ellipses in geometry problems.
Ellipse calculator vs circle calculator
A circle is an ellipse with both axes equal, so this calculator handles circles as a special case — enter the same number for a and b and the eccentricity comes out as zero. The circle calculator is simpler and faster for that case, and it also gives the diameter, circumference, and radius from any one of them, which this tool does not. Use the circle tool when the shape is round, and this one when it is stretched.
The area formulas show the relationship: a circle's area is πr², and an ellipse's is πab. Set a = b = r and the ellipse formula becomes the circle formula — the two agree exactly, which is a good check that the ellipse formula is right. The perimeters agree too: Ramanujan's approximation gives exactly 2πr for a circle.
The difference that matters is the eccentricity. A circle has one centre and no foci worth talking about; an ellipse has two foci, and their distance from the centre is what the eccentricity measures. If a problem mentions foci, eccentricity, or a major and minor axis, it is an ellipse problem, and a circle calculator will not have the fields you need.
Common ellipse mistakes
The most common mistake is entering the full axes instead of the semi-axes. If the ellipse is 10 units wide, a is 5, not 10 — and entering 10 makes the area four times too big. Halve the width and the height before you type them in. Second: swapping a and b in the eccentricity formula. The formula takes the larger axis as a, so if you put the smaller one first, use the ratio the other way round — this calculator handles either order, but by hand you must check.
Third: using the circle perimeter formula, 2πr, on an ellipse. There is no single radius to use, and the average of a and b gives the wrong answer — for the default, 2π × 4 = 25.13, which is close to the true 25.53 but not right, and the error grows as the ellipse gets thinner. Fourth: thinking the perimeter has an exact simple formula. It does not — the exact answer needs an elliptic integral, which is why Ramanujan's approximation is the standard tool.
Fifth: confusing the eccentricity with the ratio b/a. The eccentricity is √(1 − b²/a²), not b/a and not 1 − b/a. For the default, b/a is 0.6 but the eccentricity is 0.8 — different numbers, and mixing them up changes every answer that follows.
How to use this ellipse calculator
Using it takes seconds. Enter a, the semi-major axis — half the longest width. Enter b, the semi-minor axis — half the shortest width. The area, the eccentricity, and the Ramanujan perimeter appear at once, updating live as you type. If the two numbers are equal, you have a circle, and the eccentricity will read zero.
A good check is the circle case: enter the same number twice and confirm the area is π times the square and the perimeter is 2π times the number. For the default, check the area by hand: π × 15 is about 47.12, and the eccentricity of 0.8 means the foci sit at 80% of the way from the centre to the vertex. For sketching, mark the vertices at (±a, 0) and (0, ±b), and draw the oval through them.
Everything runs in your browser. No account, no form, no data sent anywhere. If you need the area alone, the ellipse area calculator is the quicker tool, and a rectangle area calculator covers the straight-edged shapes that often sit next to ellipses in geometry homework.