Gravitational Redshift Calculator
- The Schwarzschild radius of a 1 solar-mass body is rs = 2 G M / c^2 = 2.95 km, against a physical radius of 696,000 km.
- The compactness rs / R is 4.24 x 10^-6, and the exact redshift is z = (1 - rs / R)^(-1/2) - 1 = 2.12 x 10^-6.
- Light leaving the surface is stretched by that factor: a line emitted at 500 nm is observed at 500.0011 nm.
- Read as a Doppler shift, z corresponds to a recession velocity of 0.64 km/s; the weak-field approximation z = G M / (R c^2) works only when rs is far smaller than R.
This gravitational redshift calculator tells you how much light stretches as it climbs out of a gravitational field. Enter a mass and a radius, and it returns the redshift z along with the shifted wavelength and the equivalent recession velocity. The differences are real but often tiny: light leaving the Sun's surface is redshifted by z = 2.12 x 10^-6, so a 500 nm line arrives at 500.0011 nm. That is no surprise, since the Sun's Schwarzschild radius is just 2.95 km against its 696,000 km physical radius. Move to a compact object and the effect grows sharply. Sirius B, a white dwarf, has z = 2.57 x 10^-4, an equivalent recession velocity of 77.08 km/s. A neutron star of 1.4 solar masses and 10 km radius reaches z = 3.06 x 10^-1, moving a 500 nm line to 652.9169 nm, with an equivalent recession velocity of 91,687 km/s, a large fraction of light speed.
The calculator uses the exact formula, z = (1 - rs / R)^(-1/2) - 1, where rs is the Schwarzschild radius and R the radius at which the light is emitted. This expression is the accepted standard for gravitational redshift because it follows from the geometry of spacetime around a spherical mass and remains valid as the field becomes strong. The weak-field version, z = GM / (Rc^2), is simpler but fails for neutron stars, where it cannot reproduce the results above. This page shows the formula, step-by-step workings, worked examples and sources, so you can check every number yourself.
Worked examples
The Sun
(1 solar masses · 696000 km)
| Gravitational redshift z | 2.12 x 10^-6 |
| Schwarzschild radius of the body | 2.95 km |
| A 500 nm spectral line is observed at | 500.0011 nm |
| Equivalent recession velocity cz | 0.64 km/s |
Sirius B, a white dwarf
(1.018 solar masses · 5850 km)
| Gravitational redshift z | 2.57 x 10^-4 |
| Schwarzschild radius of the body | 3.01 km |
| A 500 nm spectral line is observed at | 500.1286 nm |
| Equivalent recession velocity cz | 77.08 km/s |
A neutron star
(1.4 solar masses · 10 km)
| Gravitational redshift z | 3.06 x 10^-1 |
| Schwarzschild radius of the body | 4.14 km |
| A 500 nm spectral line is observed at | 652.9169 nm |
| Equivalent recession velocity cz | 91,687 km/s |
How gravitational redshift is calculated
A gravitational redshift calculator starts with two numbers: how much mass is packed inside an object and how far its surface sits from the center. From those, it finds the Schwarzschild radius, the distance at which the escape velocity would equal the speed of light. The Sun makes a good first example because its numbers are so lopsided. Its Schwarzschild radius is just 2.95 km, while its physical radius is 696,000 km. Dividing one by the other gives a compactness of roughly 4.2 x 10^-6 — a tiny fraction, which tells you the redshift will be small too.
The exact formula turns that compactness into a redshift: z = (1 - rs / R)^(-1/2) - 1, where rs is the Schwarzschild radius and R is the physical radius. Plug in the Sun's values and you get z = 2.12 x 10^-6. In practice, that means a spectral line at 500 nm is stretched to 500.0011 nm — a shift of about a thousandth of a nanometer. Real instruments can measure shifts that small, which is how the effect was confirmed in the Sun's spectrum long before it was seen anywhere else.
The same calculation scales up dramatically for denser objects. Sirius B, a white dwarf, has z = 2.57 x 10^-4, which corresponds to an equivalent recession velocity of 77.08 km/s. A neutron star with 1.4 solar masses squeezed into a 10 km radius reaches z = 3.06 x 10^-1. That moves a 500 nm line all the way to 652.9169 nm, and the equivalent recession velocity is 91,687 km/s — a large fraction of light speed. The exact square-root formula handles all of these cases, which is why a good gravitational redshift calculator uses it rather than a shortcut.
The weak-field version, z = GM / (Rc^2), is easier to write down and works fine for the Sun and even for white dwarfs. But it fails for neutron stars, where the gravitational field is strong enough that the approximation breaks down and the predicted shift drifts away from the true value. Since the exact formula costs nothing extra to compute, there is no reason to use the weak-field version in a calculator — it only invites errors on the most interesting objects.
Worked examples: Sun, white dwarf, neutron star
The cleanest way to understand gravitational redshift is to climb a ladder of compactness, and the Sun is the first rung. Light leaving the Sun's surface is gravitationally redshifted by z = 2.12 x 10^-6. That is a tiny number, and it shows up as a tiny shift: a spectral line at 500 nm becomes 500.0011 nm. The reason the effect is so small is that the Sun is not very compact. Its Schwarzschild radius is just 2.95 km, while its physical radius is 696,000 km. The ratio of those two numbers sets the size of the redshift, and for the Sun that ratio is around four parts in a million.
Sirius B, a white dwarf, sits higher on the ladder. Its gravitational redshift is z = 2.57 x 10^-4, roughly a hundred times larger than the Sun's. Expressed as an equivalent recession velocity, that redshift corresponds to 77.08 km/s, the speed at which a source would have to move away from you to produce the same shift through the ordinary Doppler effect. The same 500 nm line would land at 500.1286 nm. A gravitational redshift calculator makes this comparison quick: enter the mass and radius, and the tool returns z along with the shifted wavelength, so you can move between the two descriptions without doing the algebra by hand.
The neutron star is the top rung, and here the numbers stop being modest. A neutron star of 1.4 solar masses and 10 km radius reaches z = 3.06 x 10^-1. A 500 nm line is moved all the way to 652.9169 nm, a shift of about 153 nm. The equivalent recession velocity is 91,687 km/s, a large fraction of light speed. This is where the choice of formula matters. The exact expression is z = (1 - rs / R)^(-1/2) - 1, where rs is the Schwarzschild radius and R is the radius of the emitting surface. The weak-field version z = GM / (Rc^2) is a good approximation for the Sun and even for Sirius B, but it fails for neutron stars, where the compactness is large enough that the approximation no longer tracks the exact result.
Read together, the three examples show why the calculator is useful. The same physics produces a shift of about one part in a million at the Sun, about one part in four thousand at Sirius B, and a shift of roughly thirty percent at the neutron star. The wavelength shift grows with the same pattern: 500.0011 nm, 500.1286 nm, and 652.9169 nm for a line that started at 500 nm in each case.
To reproduce these results, use the mass and radius of the object, form the ratio of its Schwarzschild radius to its physical radius, and apply the exact formula. Then multiply the rest wavelength by (1 + z) to get the observed wavelength. Comparing the exact and weak-field outputs side by side is a quick check on whether the object is compact enough to need the full treatment.
- Sun: z = 2.12 x 10^-6; 500 nm line observed at 500.0011 nm; Schwarzschild radius 2.95 km versus 696,000 km physical radius.
- Sirius B (white dwarf): z = 2.57 x 10^-4; equivalent recession velocity 77.08 km/s; 500 nm line observed at 500.1286 nm.
- Neutron star (1.4 solar masses, 10 km radius): z = 3.06 x 10^-1; 500 nm line observed at 652.9169 nm; equivalent recession velocity 91,687 km/s, a large fraction of light speed.
Measuring it in the real world
A gravitational redshift calculator gives you a clean number, but measuring that number in the real world is harder than the formula suggests. The shift is often tiny, and it is tangled up with ordinary Doppler shifts from motion. The classic case is Sirius B, the white dwarf companion of Sirius. Its gravitational redshift is z = 2.57 x 10^-4, which corresponds to an equivalent recession velocity of 77.08 km/s. The catch is that Sirius B is also moving through space, so its spectrum carries a true radial velocity on top of the gravitational shift. To isolate the gravitational part, astronomers must determine the star's actual motion independently and subtract it. Only then does the 77.08 km/s figure stand as a measurement of gravity rather than a mix of gravity and motion.
The scale of these shifts varies enormously from object to object. For the Sun, light leaving the surface is gravitationally redshifted by z = 2.12 x 10^-6, which moves a 500 nm line to 500.0011 nm. That is a change in the fourth decimal place, and it exists because the Sun's Schwarzschild radius is just 2.95 km against its physical radius of 696,000 km. A neutron star of 1.4 solar masses and 10 km radius reaches z = 3.06 x 10^-1, moving a 500 nm line all the way to 652.9169 nm. Its equivalent recession velocity is 91,687 km/s, a large fraction of light speed. At that strength the exact formula z = (1 - rs / R)^(-1/2) - 1 is required; the weak-field version z = GM / (Rc^2) fails for neutron stars.
The first laboratory confirmation of the effect came on Earth, not in space. The Pound-Rebka experiment measured the gravitational redshift of gamma rays traveling vertically in a building, showing that light climbing out of a gravitational field loses energy exactly as general relativity predicts. That result mattered because it demonstrated the effect in a controlled setting, where the source and detector could be placed at known heights and the shift could be separated from other influences.
For anyone using a gravitational redshift calculator, the lesson from these cases is that the formula is only half the story. The calculated z is exact for a given mass and radius, but a real spectrum may include motion, and the choice of formula matters at strong fields. The Sun's shift is a whisper; Sirius B's is measurable but must be untangled from its radial velocity; a neutron star's shift is so large that the weak-field approximation breaks down entirely.
Why GPS and clocks care
Gravitational redshift and gravitational time dilation are two views of the same physics. Light climbing out of a gravitational well loses energy, so its wavelength stretches toward the red. A clock sitting deeper in that well runs slower than one farther out. The neutron star case shows how extreme this can get: at 1.4 solar masses and a 10 km radius, z = 3.06 x 10^-1, which moves a 500 nm line to 652.9169 nm. That is the dramatic version. The everyday version is the reason satellite navigation systems have to correct for gravity, and a gravitational redshift calculator lets you see how quickly the effect grows as a mass gets more compact.
The Sun sits at the gentle end of the scale. Light leaving its surface is gravitationally redshifted by z = 2.12 x 10^-6, shifting a 500 nm line to 500.0011 nm. The number is tiny because the Sun is not very compact: its Schwarzschild radius is just 2.95 km against its 696,000 km physical radius. Most of the mass is far from the surface, so the potential there is shallow and clocks near the Sun run only slightly slower than clocks far away. Sirius B, a white dwarf, shows the next step up. It has z = 2.57 x 10^-4, equivalent to a recession velocity of 77.08 km/s, even though the star is not moving away from us at that speed.
The neutron star shows what happens when the same mass is squeezed into a tiny radius. Its equivalent recession velocity is 91,687 km/s, a large fraction of light speed. That is not motion through space; it is the size of the shift gravity alone produces. For cases like this, the exact formula z = (1 - rs / R)^(-1/2) - 1 is required. The weak-field version z = GM / (Rc^2) fails for neutron stars, because it assumes the gravitational field is gentle. The same formula covers the Sun, Sirius B and the neutron star, which is why one gravitational redshift calculator can handle all three.
For GPS and other satellite clocks, the effect is small but not negligible. A clock on a satellite sits higher in Earth's gravitational well than a clock on the ground, so the two do not tick at the same rate. The physics is identical to the neutron star's extreme 3.06 x 10^-1 shift, just with a far shallower potential and a far smaller z. Navigation systems depend on correcting for that difference; without it, position errors would build up quickly. The Sun's z = 2.12 x 10^-6 and the neutron star's z = 3.06 x 10^-1 sit on the same curve, separated only by how compact the source is.
FAQs
What is the gravitational redshift of the Sun?
The Sun's gravitational redshift is z = 2.12 x 10^-6. That is equivalent to a recession velocity of 0.64 km/s, meaning light climbing out of the Sun's gravity is stretched by that small amount. The effect is tiny but measurable, and it matches the prediction for the Sun's mass and radius.
What is the gravitational redshift formula?
The formula is z = (1 - rs / R)^(-1/2) - 1, where rs = 2GM / c^2 is the Schwarzschild radius and R is the radius from which the light escapes. For the Sun, rs is 2.95 km. The formula gives the fractional stretch of wavelength for light climbing out of a spherical body's gravity.
How big is the redshift from a white dwarf?
Sirius B, a white dwarf, gives z = 2.57 x 10^-4. That corresponds to an apparent recession of 77.08 km/s. This shift historically confused measurements of the star's radial velocity, because the light was being stretched by gravity rather than by motion. The effect is far larger than the Sun's because a white dwarf is much more compact.
How big is the redshift from a neutron star?
For a 1.4 solar-mass neutron star with a 10 km radius, z = 3.06 x 10^-1. A spectral line at 500 nm arrives at 652.9169 nm. That is a substantial stretch of the light, showing how strongly gravity near such a compact, massive object affects escaping radiation compared with the Sun.
Is gravitational redshift the same as Doppler redshift?
No. In gravitational redshift nothing is moving; the light loses energy climbing out of a gravity well. The equivalent velocity of 91,687 km/s for the neutron star is just a way to express the size of the effect in familiar units. Doppler redshift, by contrast, comes from actual motion of the source.
When does the simple GM/Rc^2 formula fail?
The simple GM/Rc^2 formula fails when rs is no longer tiny next to R. It is fine for the Sun, where rs is 2.95 km against a much larger radius, but it badly underestimates the neutron star's 3.06 x 10^-1. For compact objects, use the full formula with the square-root term.