College Physics • Electrostatics: Charge, Field & Gauss's Law

Gauss's Law

A powerful symmetry-based method for computing electric fields from enclosed charge distributions.

An atom with an orbital path and traveling waves.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

The story of Gauss's Law begins with the broader effort to understand how electric charges produce forces and fields in the space surrounding them. By the late eighteenth century, Charles-Augustin de Coulomb had established an inverse-square law for the electrostatic force between point charges, a relationship strikingly analogous to Newton's gravitational law. Yet Coulomb's approach, while correct, was limited: computing the electric field from an arbitrary distribution of charges required tedious vector summation over every infinitesimal charge element. Physicists needed a more elegant tool—one that could exploit the geometric symmetry of a problem and bypass brute-force integration.

That tool arrived through the work of Carl Friedrich Gauss, who recognized a profound connection between the total electric flux passing through a closed surface and the net charge enclosed within it. This insight, formalized around 1835 but rooted in ideas from Joseph-Louis Lagrange and Siméon Denis Poisson, became one of the four Maxwell's equations—the foundation of classical electromagnetism. Gauss's Law does not replace Coulomb's law; rather, it repackages the same physics in a form that is often far more tractable when the charge distribution possesses spherical, cylindrical, or planar symmetry.

1785 • Coulomb's Inverse-Square Law

Charles-Augustin de Coulomb publishes experiments with a torsion balance, establishing that the electrostatic force between two point charges varies as the inverse square of the distance between them—F ∝ q₁q₂/r².

1813 • Poisson's Equation

Siméon Denis Poisson formulates the differential equation relating the electric potential to the charge density, ∇²V = −ρ/ε₀, laying the mathematical groundwork for the divergence theorem and its application to electric fields.

1835 • Gauss Formulates the Flux Law

Carl Friedrich Gauss articulates the integral relationship between the net electric flux through a closed surface and the enclosed charge. Although unpublished during his lifetime, this result circulated among European mathematicians and physicists.

1865 • Maxwell's Unification

James Clerk Maxwell incorporates Gauss's Law as one of four fundamental equations governing electromagnetism, cementing its role in the theoretical framework that predicts electromagnetic waves and unifies electricity, magnetism, and optics.

The central question Gauss's Law addresses is deceptively simple: given a known distribution of electric charge, how can we determine the electric field everywhere in space without performing a full vector integral? The answer hinges on the concept of electric flux and the strategic construction of imaginary closed surfaces—Gaussian surfaces—that exploit the symmetry of the problem.

SECTION 2

Core Principles & Definitions

Before stating Gauss's Law, we must establish several foundational ideas. The first is the electric field E⃗, a vector field that assigns a force per unit positive test charge at every point in space. The second is electric flux ΦE, which quantifies how much of the electric field "passes through" a given surface. Think of flux as a measure of the number of field lines penetrating a surface: more lines through the surface means greater flux. For a uniform field passing through a flat surface, ΦE = E⃗ · A⃗ = EA cos θ, where θ is the angle between the field and the outward normal to the surface.

1

Electric Flux (ΦE)

The surface integral of the electric field over a surface: ΦE = ∮ E⃗ · dA⃗. It measures how much field "flows" through the surface. Units: N·m²/C (or equivalently V·m).
2

Gaussian Surface

An imaginary closed surface chosen to exploit the symmetry of the charge distribution. It is not a physical object—merely a mathematical construct over which the flux integral is evaluated.
3

Enclosed Charge (qenc)

The total net charge contained within the Gaussian surface. Only charge inside the surface contributes to the net flux; external charges produce zero net flux through the closed surface.
4

Permittivity of Free Space (ε₀)

The fundamental constant ε₀ = 8.854 × 10⁻¹² C²/(N·m²) that characterizes the ability of the vacuum to permit electric field lines. It connects charge to flux in SI units.
5

Symmetry Requirement

Gauss's Law is always true, but it is practically useful for computing E only when the charge distribution has spherical, cylindrical, or planar symmetry—allowing E to be pulled out of the integral.
✦

