How GPS Works — and Why
Einstein Had to Be Involved

If the engineers who designed GPS had ignored Einstein's theory of relativity, your navigation app would accumulate an error of about 11 kilometers every day. Not a slight drift. Not a minor correction. An error large enough that after a week without relativistic compensation, the system would be off by roughly 80 kilometers — useless for anything more precise than pointing at a hemisphere.

The fact that you can navigate to a parking space, or land an aircraft within meters of a runway centerline, is the result of one of the most precise engineering systems ever deployed at mass scale. GPS is a triumph of physics, systems integration, signal processing, and the kind of obsessive attention to error sources that separates good engineers from great ones. Understanding how it actually works reveals something important about precision engineering: at the limit, everything matters. Including the curvature of spacetime.

"GPS is the only consumer product in history where you have to correct for relativistic effects to make it work."

The basic principle — trilateration, not triangulation

GPS works by trilateration: measuring the distance from multiple known points (satellites) to determine an unknown point (your position). Each GPS satellite broadcasts a radio signal containing two pieces of information: the satellite's precise current position, and the exact time the signal was transmitted. Your receiver picks up these signals and computes the travel time from each satellite — the difference between when the signal was sent and when it arrived. Since radio waves travel at the speed of light (approximately 299,792,458 m/s), travel time converts directly to distance.

With distance from one satellite, you know you're somewhere on a sphere around that satellite. With two satellites, you're on the intersection of two spheres — a circle. With three satellites, you're at one of two points (usually one is obviously wrong — underground or in space). With four or more satellites, the system is over-determined — the extra measurements allow the receiver to solve for both position and the exact receiver clock time simultaneously. This is critical: you don't need an atomic clock in your phone if you have four satellites, because clock offset becomes a fourth unknown that the four equations solve for.

⚡ 24 Satellites, Six Orbital Planes

The GPS constellation consists of at least 24 operational satellites in medium Earth orbit at about 20,200 km altitude, arranged in 6 orbital planes inclined 55° to the equator. This geometry ensures that at least 4 satellites are visible from almost any point on Earth's surface at any time. The US Space Force operates the constellation; the system is free to use globally — a deliberate policy decision with enormous geopolitical implications. Russia operates GLONASS, Europe operates Galileo, China operates BeiDou — all similar systems. Modern receivers can use signals from all four constellations simultaneously, improving accuracy and reliability.

The error budget — where precision goes to die

GPS in principle sounds straightforward. In practice, achieving centimeter-level accuracy requires accounting for a long list of error sources that each individually might seem small but compound brutally. Satellite clock errors: each GPS satellite carries multiple atomic clocks (cesium and rubidium) accurate to nanoseconds, but even nanosecond errors translate to 30cm of position error (1 nanosecond × speed of light). Satellite orbital errors: the satellite's broadcast position has small errors compared to its actual position. Ionospheric delay: the signal slows in the ionosphere in a way that depends on solar activity, time of day, and location — typically 5–15 meters of equivalent range error. Tropospheric delay: water vapor in the troposphere adds about 2–3 meters of equivalent delay. Multipath: signals reflecting off buildings or terrain arrive at the receiver via longer paths, creating ghost signals that corrupt the timing measurement.

The entire engineering challenge of GPS is managing this error budget. The ground control segment of GPS (operated from Schriever Space Force Base in Colorado) continuously monitors satellite positions and clock offsets against a global network of precisely known ground stations, uploading corrections to the satellites multiple times per day. Dual-frequency receivers measure both L1 (1575.42 MHz) and L2 (1227.60 MHz) signals and exploit the fact that ionospheric delay is frequency-dependent to calculate and remove most of the ionospheric error. Differential GPS (DGPS) places a reference receiver at a precisely known location and broadcasts the difference between its calculated and known position — correcting most remaining errors in real time for nearby users. With all these corrections, survey-grade GPS receivers achieve sub-centimeter accuracy.

The Einstein corrections — why spacetime matters to navigation

Here's where the engineering gets genuinely extraordinary. Einstein's special and general relativity both affect the GPS clock rates in measurable, unavoidable ways. Special relativity: the GPS satellites are moving at about 3.87 km/s relative to Earth's surface. Time dilation from this velocity causes the satellite clocks to run slower than clocks on the ground by about 7.2 microseconds per day. General relativity: the satellites are at 20,200 km altitude, where Earth's gravitational field is weaker. Clocks in weaker gravitational fields run faster — they're less "dragged" toward the massive Earth. This causes satellite clocks to run faster than ground clocks by about 45.9 microseconds per day.

