Magnetic dipole–dipole interaction, also called dipolar coupling, refers to the direct interaction between two magnetic dipoles. Roughly speaking, the magnetic field of a dipole goes as the inverse cube of the distance, and the force of its magnetic field on another dipole goes as the first derivative of the magnetic field. It follows that the dipole-dipole interaction goes as the inverse fourth power of the distance.
Suppose  and  are two magnetic dipole moments that are far enough apart that they can be treated as point dipoles in calculating their interaction energy. The potential energy  of the interaction is then given by:
where  is the magnetic constant,  is a unit vector parallel to the line joining the centers of the two dipoles, and || is the distance between the centers of  and . Last term with -function vanishes everywhere but the origin, and is necessary to ensure that  vanishes everywhere. Alternatively, suppose  and  are gyromagnetic ratios of two particles with spin quanta  and . (Each such quantum is some integral multiple of .)  Then:
where  is a unit vector in the direction of the line joining the two spins, and || is the distance between them.
Finally, the interaction energy can be expressed as the dot product of the moment of either dipole into the field from the other dipole:
where  is the field that dipole 2 produces at dipole 1, and  is the field that dipole 1 produces at dipole 2. It is not the sum of these terms.
The force  arising from the interaction between  and  is given by:
The Fourier transform of  can be calculated from the fact that
and is given by