Gauss's law statement
Gauss's law connects the electric flux through a closed surface to the total charge enclosed by that surface. It's one of Maxwell's four equations, and at the Electromagnetism II level, you need fluency in both its integral and differential forms and a clear sense of when each is the right tool.
The integral form gives you a global relationship between flux and enclosed charge. The differential form gives you a local, point-by-point relationship between the electric field's divergence and the charge density. Together, they're equivalent statements of the same physics.
Integral form
The integral form says: the total electric flux through any closed surface equals the enclosed charge divided by .
- is the electric field at each point on the surface.
- is an outward-pointing infinitesimal area element.
- is the total charge enclosed by the surface.
The convention matters: always points outward from the enclosed volume. This fixes the sign of the flux. Positive enclosed charge produces positive (outward) net flux; negative enclosed charge produces negative (inward) net flux.
This form is most useful when symmetry lets you pull out of the integral, turning a surface integral into a simple algebraic equation.
Differential form
The differential form relates the divergence of at a single point to the local charge density at that point:
You can derive this from the integral form using the divergence theorem (). Since the integral form holds for any closed surface, the integrands must be equal, giving you the differential form.
This version is essential for deriving Poisson's equation () and Laplace's equation ( where ). You'll rely on it heavily when solving boundary-value problems later in the course.
Gaussian surfaces
A Gaussian surface is an imaginary closed surface you construct to exploit symmetry when applying the integral form of Gauss's law. The surface itself has no physical reality; it's a mathematical tool you choose to make the integral tractable.
Closed surfaces
The surface must be closed, meaning it fully encloses a volume with no gaps. The outward normal convention for is standard. Any closed surface works in principle, but a poorly chosen one won't simplify the integral at all.
Symmetry of charge distributions
The whole power of Gauss's law in integral form rests on choosing a Gaussian surface that matches the symmetry of the charge distribution. When you do this correctly, becomes constant over the surface (or zero on parts of it), and the integral collapses.
Three canonical symmetries come up repeatedly:
- Spherical symmetry (point charges, uniformly charged spheres): Use a concentric spherical Gaussian surface. is radial and constant in magnitude over the sphere, so .
- Cylindrical symmetry (infinite line charges, infinite cylindrical shells): Use a coaxial cylindrical Gaussian surface. is radial and constant on the curved surface; flux through the end caps is zero by symmetry, so .
- Planar symmetry (infinite sheets of charge): Use a pillbox (short rectangular box or cylinder) straddling the plane. is perpendicular to the plane and passes through the two flat faces; no flux passes through the sides.
If the charge distribution doesn't have one of these symmetries, the integral form of Gauss's law is still true, but it won't give you a shortcut to finding .
Electric flux
Electric flux quantifies how much electric field passes through a surface. Geometrically, you can think of it as counting the net number of field lines piercing the surface (outward minus inward). Its SI unit is V·m (equivalently, N·m²/C).
Flux through closed surfaces
For a closed surface, Gauss's law directly ties the net flux to the enclosed charge:
- If , the net flux is zero. Field lines entering the surface must also exit it.
- If , there's net outward flux.
- If , there's net inward flux.
Charges outside the closed surface contribute zero net flux. Their field lines enter and exit, canceling exactly.