KEY TAKEAWAY

Imagine standing inside a room with a window. No matter how you reshape or resize the window, the total amount of sunlight entering the room depends only on the brightness of the light source, not on the window's shape. Similarly, the net electric flux through any closed surface depends only on the total charge enclosed, not on the shape of the surface or the position of charges outside it. This is the essence of Gauss's Law.

SECTION 3

Visualizing Electric Flux & Gaussian Surfaces

Gauss's Law: Flux Through a Closed SurfaceGaussian Surface (S)+QdA⃗(outward normal)−qExternal charge:zero net flux contributionE⃗ field linesGaussian surfaceArea element dA⃗
A positive point charge +Q sits at the center of a dashed Gaussian surface. Cyan arrows represent electric field lines radiating outward. The gold vector dA⃗ shows the outward-pointing area element. An external charge −q (green) sends field lines into and back out of the surface, contributing zero net flux.

The diagram above captures the essence of Gauss's Law in visual form. Every electric field line that originates from the enclosed charge +Q must pierce the Gaussian surface from inside to outside, contributing positive flux. The total number of lines (more precisely, the total flux ΦE) is proportional to the enclosed charge Q and is independent of the surface's shape. Meanwhile, the external charge −q sends field lines that enter the surface on one side and exit on the other; these inward and outward contributions cancel exactly, yielding zero net flux from external charges. This cancellation is a direct consequence of the inverse-square character of Coulomb's law—a deeply geometric fact.

The choice of Gaussian surface is crucial for practical calculations. While Gauss's Law holds for any closed surface, the integral simplifies dramatically when the surface is chosen so that E⃗ is either parallel or perpendicular to dA⃗ at every point. For a point charge or a spherically symmetric charge distribution, a concentric sphere is ideal; for an infinite line charge, a coaxial cylinder works best; and for an infinite plane of charge, a rectangular box ("pillbox") straddling the plane is the natural choice.

SECTION 4

Mathematical Framework

Gauss's Law can be stated in two mathematically equivalent forms: an integral form and a differential form. The integral form is most useful for calculating electric fields in problems with high symmetry, while the differential form connects naturally to the broader structure of Maxwell's equations and is essential for advanced electrodynamics.

GAUSS'S LAW — INTEGRAL FORM

∮E⃗⋅dA⃗=qenc/ε0∮ E⃗ · dA⃗ = q_enc / ε₀

∮ denotes integration over a closed surface S. E⃗ is the electric field at each point on S. dA⃗ is the outward-pointing infinitesimal area vector. qenc is the net charge enclosed by S. ε₀ = 8.854 × 10⁻¹² C²/(N·m²) is the permittivity of free space.

GAUSS'S LAW — DIFFERENTIAL FORM

∇⋅E⃗=ρ/ε0∇ · E⃗ = ρ / ε₀

∇ · E⃗ is the divergence of the electric field—a scalar measuring the net "outflow" of field at a point. ρ is the volume charge density in C/m³. This form is obtained from the integral form via the divergence theorem.

ELECTRIC FLUX — DEFINITION

ΦE=∮E⃗⋅dA⃗=∮EcosθdAΦ_E = ∮ E⃗ · dA⃗ = ∮ E cos θ dA

θ is the angle between the electric field vector E⃗ and the outward area normal n̂. When E⃗ is parallel to dA⃗ (θ = 0), cos θ = 1 and the flux is maximized. When E⃗ is tangent to the surface (θ = 90°), cos θ = 0 and no flux passes through that surface element.

The power of the integral form lies in its ability to reduce a vector surface integral to a simple algebraic equation under conditions of high symmetry. Consider a charge distribution with spherical symmetry—for example, a uniformly charged solid sphere. By choosing a concentric spherical Gaussian surface of radius r, symmetry guarantees that E⃗ is radial and has the same magnitude E at every point on the surface. The dot product E⃗ · dA⃗ becomes simply E dA, and since E is constant over the surface, it factors out of the integral: ∮ E dA = E × 4πr². Setting this equal to qenc/ε₀ yields E = qenc/(4πε₀r²), which is precisely Coulomb's law for the field of a point charge. This derivation confirms that Gauss's Law and Coulomb's law are equivalent statements of the same physics.

⚠

Important Distinction

Gauss's Law is always true—it holds for any charge distribution and any closed surface. However, it is only practically useful for computing E when the distribution has sufficient symmetry (spherical, cylindrical, or planar) to allow E to be factored out of the surface integral. For asymmetric configurations, one must resort to direct integration of Coulomb's law or numerical methods.

SECTION 5

Applying Gauss's Law to the Three Symmetries

The practical utility of Gauss's Law emerges when we match the symmetry of the charge distribution to an appropriately shaped Gaussian surface. In each case, the goal is the same: choose a surface on which the electric field magnitude is constant and either parallel or perpendicular to the area element, so that the flux integral collapses to a simple product. The three canonical symmetries—spherical, cylindrical, and planar—cover a wide range of physically important configurations.

Three Canonical Gaussian Surfaces+QrSphericalE = q/(4πε₀r²)Surface: concentric sphereλrLCylindricalE = λ/(2πε₀r)Surface: coaxial cylinderσPlanarE = σ/(2ε₀)Surface: pillbox
The three canonical symmetries and their Gaussian surfaces. Spherical symmetry (left): a point or uniform sphere uses a concentric spherical surface. Cylindrical symmetry (center): an infinite line charge λ uses a coaxial cylindrical surface of length L. Planar symmetry (right): an infinite sheet of charge σ uses a rectangular pillbox straddling the plane.
SymmetryGaussian SurfaceFlux IntegralResult for E
SphericalConcentric sphere of radius rE × 4πr² = qenc/ε₀E = qenc/(4πε₀r²)
CylindricalCoaxial cylinder of radius r, length LE × 2πrL = λL/ε₀E = λ/(2πε₀r)
PlanarPillbox of face area A2EA = σA/ε₀E = σ/(2ε₀)

Summary of Gauss's Law results for the three canonical symmetries

Several features of these results deserve emphasis. In the spherical case, the field outside a uniformly charged sphere is identical to the field of a point charge at the center—a result known as Newton's shell theorem (originally derived for gravity). In the cylindrical case, the field falls off as 1/r, not 1/r²; this slower decay reflects the infinite extent of the line charge in the axial direction. In the planar case, the field is uniform—it does not depend on the distance from the plane at all, a consequence of the infinite extent of the sheet in two dimensions. These idealized results are excellent approximations for finite charge distributions at distances much smaller than the extent of the distribution.

SECTION 6

Worked Example: Field of a Uniformly Charged Sphere

Consider a solid insulating sphere of radius R = 0.10 m carrying a total charge Q = +5.0 × 10⁻⁶ C distributed uniformly throughout its volume. We wish to find the electric field at two points: (a) at r = 0.20 m (outside the sphere) and (b) at r = 0.05 m (inside the sphere).

