In physics and general relativity, gravitational redshift (known as Einstein shift in older literature) is the phenomenon that electromagnetic waves or photons travelling out of a gravitational well lose energy. This loss of energy corresponds to a decrease in the wave frequency and increase in the wavelength, known more generally as a redshift. The opposite effect, in which photons gain energy when travelling into a gravitational well, is known as a gravitational blueshift (a type of blueshift). The effect was first described by Einstein in 1907, eight years before his publication of the full theory of relativity. Observing the gravitational redshift in the Solar System is one of the classical tests of general relativity.
Gravitational redshift can be interpreted as a consequence of the equivalence principle (that gravitational effects are locally equivalent to inertial effects and the redshift is caused by the Doppler effect) or as a consequence of the mass–energy equivalence and conservation of energy ('falling' photons gain energy), though there are numerous subtleties that complicate a rigorous derivation. A gravitational redshift can also equivalently be interpreted as gravitational time dilation at the source of the radiation: if two oscillators (attached to transmitters producing electromagnetic radiation) are operating at different gravitational potentials, the oscillator at the higher gravitational potential (farther from the attracting body) will tick faster; that is, when observed from the same location, it will have a higher measured frequency than the oscillator at the lower gravitational potential (closer to the attracting body).