Dove's LibraryDove's Library

1.6 - Gauss’s Law

Introduction to Gauss’s Law

Gauss’s Law gives you a powerful link between the electric flux through a closed surface and the charge enclosed by that surface. It ties together electric fields, flux, and charge distribution into one elegant equation.
Gauss’s Law is the first of Maxwell’s equations, a set of four fundamental equations that completely describe all electromagnetic phenomena, including the nature of light itself.

The Mathematical Statement

ΦE=Qenclosedϵ0\Phi_E = \frac{Q_{enclosed}}{\epsilon_0}
Or in its complete integral form:
∮E⃗⋅dA⃗=Qenclosedϵ0\oint \vec{E} \cdot d\vec{A} = \frac{Q_{enclosed}}{\epsilon_0}
where: - ΦE\Phi_E = total electric flux through a closed surface (N·m²/C) - QenclosedQ_{enclosed} = net charge enclosed within the surface (C) - ϵ0=8.85×10−12\epsilon_0 = 8.85 \times 10^{-12} C²/(N·m²), the permittivity of free space - ∮\oint = a surface integral over a closed surface

The Simplified Form

For most AP Physics C problems, the surface integral collapses to:
EA=Qenclosedϵ0EA = \frac{Q_{enclosed}}{\epsilon_0}
where EE is constant over the surface and perpendicular to it everywhere, and AA is the area of the surface. If part of the surface runs parallel to the field (like the flat ends of a Gaussian cylinder around a line of charge), that part adds no flux, so only the rest of the area counts.

Gaussian Surfaces

A Gaussian surface is an imaginary closed three-dimensional surface you use to apply Gauss’s Law. Choosing it is strategic, since you want shapes that exploit the symmetry.

Properties of Gaussian Surfaces

  1. Always closed. It completely encloses a volume, with no openings.
  1. Imaginary. It’s not a physical object, just a mathematical construct.
  1. Chosen for symmetry. Pick it so the electric field is either:
      • Perpendicular to the surface (maximum flux, θ=0°\theta = 0°), or
      • Parallel to the surface (zero flux, θ=90°\theta = 90°).
  1. Flux is independent of the surface size. As long as the enclosed charge stays the same, the total flux is the same no matter how big you make the surface.
Why: for a point charge, EE falls off as 1/r21/r^2 while the area of a sphere grows as r2r^2, so their product stays the same. A +2.0+2.0 nC charge sends a flux of q/ϵ0=(2.0×10−9 C)/(8.85×10−12 C2/(N\cdotpm2))=2.3×102q/\epsilon_0 = (2.0 \times 10^{-9} \text{ C})/(8.85 \times 10^{-12} \text{ C}^2\text{/(N·m}^2)) = 2.3 \times 10^2 N·m²/C through a sphere of radius 1 cm, 1 m, or 1 km, and through a cube or any other closed surface around it. If the charge sits at the center of a cube, the six faces are identical, so each one gets a sixth of the total, about 38 N·m²/C. You never need EE itself, which is lucky, since it changes from point to point on each face.

Common Gaussian Surface Shapes

1.6 - Gauss’s Law

Charge Density Functions

When charge is spread continuously, we use charge density to describe how it’s distributed through space.

Linear Charge Density (λ, lambda)

Definition: charge per unit length.
λ=QL\lambda = \frac{Q}{L}
For integration:
dq=λ dℓdq = \lambda \, d\ell
where dℓd\ell is an infinitesimal length element.
Units: C/m. Used for line charges, thin wires, and rods.

Surface Charge Density (σ, sigma)

Definition: charge per unit area.
σ=QA\sigma = \frac{Q}{A}
For integration:
dq=σ dAdq = \sigma \, dA
where dAdA is an infinitesimal area element.
Units: C/m². Used for charged sheets, surfaces, and thin films.

Volume Charge Density (ρ, rho)

Definition: charge per unit volume.
ρ=QV\rho = \frac{Q}{V}
For integration:
dq=ρ dVdq = \rho \, dV
where dVdV is an infinitesimal volume element.
Units: C/m³. Used for three-dimensional charge distributions, clouds, and spheres.

Finding Total Charge by Integrating a Density

