Gravitational Time Dilation Calculator – Relativity Tool

Compare the rates of stationary clocks at different radii and identify the assumptions behind the gravitational model.

Quick Answer

Physics note: this tool uses the Schwarzschild gravitational time dilation model for a non-rotating, spherical mass.

Two clocks at different heights on a mountain contour model
Free Relativity Physics Tool

Gravitational Time Dilation Calculator

Use this Gravitational Time Dilation Calculator to estimate how gravity changes the rate at which time passes. Calculate Schwarzschild time dilation near Earth, planets, stars, compact objects, and black-hole-like masses; compare two radial positions; estimate altitude-based clock differences near Earth; and convert elapsed time into proper time, lost time, and time-rate ratios.

Calculate Gravitational Time Dilation

Select a mode, enter mass, radius, altitude, or elapsed time, then calculate the difference between far-away coordinate time and local proper time.

Physics note: this tool uses the Schwarzschild gravitational time dilation model for a non-rotating, spherical mass. It is best for education and idealized calculations, not precision GPS engineering or full general-relativity modeling.

What Is a Gravitational Time Dilation Calculator?

A Gravitational Time Dilation Calculator is a physics tool that estimates how the strength of gravity affects the rate at which time passes. In general relativity, time is not absolute. A clock deeper in a gravitational field ticks more slowly than a clock farther away from the massive object. This effect is called gravitational time dilation.

The calculator on this page uses the Schwarzschild time dilation equation for a non-rotating, spherical mass. It can estimate time dilation near Earth, the Sun, the Moon, Jupiter, a sample neutron star, or any custom mass. It can also compare two clocks at different distances from the same center of mass. For Earth-based learning, it includes an altitude mode that compares a clock at Earth’s surface with a clock at a selected height above the surface. Use the mass–energy equivalence calculator to calculate rest energy from mass.

Gravitational time dilation is one of the most important predictions of Einstein’s general theory of relativity. It is not science fiction. Precision clocks can detect tiny time differences caused by altitude changes. Satellites experience relativistic clock effects that must be accounted for in high-precision timing systems. Near very compact objects such as neutron stars and black holes, the effect becomes much stronger. Use the relativistic kinetic energy calculator to compare the high-speed energy with the classical estimate.

This tool is built for students, teachers, physics learners, astronomy writers, relativity lessons, and science websites. It gives a numerical result and explains the formulas behind the answer. It is not a complete general-relativity simulator. Real gravitational systems may involve rotation, charge, non-spherical mass distributions, orbital motion, velocity-based special relativistic time dilation, tidal effects, and coordinate-system choices. This calculator focuses on the standard Schwarzschild gravitational component.

How to Use the Gravitational Time Dilation Calculator

Choose Single Radius when you want to calculate how much time passes for a clock located at a distance \(r\) from the center of a spherical mass. Select a preset such as Earth or Sun, or choose custom mass. Enter the radius from the center of the object, not height above the surface. Enter a far-away elapsed time, such as one day or one year. The calculator returns the local proper time and the difference between far-away time and local time.

Choose Compare Two Clocks when you want to compare two radial positions around the same central mass. For example, you can compare a clock at Earth’s surface with a clock 1,000 kilometers above Earth. The calculator computes the time-rate factor at both locations and estimates how much the two clocks differ over the selected duration.

Choose Earth Altitude when you want a simpler Earth-based calculation. Enter altitude above Earth’s surface and a duration. The calculator can use the exact Schwarzschild comparison or the small-height approximation \(gh/c^2\). The approximation is useful when the altitude is small compared with Earth’s radius, while the exact mode is better for larger altitude changes.

Always check the radius safety result. The Schwarzschild formula contains the term \(1-\frac{2GM}{rc^2}\). If the radius is less than or equal to the Schwarzschild radius, the simple static-clock formula no longer returns a normal real-valued outside-clock result. The calculator warns you when the entered radius is inside or too close to the event-horizon boundary.

Gravitational Time Dilation Calculator Formulas

The main Schwarzschild gravitational time dilation formula is:

