Electromagnetism

Gauss's Law

Electric flux through any closed surface equals enclosed charge / ε₀

Gauss's law: the total electric flux through any closed surface equals the total enclosed charge divided by the permittivity of free space ε₀ = 8.854 × 10⁻¹² F/m: ∮ E·dA = Q_enc/ε₀. Derived by Carl Friedrich Gauss (1813, published 1867); equivalent to Coulomb's law for static charges. Differential form: ∇·E = ρ/ε₀. Allows quick computation of E for symmetric distributions: point charge → E = kq/r²; uniformly charged sphere → outside same as point charge, inside zero (or proportional to r for solid); infinite plane sheet → E = σ/(2ε₀) constant; infinite line → E = λ/(2πε₀ r). Magnetic analog ∮ B·dA = 0 (no magnetic monopoles). Used to derive: electrostatic shielding (Faraday cage), capacitor calculations, electric field in conductors (= 0 inside).

  • Integral form∮ E·dA = Q_enc/ε₀
  • Permittivityε₀ = 8.854 × 10⁻¹² F/m
  • AuthorGauss 1813 (publ. 1867)
  • Differential form∇·E = ρ/ε₀
  • Sphere outsideE = kq/r²
  • Infinite sheetE = σ/(2ε₀)

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

Why Gauss matters

  • Capacitor design. The capacitance of any geometry — parallel plate, cylindrical, spherical — comes from a one-line Gauss-law derivation of E followed by a line integral for V. The C = ε₀A/d formula behind every electrolytic and ceramic cap traces back to Gauss.
  • Faraday cage shielding. Sensitive electronics rooms, MRI faraday cages, cellphone signal-isolation chambers, and lightning-protection enclosures all rely on the Gauss-law result that E inside a conductor's cavity is zero, regardless of external fields.
  • Conductor properties. Charges always reside on the outer surface of an isolated conductor (Q_enc = 0 inside means ρ = 0); E just outside is perpendicular to the surface with magnitude σ/ε₀; the surface is an equipotential. All three results follow directly from Gauss.
  • Cable and transmission line analysis. Capacitance per unit length of a coaxial cable is computed in two lines via cylindrical Gauss's law, feeding directly into the cable's characteristic impedance Z₀ and propagation delay.
  • Soil and groundwater conductivity. Geophysical resistivity surveys and well-logging tools model current flow in stratified earth with Gauss's law in matter, ∇·D = ρ_free, where D = εE accounts for media polarization.
  • EM theory backbone. Gauss's law is the first of Maxwell's four equations and provides the link between charge (the source) and electric field (the response). Without it, electromagnetism would lack a way to relate static charges to fields they produce.
  • Charge measurement. The Aharonov-Bohm-like Faraday ice-pail experiment uses Gauss's law to show that any charge introduced into a hollow conductor induces an exactly equal charge on the outer surface — modern electrometers measure charge to femtocoulomb precision via this principle.

Common misconceptions

  • "You need a Gaussian surface." A Gaussian surface is a calculational convenience for extracting E in symmetric problems. The law itself ∮ E·dA = Q_enc/ε₀ holds for every closed surface, real or imagined. You only "draw" one when you want to use the law to solve for E.
  • "Fails for time-varying fields." Gauss's law is the first Maxwell equation and remains exactly true with time-varying fields and currents — the divergence of E is always ρ/ε₀ at every instant. What is sometimes meant is that Gauss's law alone doesn't tell you everything; you need the other Maxwell equations to capture induced fields.
  • "Only for spheres." The law applies to any closed surface — pillboxes, cylinders, cubes, blobs. Symmetry dictates which surface makes the integral analytical, not which surfaces are "allowed."
  • "Charges outside don't matter." External charges contribute to E at every point on a Gaussian surface, but their net flux contribution through any closed surface is zero (entry equals exit). Only enclosed charge contributes to net flux. E itself depends on all charges, near and far.
  • "Infinite plane gives E = σ/ε₀." A single infinite charged plane gives E = σ/(2ε₀) on each side (factor of 2 from flux through both faces of the pillbox). Two parallel oppositely-charged plates give E = σ/ε₀ between them, zero outside — the parallel-plate capacitor result, often misremembered as the single-plane formula.
  • "Inside a charged sphere, E falls off as 1/r²." Inside a uniformly charged solid sphere, only enclosed charge counts. For a uniform volume density ρ, Q_enc(r) = (4πr³/3)ρ, and Gauss gives E(r) = ρr/(3ε₀) — linear in r, not 1/r². Inside a hollow shell, E = 0.