When the density changes from place to place, you can’t just multiply density by size. Instead, slice the object into pieces small enough that the density is constant on each one, write dqdq for one piece, and add up the pieces with an integral. The equation sheet gives the 3D version:
Qtotal=∫ρ(r) dVQ_{total} = \int \rho(r)\,dV
Choose slices that match the shape: - Line: pieces of length dxdx, so Q=∫λ(x) dxQ = \int \lambda(x)\,dx. - Flat disk: thin rings of radius rr and width drdr, with dA=2πr drdA = 2\pi r\,dr, so Q=∫σ(r) 2πr drQ = \int \sigma(r)\,2\pi r\,dr. - Sphere: thin shells of radius rr and thickness drdr, with dV=4πr2 drdV = 4\pi r^2\,dr, so Q=∫ρ(r) 4πr2 drQ = \int \rho(r)\,4\pi r^2\,dr. - Cylinder of length L: thin cylindrical shells, with dV=2πrL drdV = 2\pi rL\,dr.
Example (disk): a disk of radius 0.10 m has σ(r)=cr\sigma(r) = cr, with c=3.0×10−6c = 3.0 \times 10^{-6} C/m³ and rr measured from the center.
Q=∫00.10cr (2πr dr)=2πc(0.10 m)33=2π(3.0×10−6 C/m3)(1.0×10−3 m3)3=6.3×10−9 CQ = \int_0^{0.10} cr\,(2\pi r\,dr) = \frac{2\pi c(0.10 \text{ m})^3}{3} = \frac{2\pi(3.0 \times 10^{-6} \text{ C/m}^3)(1.0 \times 10^{-3} \text{ m}^3)}{3} = 6.3 \times 10^{-9} \text{ C}
Example Problem 3 below does the sphere version.

Applying Gauss’s Law: The Strategy

  1. Identify the symmetry. Is it spherical? Cylindrical? Planar?
  1. Choose an appropriate Gaussian surface that matches the symmetry of the charge distribution.
  1. Determine the enclosed charge. Find QenclosedQ_{enclosed} inside your surface.
  1. Evaluate the flux integral. Use the symmetry to simplify ∮E⃗⋅dA⃗\oint \vec{E} \cdot d\vec{A}.
  1. Apply Gauss’s Law. Set the flux equal to Qenclosed/ϵ0Q_{enclosed}/\epsilon_0.
  1. Solve for the field. Isolate EE algebraically.

Example Problem 1: Field Outside a Uniformly Charged Sphere

Problem: A solid sphere of radius RR carries a total charge +Q+Q spread uniformly through its volume. Use Gauss’s Law to find the electric field at a distance r>Rr > R, outside the sphere.
1.6 - Gauss’s Law

Solution

Step 1: Identify the symmetry
It’s spherically symmetric, so use a spherical Gaussian surface centered on the sphere.
Step 2: Choose the Gaussian surface
A sphere of radius rr (with r>Rr > R), concentric with the charged sphere.
Step 3: Determine the enclosed charge
The entire charged sphere is inside our Gaussian surface, so:
Qenclosed=QQ_{enclosed} = Q
Step 4: Evaluate the flux
By symmetry, EE is constant at radius rr and perpendicular to the surface everywhere:
∮E⃗⋅dA⃗=E∮dA=E(4πr2)\oint \vec{E} \cdot d\vec{A} = E \oint dA = E(4\pi r^2)
Step 5: Apply Gauss’s Law
E(4πr2)=Qϵ0E(4\pi r^2) = \frac{Q}{\epsilon_0}
Step 6: Solve for E
E=Q4πϵ0r2=kQr2E = \frac{Q}{4\pi\epsilon_0 r^2} = \frac{kQ}{r^2}
The result: outside a uniformly charged sphere, the field is identical to that of a point charge. This is exactly where the point charge formula E=kQ/r2E = kQ/r^2 comes from.

Example Problem 2: Field Inside vs. Outside a Sphere

Problem: A spherical cloud of charge has radius RR and total charge +Q+Q. Find the field magnitude: (a) Outside the cloud (r>Rr > R). (b) Inside the cloud at radius r<Rr < R, assuming uniform charge density.

Solution