Schwarzschild gravitational time dilation
\[\Delta \tau=\Delta t\sqrt{1-\frac{2GM}{rc^2}}\]

Here, \(\Delta \tau\) is proper time measured by the local clock near the mass, \(\Delta t\) is coordinate time measured far from the gravitational field, \(G\) is the gravitational constant, \(M\) is the central mass, \(r\) is radial distance from the center of mass, and \(c\) is the speed of light.

Time dilation factor
\[f=\sqrt{1-\frac{2GM}{rc^2}}\]

The local clock ticks at the fraction \(f\) of the far-away clock rate. If \(f\) is close to 1, the gravitational time dilation is small. If \(f\) is much less than 1, the local clock runs much more slowly compared with a far-away observer.

Schwarzschild radius
\[r_s=\frac{2GM}{c^2}\]

The Schwarzschild radius marks the event horizon for an ideal non-rotating black hole. The time dilation factor can also be written as:

Time dilation using Schwarzschild radius
\[f=\sqrt{1-\frac{r_s}{r}}\]

For comparing two clocks at radii \(r_1\) and \(r_2\), the clock-rate ratio is:

Two-clock comparison
\[\frac{d\tau_1}{d\tau_2}=\frac{\sqrt{1-\frac{2GM}{r_1c^2}}}{\sqrt{1-\frac{2GM}{r_2c^2}}}\]

For small height differences near Earth, a useful approximation is:

Small-height Earth approximation
\[\frac{\Delta t}{t}\approx\frac{gh}{c^2}\]

Proper Time vs Coordinate Time

Proper time is the time measured by a clock that travels along a specific path through spacetime. In this calculator, proper time is the time measured by the local clock at radius \(r\). Coordinate time is the time assigned by a far-away observer using a chosen coordinate system. In the Schwarzschild model, a distant observer far from the mass is used as the reference.

The formula \(\Delta \tau=\Delta t\sqrt{1-\frac{2GM}{rc^2}}\) means the local proper time is smaller than far-away coordinate time when the local clock is in a gravitational field. For weak fields, the difference is tiny. Near Earth, one day of far-away coordinate time differs from surface proper time by only a very small fraction. Near a compact object, the difference can become dramatic.

This is not because the clock is mechanically broken. A properly built clock near a massive object still measures time normally for a local observer next to it. The effect appears when comparing clocks at different gravitational potentials. Each local observer feels their own clock ticking normally, but distant comparisons reveal that gravity changes clock rates.

Schwarzschild Radius and Event Horizon

The Schwarzschild radius is the radius at which the escape speed of an ideal non-rotating, uncharged mass reaches the speed of light. For a black hole, it marks the event horizon. The formula is \(r_s=\frac{2GM}{c^2}\). The larger the mass, the larger the Schwarzschild radius.

For ordinary planets and stars, the physical surface is far outside the Schwarzschild radius. Earth’s Schwarzschild radius is only about a few millimeters, while Earth’s actual radius is about 6,371 kilometers. That is why gravitational time dilation at Earth’s surface is real but small. For neutron stars, the physical radius can be only a few times larger than the Schwarzschild radius, so time dilation is much stronger. For black holes, the event horizon is exactly where the simple outside static-clock factor tends toward zero.

This calculator checks whether the entered radius is greater than the Schwarzschild radius. If \(r\le r_s\), the standard outside-clock formula is not valid for a stationary observer. Near the event horizon, the model also becomes sensitive to interpretation, because static hovering requires extreme acceleration as \(r\) approaches \(r_s\).

Earth Altitude and Clock Differences

Near Earth, clocks at higher altitude tick slightly faster than clocks at lower altitude because they are farther from Earth’s center and experience a weaker gravitational potential. The difference is extremely small for everyday heights but measurable with precise atomic clocks. This is one reason relativity matters in precise timekeeping.

The altitude mode compares Earth’s surface radius with Earth’s radius plus altitude. It can use the exact Schwarzschild factors or the small-height approximation. For small altitudes, the fractional difference is approximately \(gh/c^2\), where \(g\) is gravitational acceleration near Earth’s surface and \(h\) is height. This gives a simple way to estimate why a clock on a mountain ticks slightly faster than a clock at sea level.