Electric Field of a Uniformly Charged Solid Sphere

  1. 1

    Step 1 — Identify Given Values and Symmetry

    We have a uniformly charged solid sphere with total charge Q = 5.0 × 10⁻⁶ C and radius R = 0.10 m. The charge distribution has spherical symmetry, so we choose a concentric spherical Gaussian surface. The volume charge density is ρ = Q/( (4/3)πR³ ) = (5.0 × 10⁻⁶)/( (4/3)π(0.10)³ ) = (5.0 × 10⁻⁶)/(4.19 × 10⁻³ m³) ≈ 1.19 × 10⁻³ C/m³.
  2. 2

    Step 2 — Part (a): Field Outside the Sphere (r = 0.20 m > R)

    For r > R, the Gaussian sphere of radius r encloses all the charge Q. By symmetry, E⃗ is radial and constant on the Gaussian surface. Gauss's Law gives: E × 4πr² = Q/ε₀. Solving for E: E = Q/(4πε₀r²) = (8.99 × 10⁹)(5.0 × 10⁻⁶)/(0.20)² = (4.495 × 10⁴)/(0.04)
    E = 1.12 × 10⁶ N/C (directed radially outward)
  3. 3

    Step 3 — Part (b): Determine Enclosed Charge for r < R

    For r = 0.05 m < R, the Gaussian sphere encloses only a fraction of the total charge. Since the charge is uniformly distributed, the enclosed charge scales with the volume ratio: qenc = Q × (r/R)³ = (5.0 × 10⁻⁶)(0.05/0.10)³ = (5.0 × 10⁻⁶)(0.125) = 6.25 × 10⁻⁷ C. (This matches ρ × (4/3)πr³, confirming the density from Step 1 is consistent.)
  4. 4

    Step 4 — Part (b): Apply Gauss's Law Inside the Sphere

    Applying Gauss's Law: E × 4πr² = qenc/ε₀, so E = qenc/(4πε₀r²) = (8.99 × 10⁹)(6.25 × 10⁻⁷)/(0.05)² = (5.62 × 10³)/(2.5 × 10⁻³).
    E = 2.25 × 10⁶ N/C (directed radially outward)
  5. 5

    Step 5 — Verify and Interpret

    We can check this result using the equivalent form E(r < R) = Qr/(4πε₀R³), which follows from combining qenc = Q(r/R)³ with Gauss's Law: E = (8.99 × 10⁹)(5.0 × 10⁻⁶)(0.05)/(0.10)³ = 2.25 × 10⁶ N/C, which matches Step 4. Inside the sphere, E grows linearly with r, reaching its maximum at the surface. Outside, E falls as 1/r². As a further check, the field at the surface (r = R) computed from either expression is E(R) = Q/(4πε₀R²) ≈ 4.50 × 10⁶ N/C, and indeed E(r = 0.05 m) is exactly half of E(R), consistent with the linear relationship E ∝ r for r < R.
    E(r = 0.05 m) ≈ 2.25 × 10⁶ N/C (radially outward); E(r = 0.20 m) ≈ 1.12 × 10⁶ N/C (radially outward)
💡

Tip: Check Your Limits

Always verify that your inside and outside expressions agree at r = R. At the surface, both formulas should give E = Q/(4πε₀R²). If they don't match, you've made an error in determining qenc or the surface area.

SECTION 7

Strengths, Limitations & Comparison with Coulomb's Law

Gauss's Law and Coulomb's law are physically equivalent—each can be derived from the other. However, they differ greatly in their computational convenience depending on the problem at hand. Understanding when to deploy each method is an essential skill in electrostatics.

FeatureGauss's LawCoulomb's Law (Direct Integration)
Best used whenCharge distribution has spherical, cylindrical, or planar symmetryArbitrary charge configurations with no exploitable symmetry
Computational effortReduces to algebra once symmetry is identified—fast and elegantRequires vector integration over all charge elements—can be laborious
OutputDirectly gives the magnitude of E on the Gaussian surfaceGives both magnitude and direction of E at any specific point
LimitationCannot determine E for asymmetric configurations without additional informationIntegrals can become analytically intractable for complex geometries
GeneralityAlways valid; extends naturally to differential form and Maxwell's equationsValid for electrostatics only (requires modification for moving charges)

Gauss's Law vs. Coulomb's Law: practical comparison

✦

KEY TAKEAWAY

Think of Gauss's Law as a high-powered telescope and Coulomb's law as a general-purpose camera. The telescope gives you spectacular results when pointed at the right target (a symmetric charge distribution), but it's useless for capturing a panoramic scene of an asymmetric charge arrangement. Coulomb's law, by contrast, works everywhere but requires more effort for each shot. A skilled physicist selects the right tool for the problem at hand.

SECTION 8

Connection to Maxwell's Equations & Advanced Theory

