A satellite clock is pulled two opposite ways by relativity. Special relativity slows a fast-moving clock; general relativity speeds up a clock sitting in a weaker gravitational field. For a circular orbit of radius r around a body of mass M, orbital speed is v = √(GM/r), and the two fractional rate shifts (satellite relative to a clock fixed on the ground at Earth's radius R) combine to:
Δ(dτ/dt) ≈ (GM/c²)·[ 1/R − 3/(2r) ]
SR term: −v²/(2c²) (motion → clock runs slow)
GR term: +GM/c²·(1/R − 1/r) (altitude → clock runs fast)
At the GPS altitude (r ≈ 26,560 km from Earth's centre) the GR term wins: satellite clocks gain about +38 μs/day net. Below the crossover radius r = 1.5·R (about 3,185 km altitude) the SR term wins instead — this is why ISS clocks (400 km altitude) run very slightly slow relative to the ground, while GPS and geostationary clocks run fast.
- Altitude slider — moves the satellite's circular orbit and recomputes v, the SR term and the GR term live.
- Simulation speed — how many simulated days pass per real second, so drift accumulates fast enough to watch.
- Pre-launch correction — real GPS satellite clocks are manufactured to tick 38 μs/day slow before launch, cancelling the net drift exactly at the design altitude. Toggle it to compare corrected vs. uncorrected accumulation.
- Navigation error — GPS timing converts directly to position via distance = c·Δt; 1 μs of uncorrected clock error is already ≈ 300 m of position error, which is why an uncorrected receiver drifts roughly 11 km per day.