Ellipse
calculator.
An ellipse needs only two numbers, and those give its area, edge length and foci.
- Perimeter
- 25.527 cm
- Eccentricity e
- 0.8
- Focus from center
- 4 cm
The width b is 40% shorter than the length a. Each focus sits 4 cm from the center, which is 80% of the way out to the end of the long axis.
The ellipse, to scale
Drag a handle to change a or bSemi-major axis 5 cm and semi-minor axis 3 cm. The foci sit 4 cm either side of the center. From the point P, the distances to them are 3 cm and 7 cm, which add up to 2a = 10 cm.
Move P anywhere on the curve: its distances to the foci change, and their total stays 10 cm.
Working
- 1Semi-axes: the larger is aa = 5, b = 3
- 2Area: π times both semi-axesA = π × 5 × 3 = 47.1239
- 3Focal distance: center to each focusc = √(5² − 3²) = 4
- 4Eccentricity: how far out the focus sitse =45= 0.8
- 5Perimeter: 4a times the elliptic integral E(e), which has no finite formulaP = 4 × 5 × E(0.8) = 25.527
- 6Semi-latus rectumℓ =3²5= 1.8
- 7Check: from P, the two focal distances add up to 2a3 + 7 = 10, and 2 × 5 = 10
Every measurement
- Standard equation
- x²25+y²9= 1
- Foci
- (±4, 0)
- Vertices
- (±5, 0)
- Co-vertices
- (0, ±3)
- Semi-latus rectum
- 1.8 cm
- Directrix from center
- 6.25 cm
- Ramanujan I perimeter
- 25.527 cm
- Ramanujan II perimeter
- 25.527 cm
Find the other axis
- The other semi-axis
- 2.5465 cm
- Outer size
- 10 by 5.093 cm
The same long axis, flatter and flatter
| b | e | Exact perimeter | Ramanujan I | Ramanujan II |
|---|---|---|---|---|
| 5Eccentricity 0 | 0 | 31.4159Ramanujan I 31.4159Ramanujan II 31.4159 | 31.4159 | 31.4159 |
| 4.5Eccentricity 0.4359 | 0.4359 | 29.8658Ramanujan I 29.8658Ramanujan II 29.8658 | 29.8658 | 29.8658 |
| 3.75Eccentricity 0.6614 | 0.6614 | 27.6294Ramanujan I 27.6294Ramanujan II 27.6294 | 27.6294 | 27.6294 |
| 3 (yours)Eccentricity 0.8 | 0.8 | 25.527Ramanujan I 25.527Ramanujan II 25.527 | 25.527 | 25.527 |
| 2.5Eccentricity 0.866 | 0.866 | 24.2211Ramanujan I 24.2211Ramanujan II 24.2211 | 24.2211 | 24.2211 |
| 1.25Eccentricity 0.9682 | 0.9682 | 21.4461Ramanujan I 21.4438Ramanujan II 21.446 | 21.4438 | 21.446 |
| 0.5Eccentricity 0.995 | 0.995 | 20.3199Ramanujan I 20.3028Ramanujan II 20.3196 | 20.3028 | 20.3196 |
Each row keeps a = 5 cm and shrinks b. Ramanujan's second formula stays closer to the exact perimeter than his first.
How it's worked out
Half the longest width of an oval is the semi-major axis, written a. Half the shortest width is the semi-minor axis, b. Multiply them by π to get the area.
That is a circle stretched in one direction, so a 5 by 3 ellipse covers 15π, about 47.12. Two special points called foci sit on the long axis, each a distance c from the center. For every point on the curve, the distances to the foci add up to the full long axis, 2a.
Eccentricity, e, says how far out the foci sit. A value of 0 is a circle. Values close to 1 are long and thin.
The edge length has no simple formula. The perimeter is 4a times an elliptic integral, a value that no finite mix of roots and powers can write down. The perimeter here comes from that integral, using the arithmetic-geometric mean, so it is good to about 15 digits. Ramanujan's two estimates are given too, for reference.
| b | Exact | First | Second |
|---|---|---|---|
| 0.75 | 5.525873 | 5.525873 | 5.525873 |
| 0.5 | 4.844224 | 4.844211 | 4.844224 |
| 0.25 | 4.289211 | 4.288751 | 4.28921 |
| 0.1 | 4.063974 | 4.060553 | 4.063927 |
Worked examples
Marta edges an oval tabletop
Marta has a table 180 cm long and 100 cm wide, so a is 90 and b is 50. Its surface is 14,137 cm², which is about 1.41 m² of veneer. She needs 448.8 cm of edge banding, before any overlap at the join.
To mark the shape on the board she places two pins 74.8 cm either side of the center. A loop of string around them, with a pencil pulling it tight, keeps the two distances adding up to 180 cm.
If her banding comes in a 500 cm roll, keeping the same 180 cm length, she could widen the table until b is 68.4 cm before the roll runs out.
Theo checks how round Earth's orbit is
NASA lists Earth's closest point to the Sun as 147.095 million km and its farthest as 152.100 million km. Those two distances give a = 149.598 million km and e = 0.0167, which matches NASA's printed 0.0167.
The width comes out at 149.577 million km, only 0.014% shorter than the length. Drawn to scale, the orbit looks like a circle. The 2.503 million km offset of the Sun from the center is what changes the distance through the year.
Ana traces the path of Halley's comet
NASA's comet sheet gives a = 17.94 AU and e = 0.967. An AU, or astronomical unit, is about Earth's average distance from the Sun. The width is 4.57 AU, so the path is more than three times as long as it is wide.
The comet swings in to about 0.59 AU and out to 35.3 AU. NASA prints a closest distance of 0.587 AU. That small gap is the size rounding e to three places can cause, since a tiny change in e moves that small number a lot.
Reading your result
Area and perimeter do not move together. Halve b and the area halves too, but the perimeter does not. For a = 1, a b of 1 gives a perimeter of 6.28, while a b of 0.1 gives 4.06.
Eccentricity climbs fast near the end. With b at 0.1 of a, e is already 0.995. So an e of 0.5 is still a fairly round shape: b is about 87% of a.
A semi-latus rectum is the half-width of the ellipse measured straight up from a focus. It is the number orbit equations start from. Each directrix is a line outside the ellipse, and any point on the curve is always e times as far from a focus as from that line.
Common mistakes
- Using full widths in the area formula. A 10 by 6 ellipse has a = 5 and b = 3, so its area is 15π, not 60π.
- Averaging the axes for the perimeter. Treating the shape as a circle of radius (a + b) over 2 runs low, and the gap grows as the shape gets flatter.
- Mixing units. The unit here is a label, so both lengths must already be in it. Area then comes out in that unit squared.
- Calling any oval an ellipse. A stadium shape, two half circles joined by straight sides, is not one, and these formulas do not fit it.