Ellipse Foci & Eccentricity Calculator

Ellipse Foci & Eccentricity Calculator

Growing AI Skill PRO

Enter Calculation

Formula

c=|a2−b2|,e=cmax⁡(a,b)c = \sqrt{\left|\,\text{a}^{2} - \text{b}^{2}\,\right|}, \qquad e = \frac{c}{\max(\text{a},\,\text{b})}
Show calculation steps (2)
  1. Area

    A=π·a·bA = \pi \cdot \text{a} \cdot \text{b}

    Area of the ellipse

  2. Perimeter (Ramanujan)

    P=π(A+B)(1+3h10+4−3h)where{A=max⁡(a,b)B=min⁡(a,b)h=(A−B)2(A+B)2\begin{gathered} P = \pi\,(A+B)\left(1 + \frac{3h}{10 + \sqrt{4 - 3h}}\right) \\[1.5em] \text{where}\quad \left\{ \begin{aligned} A &= \max(\text{a},\,\text{b}) \\ B &= \min(\text{a},\,\text{b}) \\ h &= \frac{(A-B)^{2}}{(A+B)^{2}} \end{aligned} \right. \end{gathered}

    Ramanujan approximation; A = max(a,b), B = min(a,b), h = (A-B)^2 / (A+B)^2

Usage stats

Advertisement

Results

Linear Eccentricity (c)
4
distance from center to each focus
Eccentricity (e) 0.8
Semi-major axis 5
Semi-minor axis 3
Area 47.1239
Perimeter (approx.) 25.527

Report an error on this page

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.

Advertisement
Diagram of an ellipse showing semi-major axis a, semi-minor axis b, two foci, and focal distance c
An ellipse with semi-axes a and b, its two foci, and the linear eccentricity c measured from center to focus.

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.

Advertisement

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.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators