Nuclear magnetic resonance was first described and measured in molecular beams by Isidor Rabi in 1938, by extending the Stern–Gerlach experiment, and in 1944, Rabi was awarded the Nobel Prize in Physics for this work. In 1946, Felix Bloch and Edward Mills Purcell expanded the technique for use on liquids and solids, for which they shared the Nobel Prize in Physics in 1952.
Russell H. Varian filed the "Method and means for correlating nuclear properties of atoms and magnetic fields",  on July 24, 1951. Varian Associates developed the first NMR unit called NMR HR-30 in 1952.
Purcell had worked on the development of radar during World War II at the Massachusetts Institute of Technology's Radiation Laboratory. His work during that project on the production and detection of radio frequency power and on the absorption of such RF power by matter laid the foundation for his discovery of NMR in bulk matter.
Rabi, Bloch, and Purcell observed that magnetic nuclei, like  and , could absorb RF energy when placed in a magnetic field and when the RF was of a frequency specific to the identity of the nuclei. When this absorption occurs, the nucleus is described as being in resonance. Different atomic nuclei within a molecule resonate at different (radio) frequencies for the same magnetic field strength. The observation of such magnetic resonance frequencies of the nuclei present in a molecule makes it possible to determine essential chemical and structural information about the molecule.
The improvements of the NMR method benefited from the development of electromagnetic technology and advanced electronics and their introduction into civilian use. Originally as a research tool it was limited primarily to dynamic nuclear polarization, by the work of Anatole Abragam and Albert Overhauser, and to condensed matter physics, where it produced one of the first demonstrations of the validity of the BCS theory of superconductivity by the observation by Charles Slichter of the Hebel-Slichter effect. It soon showed its potential in  organic chemistry, and by the 1990s improvement in the sensitivity and resolution of NMR spectroscopy resulted in its broader use in analytical chemistry,  biochemistry and materials science.
In the 2020s zero- to ultralow-field nuclear magnetic resonance (ZULF NMR), a form of spectroscopy that provides abundant analytical results without the need for large magnetic fields, was developed. It is combined with a special technique that makes it possible to hyperpolarize atomic nuclei.