Gauss's Law is not an isolated result—it is the first of Maxwell's four equations, the complete set of differential equations governing classical electromagnetism. In its differential form, ∇ · E⃗ = ρ/ε₀, Gauss's Law states that electric charges are the sources (and sinks) of the electric field. This is in contrast to the magnetic field, for which the analogous equation ∇ · B⃗ = 0 asserts the nonexistence of magnetic monopoles. Together, these divergence equations constrain the topology of electric and magnetic field lines: electric field lines begin and end on charges, while magnetic field lines always form closed loops.

ConceptGauss's Law (Electrostatics)Advanced Extension
Integral form∮ E⃗ · dA⃗ = qenc/ε₀∮ D⃗ · dA⃗ = qfree (in dielectrics, using displacement field D⃗ = εE⃗)
Differential form∇ · E⃗ = ρ/ε₀∇ · D⃗ = ρfree (separates bound from free charge)
MediumFree space (vacuum) onlyArbitrary linear dielectric materials with permittivity ε = κε₀
Gravitational analog∮ g⃗ · dA⃗ = −4πGMencGeneral relativity replaces Gauss's gravitational law with Einstein's field equations

Gauss's Law: foundational vs. advanced formulations

In more advanced courses, you will encounter the displacement field D⃗, which generalizes Gauss's Law to materials containing bound polarization charges. You will also see how the divergence theorem (also called Gauss's theorem from vector calculus) provides the mathematical bridge between the integral and differential forms. The same divergence-theorem structure appears in fluid mechanics (conservation of mass), heat transfer (Fourier's law), and general relativity, making Gauss's Law a prototype for a much broader class of physical conservation laws.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A Gaussian surface encloses three charges: +4 μC, −2 μC, and +1 μC. A fourth charge of +10 μC is placed 5 cm outside the surface. What is the net electric flux through the Gaussian surface? Does moving the external charge closer to (but still outside) the surface change the answer? Explain your reasoning.
Show answer
By Gauss's Law, the net flux depends only on the enclosed charge: qenc = +4 − 2 + 1 = +3 μC = 3.0 × 10⁻⁶ C. Therefore ΦE = qenc/ε₀ = (3.0 × 10⁻⁶)/(8.854 × 10⁻¹²) ≈ 3.39 × 10⁵ N·m²/C. The external +10 μC charge does not affect the net flux, regardless of its distance from the surface. While it alters the local field at every point on the surface, the additional flux entering the surface from the external charge equals the flux exiting, yielding zero net contribution.

Question 2: BASIC CALCULATION

A long, straight wire carries a uniform linear charge density λ = 8.0 × 10⁻⁸ C/m. Using Gauss's Law, find the magnitude of the electric field at a radial distance r = 0.25 m from the wire.
Show answer
We choose a coaxial cylindrical Gaussian surface of radius r = 0.25 m and length L. By cylindrical symmetry, E⃗ is radial and constant on the curved surface, while the flux through the two flat end caps is zero (E⃗ ⊥ dA⃗). Gauss's Law gives E × 2πrL = λL/ε₀. The L cancels, yielding E = λ/(2πε₀r) = (8.0 × 10⁻⁸)/(2π × 8.854 × 10⁻¹² × 0.25) = (8.0 × 10⁻⁸)/(1.392 × 10⁻¹¹) ≈ 5.75 × 10³ N/C. The field points radially outward (away from the wire, since λ > 0).

Question 3: INTERMEDIATE

A thin spherical shell of radius R = 0.15 m carries a total charge Q = −6.0 × 10⁻⁶ C uniformly distributed on its surface. Find the electric field at (a) r = 0.10 m (inside the shell) and (b) r = 0.30 m (outside the shell). Explain why the interior result is physically significant.
Show answer
(a) Inside the shell (r = 0.10 m < R): A concentric spherical Gaussian surface of radius 0.10 m encloses no charge, since all charge resides on the shell at r = R. By Gauss's Law, E × 4πr² = 0, so E = 0. This is the basis of electrostatic shielding—a conducting shell screens its interior from external fields. (b) Outside the shell (r = 0.30 m > R): The Gaussian surface encloses all the charge Q. Thus E = |Q|/(4πε₀r²) = (8.99 × 10⁹)(6.0 × 10⁻⁶)/(0.30)² = (5.394 × 10⁴)/(0.09) ≈ 5.99 × 10⁵ N/C, directed radially inward (toward the center) because Q is negative. The shell behaves identically to a point charge −Q at its center for all exterior points.

Question 4: APPLIED

A parallel-plate capacitor has plates of area A = 0.02 m² separated by a distance d = 1.0 mm in vacuum. Each plate carries a surface charge density of magnitude σ = 4.0 × 10⁻⁶ C/m². Using Gauss's Law with a pillbox surface, derive the electric field between the plates and calculate the potential difference across the capacitor.
Show answer
We apply Gauss's Law to a pillbox that straddles one plate. The field from a single infinite conducting plate (one side) is E₁ = σ/ε₀ between the plates (the field is zero inside the conductor and the contributions from each face add between the plates). Thus E = σ/ε₀ = (4.0 × 10⁻⁶)/(8.854 × 10⁻¹²) ≈ 4.52 × 10⁵ N/C. This uniform field points from the positive to the negative plate. The potential difference is V = Ed = (4.52 × 10⁵)(1.0 × 10⁻³) ≈ 452 V. Note: for the parallel-plate geometry, each plate contributes σ/(2ε₀) to the interior field and these add, giving σ/ε₀ total—equivalent to applying Gauss's Law to a pillbox enclosing one plate's surface charge.

Question 5: CRITICAL THINKING

A solid non-conducting sphere of radius R has a non-uniform volume charge density ρ(r) = ρ₀(r/R), where ρ₀ is a constant. Using Gauss's Law, derive an expression for the electric field as a function of r for both r < R and r > R. Then show that your two expressions agree at r = R.
Show answer
For r < R: The enclosed charge is qenc = ∫₀ʳ ρ₀(r′/R) × 4πr′² dr′ = (4πρ₀/R) ∫₀ʳ r′³ dr′ = (4πρ₀/R)(r⁴/4) = πρ₀r⁴/R. Gauss's Law: E × 4πr² = πρ₀r⁴/(Rε₀), so E(r < R) = ρ₀r²/(4ε₀R). For r > R: The total charge is Q = πρ₀R⁴/R = πρ₀R³. Then E × 4πr² = πρ₀R³/ε₀, giving E(r > R) = ρ₀R³/(4ε₀r²). At r = R: the inside expression gives E = ρ₀R²/(4ε₀R) = ρ₀R/(4ε₀), and the outside expression gives E = ρ₀R³/(4ε₀R²) = ρ₀R/(4ε₀). They agree, confirming continuity of the electric field at the surface. The inside field grows as r², reflecting the faster accumulation of charge density at larger radii.

SUMMARY

Gauss's Law — Summary

Summary

Gauss's Law states that the net electric flux through any closed surface equals the enclosed charge divided by ε₀: ∮ E⃗ · dA⃗ = qenc/ε₀. Although universally valid, its primary computational power emerges when the charge distribution exhibits spherical, cylindrical, or planar symmetry, allowing the electric field magnitude to be factored out of the surface integral. By choosing an appropriate Gaussian surface—a concentric sphere, coaxial cylinder, or pillbox—the integral reduces to simple algebra.

Key results include the inverse-square field of a point charge (E ∝ 1/r²), the inverse-distance field of an infinite line charge (E ∝ 1/r), and the uniform field of an infinite plane (E = σ/2ε₀). Gauss's Law also reveals that charges outside the surface contribute zero net flux, and that a conducting shell shields its interior (E = 0 inside). As the first of Maxwell's equations, Gauss's Law connects electrostatics to the broader framework of classical electromagnetism and generalizes to dielectric media via the displacement field D⃗.

Varsity Tutors • College Physics • Gauss's Law