Fiveable

๐Ÿ”‹Electromagnetism II Unit 1 Review

QR code for Electromagnetism II practice questions

1.2 Gauss's law for magnetic fields

1.2 Gauss's law for magnetic fields

Written by the Fiveable Content Team โ€ข Last updated August 2025
Written by the Fiveable Content Team โ€ข Last updated August 2025
๐Ÿ”‹Electromagnetism II
Unit & Topic Study Guides

Gauss's Law for Magnetic Fields

Gauss's law for magnetic fields captures a simple but profound fact: magnetic field lines always form closed loops. The total magnetic flux through any closed surface is exactly zero, which means there are no magnetic "charges" (monopoles) from which field lines begin or end. This is one of Maxwell's four equations and marks a key difference between how electric and magnetic fields behave.

Magnetic Flux

Magnetic Flux Through a Surface

Magnetic flux (ฮฆB\Phi_B) quantifies how much magnetic field passes through a given surface. You calculate it by integrating the magnetic field over the surface:

ฮฆB=โˆซSBโƒ—โ‹…dAโƒ—\Phi_B = \int_S \vec{B} \cdot d\vec{A}

The dot product matters here. Flux depends not just on the field strength but on the angle between Bโƒ—\vec{B} and the surface normal dAโƒ—d\vec{A}. A surface parallel to the field lines has zero flux through it, while a surface perpendicular to the field captures maximum flux.

Units of Magnetic Flux

  • The SI unit is the weber (Wb), equivalent to Tโ‹…m2\text{T} \cdot \text{m}^2
  • Can also be expressed as volt-seconds (Vยทs)
  • Magnetic flux density is just another name for the magnetic field Bโƒ—\vec{B} itself, measured in teslas (T), representing flux per unit area

Integral Form of Gauss's Law

Closed Surface Integral

The integral form states that the net magnetic flux through any closed surface is zero:

โˆฎSBโƒ—โ‹…dAโƒ—=0\oint_S \vec{B} \cdot d\vec{A} = 0

Here Bโƒ—\vec{B} is the magnetic field and dAโƒ—d\vec{A} is the outward-pointing area element on the closed surface SS. "Closed surface" means a surface that fully encloses a volume with no holes, like a sphere or a cube.

The physical meaning: every magnetic field line that enters the closed surface must also exit it. There's no net source or sink of Bโƒ—\vec{B} inside any volume you can draw.

Why the Net Flux Is Always Zero

Because magnetic monopoles don't exist, there's nothing inside any closed surface that can act as a net source of magnetic flux. Compare this to the electric case, where a charge inside the surface produces a nonzero net electric flux. For magnetic fields, the "enclosed magnetic charge" is always zero. That's the entire content of this law.

Differential Form of Gauss's Law

Magnetic flux through a surface, Explaining Gaussโ€™s Law | CircuitBread

Divergence of the Magnetic Field

Applying the divergence theorem to the integral form gives the differential (local) version:

โˆ‡โ‹…Bโƒ—=0\nabla \cdot \vec{B} = 0

The divergence โˆ‡โ‹…Bโƒ—\nabla \cdot \vec{B} measures the net outward flux of Bโƒ—\vec{B} per unit volume at a point. Setting it to zero means magnetic field lines never start or stop at any point in space. They either form closed loops or extend to infinity in both directions.

This holds everywhere, at every point, not just on average over some surface. That's what makes the differential form more powerful for local analysis.

Absence of Magnetic Monopoles

In electrostatics, โˆ‡โ‹…Eโƒ—=ฯ/ฯต0\nabla \cdot \vec{E} = \rho / \epsilon_0, so electric field lines can originate on positive charges and terminate on negative charges. The magnetic analog would be a magnetic monopole, an isolated north or south pole.

No experiment has ever confirmed the existence of magnetic monopoles. Every magnet ever observed has both a north and south pole. Cut a bar magnet in half and you get two smaller dipoles, not an isolated north and a south. Gauss's law for Bโƒ—\vec{B} encodes this experimental fact directly.

Applications of Gauss's Law for Magnetic Fields

Checking Validity of Proposed Field Configurations

The most direct use of โˆ‡โ‹…Bโƒ—=0\nabla \cdot \vec{B} = 0 is as a consistency check. If someone proposes a magnetic field configuration, you can compute its divergence. If it's nonzero anywhere, that field is unphysical.

Constraining Field Components

In problems with symmetry, โˆ‡โ‹…Bโƒ—=0\nabla \cdot \vec{B} = 0 can eliminate certain components of Bโƒ—\vec{B}. For example, if you're analyzing a solenoid using a cylindrical Gaussian surface, the law tells you that the radial component of Bโƒ—\vec{B} must vanish (assuming translational symmetry along the axis). This simplifies the problem before you even apply Ampรจre's law.

