Foci of an Ellipse Calculator
Enter the semi-major axis (a) and semi-minor axis (b) to find both focus points, the focal distance, eccentricity, all four vertices, latus rectum, area, and circumference. You can also set the center coordinates and choose horizontal or vertical orientation. Results update as you type and include a full step-by-step breakdown.
Formula
Worked example
Ellipse with semi-major axis a = 5 and semi-minor axis b = 3: c = sqrt(25 - 9) = sqrt(16) = 4. The foci sit at (+/-4, 0) for a horizontal ellipse centered at the origin. Eccentricity e = 4/5 = 0.8. Latus rectum = 2(9)/5 = 3.6. Area = pi x 5 x 3 ≈ 47.12 square units.
What are the foci of an ellipse?
An ellipse is defined as the set of all points in a plane for which the sum of the distances to two fixed points is constant. Those two fixed points are the foci (singular: focus). If you fix two pins on a board, loop a string around them, and trace with a pencil kept taut, you draw a perfect ellipse: the string length is 2a (twice the semi-major axis), and the pins mark the foci. The foci always lie on the major axis, the longer axis of symmetry, at a distance c from the center. The relationship between the three key lengths is the Pythagorean-like identity a² = b² + c², or equivalently c = sqrt(a² - b²), where a is the semi-major axis and b is the semi-minor axis.
How to find the foci: the formula and steps
Step 1: identify the semi-major axis a (the larger of the two half-axes) and the semi-minor axis b. Step 2: compute c = sqrt(a² - b²). Step 3: place the foci on the major axis at (+/-c, 0) for a horizontal ellipse centered at the origin, or at (0, +/-c) for a vertical one. If the center is at (h, k) instead of the origin, shift accordingly: horizontal foci are (h - c, k) and (h + c, k); vertical foci are (h, k - c) and (h, k + c). Eccentricity e = c/a tells you the shape: e = 0 is a circle, values near 1 are highly elongated.
Eccentricity, latus rectum, area, and circumference
Eccentricity (e = c/a) summarizes how far the ellipse departs from a circle. The latus rectum is the chord that passes through a focus perpendicular to the major axis; its length is 2b²/a, and it measures the "width" of the ellipse at the focus. The area is simply pi x a x b, a natural generalization of the circle formula pi x r². The circumference has no closed-form solution in elementary functions, but Ramanujan's approximation - pi(a + b)(1 + 3h/(10 + sqrt(4 - 3h))) where h = ((a - b)/(a + b))² - is accurate to within a fraction of a percent for typical ellipses.
Real-world applications
Ellipses and their foci appear across science and engineering. Kepler's first law states that every planet orbits the Sun in an ellipse with the Sun at one focus, not the center. Elliptical pool tables have two pockets, one at each focus: a ball rolled from one focus always bounces to the other. Whispering galleries and lithotripsy machines exploit the reflective property that a signal or shock wave from one focus converges at the other. Elliptical gears, satellite orbits, and architectural arches all draw on the mathematics captured in this calculator.
Eccentricity and ellipse shape
| Eccentricity range | Shape description | Example |
|---|---|---|
| e = 0 | Perfect circle | a = b |
| 0 < e < 0.25 | Nearly circular | Earth's orbit (e ≈ 0.017) |
| 0.25 to 0.5 | Mildly elongated | Mars's orbit (e ≈ 0.093) |
| 0.5 to 0.75 | Moderately elongated | Pluto's orbit (e ≈ 0.248) |
| 0.75 to <1 | Highly elongated | Halley's comet (e ≈ 0.967) |
| e = 1 | Degenerate (line) | b = 0 |
Eccentricity (e) quantifies how much an ellipse deviates from a circle. It always lies between 0 (a perfect circle) and 1 (a degenerate line segment).
Frequently asked questions
What is the difference between the foci and the center of an ellipse?
The center is the midpoint of the major axis, equidistant from both vertices and both foci. The foci are two specific points inside the ellipse, each at distance c from the center along the major axis. When the ellipse is a circle (a = b), the two foci merge at the center and c = 0.
Can I enter b larger than a?
Yes. The calculator automatically treats the larger value as the semi-major axis a and the smaller as the semi-minor axis b, then applies the correct formula regardless of the order you enter them. Just make sure the orientation setting matches the axis you intend to be the major one.
What does eccentricity = 0 mean?
An eccentricity of 0 means a = b, so c = 0 and the two foci coincide at the center: the ellipse is a perfect circle. As eccentricity increases toward 1, the ellipse becomes more elongated and the foci move further from the center.
How does the orientation (horizontal vs. vertical) change the foci?
Orientation controls whether the major axis runs along the x-direction or the y-direction. For a horizontal ellipse the foci lie on the x-axis at (h +/- c, k); for a vertical ellipse they lie on the y-axis at (h, k +/- c). The focal distance c and eccentricity are identical in both cases because they depend only on a and b, not the tilt.
Why is the circumference an approximation?
The exact perimeter of an ellipse requires an elliptic integral, which cannot be expressed in simple elementary functions. Ramanujan's 1914 approximation is accurate to better than 0.04% for most practical ellipses and is the standard formula used by engineers and architects. The error only becomes noticeable for extreme eccentricities very close to 1.
What is the latus rectum and why does it matter?
The latus rectum is the chord drawn through a focus at right angles to the major axis. Its length, 2b²/a, tells you how wide the ellipse is at the focus. In orbital mechanics it appears in the vis-viva equation and in the formula for orbital period. A longer latus rectum relative to a means a rounder ellipse; a shorter one means the curve is sharper near the foci.