Chemical shift
In nuclear magnetic resonance (NMR), the chemical shift describes the dependence of nuclear magnetic energy levels on the electronic environment in a molecule. Chemical shifts are relevant in NMR spectroscopy techniques such  proton NMR and carbon-13 NMR.
An atomic nucleus can have a magnetic moment (nuclear spin), which gives rise to different energy levels and resonance frequencies in a magnetic field. The total magnetic field experienced by a nucleus includes local magnetic fields induced by currents of electrons in the molecular orbitals (note that electrons have a magnetic moment themselves). The electron distribution of the same type of nucleus (e.g. 1H, 13C, 15N) usually varies according to the local geometry (binding partners, bond lengths, angles between bonds, ...), and with it the local magnetic field at each nucleus. This is reflected in the spin energy levels (and resonance frequencies). The variations of nuclear magnetic resonance frequencies of the same kind of nucleus, due to variations in the electron distribution, is called the chemical shift. The size of the chemical shift is given with respect to a reference frequency or reference sample (see also chemical shift referencing), usually a molecule with a barely distorted electron distribution.
The chemical shift is of great importance for NMR spectroscopy, a technique to explore molecular properties by looking at nuclear magnetic resonance phenomena.

# Operating frequency
The operating frequency  of a magnet is calculated from the Larmor equation
where B_0 is the actual strength of the magnet in units like teslas or gauss, and  is the gyromagnetic ratio of the nucleus being tested which is in turn calculated from its magnetic moment  and spin number I with the nuclear magneton N and the Planck constant h:
Thus, the proton operating frequency for a 7 T magnet is calculated as:

# Chemical shift referencing
Chemical shift  is usually expressed in parts per million (ppm) by frequency, because it is calculated from:
Since the numerator is usually in hertz, and the denominator in megahertz, delta is expressed in ppm.
The detected frequencies (in Hz) for 1H, 13C, and 29Si nuclei are usually referenced against TMS (tetramethylsilane), which is assigned the chemical shift of zero.  Other standard materials are used for setting the chemical shift for other nuclei.
Thus, an NMR signal at 300 Hz from TMS at an applied frequency of 300MHz has a chemical shift of:
Although the frequency depends on the applied field the chemical shift is independent of it. On the other hand the resolution of NMR will increase with applied magnetic field resulting in ever increasing chemical shift changes.

# The induced magnetic field
The electrons around a nucleus will circulate in a magnetic field and create a secondary induced magnetic field. This field opposes the applied field as stipulated by Lenz's law and the nucleus is therefore said to be shielded. Trends in chemical shift are explained based on the degree of shielding or deshielding.
Nuclei are found to resonate in a wide range to the left (or more rare to the right) of the internal standard. When a signal is found with a higher chemical shift:
- the applied effective magnetic field is lower, if the resonance frequency is fixed, (as in old traditional CW spectrometers)
- the frequency is higher, when the applied magnetic field is static, (normal case in FT spectrometers)
- the nucleus is more deshielded
- the signal or shift is downfield or at low field or paramagnetic
Conversely a lower chemical shift is called a diamagnetic shift, and is upfield and more shielded.

# Factors causing chemical shifts
Important factors influencing chemical shift are electron density, electronegativity of neighboring groups and anisotropic induced magnetic field effects.
Electron density shields a nucleus from the external field. For example in proton NMR the electron-poor tropylium ion has its protons downfield at 9.17 ppm, those of the electron-rich cyclooctatetraenyl anion move upfield to 6.75 ppm and its dianion even more upfield to 5.56 ppm.
A nucleus in the vicinity of an electronegative atom experiences reduced electron density and the nucleus is therefore deshielded. In proton NMR of methyl halides (CH3X) the chemical shift of the methyl protons increase in the order I > Br > Cl > F from 2.16 ppm to 4.26 ppm reflecting this trend. In carbon NMR the chemical shift of the carbon nuclei increase in the same order from around -10 ppm to 70 ppm. Also when the electronegative atom is removed further away the effect diminishes until it can be observed no longer.
Anisotropic induced magnetic field effects are the result of a local induced magnetic field experienced by a nucleus resulting from circulating electrons that can either be paramagnetic when it is parallel to the applied field or diamagnetic when it is opposed to it. It is observed in alkenes where the double bond is oriented perpendicular to the external field with pi electrons likewise circulating at right angles. The induced magnetic field lines are parallel to the external field at the location of the alkene protons which therefore shift downfield to a 4.5 ppm - 7.5 ppm range. The three-dimensional space where a nucleus experiences diamagnetic shift is called the shielding zone with a cone-like shape aligned with the external field.
The protons in aromatic compounds are shifted downfield even further with a signal for benzene at 7.73 ppm as a consequence of a diamagnetic ring current.
Alkyne protons by contrast resonate at high field in a 2-3 ppm range. For alkynes the most effective orientation in the external field in parallel with electrons circulation around the triple bond. In this way the acetylenic protons are located in the cone-shaped shielding zone hence the upfield shift.

# Magnetic properties of most common nuclei
1H and 13C aren't the only nuclei susceptible to NMR experiments. A number of different nuclei can also be detected, although the use of such techniques is generally rare due to small relative sensitivities in NMR experiments (compared to 1H) of the nuclei in question, the other factor for rare use being their slender representation in nature/organic compounds.
1H, 13C, 15N, 19F and 31P are the five nuclei that have the greatest importance in NMR experiments:
- 1H because of high sensitivity and vast occurrence in organic compounds
- 13C because of being the key component of all organic compounds despite occurring at a low abundance (1.1%) compared to the major isotope of carbon 12C, which has a spin of 0 and therefore is NMR inactive.
- 15N because of being a key component of important biomolecules such as proteins and DNA
- 19F because of high relative sensitivity
- 31P because of frequent occurrence in organic compounds and moderate relative sensitivity

# Other chemical shifts
The related Knight shift (first reported in 1949) is observed with pure metals. The NMR chemical shift in its present day meaning first appeared in journals in 1950. Chemical shifts with a different meaning appear in X-ray photoelectron spectroscopy as the shift in atomic core-level energy due to a specific chemical environment. The term is also used in Mossbauer spectroscopy