A Note on Common Field Results

The well-known results for symmetric current distributions are actually derived using Ampรจre's law, not Gauss's law for Bโƒ—\vec{B}:

  • Infinite straight wire: B=ฮผ0I2ฯ€rB = \frac{\mu_0 I}{2\pi r}
  • Solenoid interior: B=ฮผ0nIB = \mu_0 n I

Gauss's law for Bโƒ—\vec{B} plays a supporting role in these derivations by constraining which components of the field can be nonzero, but the quantitative result comes from Ampรจre's law. Don't confuse the two on an exam.

Comparison to Gauss's Law for Electric Fields

Magnetic flux through a surface, Flux - Wikipedia

Similarities in Mathematical Form

Both laws are closed-surface integrals (or divergence equations):

Electric FieldsMagnetic Fields
Integral formโˆฎSEโƒ—โ‹…dAโƒ—=Qencฯต0\oint_S \vec{E} \cdot d\vec{A} = \frac{Q_{\text{enc}}}{\epsilon_0}โˆฎSBโƒ—โ‹…dAโƒ—=0\oint_S \vec{B} \cdot d\vec{A} = 0
Differential formโˆ‡โ‹…Eโƒ—=ฯฯต0\nabla \cdot \vec{E} = \frac{\rho}{\epsilon_0}โˆ‡โ‹…Bโƒ—=0\nabla \cdot \vec{B} = 0

Key Differences in Physical Interpretation

  • Electric flux through a closed surface can be nonzero because electric charges (monopoles) exist. Magnetic flux is always zero because magnetic monopoles don't.
  • Electric field lines can begin and end on charges. Magnetic field lines must form closed loops.
  • Note: the claim that "electric fields are conservative while magnetic fields are not" is a separate issue from Gauss's law. Electrostatic fields are conservative (โˆ‡ร—Eโƒ—=0\nabla \times \vec{E} = 0 in statics), but this property relates to Faraday's law, not to the divergence equations.

Validity and Scope

This Law Is Always Valid

Unlike some approximations in electromagnetism, โˆ‡โ‹…Bโƒ—=0\nabla \cdot \vec{B} = 0 holds universally in classical electromagnetism. It's valid for:

  • Static fields
  • Time-varying fields
  • Fields in vacuum or in matter
  • Any configuration whatsoever

This is worth emphasizing because it's sometimes mistakenly stated that Gauss's law for Bโƒ—\vec{B} only applies to static fields. That's incorrect. Even when fields are changing rapidly and Faraday's law produces induced electric fields, the magnetic field still has zero divergence at every instant. Maxwell's equations include โˆ‡โ‹…Bโƒ—=0\nabla \cdot \vec{B} = 0 without any time-dependent modifications.

Role in Maxwell's Equations

One of Four Fundamental Laws

Gauss's law for magnetic fields is the second of Maxwell's four equations:

  1. Gauss's law for electric fields (โˆ‡โ‹…Eโƒ—=ฯ/ฯต0\nabla \cdot \vec{E} = \rho/\epsilon_0)
  2. Gauss's law for magnetic fields (โˆ‡โ‹…Bโƒ—=0\nabla \cdot \vec{B} = 0)
  3. Faraday's law (โˆ‡ร—Eโƒ—=โˆ’โˆ‚Bโƒ—/โˆ‚t\nabla \times \vec{E} = -\partial \vec{B}/\partial t)
  4. Ampรจre-Maxwell law (โˆ‡ร—Bโƒ—=ฮผ0Jโƒ—+ฮผ0ฯต0โ€‰โˆ‚Eโƒ—/โˆ‚t\nabla \times \vec{B} = \mu_0 \vec{J} + \mu_0 \epsilon_0 \, \partial \vec{E}/\partial t)

Connection to the Other Equations

Gauss's law for Bโƒ—\vec{B} is actually consistent with Faraday's law in an interesting way. Take the divergence of both sides of Faraday's law:

โˆ‡โ‹…(โˆ‡ร—Eโƒ—)=โˆ’โˆ‚โˆ‚t(โˆ‡โ‹…Bโƒ—)\nabla \cdot (\nabla \times \vec{E}) = -\frac{\partial}{\partial t}(\nabla \cdot \vec{B})

The left side is identically zero (divergence of any curl vanishes). So โˆ‚(โˆ‡โ‹…Bโƒ—)/โˆ‚t=0\partial(\nabla \cdot \vec{B})/\partial t = 0, meaning if โˆ‡โ‹…Bโƒ—=0\nabla \cdot \vec{B} = 0 at any one time, it stays zero forever. The structure of Maxwell's equations is self-consistent in preserving the absence of magnetic monopoles.