(a) Outside the cloud (r>Rr > R)
From the previous example:
E=kQr2=Q4πϵ0r2E = \frac{kQ}{r^2} = \frac{Q}{4\pi\epsilon_0 r^2}
(b) Inside the cloud (r<Rr < R)
Step 1: use a Gaussian sphere of radius r<Rr < R.
Step 2: find the enclosed charge.
The volume charge density is:
ρ=QVtotal=Q43πR3\rho = \frac{Q}{V_{total}} = \frac{Q}{\frac{4}{3}\pi R^3}
The charge enclosed within radius rr:
Qenclosed=ρ⋅Venclosed=Q43πR3⋅43πr3=Qr3R3Q_{enclosed} = \rho \cdot V_{enclosed} = \frac{Q}{\frac{4}{3}\pi R^3} \cdot \frac{4}{3}\pi r^3 = Q\frac{r^3}{R^3}
Step 3: apply Gauss’s Law.
E(4πr2)=Qenclosedϵ0=Qr3/R3ϵ0E(4\pi r^2) = \frac{Q_{enclosed}}{\epsilon_0} = \frac{Q r^3/R^3}{\epsilon_0}
Step 4: solve.
E=Qr4πϵ0R3=kQrR3E = \frac{Qr}{4\pi\epsilon_0 R^3} = \frac{kQr}{R^3}
The result: inside a uniformly charged sphere, the field grows linearly with rr.
1.6 - Gauss’s Law

Example Problem 3: Non-Uniform Charge Distribution

Problem: A spherical cloud of radius RR holds total charge +Q+Q with a non-uniform volume charge density:
ρ(r)=ρ0(1−rR) for r≤R\rho(r) = \rho_0\left(1 - \frac{r}{R}\right) \text{ for } r \leq Rρ(r)=0 for r>R\rho(r) = 0 \text{ for } r > R
Find the electric field for r>Rr > R, outside the cloud.

Solution

The key insight: when r>Rr > R, the Gaussian surface encloses all the charge in the cloud.
Step 1: choose a spherical Gaussian surface with radius r>Rr > R.
Step 2: find the enclosed charge.
All of it is enclosed, so Qenclosed=QQ_{enclosed} = Q, the given total charge.
Step 3: apply Gauss’s Law.
E(4πr2)=Qϵ0E(4\pi r^2) = \frac{Q}{\epsilon_0}
Step 4: solve for E.
E=Q4πϵ0r2=kQr2E = \frac{Q}{4\pi\epsilon_0 r^2} = \frac{kQ}{r^2}
The important conclusion: for any spherically symmetric charge distribution, the external field (r>Rr > R) depends only on the total charge and the distance, not on how that charge is arranged internally. From outside, the sphere acts like a point charge.

Example 3, Continued: Total Charge and the Field Inside

Also find: (b) The total charge QQ in terms of ρ0\rho_0 and RR. (c) The field inside the cloud (r<Rr < R).
Part (b): Integrate the density over the whole sphere
Use thin shells, dV=4πr2 drdV = 4\pi r^2\,dr:
Q=∫0Rρ0(1−rR)4πr2 dr=4πρ0[r33−r44R]0R=4πρ0(R33−R34)=πρ0R33Q = \int_0^R \rho_0\left(1 - \frac{r}{R}\right)4\pi r^2\,dr = 4\pi\rho_0\left[\frac{r^3}{3} - \frac{r^4}{4R}\right]_0^R = 4\pi\rho_0\left(\frac{R^3}{3} - \frac{R^3}{4}\right) = \frac{\pi\rho_0R^3}{3}
Part (c): Inside, the Gaussian sphere only encloses the charge out to radius r
Same integral, but the upper limit is now rr (use ss for the integration variable so it doesn’t get mixed up with the limit):
Qenc=∫0rρ0(1−sR)4πs2 ds=4πρ0(r33−r44R)Q_{enc} = \int_0^r \rho_0\left(1 - \frac{s}{R}\right)4\pi s^2\,ds = 4\pi\rho_0\left(\frac{r^3}{3} - \frac{r^4}{4R}\right)E(4πr2)=Qencϵ0⇒E=ρ0ϵ0(r3−r24R)E(4\pi r^2) = \frac{Q_{enc}}{\epsilon_0} \quad\Rightarrow\quad E = \frac{\rho_0}{\epsilon_0}\left(\frac{r}{3} - \frac{r^2}{4R}\right)
Check at the surface: at r=Rr = R this gives E=ρ0R/(12ϵ0)E = \rho_0R/(12\epsilon_0). The outside formula gives kQ/R2=πρ0R3/34πϵ0R2=ρ0R/(12ϵ0)kQ/R^2 = \frac{\pi\rho_0R^3/3}{4\pi\epsilon_0R^2} = \rho_0R/(12\epsilon_0). They match, so the field is continuous at the surface.
Unlike the uniform sphere, this field isn’t linear inside. Setting dE/dr=0dE/dr = 0 gives r=2R/3r = 2R/3: the field rises to a peak of ρ0R/(9ϵ0)\rho_0R/(9\epsilon_0) there, then dips a little before the surface, because there’s very little charge near the edge to add.
1.6 - Gauss’s Law