The approximation is strongest when \(h\) is small compared with Earth’s radius. For satellites, large altitude differences, or high-precision work, more complete models must account for orbital motion, Earth’s rotation, Earth’s non-spherical shape, gravitational potential variations, and special relativistic effects caused by velocity.

Gravitational Time Dilation Examples

Example 1: Clock at Earth’s surface. Using Earth’s mass and radius, the time dilation factor is extremely close to 1:

Earth surface time dilation factor
\[f=\sqrt{1-\frac{2GM_{\oplus}}{R_{\oplus}c^2}}\]

The clock at Earth’s surface runs slightly slower than a clock far away from Earth’s gravitational field. The difference over one day is very small, but it is not zero.

Example 2: Higher altitude clock. A clock placed above Earth’s surface is farther from Earth’s center, so its time dilation factor is closer to 1. That means it ticks slightly faster than a clock at the surface.

Altitude comparison
\[\Delta f\approx\frac{gh}{c^2}\]

Example 3: Near a compact object. If a clock is located at \(r=3r_s\), the Schwarzschild factor is:

Compact object example
\[f=\sqrt{1-\frac{r_s}{3r_s}}=\sqrt{\frac{2}{3}}\approx0.816\]

This means the local clock ticks at about 81.6% of the far-away coordinate-time rate. The effect is far stronger than the weak gravitational field near Earth.

ScenarioExpected EffectReason
Earth surfaceVery small time slowingEarth’s radius is much larger than its Schwarzschild radius.
High mountainClock ticks slightly faster than sea levelHigher altitude means weaker gravitational potential.
Near neutron starStrong time dilationMass is compressed into a small radius.
Near black-hole horizonExtreme time dilation in the outside coordinate modelRadius approaches the Schwarzschild radius.

Accuracy and Limitations

This calculator is an educational general-relativity calculator. It uses the Schwarzschild metric for a non-rotating, spherical, uncharged mass. That model is important and widely taught, but it is not the full story for every real object. Earth rotates, is not perfectly spherical, and has gravitational variations. Satellites also move quickly, so special relativistic time dilation from velocity must be included for precise timing. Use the relativistic velocity addition to combine speeds measured in different inertial frames.

The calculator does not model Kerr black holes, frame dragging, charged black holes, gravitational waves, expanding-universe cosmology, arbitrary spacetime metrics, or full GPS correction chains. It also does not provide navigation, aerospace, engineering, or mission-planning results. It is designed to explain the core gravitational time dilation relationship clearly.

For classroom and conceptual physics, the outputs are useful for understanding why clocks tick at different rates in different gravitational potentials. For professional relativity, satellite timing, metrology, astrophysics, or engineering, use validated models and expert review. Use the special relativity calculator to compare relativistic energy and timing under the same speed assumption.

Gravitational Time Dilation Calculator FAQs

What does a Gravitational Time Dilation Calculator do?

It estimates how much slower or faster a clock ticks in a gravitational field compared with another clock farther from the mass.

What is the gravitational time dilation formula?

The Schwarzschild formula is \(\Delta \tau=\Delta t\sqrt{1-\frac{2GM}{rc^2}}\), where \(M\) is mass and \(r\) is distance from the center.

Does time run slower near Earth?

Yes. A clock closer to Earth’s center runs slightly slower than a clock farther away, although the everyday difference is extremely small.

Why do higher-altitude clocks tick faster?

Higher-altitude clocks are farther from Earth’s center and experience a weaker gravitational potential, so they tick slightly faster than lower-altitude clocks.

What is Schwarzschild radius?

It is \(r_s=\frac{2GM}{c^2}\). For an ideal non-rotating black hole, this radius marks the event horizon.

Can this calculator be used for GPS corrections?

No. GPS timing requires gravitational and velocity-based relativistic corrections plus detailed orbital and Earth-model calculations.

Important Note

