What this calculator does
This tool analyzes an ellipse from its two semi-axes, a and b. It returns the linear eccentricity c (the distance from the center to each focus), the eccentricity e, the semi-major and semi-minor axes, the enclosed area, and an accurate approximation of the perimeter. It works whether the longer axis is horizontal or vertical, because it automatically treats the larger value as the semi-major axis.
How to use it
Enter the two semi-axis lengths in any consistent units (the result uses those same units). The semi-axis is half the full width or height of the ellipse. Press calculate to see the focal distance and eccentricity instantly.
The formula explained
The foci of an ellipse sit on the major axis at distance c from the center, where
$$c = \sqrt{\left|\,\text{a}^{2} - \text{b}^{2}\,\right|}$$The eccentricity
$$e = \frac{c}{\text{a}_3}$$(a₃ being the semi-major axis) measures how stretched the ellipse is: \(e = 0\) is a perfect circle, and \(e\) approaches 1 as the ellipse grows long and thin. The area is \(\pi a b\), and the perimeter uses Ramanujan second approximation, which is extremely accurate for all aspect ratios.
Worked example
For \(a = 5\) and \(b = 3\):
$$c = \sqrt{\left|\,25 - 9\,\right|} = \sqrt{16} = 4$$Eccentricity
$$e = \frac{4}{5} = 0.8$$Area
$$A = \pi \times 5 \times 3 \approx 47.124$$The two foci lie 4 units on either side of the center along the major axis.
Interpreting the Eccentricity Value
The eccentricity \(e\) measures how far an ellipse departs from a circle. With semi-major axis \(a\) and semi-minor axis \(b\), the focal distance is \(c=\sqrt{a^2-b^2}\) and \(e=c/a\). The two foci lie on the major axis, each at distance \(c\) from the center. For any point on the ellipse, the distances to the two foci add up to \(2a\), the length of the major axis.
| Eccentricity | Shape |
|---|---|
| \(e=0\) | Circle (both foci at the center, \(a=b\)) |
| \(0<e<0.5\) | Nearly round |
| \(0.5\le e\le 0.9\) | Moderately elongated |
| \(e\) close to 1 | Very flat, long and thin |
Every ellipse has \(0\le e<1\). At \(e=1\) the curve is a parabola, and for \(e>1\) it is a hyperbola. These are different conic sections, not ellipses.
Two widely documented orbital examples: Earth's orbit around the Sun has \(e\approx 0.0167\), so it is almost circular. Halley's Comet has \(e\approx 0.967\), so its orbit is extremely elongated.
This calculator takes the larger of the two inputs as the semi-major axis. The result is therefore the same whichever way round you enter \(a\) and \(b\), and \(e\) stays below 1.
Comparing Ellipses with Different Semi-Axes
The table keeps \(a=5\) fixed and shrinks \(b\). The focal distance \(c\) and eccentricity \(e\) rise as the ellipse flattens. Area is \(\pi ab\). The perimeter uses Ramanujan's approximation \(P\approx\pi\left[3(a+b)-\sqrt{(3a+b)(a+3b)}\right]\), which is very accurate for these shapes.
| (a, b) | c | e | Area (πab) | Perimeter (Ramanujan) |
|---|---|---|---|---|
| (5, 5) | 0 | 0 | 78.540 | 31.416 |
| (5, 4) | 3 | 0.600 | 62.832 | 28.362 |
| (5, 3) | 4 | 0.800 | 47.124 | 25.527 |
| (5, 2) | 4.583 | 0.917 | 31.416 | 23.013 |
| (5, 1) | 4.899 | 0.980 | 15.708 | 21.006 |
Worked check for \((5,3)\): \(c=\sqrt{5^2-3^2}=\sqrt{16}=4\), \(e=4/5=0.8\), area \(=\pi\cdot5\cdot3=15\pi\approx47.124\). The perimeter is \(\pi[3(8)-\sqrt{18\cdot14}]=\pi[24-\sqrt{252}]\approx\pi(24-15.8745)\approx25.527\).
As \(b\) falls from 5 to 1, the area drops by a factor of 5, but the perimeter drops only from 31.4 to 21.0. The flatter ellipse keeps much of its perimeter while losing most of its enclosed area.
FAQ
What if a equals b? The ellipse is a circle: \(c = 0\) and \(e = 0\), so there is a single focus at the center.
Does axis order matter? No. The calculator finds the larger axis itself, so you can enter a and b in any order.
Why is the perimeter approximate? An ellipse perimeter has no simple closed form (it requires an elliptic integral). Ramanujan formula matches the true value to within a tiny fraction of a percent.