Foci of an Ellipse Calculator

Calculate the foci of an ellipse precisely — enter your dimensions and get the result with the formula shown.

Quick Facts

Focal distance formula
c² = a² − b² (a > b)
c is the distance from the center to each focus, measured along the major axis.
Standard equation
(x−h)²/a² + (y−k)²/b² = 1
(h, k) is the center; a and b are the semi-axis lengths along x and y.
Eccentricity
e = c / a, where 0 ≤ e < 1
Eccentricity measures how elongated the ellipse is; e = 0 means a circle.

Your Results

Calculated
Focal Distance (c)
-
c = √(a² − b²)
Focus 1
-
First focus coordinates
Focus 2
-
Second focus coordinates
Eccentricity (e)
-
e = c / semi-major axis

Ready

Enter the semi-axis lengths and center, then press Calculate.

Formula and Method for the Foci of an Ellipse

An ellipse is the set of all points where the sum of the distances to two fixed points — the foci — stays constant. For an ellipse in standard position, (x−h)²/a² + (y−k)²/b² = 1, centered at (h, k) with semi-axis lengths a (along x) and b (along y), this calculator finds the focal distance c and the coordinates of both foci, along with the eccentricity that describes how elongated the ellipse is.

How the calculation works

The calculator first compares a and b to find the semi-major axis — whichever value is larger, since an ellipse's foci always lie on its major axis. It then applies c = √(a² − b²), using the larger value squared minus the smaller value squared, to find c, the distance from the center to each focus. If a > b, the major axis is horizontal and the foci sit at (h − c, k) and (h + c, k). If b > a, the major axis is vertical and the foci sit at (h, k − c) and (h, k + c). When a equals b, the "ellipse" is a circle, c = 0, and both foci sit on the center. Finally, eccentricity e = c ÷ (semi-major axis) is computed: e = 0 is a perfect circle, and e approaches 1 as the ellipse grows more elongated.

Common mistakes

  • Assuming a is always horizontal: in (x−h)²/a² + (y−k)²/b² = 1, a is whichever denominator sits under x² — it is only the semi-major axis if a > b. Compare a and b before deciding which axis is major.
  • Using a² + b² instead of a² − b²: the focal-distance formula is c² = a² − b² (larger squared minus smaller squared), not a sum — the sum form belongs to the Pythagorean theorem for right triangles, not an ellipse's foci.
  • Forgetting the center offset: if the ellipse is not centered at the origin, both foci must be shifted by (h, k) — computing them relative to (0, 0) instead gives the wrong location.

Real-world applications

  • Orbital mechanics: planetary and satellite orbits are ellipses with the sun or Earth located at one focus (Kepler's first law).
  • Optics and acoustics: elliptical reflectors and "whispering gallery" ceilings direct light or sound from one focus toward the other.
  • Architecture and design: elliptical arches, domes, and gears are laid out using the two-foci, string-and-pins construction method.
  • Analytic geometry coursework: locating the foci and computing eccentricity is a standard step in graphing and classifying conic sections.

Frequently Asked Questions

What is the formula for the foci of an ellipse?
For an ellipse in standard form (x−h)²/a² + (y−k)²/b² = 1, the distance from the center to each focus is c = √(a² − b²), where a and b are the semi-axis lengths and the larger one is treated as the semi-major axis. The foci lie on the major axis, c units on either side of the center (h, k).
How do I know if the major axis is horizontal or vertical?
Compare the two semi-axis lengths. If a (the semi-axis along x) is larger than b (the semi-axis along y), the major axis is horizontal and the foci are at (h − c, k) and (h + c, k). If b is larger, the major axis is vertical and the foci are at (h, k − c) and (h, k + c).
What is eccentricity and how does it relate to the foci?
Eccentricity is e = c / a, where a is the semi-major axis length. It ranges from 0 (a circle) to just under 1 (a very elongated ellipse) and describes how far the foci sit from the center relative to the ellipse's overall size.
What happens to the foci when a equals b?
When the semi-axes are equal, the ellipse is a circle. There is no distinct major axis, the focal distance c equals 0, and both foci coincide with the center point.