Time Dilation Calculator — Moving Clocks and Deep Clocks
Two clocks that start together and meet again do not have to agree. This time dilation calculator works out by how much, for both reasons it happens: special relativistic dilation, where a clock moving past you ticks slow by the Lorentz factor γ = 1/√(1 − v²/c²), and gravitational time dilation, where a clock deeper in a potential well ticks slow by √(1 − 2GM/rc²). Six modes cover the problems these produce: a moving clock, a deep clock, a satellite that is both at once, the inverse question, a twin-paradox trip plan, and the cosmic-ray muon.
The Lorentz factor, and one number worth checking
At 0.87c the arithmetic runs: 0.87² = 0.7569, 1 − 0.7569 = 0.2431, √0.2431 = 0.49305, and so γ = 2.0281848. Over one Julian year of the traveller's time the stay-at-home observer measures 2.0281848 years, a difference of 375.544 days. The moving clock runs slow by (1 − 1/γ) × 100 = 50.6948 %, and a 100 m rod carried aboard measures 49.305 m to the observer it flies past. Several printed worksheets give 2.0278 here, which propagates into a 375.34-day answer; the tool implements the formula rather than carrying a rounded number forward.
Gravitational dilation and the Schwarzschild radius
Earth's Schwarzschild radius is r_s = 2GM/c² = 8.870 mm. Divided by the 6371 km surface radius that is 1.392 × 10⁻⁹, so the gravitational factor is 0.999999999304 and a sea-level clock loses 22.0 ms per yearagainst one infinitely far away. On the Sun's photosphere the same calculation gives about 67 seconds a year — the gravitational redshift Einstein predicted in 1911, since a radiating atom is itself a clock. Leave the second-radius box blank to compare against infinity, or fill it in to compare two real altitudes directly.
Why GPS needs both effects at once
A GPS satellite at r = 26 560 km is moving fast, which slows its clock, and sitting high in a weaker field, which speeds it up. The second effect wins. From a two-radius Schwarzschild model with dτ/dt = √(1 − r_s/r − v²/c²) and a 6371 km ground station, speed contributes −7.213 µs/day, altitude contributes +45.717 µs/day, and the net is +38.504 µs/day. Left uncorrected that is about 11 km of positioning error accumulated every day, which is why the satellite oscillators are deliberately detuned before launch.
The precision problem, and how it is solved
Every result on this page is a deviation from one. For an airliner at 900 km/h, γ − 1 is 3.5 × 10⁻¹³. Computing γ and then subtracting 1 destroys that number: a double has about sixteen significant digits, and the leading 1 consumes most of them. The usual workaround is a series expansion, but there is something better — the exact identity
1 − √(1 − x) ≡ x / (1 + √(1 − x))
which holds for every xfrom 0 to 1, has no cancellation anywhere, and needs no threshold to switch on. The numerator is the input untouched; the denominator sits near 2 and dilutes the square root's rounding rather than amplifying it. Pass β² for the kinematic case, r_s/r for the gravitational one, or r_s/r + β² for both together. Everything else — γ − 1, 1 − 1/γ, the satellite drift — is derived from that single function by exact algebra, so no two panels can disagree.
The twin paradox and the muon
A round trip to Proxima Centauri, 4.37 light-years away at 0.5c, takes 17.480 years of Earth time and 15.138 years aboard, an age gap of 2.342 years. The situation is not symmetric because the traveller turns round and changes inertial frames; the stay-at-home twin never does. The same γ explains why cosmic-ray muons reach sea level: with a rest-frame lifetime of 2.197 µs at 0.9994c, γ = 28.872 stretches the lab-frame lifetime to 63.43 µs and the mean travel distance to 19.005 km. Classically they would manage 658 m and never arrive.
Reading the results honestly
The inverse mode answers the science-fiction question directly: γ = 10, one shipboard year per decade at home, needs β = 0.994987. Trip figures assume a constant cruise speed with no acceleration phase, so they are a lower bound on the traveller's ageing. Particle lifetimes are means, not limits — decay is exponential, and a good fraction of any beam survives several times longer. The relativistic energy rows appear only once you supply a rest mass, because E = γm₀c² needs one and the tool will not invent it.