This Gravitational Time Dilation Calculator is for educational physics and general relativity learning only. It is not aerospace guidance, GPS engineering software, navigation advice, mission-planning software, or a substitute for validated scientific computation.

Advertisement

Use radius measured from the centre

Imagine one stationary clock on an ideal spherical planet and another on a platform one kilometre above it. The lower clock’s radius is the planet’s radius. The upper clock’s radius is that radius plus one kilometre. Entering one kilometre alone would put the second clock deep inside the planet and outside the intended exterior model. Under the stated assumptions, the clock farther from the centre runs faster when the readings are compared. A small difference in clock rates accumulates with elapsed time, so distinguish a fractional rate from a time difference in seconds.

The History of Gravitation

The earliest philosophers wondered why objects naturally tend to fall toward the ground. Aristotle (384–322 BCE) believed that it was the nature of rocks to seek Earth and the nature of fire to seek the Heavens. Brahmagupta (598~665 CE) postulated that Earth was a sphere and that objects possessed a natural affinity for it, falling toward the center from wherever they were located.
The motions of the Sun, our Moon, and the planets have been studied for thousands of years as well. These motions were described with amazing accuracy by Ptolemy (90–168 CE), whose method of epicycles described the paths of the planets as circles within circles. However, there is little evidence that anyone connected the motion of astronomical bodies with the motion of objects falling to Earth—until the seventeenth century.
The idea of heliocentrism, in which the Sun is at the center of the solar system, dates at least as far back as Aristarchus of Samos in the third century BCE, but attracted little attention, and Ptolemy’s geocentric (Earth-centered) model held sway in Europe until the sixteenth century. Nicolaus Copernicus (1473–1543) is generally credited as being the first to produce a mathematical model of a heliocentric system and to challenge Ptolemy’s geocentric system. This idea was supported by the incredibly precise naked-eye measurements of planetary motions by Tycho Brahe and their analysis by Johannes Kepler and Galileo Galilei. Kepler showed that the motion of each planet is an ellipse (the first of his three laws, discussed in Kepler’s Laws of Planetary Motion), and Robert Hooke (the same Hooke who formulated Hooke’s law for springs) intuitively suggested that these motions are due to the planets being attracted to the Sun. However, it was Isaac Newton who connected the acceleration of objects near Earth’s surface with the centripetal acceleration of the Moon in its orbit about Earth.
Other prominent scientists and mathematicians of the time, particularly those outside of England, were reluctant to accept Newton's principles. It took the work of another prominent philosopher, writer, and scientist, Émilie du Châtelet, to establish the Newtonian gravitation as the accurate and overarching law. Du Châtelet, who had earlier laid the foundation for the understanding of conservation of energy as well as the principle that light had no mass, translated and augmented Newton's key work. She also utilized calculus to explain gravity, which helped lead to its acceptance.
Finally, in Einstein’s Theory of Gravity, we look at the theory of general relativity proposed by Albert Einstein in 1916. His theory comes from a vastly different perspective, in which gravity is a manifestation of mass warping space and time. The consequences of his theory gave rise to many remarkable predictions, essentially all of which have been confirmed over the many decades following the publication of the theory (including the 2015 measurement of gravitational waves from the merger of two black holes).

Newton’s Law of Universal Gravitation