The net effect is that satellite clocks run fast relative to ground clocks by about 38.4 microseconds per day. One microsecond of clock error corresponds to 300 meters of position error (1 microsecond × speed of light). Thirty-eight microseconds per day would produce 11 kilometers of accumulated error per day. The GPS system compensates by setting the satellite clocks to run slightly slower before launch — at a rate of 10.22999999543 MHz rather than the nominal 10.23 MHz — so they run at exactly the right rate once in orbit accounting for relativistic effects. The correction is baked into the hardware. Without it, GPS simply doesn't work.

🎯 The Precision That Changed the World

The GPS accuracy available to consumers today — typically 3–5 meters with a smartphone, sub-meter with a decent dedicated receiver — was initially restricted by the US military through "Selective Availability," which deliberately degraded civilian signals to about 100 meters. SA was turned off in May 2000 by order of President Clinton, immediately improving civilian accuracy tenfold overnight. This single policy decision transformed GPS from a navigation aid to the backbone of global precision agriculture, autonomous machinery, surveying, timing for financial transactions, power grid synchronization, and hundreds of other applications that require meter-level or sub-meter precision. The economic impact is estimated at hundreds of billions of dollars annually.

🤔 How does GPS achieve centimeter accuracy for surveying when phones only get 3–5 meters?

The fundamental limitation of a smartphone GPS is the receiver hardware — cheap single-frequency antenna with high noise floor, and software optimized for speed over accuracy. Survey-grade receivers use several techniques unavailable in phones. First, dual or triple frequency reception (L1, L2, L5) allowing precise ionospheric correction. Second, carrier-phase measurements — instead of measuring the timing of the signal's modulated code, survey receivers measure the phase of the underlying carrier wave itself, which has a wavelength of ~19cm and can be measured to millimeter fractions. Third, Real-Time Kinematic (RTK) correction — a nearby base station (or network of stations) streams real-time correction data to the rover receiver, removing atmospheric errors and orbital errors that are identical at both locations. The combination of carrier-phase measurement and RTK correction achieves 1–2cm horizontal accuracy in real time. Even more precise: post-processing the recorded data against a reference station can achieve 5–10mm accuracy — used for monitoring millimeter-scale ground deformation, dam movement, and volcano inflation.

🤔 What happens to GPS accuracy during solar storms — and what systems fail?

Solar storms are the primary environmental threat to GPS accuracy. A large solar flare releases X-rays that immediately increase ionospheric electron density on the sunlit side of Earth, dramatically increasing ionospheric signal delay in ways that dual-frequency corrections can't fully compensate. The delay can change by meters over minutes. A geomagnetic storm following 1–3 days later can cause ionospheric scintillation — rapid fluctuations in signal amplitude and phase that cause receivers to lose lock on satellites entirely. During the October 2003 "Halloween storms," GPS accuracy degraded to 50+ meters in affected regions and some receivers lost lock completely. The systems that depend on GPS timing (financial trading, power grid frequency synchronization, cellular network timing, internet routing timestamps) are particularly vulnerable because many assume GPS timing is always available. The April 2017 solar radio burst temporarily saturated GPS receiver front-ends, causing widespread position errors. GNSS-dependent aviation procedures have to revert to conventional instrument approaches during severe solar events — which happen with a frequency that makes this a genuine operational concern.

Sort Exercise

The GPS Signal Chain

Drag to arrange the steps from satellite broadcast to position fix.

  • Receiver measures time-of-flight from 4 or more satellites
  • Satellite broadcasts position and precise timestamp via radio
  • Relativistic corrections keep accumulated error below 1 meter
  • Signal travels at the speed of light toward Earth
  • Receiver solves for position and clock offset simultaneously

Key Terms — GPS & Navigation

Trilateration
Position determination from distances to multiple known points. GPS uses 4+ satellites to solve for 3D position and clock offset.
Pseudorange
Apparent distance to a satellite computed from signal travel time — "pseudo" because receiver clock error makes it imprecise until solved.
Time Dilation
Relativistic effect where clocks at different velocities or gravitational potentials run at different rates. GPS clocks corrected for 38.4 μs/day.
Ionospheric Delay
Signal slowing in the charged ionosphere — frequency-dependent, varying with solar activity. Largest error source in single-frequency GPS.
RTK (Real-Time Kinematic)
High-accuracy GPS technique using carrier-phase measurements and a nearby base station to achieve 1–2cm accuracy.
Selective Availability
US military degradation of civilian GPS to ~100m accuracy. Turned off in 2000, enabling modern precision applications.