The magnetic well, along with the magnetic shear, is a fundamental concept for the stability of magnetically confined plasmas.  A toroidally confined plasma with given pressure has a tendency to expand. However, an ideal, collisionless plasma is bound to the magnetic field lines, and the flux in a magnetic flux tube is conserved. The plasma will therefore prefer to move to a location where the volume to flux ratio (the specific volume) is maximum.
Assuming the existence of nested (toroidal) flux surfaces, labelled by , and with volume and toroidal flux , this specific volume is
Noting that the mean value of the magnetic field can be written
where is the length of the (toroidal) magnetic axis, one sees that the condition of maximum specific volume is equivalent to minimum B.
The vacuum magnetic well is defined via an average of the magnetic pressure over a flux surface:
where the average is defined as
The relative magnetic well depth is defined as:
where is the average radius of a flux surface. A positive gradient of w corresponds to a magnetic well (stable), and a negative gradient to a magnetic hill (unstable).
- J.M. Greene, A brief review of magnetic wells, General Atomics Report GA-A22135 (1998)
- M. Wakatani, Stellarator and Heliotron devices, Oxford University Press, New York and Oxford (1998) ISBN 0-19-507831-4