Newton noted that objects at Earth’s surface (hence at a distance of RE from the center of Earth) have an acceleration of g, but the Moon, at a distance of about 60RE, has a centripetal acceleration about (60)2 times smaller than g. He could explain this by postulating that a force exists between any two objects, whose magnitude is given by the product of the two masses divided by the square of the distance between them. We now know that this inverse square law is ubiquitous in nature, a function of geometry for point sources. The strength of any source at a distance r is spread over the surface of a sphere centered about the mass. The surface area of that sphere is proportional to r2. In later chapters, we see this same form in the electromagnetic force.
As shown in diagram, the F→12 vector points from object 1 toward object 2, and hence represents an attractive force between the objects. The equal but opposite force F→21 is the force on object 2 exerted by object 1.
The figure shows two circular objects, one smaller, labeled as mass m1 on the lower left, and the larger one labeled m2 on the upper right. The center of each object is labeled C M. A line is drawn joining the center of the objects and is labeled as r. Two red arrows and two black arrows, one each from the center of each object, are drawn toward each other. The black arrow from the center of mass 1 is labeled r hat 1 2 and the red arrow from mass 1 is labeled F 1 2. The black arrow from the center of mass 2 is labeled r hat 2 1 and the red arrow from mass 2 is labeled F 2 1.
Gravitational force acts along a line joining the centers of mass of two objects.
These equal but opposite forces reflect Newton’s third law, which we discussed earlier. Note that strictly speaking, equation applies to point masses—all the mass is located at one point. But it applies equally to any spherically symmetric objects, where r is the distance between the centers of mass of those objects. In many cases, it works reasonably well for nonsymmetrical objects, if their separation is large compared to their size, and we take r to be the distance between the center of mass of each body.

The Cavendish Experiment

A century after Newton published his law of universal gravitation, Henry Cavendish determined the proportionality constant G by performing a painstaking experiment. He constructed a device similar to that shown in diagram, in which small masses are suspended from a wire. Once in equilibrium, two fixed, larger masses are placed symmetrically near the smaller ones. The gravitational attraction creates a torsion (twisting) in the supporting wire that can be measured.
The constant G is called the universal gravitational constant and Cavendish determined it to be G=6.67×10−11N·m2/kg2. The word ‘universal’ indicates that scientists think that this constant applies to masses of any composition and that it is the same throughout the Universe. The value of G is an incredibly small number, showing that the force of gravity is very weak. The attraction between masses as small as our bodies, or even objects the size of skyscrapers, is incredibly small. For example, two 1.0-kg masses located 1.0 meter apart exert a force of 6.7×10−11N on each other. This is the weight of a typical grain of pollen.
The figure illustrates the Cavendish experiment. A horizontal bar, centered on a stand, supports two spheres of mass M, one at either of its ends. The point where the bar sits on the stand is labeled "pivot". Just over this bar is a stick holding two spherical objects of mass m, one mass at either of its ends. This bar is suspended from a mirror at the center of the device facing to the right. The mirror is suspended from a fiber. The rotation of the fiber over the axis of the stand is counter-clockwise. A light source on the right side of the device emits a ray of light toward the mirror which is then reflected toward a scale bar which is on the right to the device below the light source.
Cavendish used an apparatus similar to this to measure the gravitational attraction between two spheres (m) suspended from a wire and two stationary spheres (M). This is a common experiment performed in undergraduate laboratories, but it is quite challenging. Passing trucks outside the laboratory can create vibrations that overwhelm the gravitational forces.
Although gravity is the weakest of the four fundamental forces of nature, its attractive nature is what holds us to Earth, causes the planets to orbit the Sun and the Sun to orbit our galaxy, and binds galaxies into clusters, ranging from a few to millions. Gravity is the force that forms the Universe.

A Collision in Orbit

Consider two nearly spherical Soyuz payload vehicles, in orbit about Earth, each with mass 9000 kg and diameter 4.0 m. They are initially at rest relative to each other, 10.0 m from center to center. (As we will see in Kepler’s Laws of Planetary Motion, both orbit Earth at the same speed and interact nearly the same as if they were isolated in deep space.) Determine the gravitational force between them and their initial acceleration. Estimate how long it takes for them to drift together, and how fast they are moving upon impact.

Strategy

We use Newton’s law of gravitation to determine the force between them and then use Newton’s second law to find the acceleration of each. For the estimate, we find the final acceleration as well and assume the acceleration is constant at its average value, and we use the constant-acceleration equations from Motion along a Straight Line to find the time and speed of the collision.

Solution

