Ellipse Circumference Calculator

Circumference (approx.)—
Area—
Eccentricity—

How Ellipse Circumference Calculator is calculated: Circumference ≈ π × (3(a + b) − √((3a + b)(a + 3b))) [Ramanujan's second approximation]

What is the circumference of an ellipse?

The circumference of an ellipse is the distance around its edge, and it is a famously awkward number to calculate. Unlike a circle, where the circumference is simply pi times the diameter, an ellipse has no exact formula using only basic arithmetic. The true value is given by an elliptic integral, which cannot be expressed in elementary functions, so in practice everyone uses an approximation. The best known is Ramanujan's second approximation, which is accurate to a tiny fraction of a percent for most ellipses.

This calculator estimates the circumference from the two semi-axes using Ramanujan's approximation, and it also shows the area and the eccentricity. For the area of a simpler shape, a triangle area calculator covers the triangle, while this page handles the curve that has no exact perimeter formula.

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.

How the ellipse circumference is estimated

Ramanujan's second approximation says the circumference is pi times three times the sum of the semi-axes, minus the square root of the product of three times the first axis plus the second, and the first axis plus three times the second. In symbols, that is pi times (3(a + b) minus the square root of (3a + b)(a + 3b)). It looks complicated, but it is a single calculation, and it is accurate to within about 0.01 percent for ellipses that are not extremely stretched.

The semi-major axis is the longer half-length of the ellipse, measured from the centre to the farthest point on the edge. The semi-minor axis is the shorter half-length, measured from the centre to the nearest point on the edge. Both are measured in the same unit, and the calculator works whichever order you enter them in, because it takes the larger as the major axis.

The circumference is the headline number, and it is an approximation, labelled as such, because no elementary formula gives the exact value. The area is exact: pi times the two semi-axes. The eccentricity measures how stretched the ellipse is, from 0 for a circle to just under 1 for a very flat ellipse, and it tells you how accurate the approximation is likely to be.

A dash in a result row means the value does not apply to the inputs you entered, not that the calculation failed. Some rows only make sense for certain methods or certain inputs, and the calculator leaves them blank rather than inventing a number. If every row shows a dash, check the inputs: a missing or zero value in a required field is the usual cause, and the field labels say which values are needed.

The semi-axes, explained

The semi-axes are the two half-lengths of the ellipse, and they are the only measurements the approximation needs. The semi-major axis is half the longest diameter, and the semi-minor axis is half the shortest diameter. If you measured the full diameters instead, halve them before entering, because entering a diameter as a semi-axis doubles the answer.

The ratio of the two axes decides the shape. When they are equal, the ellipse is a circle, the eccentricity is zero, and Ramanujan's formula gives exactly pi times the diameter, which is the true circumference. When the minor axis is much smaller than the major axis, the ellipse is long and thin, the eccentricity approaches 1, and the approximation becomes slightly less accurate, although it is still within a fraction of a percent for most practical shapes.

Scaling both axes by the same factor scales the circumference by the same factor. An ellipse twice as large in both directions has twice the circumference, which is obvious but worth checking: it means you can work out the circumference for one size and scale it, rather than recalculating. The eccentricity does not change when you scale, because it depends only on the ratio of the axes.

A worked example: semi-axes of 5 cm and 3 cm

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, the kind you might find in a garden design or an engineering drawing.

Three times the sum of the axes is 3 times 8, which is 24. The square root term is the square root of (3 times 5 plus 3) times (5 plus 3 times 3), which is the square root of 18 times 14, or about 15.87. Subtract that from 24 to get about 8.13, and multiply by pi to get a circumference of 25.53 cm. The area is pi times 5 times 3, which is 47.12 square centimetres, and the eccentricity is 0.80.

A circumference of 25.53 cm is the length of edging needed to go around the ellipse, for example to frame it or to lay a border. The approximation error for an ellipse this shape is far below 0.01 percent, so the figure is as good as exact for any practical purpose. The eccentricity of 0.80 confirms the ellipse is moderately stretched, not nearly circular and not extremely flat.

Who needs the circumference of an ellipse

Garden and landscape designers use it for elliptical beds and lawns, where the circumference decides how much edging, fencing or border planting is needed. An elliptical flower bed with semi-axes of 5 and 3 metres needs about 25.5 metres of edging, and buying 25 metres would leave the job short.

Engineers use it for elliptical pipes, tanks and arches, where the perimeter decides the amount of material and the length of a weld or a seal. Running tracks use it too: the bends of a track are elliptical, and the total length of the track depends on the circumference of those bends.

Astronomers use it for orbits, because planets move in ellipses, and the circumference of the orbit divided by the orbital period gives the average speed. The approximation is good enough for that purpose, because the eccentricity of most planetary orbits is small. A distance calculator is the tool for the straight-line distances that define the axes.

No calculator replaces professional advice where money, safety or a legal obligation is involved. The figures here are computed correctly from the inputs and the formula shown, but the choice of formula, the choice of inputs and the decision that follows are yours. When the stakes are high, take the calculated figure to someone qualified and ask them to confirm it before you commit. For a related calculation, the Pythagorean theorem calculator covers the next number most people need after this one.

Ellipse circumference vs circle circumference

A circle's circumference is pi times its diameter, which is exact and simple. An ellipse's circumference has no exact elementary formula, which is why an approximation is needed. When the two semi-axes are equal, the ellipse is a circle, and Ramanujan's formula gives exactly the circle circumference, so the two agree at that point.

For a stretched ellipse, the circumference lies between two simple bounds: it is more than pi times the sum of the axes, and less than pi times twice the major axis. Ramanujan's formula sits inside those bounds and is far closer to the truth than either of them. A rough estimate using the average of the axes is often good enough for a quick check, but the calculator gives the accurate figure.

Keep both tools in mind. The right choice is the one whose inputs match the numbers you actually have, not the one with the fancier name. When in doubt, run both and compare: the pair of answers is usually more useful than either one alone.

Common mistakes with ellipse circumference

The first is using the diameters instead of the semi-axes, which doubles the answer. The second is using the circle formula with the average radius, which underestimates the circumference for a stretched ellipse.

The third is treating the approximation as exact, when it is accurate to about 0.01 percent for ordinary ellipses and slightly less for very flat ones. The fourth is mixing units, such as one axis in centimetres and the other in metres.

Check your answer against the circle with the same major axis: the ellipse circumference must be less than pi times twice the major axis, and more than pi times the sum of the axes. If your answer falls outside those bounds, one of the inputs is wrong.

How to use this ellipse circumference calculator

To use it, 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.

Enter the two semi-axes in the same unit, with the longer one first if you like, although the calculator works either way. Read the circumference first, then the area and the eccentricity. Remember that the circumference is an approximation, and for most ellipses it is accurate to far better than you can measure.

Everything on this page runs in your browser, so the numbers you type never leave your device. There is no sign-up, no upload and no waiting for a server. Change any input and the results update straight away, which makes it easy to test a few values side by side before you decide anything. You can also use it offline once the page has loaded, because the calculation needs no connection at all.

Frequently Asked Questions

No. The exact circumference is given by an elliptic integral, which cannot be expressed using only basic arithmetic, square roots and pi. In practice, Ramanujan's approximations are used, and the second one is accurate to about 0.01 percent for most ellipses.

Ramanujan's second approximation is C approximately equal to pi times (3(a + b) minus the square root of (3a + b)(a + 3b)), where a and b are the semi-axes. It was published by Srinivasa Ramanujan in 1914 and is still the standard approximation used today.

Eccentricity measures how stretched an ellipse is. It is the square root of 1 minus the square of the minor axis over the square of the major axis. A circle has eccentricity 0, and a very flat ellipse has eccentricity close to 1. Planetary orbits usually have eccentricities below 0.2.

For ellipses with eccentricity below about 0.9, Ramanujan's second approximation is accurate to well within 0.01 percent, which is far better than any physical measurement. For extremely flat ellipses, the error grows, but it stays below about 0.1 percent even then.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.