Ellipse Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free ellipse calculator. Enter the semi-major and semi-minor axes to get the area, perimeter (Ramanujan's formula), eccentricity and foci.
- Perimeter (circumference)
- 0
- Eccentricity
- 0
- Centre to each focus
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the ellipse calculator
- Enter the semi-major axis a: half the longest diameter of the ellipse.
- Enter the semi-minor axis b: half the shortest diameter.
The ellipse calculator shows the area, the perimeter (circumference), the eccentricity and the focal distance. If you enter the two axes the other way round, it swaps them so a is always the larger.
What is an ellipse?
An ellipse is a closed curve shaped like a stretched circle. Mathematically, it's the set of points where the sum of the distances to two fixed points, called the foci, is constant. A circle is a special ellipse in which the two foci are in the same place.
Ellipses are everywhere. Planets, moons and comets travel in elliptical orbits, as Johannes Kepler discovered in the early 17th century. A circle viewed at an angle looks like an ellipse. Ellipses appear in architecture, running tracks, gears, mirrors and lenses, and in the cross-sections of cones, cylinders and many manufactured parts.
Axes, foci and eccentricity
- The major axis is the longest diameter, with length 2a. The semi-major axis a is half of it.
- The minor axis is the shortest diameter, at right angles to the major axis, with length 2b. The semi-minor axis b is half of it.
- The foci lie on the major axis, each a distance c from the centre, where c = √(a² − b²).
- The eccentricity e = c ÷ a measures how stretched the ellipse is. It's 0 for a circle and approaches 1 as the ellipse becomes very long and thin.
With the default values, a = 5 and b = 3, the focal distance is c = √(25 − 9) = 4 and the eccentricity is 4 ÷ 5 = 0.8.
The area of an ellipse
Area = π × a × b
This is a neat generalisation of the area of a circle, πr²: an ellipse is a circle stretched by different amounts in two directions. For a = 5 and b = 3, the area is π × 15 ≈ 47.12.
The perimeter of an ellipse
Unlike the area, the perimeter of an ellipse has no simple exact formula. The exact value requires an elliptic integral, which can't be written using ordinary functions. Instead, the ellipse calculator uses an approximation published by the Indian mathematician Srinivasa Ramanujan in 1914, often called Ramanujan's second approximation:
h = (a − b)² ÷ (a + b)²
Perimeter ≈ π(a + b)(1 + 3h ÷ (10 + √(4 − 3h)))
It's remarkably accurate: for ellipses that aren't extremely elongated, the error is far smaller than any practical measurement could detect. For a = 5 and b = 3, h = 4 ÷ 64 = 0.0625, and the perimeter is about 25.527.
A common rough estimate, π × (a + b), gives about 25.13 for the same ellipse, an underestimate of about 1.5%. Another, 2π√((a² + b²) ÷ 2), gives about 25.91, an overestimate. Ramanujan's formula is much more accurate than either.
A worked example
An elliptical table top is 2 m long and 1.2 m wide, so a = 1 m and b = 0.6 m.
- Area: π × 1 × 0.6 ≈ 1.885 m².
- Perimeter: about 5.105 m, the length of edging needed.
- Focal distance: √(1 − 0.36) = 0.8 m from the centre.
- Eccentricity: 0.8.
Because this ellipse has the same proportions as the default one, scaled down by a factor of 5, its perimeter is exactly one fifth of 25.527 and its area one twenty-fifth of 47.12. Enter a = 1 and b = 0.6 in the ellipse calculator to check.
Drawing an ellipse with string
The definition of an ellipse gives a practical way to draw one, sometimes called the gardener's method. Push two pins into a board at the foci, a distance 2c apart. Tie a loop of string, or fix a string of length 2a to the two pins. Pull the string tight with a pencil and trace around: the pencil draws an ellipse, because the total distance from the pencil to the two pins always equals the string length. For the table above, put the pins 1.6 m apart and use a string 2 m long between them. The ellipse calculator gives the focal distance c you need.
Orbits
Planets move in ellipses with the Sun at one focus. Earth's orbit has an eccentricity of about 0.0167, so it's very nearly a circle: its semi-minor axis is about 99.986% of its semi-major axis. That small eccentricity still means Earth is about 3% closer to the Sun at its nearest point (perihelion, in early January) than at its farthest (aphelion, in early July). Comets often have highly eccentric orbits, with e close to 1, swinging close to the Sun and then far out into the solar system. Enter a = 1 and b = 0.99986 in the ellipse calculator to see Earth's eccentricity.
Who uses an ellipse calculator
Woodworkers and fabricators use it for elliptical tables, mirrors, windows and arches. Landscapers use it for elliptical lawns, ponds and beds. Engineers use it for elliptical tanks, pipes and gears. Astronomy and physics students use it for orbits, and maths students use it for conic sections.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.
The equation of an ellipse
An ellipse centred at the origin, with its major axis along the x-axis, has the equation:
x² ÷ a² + y² ÷ b² = 1
If b is larger than a, the major axis lies along the y-axis instead. In parametric form, the points of the ellipse are x = a cos t and y = b sin t, as t goes from 0 to 2π. That's how computer graphics programs and CNC machines usually draw ellipses.
Ellipses and circles
A circle is an ellipse with a = b. In that case the eccentricity is 0, the foci meet at the centre, the area is πa² and the perimeter is 2πa. Ramanujan's formula gives exactly 2πa when a = b, so the ellipse calculator works for circles too. For a = b = 4, it gives an area of about 50.27 and a perimeter of about 25.13.
Elliptical shapes in 3D
Rotating an ellipse around one of its axes produces a spheroid. Earth itself is close to an oblate spheroid, slightly flattened at the poles, with an equatorial radius about 21 km larger than its polar radius. Elliptical cross-sections also appear in tanks and pipes; the volume of an elliptical cylinder is π × a × b × length, so the area from the ellipse calculator multiplied by the length gives the volume.
Common mistakes
- Entering the full axes instead of the semi-axes. Halve the overall length and width.
- Using π × (a + b) for the perimeter, which underestimates it.
- Confusing the focal distance with the semi-minor axis.
- Assuming the perimeter scales with area. Doubling both axes doubles the perimeter but quadruples the area.
Measuring an existing ellipse
To measure an elliptical object, find its longest dimension and its shortest dimension at right angles to it, through the centre. Halve both to get a and b. For a flat object like a table top or rug, measure along the floor or surface. For an oval that isn't a true ellipse, such as some egg-shaped or racetrack-shaped designs made from straight sides and semicircles, the ellipse calculator gives only an approximation, because those shapes follow different curves. A racetrack shape, for example, is two semicircles joined by straight lines; its perimeter is 2 × straight length + π × width.
Ellipses in perspective
A circle seen at an angle appears as an ellipse. The more the circle is tilted away from you, the narrower the ellipse looks. If a circle of radius r is tilted by an angle θ from facing you directly, it appears as an ellipse with a semi-major axis of r and a semi-minor axis of r cos θ. Artists and illustrators use this to draw wheels, cups and round tables convincingly, and engineers use it when interpreting photographs and drawings of round parts. Enter the apparent axes in the ellipse calculator to find the eccentricity, which tells you how much the circle is tilted: the eccentricity equals sin θ.
Sources and further reading
- Ellipse on Wikipedia: definitions, equations, area and perimeter approximations.
- Kepler's laws of planetary motion on Wikipedia: elliptical orbits.
- Eccentricity (mathematics) on Wikipedia: how eccentricity describes conic sections.
Frequently asked questions
How do you find the area of an ellipse?
Area = π × a × b, where a and b are the semi-major and semi-minor axes.
Is there an exact formula for the perimeter?
Not with ordinary functions. The exact value needs an elliptic integral; Ramanujan's approximation is extremely accurate for practical use.
What is eccentricity?
A measure of how stretched an ellipse is, from 0 for a circle towards 1 for a very long, thin ellipse.
Where are the foci?
On the major axis, a distance √(a² − b²) from the centre on each side.
Does the calculator work for a circle?
Yes. Enter the same value for a and b.
Is the ellipse calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.