Skip to content

Light and the Modern World

Relativity, and why GPS needs it

Time is not universal, and your GPS proves it

The GPS in your phone works by asking satellites what time it is. If we built those satellites the way common sense says clocks should work, your blue dot would drift off by about ten kilometers every single day. It does not, because the engineers who built GPS treated time the way Einstein said it really is, not the way it feels. This is relativity as working infrastructure.

Predict first: is a second the same everywhere?

Two identical, perfect clocks. One rides a fast satellite; one stays on your desk. A day later, do they read the same time? Nearly everyone says of course - a second is a second. Commit to that answer. By the end of this lesson you will be able to say, to the microsecond, how far apart they drift, and you will have watched exactly why a moving clock has no choice but to fall behind.

The one fact everything hangs on

Here is the strange, experimentally ironclad fact that starts it all: the speed of light in empty space is the same for every observer, no matter how fast they are moving. Throw a ball forward from a moving train and its speed, to someone on the ground, is the train's speed plus the throw. Shine a flashlight forward from that train and its light does not come out at the train's speed plus the speed of light. It comes out at exactly , about 300,000 kilometers per second, for the person on the train and the person on the ground alike. This is the . It sounds like a small technicality. It is not. Something has to give, and what gives is time itself. Light is the electromagnetic wave from electromagnetic waves and light, and its fixed speed is the seed of everything below.

A clock made of light, and why moving slows it

The cleanest way to see time bend is to build a clock out of the one thing whose speed cannot change. Bounce a photon straight up between two mirrors; one round trip is one tick. Now set that whole clock moving sideways and watch it from the ground. Play with the widget: slide the clock's speed up and the photon, seen from the ground, has to travel a stretched diagonal instead of a straight up-and-down.

Two identical light clocks. Slide the right one up toward light speed and its photon has to cross a longer diagonal at the same speed c, so it ticks slower and falls behind. The triangle on the right is the entire proof.
at rest0 ticksmoving at 60% of c0 ticks1 ticklight pathv x t
dilation factor gamma = 1.25

Here is the trap springing shut. The diagonal path is longer. But the photon can only travel at - it cannot speed up to cover the extra distance in the same time. So the tick must take longer. From the ground, the moving clock ticks slower. This is not an illusion or a measurement error; the moving clock genuinely experiences less time. We call it .

The triangle in the widget is the entire proof, and it is just the Pythagorean theorem you already know. In one tick of the moving clock lasting a ground-time , the photon climbs the fixed mirror gap (call the still-clock tick , so that leg is ) while the clock slides sideways by . The diagonal the light actually travels is . A right triangle ties them together:

Solve for and the sideways motion inflates every tick by one clean factor, written (gamma). This part is derived, start to finish, from the picture:

The moving clock's tick t is gamma times the resting tick. At everyday speeds v is tiny next to c, gamma is 1.0000000..., and you never notice.

At walking speed differs from 1 in the fifteenth decimal place, which is why time feels absolute. At a GPS satellite's speed it differs just enough to matter, and that difference, multiplied by a day, is measured in microseconds.

Gravity bends time too

There is a second effect, and for GPS it is the bigger one. A clock deeper in a gravitational field - lower down, where gravity is stronger - runs slower than one higher up. This is , and it is a result of Einstein's general relativity that we will state rather than derive. A GPS satellite orbits about 20,000 kilometers up, where Earth's gravity is much weaker than at the ground. So its clock, from our point of view, runs faster than ours. Two effects, pulling opposite ways: its speed slows its clock, its altitude speeds it up.

The budget: two effects, one number, eleven kilometers

Switch the widget to the GPS tab. Here is the actual engineering ledger for a GPS satellite clock, per day, compared to a clock on the ground:

The GPS relativity budget (per day)

Weaker gravity up high (general relativity): the satellite clock gains about +45 microseconds.
Orbital speed (special relativity, the light clock above): it loses about -7 microseconds.
Net: the satellite clock runs about +38 microseconds per day fast.

Thirty-eight microseconds sounds like nothing. But GPS finds you by timing how long a signal takes to arrive and multiplying by the speed of light - distance equals , exactly the trilateration from orbits and GPS. Light travels about 30 centimeters in a nanosecond, so a clock error of 38 microseconds becomes a distance error of kilometers. Every day. The widget accumulates it live: leave the correction off and within roughly half a minute your position is already wrong by more than a car lane.

The fix is beautiful in its bluntness. The atomic clocks on GPS satellites are deliberately built to run slow on the ground, at 10.22999999543 MHz instead of a clean 10.23 MHz, so that once they are in orbit and speeding and high up, relativity nudges them to tick at exactly the right rate as seen from the ground. Relativity is not a correction bolted on afterward; it is machined into the hardware before launch.

The CS bridge: relativity is a distributed-systems problem

You already know that keeping clocks in sync across a distributed system is hard. GPS is the hardest version: the clocks are on spacecraft moving at different speeds and sitting at different gravitational potentials, so they drift apart by a systematic, predictable amount rather than random jitter. That is the good news for an engineer - a predictable skew can be modeled and removed exactly, which is precisely what the ground segment does.

C = 299_792_458          # speed of light, meters per second

net_drift_per_day = 38e-6  # seconds the satellite clock gains each day (45 - 7)

# position error is just how far light travels during the clock error
position_error_m = C * net_drift_per_day
print(round(position_error_m / 1000, 1))   # -> 11.4  kilometers per day

# time to blow past the ~5 m accuracy a car needs
rate_per_sec = net_drift_per_day / 86_400
print(round(5 / (C * rate_per_sec)))       # -> 38  seconds
The whole reason GPS cannot ignore relativity, in one calculation.

Lock it in

  • The speed of light is the same for every observer. Something has to bend to allow that, and it is time.
  • A moving light clock traces a longer diagonal at the same speed c, so it ticks slower by the factor gamma = 1 / sqrt(1 - v squared over c squared). The proof is one right triangle.
  • Clocks also run slower where gravity is stronger. For a GPS satellite, weak high-altitude gravity (+45 us/day) beats orbital speed (-7 us/day) for a net +38 us/day.
  • Since GPS turns time into distance with distance = c x time, +38 us/day would smear your position by about 11 km/day. The satellite clocks are pre-slowed so it never happens.

Check yourself

Net of both relativistic effects, a GPS satellite's clock compared to one on the ground runs:

In the light-clock argument, the moving clock ticks slower because the light:

Recall: how far would GPS drift per day without relativity, and what are the two effects and their signs?

The number and its two-part cause are the payoff of the whole lesson. Try to state it, then check.

Match each effect on a GPS satellite clock to its direction and size.

drop here

slows the clock, about -7 us/day

drop here

speeds the clock, about +45 us/day

drop here

about +38 us/day fast

drop here

about 11 km/day of position drift

Primary source

Richard Pogge, Real-World Relativity: The GPS Navigation System

A physicist walks through the exact GPS clock budget with the real numbers, showing how both special and general relativity combine into the 38 microseconds a day that would otherwise ruin the system. The clearest proof that relativity is engineering, not philosophy.

Sources

  1. 1.Richard Pogge, Real-World Relativity: The GPS Navigation System
  2. 2.The Feynman Lectures on Physics, Vol I, Ch 15-16 (The Special Theory of Relativity; Relativistic Energy and Momentum)

Where this connects

The distance-equals-time trilateration that relativity would corrupt is the one you built in orbits and GPS.[1] And the unbreakable speed limit c that forced time to bend is the same speed the light in electromagnetic waves and light always travels at.[2]