# 7.2: Gauss’ Law for Magnetic Fields - Integral Form

- Page ID
- 3938

Gauss’ Law for Magnetic Fields (GLM) is one of the four fundamental laws of classical electromagnetics, collectively known as *Maxwell’s Equations*. Before diving in, the reader is strongly encouraged to review Section 2.5. In that section, GLM emerges from the “flux density” interpretation of the magnetic field. GLM is not identified in that section, but now we are ready for an explicit statement:

*Gauss’ Law for Magnetic Fields* (Equation \ref{m0018_eGLM}) states that the flux of the magnetic field through a closed surface is zero.

This is expressed mathematically as follows:

\[\boxed{ \oint_{\mathcal S} {\bf B}\cdot d{\bf s} = 0 } \label{m0018_eGLM}\]

where \({\bf B}\) is magnetic flux density and \({\mathcal S}\) is a closed surface with outward-pointing differential surface normal \(d{\bf s}\). It may be useful to consider the units. \({\bf B}\) has units of Wb/m\(^{2}\); therefore, integrating \({\bf B}\) over a surface gives a quantity with units of Wb, which is magnetic flux, as indicated above.

GLM can also be interpreted in terms of magnetic field lines. For the magnetic flux through a closed surface to be zero, every field line entering the volume enclosed by \({\mathcal S}\) must also exit this volume – field lines may not begin or end within the volume. The only way this can be true for every possible surface \({\mathcal S}\) is if magnetic field lines always form closed loops. This is in fact what we find in practice, as shown in Figure \(\PageIndex{1}\) .

**Figure \(\PageIndex{1}\): **Gauss’ Law for Magnetostatics applied to a two-dimensional bar magnet. For the surface S = SA, every field line entering S also leaves S, so the flux through S is zero. For the surface S = SB, every field line within S remains in S, so the flux through S is again zero. Image used wtih permission (CC BY SA 4.0;

Following this argument one step further, GLM implies there can be no particular particle or structure that can be the source of the magnetic field (because then that would be a start point for field lines). This is one way in which the magnetic field is very different from the electrostatic field, for which every field line begins at a charged particle. So, when we say that current (for example) is the source of the magnetic field, we mean only that the field coexists with current, and *not* that the magnetic field is somehow attached to the current. Summarizing, there is no “localizable” quantity, analogous to charge for electric fields, associated with magnetic fields. This is just another way in which magnetic fields are weird!

## Summarizing

Gauss’ Law for Magnetic Fields requires that magnetic field lines form closed loops. Furthermore, there is no particle that can be identified as the source of the magnetic field.

## Contributors

Ellingson, Steven W. (2018) Electromagnetics, Vol. 1. Blacksburg, VA: VT Publishing. https://doi.org/10.21061/electromagnetics-vol-1 Licensed with CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0. Report adoption of this book here. If you are a professor reviewing, adopting, or adapting this textbook please help us understand a little more about your use by filling out this form.