Ellipse Eccentricity Calculator

Measure how stretched an ellipse is from its semi-major and semi-minor axes.

Math and PercentUpdated 2026-11-192 min read
Ellipse Eccentricity Calculator
The longer half axis, measured from the center to the farthest point on the ellipse.
The shorter half axis. It cannot be larger than a.
Eccentricity
...
Focal distance c...
Foci from center...
Shape type...
Axis ratio b over a...

What it does

Eccentricity measures how much a conic section differs from a circle. For an ellipse it is a number between zero and one. Zero means a perfect circle, and values closer to one describe an increasingly flattened shape.

This tool takes the two semi axes. The semi-major axis a is the longer half width, and the semi-minor axis b is the shorter half width. The page opens with a equal to 5 and b equal to 4.

The calculation first finds the focal distance c, which is the square root of a squared minus b squared. The foci sit at plus and minus c along the major axis. Eccentricity is then c divided by a, which is the same as the square root of 1 minus b squared over a squared.

Eccentricity appears in orbital mechanics because a planet travels on an ellipse with the star at one focus. A low value means a nearly circular orbit, while a high value means a long, thin one. The semi-latus rectum and other orbital parameters follow from the same number.

Because only a ratio is involved, the units of a and b do not matter as long as both use the same unit. The tool also reports the axis ratio b over a and labels the case as a circle when the two axes are equal.

How to use

  1. Enter the semi-major axis a, the longer half width.
  2. Enter the semi-minor axis b, the shorter half width.
  3. Read the eccentricity as the main result.
  4. Check the focal distance to see how far each focus sits from the center.
  5. Use the foci row to locate both focus points along the major axis.
  6. Compare the axis ratio with the eccentricity to see how stretched the ellipse is.

Formula

c = sqrt(a squared minus b squared); e = c / a = sqrt(1 minus b squared / a squared)
a
Semi-major axis, the longer half width of the ellipse.
b
Semi-minor axis, the shorter half width.
c
Focal distance from the center to either focus.
e
Eccentricity, the ratio of focal distance to semi-major axis.

When a equals b, the term under the root is zero, both foci sit at the center, and the shape is a circle with eccentricity zero. As b approaches zero, the eccentricity approaches one. The calculation rejects a semi-minor axis larger than the semi-major axis because the roles of the axes would then be reversed.

Worked example

Example: semi axes 5 and 4

The page opens with a = 5 and b = 4.

  1. Square both axes: a squared is 25 and b squared is 16.
  2. Subtract: 25 minus 16 gives 9.
  3. Take the square root to get the focal distance c = 3.
  4. Divide by a: eccentricity e = 3 divided by 5, which is 0.6.
  5. Check with the alternate form: 1 minus 16 over 25 is 0.36, and its square root is 0.6.
  6. The axis ratio is 4 divided by 5, or 0.8.
  7. The tool reports eccentricity 0.6, focal distance 3, foci plus or minus 3, and type Ellipse.

Reference table

Eccentricity from pairs of semi axes
Semi-major aSemi-minor bFocal distance cEccentricityType
5430.6Ellipse
101000Circle
135120.923077Ellipse
211.73210.866025Ellipse

Limits

  • Both semi axes must be above zero and at most 10 to the power of 9.
  • The semi-minor axis cannot exceed the semi-major axis.
  • Both axes must use the same length unit because only their ratio matters.
  • Eccentricity is shown to six decimal places, with focal distance to four.

Common mistakes

  • Swapping the labels so that b is larger than a.
  • Using full axis lengths instead of semi axes in the formula.
  • Subtracting b from a before squaring instead of squaring both first.
  • Assuming a circle has eccentricity one.
  • Mixing units between the two semi axes.

Try it yourself

Quick checks. Answers sit tucked under each question.

With a = 13 and b = 5, find c and e.

c is 12 and e is 0.923077.

With a = 10 and b = 10, what is the eccentricity?

0. The foci coincide at the center, so the ellipse is a circle.

With a = 2 and b = 1, find e.

0.866025. The focal distance is the square root of 3, about 1.7321, and e equals c divided by 2.

Questions

What does eccentricity tell me?

It describes how elongated an ellipse is, from zero for a circle toward one for a very thin ellipse.

Can eccentricity be greater than one?

Not for an ellipse. A parabola has eccentricity one and a hyperbola has eccentricity greater than one.

Where are the foci?

They lie on the major axis at plus and minus the focal distance c from the center.

Does the unit of the axes matter?

No. Eccentricity is a ratio, so any consistent length unit gives the same value.

Why is a circle's eccentricity zero?

Because the two foci merge at the center, making the focal distance zero.

How is this used in astronomy?

Orbits are ellipses, and eccentricity describes how much an orbit departs from a circle.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.