An ellipse is the oval you get by stretching a circle, or by slicing a cylinder at an angle. It is described by two numbers: the semi-major axis and the semi-minor axis, which are half of its longest and shortest diameters. This calculator turns them into the area, the perimeter, the eccentricity and the position of the foci, which you need for garden beds, tabletops, orbits, mirrors and lenses.
How the calculation works
- Area = π × a × b
- Perimeter ≈ π × (a + b) × (1 + 3h ÷ (10 + √(4 − 3h))), where h = ((a − b) ÷ (a + b))², which is Ramanujan’s second approximation
- Eccentricity = √(1 − (short axis ÷ long axis)²)
- Distance from the center to a focus = √(long² − short²)
- Latus rectum = 2 × short² ÷ long
Example
An oval tabletop has a semi-axis a = 5 and a semi-axis b = 3 (in any unit, for example feet). Its area is 47.124 square units, and its perimeter is about 25.527 units. The eccentricity is 0.8, each focus lies 4 units from the center, so the two foci are 8 units apart. The chord through a focus, at a right angle to the long axis, measures 3.6 units.
Where ellipses show up
Planets move on ellipses with the sun at one focus, so the eccentricity measures how stretched an orbit is. Whispering galleries and some lamp reflectors use the focus property: a sound or light ray leaving one focus passes through the other. Builders use ellipses for arches, flower beds and oval windows, and the perimeter tells you how much edging, trim or fabric to buy.
Good to know
The perimeter is not simply π times the sum of the axes: that shortcut underestimates it for flat ellipses. If you only know the full length and width, divide each by two before entering them. For a circle, set both values to the radius. To draw an ellipse on the ground with a string, pin the two ends at the foci and keep the string tight, with its length equal to the long axis.
Related shapes
For a flattened circle that has a flat edge, see the circular segment, and for the three-dimensional version, the ellipsoid calculator gives the volume. For other flat shapes, the area and perimeter calculator covers rectangles, trapezoids and rings.