Cylindrical Symmetry: Line Charges and Long Cylinders

Problem: An infinitely long, thin line carries a uniform charge per unit length λ\lambda. Use Gauss’s Law to find the field a distance rr from the line.
Step 1: Identify the symmetry
The line looks the same from every side and goes on forever in both directions, so the field must point straight out from the line (radially) and have the same strength everywhere at distance rr.
Step 2: Choose the Gaussian surface
A closed cylinder of radius rr and length ℓ\ell, centered on the line (the middle shape in the Gaussian surfaces figure above).
Step 3: Determine the enclosed charge
Qenclosed=λℓQ_{enclosed} = \lambda\ell
Step 4: Evaluate the flux
On the two flat end caps, E⃗\vec{E} runs along the surface, so they contribute no flux. On the curved side, E⃗\vec{E} is perpendicular to the surface and has the same magnitude everywhere:
∮E⃗⋅dA⃗=E(2πrℓ)+0+0\oint \vec{E} \cdot d\vec{A} = E(2\pi r\ell) + 0 + 0
Step 5: Apply Gauss’s Law and solve for E
E(2πrℓ)=λℓϵ0⇒E=λ2πϵ0r=2kλrE(2\pi r\ell) = \frac{\lambda\ell}{\epsilon_0} \quad\Rightarrow\quad E = \frac{\lambda}{2\pi\epsilon_0 r} = \frac{2k\lambda}{r}
The length ℓ\ell cancels, as it should, since you chose it. This is the same answer Topic 1.4 got by integrating, in a fraction of the work.

Solid Cylinder with Uniform Charge Density

A very long solid cylinder of radius RR has charge spread uniformly through its volume with density ρ\rho. Use the same Gaussian cylinder (radius rr, length ℓ\ell).
Outside (r > R): the Gaussian cylinder encloses all the charge in its length, Qenclosed=ρπR2ℓQ_{enclosed} = \rho\pi R^2\ell:
E(2πrℓ)=ρπR2ℓϵ0⇒E=ρR22ϵ0rE(2\pi r\ell) = \frac{\rho\pi R^2\ell}{\epsilon_0} \quad\Rightarrow\quad E = \frac{\rho R^2}{2\epsilon_0 r}
That’s the line charge field with λ=ρπR2\lambda = \rho\pi R^2.
Inside (r < R): only the charge within radius rr counts, Qenclosed=ρπr2ℓQ_{enclosed} = \rho\pi r^2\ell:
E(2πrℓ)=ρπr2ℓϵ0⇒E=ρr2ϵ0E(2\pi r\ell) = \frac{\rho\pi r^2\ell}{\epsilon_0} \quad\Rightarrow\quad E = \frac{\rho r}{2\epsilon_0}
Inside, EE grows linearly with rr, and both formulas give ρR/(2ϵ0)\rho R/(2\epsilon_0) at the surface.

Planar Symmetry: An Infinite Sheet of Charge

