Coordinate Transformation Error Ellipse & Covariance Matrix Simulator

Positional uncertainty in surveying and GNSS geodesy is modeled using 2D 95% confidence error ellipses derived from $2 \times 2$ horizontal covariance matrices (Cxx, Cyy, Cxy).

Error Ellipse Calculator

How the Error Ellipse Is Computed

Every adjusted horizontal position carries a $2 \times 2$ covariance matrix. Its diagonal elements are the variances of the east and north coordinates; the off-diagonal element is their covariance, which appears whenever the two coordinates are not statistically independent — the normal case for GNSS baselines and traverse adjustments.

Covariance matrix: Cxx = σx²,  Cyy = σy²,  Cxy = ρ · σx · σy

Eigenvalues: λ = (Cxx + Cyy)/2 ± √(((Cxx − Cyy)/2)² + Cxy²)

Semi-axes: a = √(λmax · k),  b = √(λmin · k),  k = 1 (39.35%), 5.991 (95%), 9.210 (99%)

Orientation: θ = ½ · atan2(2Cxy, Cxx − Cyy)  (direction of the semi-major axis from the x-axis)

Area: A = π · a · b

The factor k comes from the chi-square distribution with 2 degrees of freedom: a 2D normal position falls inside the 1σ ellipse with probability 39.35%, inside the 95% ellipse with probability 95%. This is why a "1-sigma" error ellipse looks much smaller than the 95% ellipse surveyors quote — the two describe the same uncertainty at different confidence levels, not different accuracy.

Worked Example

Take a GNSS point with σx = 12 mm, σy = 9 mm and correlation ρ = 0.35 — the calculator's defaults. The covariance matrix is Cxx = 144 mm², Cyy = 81 mm², Cxy = 37.8 mm².

Confidence level Semi-major a Semi-minor b Orientation θ Area
39.35% (1σ) 12.72 mm 7.96 mm 25.1° 317.8 mm²
95% 31.13 mm 19.47 mm 25.1° 1904.1 mm²
99% 38.59 mm 24.14 mm 25.1° 2927.2 mm²

The orientation stays 25.1° at every confidence level — scaling the ellipse changes its size, never its direction. The axis ratio a/b = 1.60 shows the uncertainty is 60% larger along the major axis than across it; a ratio near 1.0 would mean near-circular (isotropic) uncertainty, while a large ratio flags a weak direction, typically along the baseline to the reference station.

Reading the Result

  • Semi-major axis a — the worst-case direction. If a specification says "95% horizontal accuracy ≤ 30 mm", compare a at 95% against 30 mm, not the smaller b or an average.
  • Semi-minor axis b — the best-case direction. Together with a it defines the full ellipse, not a single radius.
  • Orientation θ — the azimuth of the weak direction. In GNSS work it usually points along the longest baseline or the direction with the poorest satellite geometry.
  • Correlation ρ — when ρ = 0 the ellipse axes align with the coordinate axes (θ = 0° or 90°). Non-zero ρ rotates the ellipse; ignoring it and quoting σx and σy separately understates the true worst-case error.
Note: an error ellipse describes precision (random error), not accuracy. A systematic datum shift or an unresolved carrier-phase ambiguity can move the whole ellipse without changing its size. Always check the ellipse together with independent control or a second occupation.

Where Error Ellipses Come From

In practice you rarely type σx, σy and ρ by hand. They come out of a least-squares adjustment: the inverse of the normal-equation matrix (ATWA)−1 scaled by the a-posteriori variance factor is the covariance matrix of the adjusted coordinates, and each point's $2 \times 2$ block of that matrix is exactly what this calculator takes as input. RTK receivers report the same quantities per epoch (often as standard deviations plus a correlation), and network-adjustment software plots one ellipse per control point on the survey plan.

Related tools on this site: the least-squares adjustment simulator explains the adjustment that produces these matrices, and the traverse closure calculator checks the misclosure that an adjustment has to distribute.

Frequently Asked Questions

Why is the 1-sigma ellipse only 39.35%, not 68%?

In one dimension, ±1σ covers 68.27% of a normal distribution. In two dimensions the probability inside the 1σ ellipse is 1 − e−1/2 = 39.35%. The 68% figure does not transfer to 2D; the 2D equivalents are 39.35% (k = 1), 95% (k = 5.991) and 99% (k = 9.210).

What does the orientation angle mean?

θ is the direction of the semi-major axis measured from the x (east) axis. It tells you which direction the position is least certain in. A large a/b ratio with θ near 0° means the east coordinate is much weaker than the north coordinate.

Can I use this for vertical uncertainty?

No — this calculator is horizontal (2D) only. Vertical uncertainty is one-dimensional and is quoted directly as σh or as a 95% interval (±1.96σh). A full 3D error ellipsoid needs the $3 \times 3$ covariance matrix.

What is a good 95% error ellipse for RTK surveying?

For RTK fixed solutions, 95% semi-major axes of 10–30 mm are typical in open sky. Values above ~50 mm at 95% suggest a float solution, multipath, or weak geometry, and should be investigated before the point is used as control.

Try Next Precision Tools

GPS Accuracy & PDOP Calculator → RTK Precision Visualizer →