Formula: Ellipse Geometry Mathematical Identity
- semiMajorA: Semi Major A (numeric parameter)
- semiMinorB: Semi Minor B (numeric parameter)
Compute ellipse area, focal eccentricity, and circumference from semi-axes a and b.
No. If the second value is larger than the first, the calculator swaps them before working, so semi-axes of 6 and 10 give the same area of 188.496, perimeter of 51.054 and eccentricity of 0.8 as 10 and 6. The foci always lie on the longer axis, whichever way your shape is turned on the page.
No. The area πab is exact, because an ellipse is a circle stretched by different amounts in two directions and the area scales by the product of those stretches. Only the perimeter needs an approximation. The default area of 188.496 is simply 60π rounded to three decimals, so any difference from your own working will come from rounding π.
Very accurate for ordinary ovals. It is exact for a circle: with both semi-axes at 6 the calculator gives 37.699, which is 12π. Error grows as the shape flattens, yet even a needle-thin ellipse stays within a fraction of a percent of the true length. For manufacturing or landscaping it is better than any physical measurement you will make.
Half widths. The inputs are semi-axes, measured from the centre to the edge. An oval measuring 20 by 12 across is entered as 10 and 6, giving the default 188.496 square units. Typing 20 and 12 would quadruple the area and double the perimeter. If you only have a full measurement, divide by two before entering it.
It is noticeably oval: the short axis is 60% of the long one, because b/a = √(1 − e²) = 0.6. The foci sit 80% of the way from the centre to each end. Eccentricity describes proportion only, so a 10 by 6 ellipse and a 5 by 3 ellipse both show 0.8 even though one has four times the area.
It is the length of the chord through a focus at right angles to the long axis, 2b²/a. With the default semi-axes 10 and 6 that is 72/10, or 7.2 units, and the semi-latus rectum is 3.6. It is used in conic-section and orbit problems, where the semi-latus rectum sets the scale of the curve in its polar equation.
For the geometry, yes. Enter the semi-major and semi-minor axes in any consistent unit. The closest approach to the focus is a − c and the farthest is a + c, which are 2 and 18 units for the default. The calculator says nothing about orbital period or speed; those need the masses involved and Kepler's laws.
Because only part of the edge runs along that axis. Raising a from 10 to 15 with b fixed at 6 increases area by exactly 50%, to 282.743, but perimeter only rises from 51.054 to 69.039, about 35%. Area is proportional to each axis separately; perimeter depends on both together in a non-linear way.
Probably not. Many tables, rugs and running tracks are stadium shapes, a rectangle with a half circle on each end, or are drawn from four arcs. Those are not ellipses and their edge length differs. For a stadium, add twice the straight length to the circumference of one circle with the end radius. Use this calculator only for a genuine ellipse.
Whatever units you typed. Semi-axes in centimetres give a perimeter, focal distance and latus rectum in centimetres and an area in square centimetres. Eccentricity is shown without a unit because it is a pure ratio. Keep both inputs in the same unit, or every output will describe a shape that does not exist.
The calculator stops and asks for semi-axes greater than zero instead of returning a result. A zero has no meaning for an ellipse, and a negative length is almost always a typing slip, so it is caught rather than quietly corrected. Fix the value and the area, perimeter and the other lines will appear again.
Two numbers describe this ellipse. The semi-major axis a is 10 and the semi-minor axis b is 6, which means the shape is 20 units across its long way and 12 units across its short way. Everything on the result is built from those two half-widths.
The headline is the area, 188.496 square units. That is π times 10 times 6, or 60π. Below it the calculator gives a Ramanujan perimeter of 51.054 units, an eccentricity of 0.8 and a focal distance c of 8 units.
Each of those lines answers a different question. Area tells you how much material fills the shape, such as the glass in an oval mirror or the turf inside an oval track. Perimeter tells you how much edging, trim or fence goes around it. Eccentricity and focal distance describe how stretched the ellipse is and where its two foci sit, which matters for drawing it with string and pins, for whispering galleries, and for orbits.
A quick sanity check on the default: a circle of radius 10 would have an area of 100π, and a circle of radius 6 would have 36π. The ellipse lands between them at 60π, exactly as it should, because it is a circle of radius 10 squashed to 6/10 of its height.
Area has a clean formula because an ellipse is just a circle stretched in one direction. Stretch a unit circle by a horizontally and by b vertically and every small patch of area is multiplied by a times b. The circle's π becomes πab. No approximation is involved, so 188.496 is as exact as the decimals allow.
The edge is a different story. Stretching changes lengths unevenly: the flat sides get longer and the curved ends get tighter, and there is no finite formula in ordinary functions for the total. The true perimeter is an elliptic integral, which has to be evaluated numerically or by a series.
Ramanujan's second approximation, the one shown in the formula on this page, gets very close with almost no work. It defines h = (a − b)² / (a + b)², then multiplies the average-radius guess π(a + b) by a small correction, 1 + 3h / (10 + √(4 − 3h)).
Working the default by hand: a − b is 4 and a + b is 16, so h is 16 divided by 16 squared, or 0.0625. Then 3h is 0.1875, the square root of 4 − 0.1875 is about 1.9526, and the correction factor is 1 + 0.1875/11.9526, about 1.0157. Multiply π times 16 by that and you get 51.054, matching the calculator.
The error of this formula is tiny for everyday shapes and grows slowly as the ellipse gets flatter. For fabrication, landscaping or drafting it is far more precise than any tape measure.
The focal distance c comes from c² = a² − b². With the default, that is 100 − 36 = 64, so c is 8. The two foci sit on the long axis, 8 units either side of the centre.
Eccentricity is then e = c/a, which is 8/10, or 0.8. It is the same as the page's formula e = √(1 − b²/a²), since 1 − 36/100 is 0.64 and its square root is 0.8.
Eccentricity runs from 0 for a circle towards 1 for an ellipse squashed nearly flat. The number describes shape only, not size. An ellipse with a = 5 and b = 3 has the same 0.8 eccentricity as the default; it is simply half as large, with foci 4 units from the centre, an area a quarter as big (47.124) and a perimeter half as long (25.527). I ran that case to check: the ratio b/a is what fixes e.
The foci are useful in practice. If you want to draw an ellipse on a board, put two pins at the foci and loop a string around them so the total loop length is 2a + 2c. Pull a pencil taut against the string and trace. Every point on the curve has distances to the two foci that add up to 2a, which is 20 units for the default.
Eccentricity is shown as a bare number, with no unit, because it is a ratio of two lengths. A 10 by 6 ellipse drawn in millimetres and one drawn in kilometres both have e = 0.8.
Raising the semi-major axis from 10 to 15 with b fixed at 6 lifts the area to 282.743 square units. That is π times 90, and it is exactly 1.5 times the default, because area is linear in each axis.
The perimeter does not grow in proportion. It rises from 51.054 to 69.039 units, an increase of about 35% rather than 50%, because only half of the shape's dimensions changed. The eccentricity climbs to about 0.917 and the foci move out to 13.748 units from the centre.
That non-proportional perimeter is the reason this calculator exists. People often estimate the edge of an oval by averaging the two radii and using 2π times that average. For a = 15 and b = 6, that rough method gives π(a + b), about 65.97, which falls short of 69.039 by roughly three units. On a long border or a curved bench, three units in every 69 is a real shortfall when ordering material.
Going the other way, setting a and b equal at 6 turns the ellipse into a circle. The calculator then shows an area of 113.097, a perimeter of 37.699, eccentricity 0 and a focal distance of 0. That perimeter is 12π, exactly the circumference of a circle of radius 6, which confirms that Ramanujan's formula collapses to the right answer when h is zero.
The second input is labelled as the semi-minor axis, but you do not have to get the order right. If the number in the second box is larger than the first, the calculator swaps them before working.
So if you type a = 6 and b = 10, perhaps because the oval on your plan is taller than it is wide, you get the same result as the default: an area of 188.496, a perimeter of 51.054, an eccentricity of 0.8, a focal distance of 8 and a latus rectum of 7.2. Orientation has no effect on any of these quantities; a tall oval and a wide oval with the same pair of semi-axes are the same ellipse turned through a right angle.
The foci always lie along the longer axis. If your shape is taller than it is wide, the 8 units of focal distance are measured up and down from the centre, not side to side, even though the result does not say which way the shape is turned.
A more common slip is entering full widths. The inputs are semi-axes, half the full width and half the full height. If you measured an oval tabletop as 90 by 60, enter 45 and 30. Typing the full widths makes the area four times too large and the perimeter twice too long.
As b shrinks towards zero the ellipse flattens into a line segment of length 2a, traced out and back. Its perimeter heads towards 4a.
Try a = 10 and b = 1. The calculator reports an area of 31.416, which is 10π, a perimeter of 40.639 and eccentricity 0.995, with foci 9.95 units from the centre. The perimeter sits just above 40, the four-times-a limit, because the ends still curve round.
This is also where any closed-form approximation is under the most strain. Ramanujan's second formula remains excellent here; even at the extreme of b = 0 it lands within a fraction of a percent of 4a. For a shape with eccentricity above about 0.99, such as a long slot or a highly elongated orbit, it still gives a usable number, but anyone needing many significant figures should evaluate the elliptic integral directly.
Both semi-axes must be greater than zero. A zero or a negative value in either box returns an error asking for positive semi-axes rather than a result, so a minus sign typed by mistake is caught instead of silently dropped.
The last line of the result is the latus rectum, the chord through a focus at right angles to the long axis. Its full length is 2b²/a, which for the default is 2 × 36 / 10, or 7.2 units. The semi-latus rectum, half that, is 3.6, and it is the distance that sets the scale of an orbit in the polar equation of a conic.
Other useful values follow from the outputs in one step. The distance from the centre to the nearer vertex is a, so the closest point of the curve to a focus is a − c, which is 2 units for the default, and the farthest is a + c, 18 units. In orbital language these are the periapsis and apoapsis distances, and they are why eccentricity matters so much for planets and satellites.
If you only know the full length and width of an oval, divide each by two for a and b. If you know a and the eccentricity, recover b from b = a√(1 − e²). If you know a and the focal distance, b = √(a² − c²).
Area, perimeter and these distances all scale with the size of the ellipse. Eccentricity alone is scale-free, which makes it the number to compare when two ellipses of different sizes are meant to look alike.
The practical reason to want Ramanujan's figure is ordering material that runs around an oval edge: edging strip, piping on a cushion, LED tape around a mirror, a steel band, or the inside lane line of a garden track.
Take the default as a planter bed 20 by 12 units across. The edge needs about 51.054 units of edging. Allow extra for overlap at the joint and for the thickness of the material, because the calculator measures the mathematical curve, not the centreline of a strip with real width. If the edging sits outside the bed, its centreline runs along a slightly larger ellipse, so add half the strip's thickness to both a and b and rerun.
For the area, 188.496 square units is what you divide by the coverage of a bag of compost, a tin of paint or a pallet of turf. Squared units follow whatever length unit you typed: semi-axes in metres give square metres, semi-axes in feet give square feet.
Two cautions. Real ovals in furniture and architecture are often not true ellipses; many are drawn from four circular arcs or are rectangles with rounded ends. For a stadium shape, measure it as a rectangle plus two half circles instead. And when the shape is a true ellipse, check your measurements are across the widest and narrowest points through the centre, since any other chord underestimates the axes.