Problem: A very large, flat, thin sheet carries a uniform surface charge density σ\sigma. Use Gauss’s Law to find the field near it.
Step 1: Identify the symmetry
The sheet looks the same everywhere, so the field must point straight away from it on both sides (for σ>0\sigma > 0), with the same strength at equal distances on either side.
Step 2: Choose the Gaussian surface
A “pillbox”: a short cylinder that pokes through the sheet, with one flat end of area AA on each side (the right-hand shape in the Gaussian surfaces figure above).
Step 3: Determine the enclosed charge
Qenclosed=σAQ_{enclosed} = \sigma A
Step 4: Evaluate the flux
E⃗\vec{E} is perpendicular to both flat ends and points outward through each. On the curved side, E⃗\vec{E} runs along the surface, so no flux:
∮E⃗⋅dA⃗=EA+EA+0=2EA\oint \vec{E} \cdot d\vec{A} = EA + EA + 0 = 2EA
Step 5: Apply Gauss’s Law and solve for E
2EA=σAϵ0⇒E=σ2ϵ02EA = \frac{\sigma A}{\epsilon_0} \quad\Rightarrow\quad E = \frac{\sigma}{2\epsilon_0}
There’s no distance in the answer: the field of an infinite sheet is uniform. It’s the same 1 mm away or 10 cm away. Real sheets aren’t infinite, so this works when you’re much closer to the sheet than to its edges. Topic 3.3 adds the fields of a +σ+\sigma sheet and a −σ-\sigma sheet to get the field inside a parallel plate capacitor.
Example: a large flat sheet has σ=+5.0×10−9\sigma = +5.0 \times 10^{-9} C/m². On both sides, the field points away from the sheet, and its magnitude is:
E=σ2ϵ0=5.0×10−9 C/m22(8.85×10−12 C2/(N\cdotpm2))=2.8×102 N/CE = \frac{\sigma}{2\epsilon_0} = \frac{5.0 \times 10^{-9} \text{ C/m}^2}{2(8.85 \times 10^{-12}\text{ C}^2\text{/(N·m}^2))} = 2.8 \times 10^2 \text{ N/C}

Gauss’s Law and Maxwell’s Equations

Gauss’s Law is the first of Maxwell’s four equations, which together fully describe all electromagnetic phenomena:
  1. Gauss’s Law (for electricity):
    1. ∮E⃗⋅dA⃗=Qenclosedϵ0\oint \vec{E} \cdot d\vec{A} = \frac{Q_{enclosed}}{\epsilon_0}
  1. Gauss’s Law for Magnetism:
    1. ∮B⃗⋅dA⃗=0\oint \vec{B} \cdot d\vec{A} = 0
  1. Faraday’s Law:
    1. ∮E⃗⋅dℓ⃗=−dΦBdt\oint \vec{E} \cdot d\vec{\ell} = -\frac{d\Phi_B}{dt}
  1. Ampère-Maxwell Law:
    1. ∮B⃗⋅dℓ⃗=μ0Ienclosed+μ0ϵ0dΦEdt\oint \vec{B} \cdot d\vec{\ell} = \mu_0 I_{enclosed} + \mu_0\epsilon_0\frac{d\Phi_E}{dt}
A bit of history: James Clerk Maxwell unified these equations in the 1860s. His synthesis revealed that light is an electromagnetic wave and predicted the entire electromagnetic spectrum. It’s one of the greatest achievements in the history of physics.

When to Use Gauss’s Law

Gauss’s Law is most useful when: - There’s high symmetry (spherical, cylindrical, or planar). - You need to find the field, not the flux. - The charge distribution has a simple geometry.
Gauss’s Law is less practical when: - There’s little or no symmetry. - The charge distributions are irregular. - You have multiple charges at arbitrary positions.
In low-symmetry cases, fall back on superposition and direct integration.

Common Mistakes

  1. Using the wrong charge. Use only the charge enclosed by your Gaussian surface, not every charge in the problem. Charge outside the surface contributes nothing to the flux through it.
  1. Forgetting that Gauss’s Law only works easily with symmetry. With no symmetry, the integral ∮E⃗⋅dA⃗\oint \vec{E} \cdot d\vec{A} gets brutal. Gauss’s Law is always true, but it’s only computationally useful when the symmetry is high.
  1. Using the wrong surface area formula. For a sphere use 4πr24\pi r^2, and for a cylinder’s curved surface use 2πrh2\pi r h. Don’t confuse surface area with volume.
  1. Treating non-uniform fields as uniform. You can only pull EE out of the integral when it’s constant over the surface. If EE varies, integrate or pick a different surface.
  1. Confusing enclosed charge with charge density. When you’re given ρ\rho, σ\sigma, or λ\lambda, you have to integrate to get QenclosedQ_{enclosed}. For non-uniform distributions, that means Q=∫ρ dVQ = \int \rho \, dV or similar.
  1. Thinking zero flux means zero field. If a closed surface encloses no net charge, the total flux through it is zero, but the field on the surface usually isn’t. Field lines can enter one side and leave the other, like the cube in a uniform field in Topic 1.5.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.