Canonical Gauss-derived fields

  • Point charge q. Gaussian sphere of radius r: E = q/(4πε₀r²) = kq/r².
  • Uniformly charged solid ball, total charge Q, radius R. Outside (r > R): E = kQ/r². Inside (r < R): E = kQr/R³ — linear, vanishing at center.
  • Hollow spherical shell, total charge Q. Outside (r > R): E = kQ/r². Inside (r < R): E = 0 — the shielding result.
  • Infinite line charge, density λ. Cylindrical Gaussian surface, radius r: E = λ/(2πε₀r), pointing radially.
  • Infinite plane sheet, surface density σ. Pillbox Gaussian surface: E = σ/(2ε₀), perpendicular to sheet, on both sides.
  • Parallel-plate capacitor, ±σ. E = σ/ε₀ between plates (uniform), zero outside (fields from the two plates cancel).
  • Magnetic counterpart. ∮ B·dA = 0 for any closed surface — no magnetic monopoles. Equivalently ∇·B = 0.

Frequently asked questions

Why is Gauss's law equivalent to Coulomb's law?

For a single point charge q, take a Gaussian sphere of radius r centered on the charge. By symmetry, E points radially outward and has the same magnitude everywhere on the sphere. The flux integral becomes ∮ E·dA = E(4πr²). Setting this equal to q/ε₀ gives E = q/(4πε₀r²) = kq/r² — Coulomb's law. Going the other way: starting from Coulomb's 1/r² and superposition, you can prove Gauss's law for any charge distribution. The two are mathematically equivalent for static charges. Gauss's law is more powerful in symmetric problems (one integral instead of vector integration) and generalizes more cleanly to time-varying fields, where it becomes one of Maxwell's four equations.

When can you use it analytically (symmetry)?

Gauss's law in integral form ∮ E·dA = Q_enc/ε₀ is always true, but it produces E in closed form only when symmetry makes E constant in magnitude (and either parallel or perpendicular to dA) over a chosen Gaussian surface. Three high-symmetry cases dominate textbooks. Spherical symmetry: point charges, uniformly charged balls, concentric shells — use a Gaussian sphere. Cylindrical symmetry: infinite line charges, infinite cylinders, coaxial cables — use a Gaussian cylinder coaxial with the line. Planar symmetry: infinite charged sheets, parallel plates — use a pillbox straddling the sheet. Without one of these symmetries, you fall back on Coulomb's law and direct integration.

What is the differential form?

Apply the divergence theorem to ∮ E·dA = Q_enc/ε₀: the surface integral of E equals the volume integral of ∇·E, and Q_enc equals the volume integral of charge density ρ. The two volume integrals must be equal for any volume, so the integrands must match: ∇·E = ρ/ε₀. This is the differential form of Gauss's law and one of Maxwell's four equations. It states that the divergence of E at any point equals the charge density there divided by ε₀ — charges are sources (positive divergence) or sinks (negative divergence) of E. In vacuum where ρ = 0, ∇·E = 0 and field lines neither begin nor end. The differential form is essential for computing E in continuously varying media via differential equations.

Why is E=0 inside a conductor (Faraday cage)?

A conductor in electrostatic equilibrium has free charges that have stopped moving. If E were nonzero anywhere inside, free charges would feel force qE and accelerate — contradicting equilibrium. So E = 0 throughout the conductor's interior. Apply Gauss's law to any closed surface inside the conductor: ∮ E·dA = 0, meaning the enclosed charge must be zero. Therefore all net charge resides on the conductor's outer surface. A hollow conductor with a cavity has the same property: E inside the cavity is zero (assuming no charge inside the cavity), regardless of external fields or charges placed near the conductor. This is the Faraday cage — a thin metal shell that shields its interior from external electric fields, used in electronics shielding rooms, microwave oven doors, and to protect aircraft from lightning strikes.

Why don't magnetic monopoles exist (∮B·dA = 0)?

The magnetic analog of Gauss's law is ∮ B·dA = 0 — total magnetic flux through any closed surface is exactly zero. Equivalently, ∇·B = 0. There are no isolated magnetic charges (north or south poles) acting as sources or sinks of B; field lines always close on themselves rather than terminating on a charge. Cut a bar magnet in half and you get two smaller bar magnets, each with both poles, never an isolated north or south. This empirical fact has been tested for decades — Paul Dirac showed in 1931 that even a single monopole would explain charge quantization, but no monopole has been observed. Modern grand unified theories predict monopoles at extremely high energies, and the MoEDAL experiment at the LHC searches for them, so far without success. The clean ∇·B = 0 of classical electromagnetism remains correct.

How is Gauss's law used in capacitor calculations?

For a parallel-plate capacitor with surface charge density σ on each plate (and plates much larger than their separation), planar symmetry lets Gauss's law produce E in one step. Choose a Gaussian pillbox straddling the positive plate. Flux escapes only through the face inside the gap (the other face is inside the conductor where E = 0). The flux is EA, where A is the pillbox cross-section, and the enclosed charge is σA. Gauss gives E = σ/ε₀ between the plates, uniform and perpendicular to the plates. The voltage between plates is V = Ed = σd/ε₀, so the capacitance C = Q/V = ε₀A/d. Add a dielectric of permittivity ε and the formula becomes C = εA/d. The same Gauss-driven approach handles cylindrical and spherical capacitors with their geometry-appropriate Gaussian surfaces.