Understanding the Focus Of The Ellipse
The Focus Of The Ellipse is one of those geometry topics that gets glossed over in high school but shows up constantly in engineering work. I ran into this repeatedly when calibrating a machine vision system for part inspection. The ellipses you get from projecting circular features off-axis don't behave the way intuition suggests, and getting the foci wrong throws off your measurements by a measurable margin. Here's what actually matters: an ellipse has two focal points, and the defining property is that for any point on the curve, the sum of the distances to those two foci is constant. That constant equals the major axis length, 2a. This isn't just abstract math. It's what lets you compute things like reflector geometry, orbital paths, and the projection artifacts I mentioned.
Working With the Focus Of The Ellipse in Practice
The standard setup starts with identifying the center, the semi-major axis a, and the semi-minor axis b. From there, the distance from center to each focus is c = sqrt(a² - b²). The foci sit on the major axis, equidistant from the center. That's the clean version. Real data is messier. I spent about three days debugging a measurement system where the elliptical feature was being projected from a slightly tilted circular target. The tilt angle was around 12 degrees, which should have been trivial to account for, but the software was reporting focus positions that drifted depending on which edge of the ellipse you measured. The issue wasn't in the math. It was in how the ellipse parameters were being extracted from pixel coordinates. The algorithm was using a least-squares conic fit without enforcing the ellipse constraint properly, which introduced a small but systematic error in the computed axes. That error shifted the focus location by roughly 0.8 millimeters in our coordinate space, enough to reject perfectly good parts. The workaround was straightforward once I saw it. I switched to fitting the ellipse using a direct least-squares method that enforces the conic classification constraint, specifically the Buchner or Fitzgibbon approach. After that, the focus positions stabilized immediately. The whole thing went from a day-and-a-half investigation to a two-hour fix.
If you're working with ellipse data manually, here's the practical sequence I use. Measure or extract the major and minor axis lengths first. Compute c. Place the foci at distance c from the center along the major axis. Check your work by picking a point on the ellipse and verifying the two distances sum to 2a. If they don't, your axis values or center point are off. One thing beginners routinely miss: the foci stay fixed relative to the ellipse geometry regardless of how the ellipse is rotated or translated in space. People sometimes think that rotating the ellipse moves the foci relative to the curve itself. It doesn't. The foci rotate with it. Only changing a or b changes where they sit. Another counter-intuitive point: when the ellipse becomes nearly circular, the two foci converge toward the center. At the limit of a perfect circle, they're coincident. This matters in applications like antenna design or acoustic reflectors where you might be approximating a circular dish with a very low eccentricity ellipse. The two focal points become practically indistinguishable, and any fabrication or alignment error that assumes two separate foci will introduce unnecessary complexity into the setup.
Get the Full Details

When the Standard Approach Breaks Down
The c = sqrt(a² - b²) formula assumes you already have accurate axis lengths. In practice, that assumption fails frequently. If you're deriving the ellipse from image data, noise, partial occlusion, or perspective distortion can shift the fitted axes by a few percent. Because c depends on the difference between a² and b², small errors in either axis get amplified, especially for high-eccentricity ellipses where a and b are far apart. A 1% error in a and b might throw your focus position off by 5% or more. For high-precision work, I recommend measuring the ellipse directly from its geometric definition rather than relying solely on axis fitting. Capture multiple points on the curve, then solve for the foci using the constant-sum property. This is more computation but far more robust when your axis estimates are uncertain. I use a simple optimization routine that minimizes the variance of the distance-sum across all sampled points. Converges in under a second on modern hardware. There are also cases where fitting an ellipse to data is the wrong call entirely. If you're dealing with projected circles from computer vision or photogrammetry, the projection of a circle is always an ellipse, but extracting the original circle's properties from the ellipse requires knowing the camera calibration and viewing geometry. The focus positions on the projected ellipse don't map back to anything physically meaningful on the original circle without that extra information. I've seen people try to use projected ellipse foci for alignment purposes without accounting for the perspective transform, which produces results that look plausible until you measure them against a known reference.
If you need to compute ellipse foci as part of a larger pipeline, consider whether your downstream application actually needs the foci or just the center and axes. Most tolerance checks and alignment routines don't require the focal points at all. Computing them adds a step where errors can accumulate without providing any measurable benefit to the final result. For the actual calculation, any programming environment will do. Python with NumPy, MATLAB, even a well-structured spreadsheet. The computation is trivial. The hard part is making sure the input geometry is correct. Spend more time validating your axis measurements and center point than writing the formula itself.