What is eccentricity?
Eccentricity is a single number that measures how stretched a conic section is, and it orders all four conics on one scale. A circle has eccentricity 0, because it is not stretched at all. An ellipse has eccentricity between 0 and 1, a parabola has exactly 1, and a hyperbola has more than 1. The number is defined as the ratio of the distance from any point on the curve to a focus, over its distance to a fixed line called the directrix, and that ratio is the same for every point on the curve.
This calculator finds the eccentricity from the conic type and the two semi-axes, and it also shows the focal distance, which is the distance from the centre to a focus. For the conic itself, a quadratic equation calculator solves the quadratic that defines a parabola, while this page measures the shape of any conic.
Your figures stay on your own device because the whole calculation happens in the browser. Nothing is uploaded, nothing is stored, and there is no account to create. That makes it safe to try realistic numbers, including the ones you would not want to paste into a random website. It also means the tool works the same way on a phone, a tablet or a computer, with nothing to install.
How eccentricity is calculated
For an ellipse, the eccentricity is the square root of one minus the square of the minor axis over the square of the major axis. For a hyperbola, it is the square root of one plus the square of the minor axis over the square of the major axis. A parabola always has eccentricity 1, whatever its size, and a circle always has eccentricity 0. The focal distance is the eccentricity times the semi-major axis, and it is the distance from the centre to each focus.
The conic type picks which formula applies, because the ellipse and the hyperbola use different formulas. The semi-major axis is the longer half-length, and the semi-minor axis is the shorter half-length. For a parabola, the axes do not enter the eccentricity, which is always 1, and for a circle the eccentricity is always 0, whatever the radius.
The eccentricity is the headline number, and it tells you the shape at a glance: near 0 means nearly circular, near 1 means very stretched, and above 1 means a hyperbola. The focal distance is the distance from the centre to a focus, which is where the defining property of the conic lives. For an ellipse, the sum of the distances from any point to the two foci is constant, and that constant is twice the semi-major axis.
The results are rounded for display, usually to two decimal places, while the calculation itself keeps full precision. That means a figure shown as 12.41 percent may be 12.405 percent underneath, and using the displayed figure in a further calculation can introduce a small rounding difference. For most purposes the displayed figure is exact enough, but if you need more precision, work from the unrounded inputs rather than from the rounded outputs.
The semi-axes, explained
The semi-axes are the two half-lengths of the conic, and their ratio decides the eccentricity. When they are equal, the ellipse is a circle and the eccentricity is 0. When the minor axis is much smaller than the major axis, the ellipse is long and thin and the eccentricity approaches 1. The ratio, not the absolute sizes, is what matters: a small ellipse and a large ellipse with the same axis ratio have the same eccentricity.
For a hyperbola, the roles are similar but the formula adds instead of subtracting, so the eccentricity is always above 1. A hyperbola with nearly equal axes has an eccentricity just above 1, close to the square root of 2, while a hyperbola with a much larger minor axis has a much larger eccentricity. The focal distance grows with the eccentricity, so a very stretched hyperbola has its foci far from the centre.
Scaling the whole conic does not change the eccentricity, because the ratio of the axes stays the same. That makes eccentricity a shape number, not a size number, which is why astronomers use it to describe orbits: the Earth's orbit has an eccentricity of about 0.017, which means it is nearly circular, while Halley's comet has an eccentricity of about 0.967, which means it is very stretched.
A worked example: an ellipse with axes 5 and 3
Take an ellipse with a semi-major axis of 5 cm and a semi-minor axis of 3 cm. This is a moderately stretched ellipse, and the question is how stretched it really is.
The eccentricity is the square root of 1 minus 9 over 25, which is the square root of 16 over 25, giving 0.80. The focal distance is the square root of 25 minus 9, which is the square root of 16, giving 4.00 cm. The type is Ellipse.
An eccentricity of 0.80 means the ellipse is distinctly stretched but not extremely so: it is four fifths of the way from a circle to a parabola on the eccentricity scale. The foci sit 4.00 cm from the centre on each side, which is inside the ellipse, because the semi-major axis is 5 cm. If the ellipse were a planetary orbit, that eccentricity would be high: most planets have eccentricities below 0.2.
Who uses eccentricity
Astronomers use eccentricity for every orbit. The Earth's orbit has an eccentricity of about 0.017, which is nearly circular, while Mercury's is about 0.206, which is noticeably stretched. Comets have eccentricities near 1, and objects with eccentricity above 1 are on hyperbolic paths that never return, such as interstellar visitors.
Engineers use eccentricity for gears, lenses and reflectors, where the shape of the conic decides the optical or mechanical property. An elliptical gear has a varying radius that gives a varying speed, and the eccentricity decides how much the speed varies. A parabolic reflector has eccentricity exactly 1, which is what makes it focus parallel rays.
Students meet eccentricity in Class 11, where it is the number that distinguishes the conics. It is also a good example of a dimensionless number: it has no unit, because it is a ratio, and it describes shape rather than size. A triangle area calculator is the tool for the distances that define the axes.
The calculator is only as good as the numbers you type into it. A rate from last month, a measurement taken roughly, or a unit entered wrongly will all give a confident-looking answer that is simply wrong. The best habit is to enter the numbers twice, from two sources, and to check that the answer makes sense before you act on it. A result that surprises you is usually a sign to recheck the inputs, not to trust the surprise. For a related calculation, the distance calculator covers the next number most people need after this one.
Eccentricity vs shape
Eccentricity and shape are the same idea expressed as a number. A circle is the least stretched conic, with eccentricity 0. An ellipse becomes more stretched as the eccentricity rises towards 1. A parabola sits exactly at 1, which is the boundary between closed curves and open ones. A hyperbola is beyond 1, and the larger the eccentricity, the more open the branches.
The shape also decides the orbit: an object with eccentricity below 1 is bound to its star and returns, while an object with eccentricity above 1 escapes and never returns. That is why eccentricity is the first number astronomers quote for a new comet: it tells them immediately whether the comet will come back.
Neither tool replaces the other. Pick the one that answers the exact question you have, and if the question changes halfway through, switch tools rather than forcing the first one to fit. The two tools are designed to be used together, each answering the part of the question it was built for.
Common mistakes with eccentricity
The first is using the full axes instead of the semi-axes, which does not change the eccentricity, because the ratio is the same, but it confuses the focal distance. The second is swapping the major and minor axes, which makes the ratio larger than 1 and the square root imaginary for an ellipse.
The third is thinking a parabola has an eccentricity that depends on its size, when it is always exactly 1. The fourth is confusing eccentricity with the focal distance, which is a length in centimetres, while eccentricity has no unit.
Check your answer against the shape: an ellipse must have an eccentricity between 0 and 1, a parabola exactly 1, and a hyperbola above 1. If your ellipse gives an eccentricity above 1, the axes are swapped or the wrong formula was used.
How to use this eccentricity calculator
To use it, pick conic type; enter semi-major axis (a); enter semi-minor axis (b), then read the results box at the top. The main result is highlighted, and the other rows give the supporting figures. If an answer looks wrong, check the inputs first: a misplaced decimal or a wrong unit is the usual cause, not the formula.
Pick the conic type, enter the two semi-axes with the longer one as a, and read the eccentricity and the focal distance. For a parabola, the eccentricity is always 1, and for a circle it is always 0, whatever the axes are. If the ellipse gives an error, check that the minor axis is not larger than the major axis.
No data leaves your device: the maths runs entirely in your browser, with no sign-up and no server round-trip. You can change a number, see the answer move, and change it back, all instantly. It is a private way to check a figure before you talk to a professional about it. The page has no tracking of the numbers you enter, and closing the tab leaves nothing behind.