The magnitude of the force is
|F→12|=F12=Gm1m2r2=6.67×10−11N·m2/kg2(9000kg)(9000kg)(10m)2=5.4×10−5N.
The initial acceleration of each payload is
a=Fm=5.4×10−5N9000kg=6.0×10−9m/s2.
The vehicles are 4.0 m in diameter, so the vehicles move from 10.0 m to 4.0 m apart, or a distance of 3.0 m each. A similar calculation to that above, for when the vehicles are 4.0 m apart, yields an acceleration of 3.8×10−8m/s2, and the average of these two values is 2.2×10−8m/s2. If we assume a constant acceleration of this value and they start from rest, then the vehicles collide with speed given by
v2=v02+2a(x−x0),wherev0=0,
so
v=2(2.2×10−9m/s2)(3.0m)=3.6×10−4m/s.
We use v=v0+at to find t=v/a=1.7×104s or about 4.6 hours.

Significance

These calculations—including the initial force—are only estimates, as the vehicles are probably not spherically symmetrical. But you can see that the force is incredibly small. Astronauts must tether themselves when doing work outside even the massive International Space Station (ISS), as in diagram, because the gravitational attraction cannot save them from even the smallest push away from the station.
A photo of an astronaut on a spacewalk is shown.
This photo shows Ed White tethered to the Space Shuttle during a spacewalk. (credit: NASA)
The effect of gravity between two objects with masses on the order of these space vehicles is indeed small. Yet, the effect of gravity on you from Earth is significant enough that a fall into Earth of only a few feet can be dangerous. We examine the force of gravity near Earth’s surface in the next section.

Attraction between Galaxies

Find the acceleration of our galaxy, the Milky Way, due to the nearest comparably sized galaxy, the Andromeda galaxy (diagram). The approximate mass of each galaxy is 800 billion solar masses (a solar mass is the mass of our Sun), and they are separated by 2.5 million light-years. (Note that the mass of Andromeda is not so well known but is believed to be slightly larger than our galaxy.) Each galaxy has a diameter of roughly 100,000 light-years (1light-year=9.5×1015m).
A photograph of the Andromeda galaxy is shown.
Galaxies interact gravitationally over immense distances. The Andromeda galaxy is the nearest spiral galaxy to the Milky Way, and they will eventually collide. (credit: Boris Štromar)

Strategy

As in the preceding example, we use Newton’s law of gravitation to determine the force between them and then use Newton’s second law to find the acceleration of the Milky Way. We can consider the galaxies to be point masses, since their sizes are about 25 times smaller than their separation. The mass of the Sun (see Appendix D) is 2.0×1030kg and a light-year is the distance light travels in one year, 9.5×1015m.

Solution

The magnitude of the force is
F12=Gm1m2r2=(6.67×10−11N·m2/kg2)[(800×109)(2.0×1030kg)]2[(2.5×106)(9.5×1015m)]2=3.0×1029N.
The acceleration of the Milky Way is
a=Fm=3.0×1029N(800×109)(2.0×1030kg)=1.9×10−13m/s2.

Significance

Does this value of acceleration seem astoundingly small? If they start from rest, then they would accelerate directly toward each other, “colliding” at their center of mass. Let’s estimate the time for this to happen. The initial acceleration is ~10−13m/s2, so using v=at, we see that it would take ~1013s for each galaxy to reach a speed of 1.0 m/s, and they would be only ~0.5×1013m closer. That is nine orders of magnitude smaller than the initial distance between them. In reality, such motions are rarely simple. These two galaxies, along with about 50 other smaller galaxies, are all gravitationally bound into our local cluster. Our local cluster is gravitationally bound to other clusters in what is called a supercluster. All of this is part of the great cosmic dance that results from gravitation, as shown in diagram.
An illustration of the Milky Way galaxy, the Andromeda galaxy (M31), shown above and to the left of the Milky Way, and the Triangulum galaxy (M33) shown above the Andromeda galaxy. The sun is labeled in the Milky way. Arrows pointing from the Milky way toward Andromeda and from Andromeda to the Milky way meet between the two galaxies and are labeled "collision in 4 billion years."
Based on the results of this example, plus what astronomers have observed elsewhere in the Universe, our galaxy will collide with the Andromeda Galaxy in about 4 billion years. (credit: modification of work by NASA; ESA; A. Feild and R. van der Marel, STScI)