Flux and electric field relationship
For a flat surface in a uniform field, the flux simplifies to:
Here is the angle between and the outward normal to the surface. When the field is parallel to the surface (), the flux is zero. When the field is perpendicular (), the flux is maximized at .
For non-uniform fields or curved surfaces, you must integrate: .
Applying Gauss's law
The general procedure for using Gauss's law to find :
- Identify the symmetry of the charge distribution (spherical, cylindrical, or planar).
- Determine the direction of from that symmetry. For example, spherical symmetry forces to be purely radial.
- Choose a Gaussian surface that matches the symmetry so that is either constant or zero over each part of the surface.
- Evaluate the flux integral. Because of your surface choice, this should reduce to times some geometric factor (area of a sphere, curved surface of a cylinder, etc.).
- Find by integrating the charge density over the volume enclosed by your Gaussian surface.
- Set flux equal to and solve for .
Spherical charge distributions
Use a spherical Gaussian surface of radius centered on the charge distribution.
Point charge : For , , giving . This recovers Coulomb's law.
Uniformly charged solid sphere (total charge , radius ):
- Outside (): . The sphere acts like a point charge.
- Inside (): Only the charge within radius is enclosed. With uniform volume charge density , you get , so . The field grows linearly with inside.
Cylindrical charge distributions
Use a coaxial cylindrical Gaussian surface of radius and length .
Infinite line charge (linear charge density ): The flux passes only through the curved surface: , giving .
Uniformly charged infinite cylinder (radius , volume charge density ):
- Outside (): .
- Inside (): , so . Again, the field grows linearly with inside.
Planar charge distributions
Infinite sheet (surface charge density ): Use a pillbox straddling the sheet. Flux exits through both flat faces: , giving . The field is uniform and independent of distance from the sheet.
Parallel-plate capacitor (plates with and ): Superposing the fields from each sheet, the field between the plates is and zero outside. This is the standard result used in capacitor analysis.
Gauss's law applications
Electric fields of conductors
In electrostatic equilibrium, three results follow directly from Gauss's law:
- The electric field inside a conductor is zero. If it weren't, free charges would move until it is.
- Any net charge resides on the surface. A Gaussian surface just inside the conductor encloses zero field, so it encloses zero charge.
- The field just outside the surface is , directed perpendicular to the surface. You can show this with a small pillbox Gaussian surface straddling the conductor's surface: one face is inside (zero field), the other is just outside.

Shielding and Faraday cages
A closed conducting shell screens its interior from external electric fields. Gauss's law shows why: in equilibrium, charges on the outer surface rearrange to cancel any external field inside the conductor. A Gaussian surface inside the conductor's bulk has zero flux, so the cavity inside is field-free regardless of what's happening outside.
This is the principle behind Faraday cages, used to shield sensitive electronics, protect occupants of vehicles struck by lightning, and isolate experiments from stray fields.
Capacitors and dielectrics
For a parallel-plate capacitor, Gauss's law gives the field between the plates as (as derived above). The potential difference is then , and the capacitance is .
When a dielectric with permittivity fills the gap, bound charges on the dielectric surfaces partially cancel the free charge. Gauss's law in matter uses (the displacement field) instead of :
where . The capacitance increases by a factor of : .
Limitations of Gauss's law
Non-symmetric charge distributions
Gauss's law is always true, but it's only useful for finding when symmetry lets you simplify the surface integral. For an arbitrary charge distribution (say, a bent wire or a finite disk), you can't pull out of the integral, and the law gives you a single equation relating the flux to the charge without telling you the field at any particular point. In those cases, direct integration via Coulomb's law or numerical methods is the way to go.
Electric fields in matter
The basic form includes all charges (free and bound). In linear, isotropic dielectrics, you can work with and free charges only, which keeps things manageable.
For nonlinear, anisotropic, or inhomogeneous materials, and are no longer simply proportional ( with a tensor permittivity, or depends on nonlinearly). Gauss's law still holds, but extracting from it requires additional constitutive relations and often numerical techniques.
Gauss's law vs. Coulomb's law
Both laws describe how charges produce electric fields, and in fact Gauss's law can be derived from Coulomb's law (plus superposition) and vice versa. They're mathematically equivalent for electrostatics.
Similarities and differences
- Coulomb's law gives you the field from a specified charge distribution by direct vector summation or integration. It works for any geometry.
- Gauss's law gives you a constraint (total flux = enclosed charge/) that, with sufficient symmetry, determines algebraically.
- Coulomb's law is inherently an inverse-square law. Gauss's law encodes the same dependence but expresses it through flux, which is why it generalizes naturally to one of Maxwell's equations.
When to use each law
Use Coulomb's law when:
- You have a small number of discrete charges.
- The geometry lacks the symmetry needed for Gauss's law.
- You need the field at a specific point from a known charge configuration.
Use Gauss's law when:
- The charge distribution has spherical, cylindrical, or planar symmetry.
- You want the field over an entire region rather than at a single point.
- You're working with conductors in electrostatic equilibrium.
In many problems, especially at this level, you'll use both: Gauss's law to find the field in a symmetric region, and Coulomb-type integration (or the method of images, multipole expansions, etc.) for everything else.