Foci of an Ellipse Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the center of the ellipse and its two semi-axes to get the coordinates of both foci, the focal distance and the eccentricity.
Result
Focal distance c (center to each focus)
Focus 1: x
- Focus 1: y
- Focus 2: x
- Focus 2: y
- Eccentricity e = c ÷ semi-major axis
- Distance between the foci (2c)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Center x-coordinate h: enter a number.
- Center y-coordinate k: enter a number.
- Semi-axis along x (length units): enter 0 or more.
- Semi-axis along y (length units): enter 0 or more.
- Read the result: Focal distance c (center to each focus); the panel also shows Focus 1: x, Focus 1: y, Focus 2: x, Focus 2: y, Eccentricity e = c ÷ semi-major axis and Distance between the foci (2c).
How this calculator works
For the ellipse (x − h)²/a² + (y − k)²/b² = 1, the foci lie on the major axis (the longer one) at a distance c from the center, with c² = (semi-major)² − (semi-minor)².
If the x semi-axis is the longer one, the foci are (h ± c, k); otherwise they are (h, k ± c). The eccentricity e = c ÷ semi-major axis is between 0 (a circle) and 1 (a very flat ellipse). Every point of the ellipse has distances to the two foci that add up to twice the semi-major axis.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Semi-axis along x | length units | |
| Semi-axis along y | length units | |
| Focal distance c (center to each focus) | ||
max(a, b, …) | the largest of the values. | |
min(a, b, …) | the smallest of the values. |
Worked example
| Center x-coordinate h | 0 |
|---|---|
| Center y-coordinate k | 0 |
| Semi-axis along x (length units) | 5 |
| Semi-axis along y (length units) | 3 |
| Focus 1: x | -4 |
|---|---|
| Focus 1: y | 0 |
| Focus 2: x | 4 |
| Focus 2: y | 0 |
| Eccentricity e = c ÷ semi-major axis | 0.8 |
| Distance between the foci (2c) | 8 |
Focal distance c (center to each focus) 4
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Where are the foci of x²/25 + y²/9 = 1?
c = √(25 − 9) = 4, so the foci are at (−4, 0) and (4, 0), and the eccentricity is 0.8.
What are the foci of a circle?
Both foci coincide with the center, because the two semi-axes are equal and c = 0.