Formula: Gravitational Time Dilation Formula
- orbitalAltitudeKm: Satellite altitude above Earth’s surface in km (ISS LEO ≈ 400 km; GPS MEO = 20,180 km; Geostationary = 35,786 km).
Calculate GR gravitational clock speedup (+45.7 μs/d for GPS) and SR orbital slowdown (−7.2 μs/d).
The engine puts the ground clock on a perfect sphere at Earth's mean radius and does not give it the speed of Earth's rotation. Published GPS figures use the real geoid and include the ground station's motion, which pushes the gravitational term and the net result slightly higher. The difference is a modelling choice, not an arithmetic error, and amounts to well under one percent. For classroom use the engine's value is close enough.
It uses the first-order form, (GM/c²) × (1/R_E − 1/r). For Earth, 2GM/c² is under a centimetre, so √(1 − 2GM/(rc²)) differs from one by about a billionth and its linear expansion is accurate far beyond the precision shown. Using the exact square root would not change any digit the calculator prints.
No. The only input is altitude, and the engine assumes a circular orbit. It derives the speed from v² = GM/r, so lower orbits automatically get higher speeds. If your satellite is on an elliptical orbit, the speed at a given altitude will differ from the circular value and the velocity term here will be off.
When the orbit radius is one and a half Earth radii, which is half an Earth radius above the surface. Below that height the velocity slowdown is larger and the net drift is negative, as at the ISS altitude of 400 km. Above it gravity wins and the net drift is positive, as at the GPS default of 20,180 km.
The engine reports the absolute size of the ranging error, not its direction. At 400 km the net drift is -24.743 μs/day, and the range line shows 7.418 km/day. A slow clock and a fast clock both corrupt the distance measurement; only the sign of the error would differ, and the calculator shows the size.
Not in service. Their clocks are adjusted before launch to run slightly slow on the ground, so that the relativistic gain brings them back into step once in orbit. Ground control also monitors and steers them. The calculator shows the uncorrected drift, which is the size of the problem that adjustment solves.
The engine raises any value under 100 km to 100 km without showing a warning, then reports -28.679 μs/day. Below that height a stable circular orbit does not exist because the atmosphere would drag the satellite down quickly, so a lower figure would not describe anything physical.
From the surface. The engine adds Earth's radius to whatever you enter to get the orbital radius. If you type the orbital radius instead of the altitude, the clock ends up much further out than you meant and both the net drift and the range error come out too high.
Only roughly. The velocity term assumes orbital speed for that altitude, which is far faster than any aircraft, so at low heights the velocity slowdown would be wildly overstated. The gravitational term alone is still useful as an estimate, but the minimum altitude of 100 km rules out mountains and cruising heights entirely.
Both terms depend on one divided by the orbital radius, and that quantity changes less with every extra kilometre the further out you go. Moving from 20,180 km to 30,270 km adds about six microseconds a day; moving out to 35,786 km adds only about two more. Far from Earth, the net drift levels off.
No. The engine uses Earth's gravity alone and treats Earth as a uniform sphere. Tidal effects from the Moon and Sun, Earth's flattening and local gravity variations are all left out. They are much smaller than the two main terms but matter for precise timing work, which is why operational systems use fuller models.
A clock in orbit is affected by two separate pieces of relativity at once. Higher up, it sits shallower in Earth's gravity well, and general relativity says it ticks faster than an identical clock on the ground. At the same time it is moving fast around the planet, and special relativity says a moving clock ticks slower. This calculator works out each effect for a circular orbit at the altitude you enter and adds them.
With the default altitude of 20,180 km, roughly where GPS satellites fly, the gravitational term comes out at +45.713 μs/day and the velocity term at -7.216 μs/day. The net answer is +38.497 μs/day. In plain terms, an uncorrected satellite clock at that height would gain a little under 39 millionths of a second every day compared with a clock on the ground.
That sounds tiny. It is not tiny for navigation, because a GPS receiver turns time into distance by multiplying by the speed of light. The supporting line shows what the drift would mean as a ranging error: 11.541 km/day. A positioning system that wandered by more than eleven kilometres a day would be useless within hours, which is why the drift is corrected before the satellites ever launch.
The exact Schwarzschild result for a clock at rest at radius r is that it runs at a rate of √(1 − 2GM/(rc²)) relative to a clock very far away. For Earth, 2GM/c² is under a centimetre, so that square root is a hair below one at any altitude, and the difference between two clocks at two radii is extremely well approximated by its first-order expansion. That is what the engine uses: the fractional rate difference is (GM/c²) × (1/R_E − 1/r), with R_E the radius of the ground clock and r the radius of the orbit.
The engine takes GM for Earth as 3.986004418e14 m³/s² and c² as 8.98755179e16 m²/s². Dividing them gives about 4.435 mm, which is the characteristic length GM/c² for Earth. Multiply that by the difference in inverse radii and you get a pure number; multiply by the 86400 seconds in a day and by a million and you have microseconds per day. Done by hand for the default orbit, the chain lands on 45.713, matching the output.
Two simplifications sit inside this. The ground clock is placed on a perfect sphere at Earth's mean radius, and Earth's own rotation is not given to the ground clock. Published GPS figures, which use the actual geoid and include the ground station's motion, are usually quoted a little higher, near +45.9 μs/day for gravity and about +38.6 μs/day net. The calculator's slightly lower figures come from its simpler Earth model, not from an arithmetic slip.
You cannot enter a speed. The engine assumes a circular orbit, so the speed is fixed by the altitude: v² = GM/r. Lower orbits are faster. The special relativity slowdown is then -v²/(2c²), which for a circular orbit simplifies to -GM/(2rc²). At the default radius the orbital speed works out to roughly 3.87 km/s, and the slowdown to -7.216 μs/day.
This is why the two terms behave so differently as you change altitude. The gravitational speedup grows as you climb, because you are moving further out of the well. The velocity slowdown shrinks as you climb, because higher circular orbits are slower. Both changes push the net result upward with height, so the net drift rises steadily from low orbit to geostationary.
If you are modelling an elliptical orbit, a probe, or anything not in a circular path, this calculator does not apply directly. The speed at a given altitude would differ from the circular value and the velocity term would be wrong.
It is worth reproducing the default once, because it shows exactly which constants matter. First, the ground radius: the engine uses 6.371 × 10⁶ m. Adding the 20,180 km altitude gives an orbital radius of about 2.6551 × 10⁷ m.
Second, the inverse radii. One over the ground radius is about 1.5696 × 10⁻⁷ per metre, and one over the orbital radius is about 3.7663 × 10⁻⁸ per metre. Their difference is about 1.1930 × 10⁻⁷. Third, multiply by GM/c², about 4.435 × 10⁻³ m, which gives a fractional rate gain of roughly 5.291 × 10⁻¹⁰. Multiply by 86400 seconds and by a million, and the gravitational term is 45.71 μs/day.
Fourth, the velocity term. Divide 4.435 × 10⁻³ m by twice the orbital radius to get about 8.352 × 10⁻¹¹, then convert to a day in the same way: 7.22 μs/day of slowdown. Fifth, subtract: 45.71 minus 7.22 leaves 38.50 μs/day, which matches the 38.497 the calculator prints once you keep more decimals.
If your own figure comes out wildly different, the usual cause is mixing kilometres and metres in the radius, or adding the altitude to the radius in kilometres while keeping GM in metres. Every quantity in the chain must be in metres and seconds for the constants to work.
The Lower preset drops the satellite to 12,108 km. The gravitational speedup falls to +39.409 μs/day because the clock is deeper in the well, and the velocity slowdown grows to -10.368 μs/day because the orbit is faster. The net drift is +29.041 μs/day, about 8.706 km/day of ranging error if left alone.
The Higher preset raises it to 30,270 km. Gravity now gives +49.688 μs/day and velocity only -5.229 μs/day, for a net of +44.459 μs/day and a ranging error of 13.328 km/day. Running the geostationary altitude of 35,786 km yourself gives +51.056 and -4.545, for a net of +46.511 μs/day.
Notice the pattern across all four altitudes. The net drift keeps rising, but more slowly the higher you go. That is because both terms depend on 1/r, and 1/r changes less and less as r grows. Far out, the gravitational term approaches a ceiling set by the ground clock's own position, and the velocity term approaches zero.
Enter 400 km, close to the altitude of the International Space Station, and the answer turns negative: -24.743 μs/day. The gravitational speedup is only +3.553 μs/day because the station is barely above the surface, while the velocity slowdown is -28.296 μs/day because low orbits are fast. For a clock that low, motion wins.
There is a crossover altitude where the two cancel. Setting GM/c² × (1/R_E − 1/r) equal to GM/(2rc²) and solving gives r = 1.5 × R_E, so the crossover sits half an Earth radius above the surface. Below it, orbiting clocks run slow relative to the ground; above it, they run fast. GPS orbits are far above that line, which is why their net correction is positive.
The calculator will not go lower than 100 km. Anything smaller is raised to 100 without a message, where it reports -28.679 μs/day. Below that height a circular orbit is not physically sustainable anyway because of atmospheric drag.
The third supporting line converts the net clock drift into distance by multiplying by the speed of light. Light covers about 0.29979 km in a microsecond, so 38.497 μs/day becomes 11.541 km/day. The engine reports the absolute value here, so a negative drift at low altitude still shows as a positive distance: 7.418 km/day at the ISS height.
This figure is a teaching number, not a real error budget. In practice satellite clocks are deliberately set to tick slightly slow before launch so that, once in orbit, they match ground time on average. Receivers also apply a separate small correction for orbital eccentricity, and the whole system is steered continuously by ground stations. What the km/day line shows is how fast things would fall apart if none of that were done.
It also assumes the clock error translates one for one into a range error along a single line of sight. A real position fix combines signals from several satellites, so the effect on a reported position would not simply be this number. It would still be enormous.
The cleanest use of this tool is to show students that relativity has a measurable everyday consequence. Run the default, then 400 km, then the geostationary altitude, and the sign change and the rising curve tell the story without any extra explanation. The numbers are close enough to the published GPS values that a textbook comparison works.
If you need precision better than about one percent, do not use this calculator as the final source. The mean-radius Earth, the missing ground rotation and the circular-orbit assumption each move the answer by a small amount. For a homework problem that uses the same simplifications, it will match. For a satellite design, an orbit propagation tool with a proper gravity model and ground-station coordinates is the right instrument.
One more practical point: the altitude box takes kilometres above the surface, not the orbital radius measured from Earth's centre. Entering the radius for the GPS orbit by mistake would put the clock more than 6 thousand km higher than intended and overstate both the net drift and the range error.