Gauss's Law Explained with Worked Examples (AP Physics C)

Gauss's law states that the net electric flux through any closed surface equals the enclosed charge divided by epsilon zero. On the AP Physics C: E&M exam it is the fastest way to find the electric field of charged spheres, infinite lines, and infinite planes, whenever symmetry holds.

AP Physics: Unit 8 (topics 8.5 Electric Flux, 8.6 Gauss's Law). Covers Topics 8.5 (Electric Flux) and 8.6 (Gauss's Law) in Unit 8 of AP Physics C: Electricity and Magnetism, the calculus-based course. Unit 8 carries a 15-25% exam weighting, tied for the largest in the course.

What Gauss's Law Says

Gauss's law says the net electric flux through any closed surface equals the charge enclosed by that surface divided by ε0\varepsilon_0:

EdA=qencε0\oint \vec{E} \cdot d\vec{A} = \frac{q_{enc}}{\varepsilon_0}

The circle through the integral sign means the surface is closed: it fully wraps a volume with no gaps, like a balloon. qencq_{enc} is the total charge inside that surface, counting signs, and ε0=8.85×1012 C2/(Nm2)\varepsilon_0 = 8.85 \times 10^{-12} \ \text{C}^2/(\text{N} \cdot \text{m}^2) is the vacuum permittivity printed on the formula sheet.

This is material for AP Physics C: Electricity and Magnetism, the calculus-based course, where it anchors Unit 8 (Topics 8.5 Electric Flux and 8.6 Gauss's Law). The law itself is always true, for any closed surface around any charge arrangement. What makes it powerful is that for symmetric distributions you can pull EE out of the integral and solve for it in two lines.

Electric Flux, the Quantity Gauss's Law Counts

Electric flux measures how much electric field passes through a surface. For a small patch of area, define an area vector dAd\vec{A} perpendicular to the patch; the flux through it is EdA\vec{E} \cdot d\vec{A}, and the total over a surface is

ΦE=EdA\Phi_E = \int \vec{E} \cdot d\vec{A}

If the field is uniform and the surface is flat, this collapses to ΦE=EAcosθ\Phi_E = EA\cos\theta, where θ\theta is the angle between E\vec{E} and the normal to the surface, not the surface itself. That angle convention causes more lost points than the calculus does. Flux carries units of Nm2/C\text{N} \cdot \text{m}^2/\text{C}.

For a closed surface, the convention is that dAd\vec{A} points outward. Field lines leaving the surface count as positive flux, and lines entering count as negative. If field lines and field vectors feel shaky, review electric field and potential before going further.

Charge Outside the Surface Contributes Zero

Any charge sitting outside a closed surface produces zero net flux through it. Every field line from an external charge that enters the surface must also exit somewhere else, so the positive and negative contributions cancel exactly. Only enclosed charge survives, and the shape or size of the surface never matters.

You can recover Coulomb's law in one move. Surround a point charge qq with an imaginary sphere of radius rr. By symmetry, EE has the same magnitude at every point of the sphere and points radially, so the flux integral is just EE times the sphere's area:

E(4πr2)=qε0E=q4πε0r2=kqr2E(4\pi r^2) = \frac{q}{\varepsilon_0} \quad \Rightarrow \quad E = \frac{q}{4\pi\varepsilon_0 r^2} = \frac{kq}{r^2}

That is exactly the field from Coulomb's law, which tells you the two laws agree for point charges. Gauss's law is the deeper, more general statement.

The Three Symmetries That Make It Work

Gauss's law only produces a quick answer when symmetry lets you choose a surface where EE has constant magnitude and is either perpendicular or parallel to each part of the surface. Three geometries deliver that on the AP exam:

DistributionGaussian surfaceField result
Sphere or point charge (outside, r>Rr > R)Concentric sphereE=qenc4πε0r2E = \frac{q_{enc}}{4\pi\varepsilon_0 r^2}
Infinite line, density λ\lambdaCoaxial cylinderE=λ2πε0rE = \frac{\lambda}{2\pi\varepsilon_0 r}
Infinite plane, density σ\sigmaSmall cylinder (pillbox) through the planeE=σ2ε0E = \frac{\sigma}{2\varepsilon_0}

The falloff pattern is worth memorizing: spheres go as 1/r21/r^2, lines as 1/r1/r, and planes not at all. Every problem in this family follows the same script: state the symmetry, choose the surface, write the flux as EE times an area, set it equal to qenc/ε0q_{enc}/\varepsilon_0, and solve.

When Gauss Beats Coulomb (and When It Loses)

To find the field of a continuous charge distribution with Coulomb's law, you integrate dE=kdqr2dE = \frac{k \, dq}{r^2} over every element of charge while tracking vector components. For a uniformly charged sphere that integral is genuinely painful. Gauss's law replaces it with one line of algebra, which is why it dominates Unit 8 problems about spheres, shells, long wires, and large plates.

But Gauss's law is only useful when symmetry holds. For a finite rod, a ring off its axis, or a dipole, EE varies in magnitude and direction over any surface you draw, so you cannot pull it out of the integral, and direct integration is the only route. A good rule: if symmetry lets you state which direction EE points everywhere on some surface, use Gauss. Otherwise integrate. Both tools appear on the AP Physics C: E&M formula sheet.

How Gauss's Law Shows Up on the Exam

Unit 8, Electric Charges, Fields, and Gauss's Law, carries a 15-25 percent exam weighting in AP Physics C: E&M, tied for the largest of any unit in the course. The exam runs 3 hours: 42 multiple-choice questions in 85 minutes, then 4 free-response questions in 95 minutes, with each section worth 50 percent of the score. A calculator is allowed on both sections.

Typical Gauss's law tasks: rank the flux through different closed surfaces, derive E(r)E(r) for a sphere whose charge density ρ(r)\rho(r) varies with radius (which requires an actual integral for qencq_{enc}), and sketch EE versus rr across the regions inside and outside a distribution. In 2025, 72.8 percent of E&M students scored a 3 or higher with a mean score of 3.37, so the exam is very passable if you drill these standard derivations until they are automatic.

Gauss's law for a sphere: field inside and outside

A solid insulating sphere of radius R=0.10R = 0.10 m carries total charge Q=4.0 μCQ = 4.0 \ \mu\text{C} spread uniformly through its volume. Find the electric field magnitude at (a) r=0.20r = 0.20 m and (b) r=0.05r = 0.05 m from the center.

  1. Outside the sphere (r = 0.20 m > R). Draw a concentric Gaussian sphere of radius r=0.20r = 0.20 m. It encloses the full charge QQ. Symmetry makes EE radial with constant magnitude over the surface, so EdA=E(4πr2)=Q/ε0\oint \vec{E} \cdot d\vec{A} = E(4\pi r^2) = Q/\varepsilon_0, which rearranges to E=kQ/r2E = kQ/r^2 with k=1/(4πε0)=9.0×109 Nm2/C2k = 1/(4\pi\varepsilon_0) = 9.0 \times 10^9 \ \text{N} \cdot \text{m}^2/\text{C}^2.

  2. Substitute the numbers: E=(9.0×109)(4.0×106)(0.20)2=3.6×1040.040=9.0×105E = \frac{(9.0 \times 10^9)(4.0 \times 10^{-6})}{(0.20)^2} = \frac{3.6 \times 10^4}{0.040} = 9.0 \times 10^5 N/C.

  3. Inside the sphere (r = 0.05 m < R). A Gaussian sphere of radius 0.05 m encloses only part of the charge. Because the charge fills the volume uniformly, the enclosed fraction scales with volume: qenc=Qr3R3=(4.0×106)(0.05)3(0.10)3=(4.0×106)(0.125)=5.0×107q_{enc} = Q \frac{r^3}{R^3} = (4.0 \times 10^{-6}) \frac{(0.05)^3}{(0.10)^3} = (4.0 \times 10^{-6})(0.125) = 5.0 \times 10^{-7} C.

  4. Apply Gauss's law again with the smaller enclosed charge: E=kqencr2=(9.0×109)(5.0×107)(0.05)2=4.5×1032.5×103=1.8×106E = \frac{k q_{enc}}{r^2} = \frac{(9.0 \times 10^9)(5.0 \times 10^{-7})}{(0.05)^2} = \frac{4.5 \times 10^3}{2.5 \times 10^{-3}} = 1.8 \times 10^6 N/C.

(a) E=9.0×105E = 9.0 \times 10^5 N/C, radially outward. (b) E=1.8×106E = 1.8 \times 10^6 N/C, radially outward. Inside a uniformly charged sphere the field grows linearly with rr (the general result is E=kQr/R3E = kQr/R^3), peaks at the surface, then falls off as 1/r21/r^2 outside.

Infinite line of charge

A very long straight wire carries uniform linear charge density λ=2.0 μC/m\lambda = 2.0 \ \mu\text{C/m}. Find the electric field magnitude at a perpendicular distance r=0.50r = 0.50 m from the wire.

  1. Choose a coaxial Gaussian cylinder of radius r=0.50r = 0.50 m and length LL centered on the wire. By symmetry, E\vec{E} points radially outward from the wire with the same magnitude everywhere on the curved wall.

  2. Evaluate the flux piece by piece. On the two flat end caps, E\vec{E} lies parallel to the surface (perpendicular to dAd\vec{A}), so those contribute zero. On the curved wall, E\vec{E} is parallel to dAd\vec{A}, so the flux is EE times the wall area: Φ=E(2πrL)\Phi = E(2\pi r L).

  3. The cylinder encloses a length LL of wire, so qenc=λLq_{enc} = \lambda L. Gauss's law gives E(2πrL)=λL/ε0E(2\pi r L) = \lambda L / \varepsilon_0. The arbitrary length LL cancels, leaving E=λ2πε0rE = \frac{\lambda}{2\pi\varepsilon_0 r}.

  4. Substitute: the denominator is 2πε0r=(6.283)(8.85×1012)(0.50)=2.78×10112\pi\varepsilon_0 r = (6.283)(8.85 \times 10^{-12})(0.50) = 2.78 \times 10^{-11} in SI units, so E=2.0×1062.78×1011=7.2×104E = \frac{2.0 \times 10^{-6}}{2.78 \times 10^{-11}} = 7.2 \times 10^4 N/C.

E=7.2×104E = 7.2 \times 10^4 N/C, pointing radially away from the wire since λ\lambda is positive. Note the 1/r1/r falloff: doubling your distance halves the field, unlike the 1/r21/r^2 behavior of a point charge.

Electric flux through a cube

A point charge q=3.0q = 3.0 nC sits at the exact center of a cube with edge length 0.40 m. Find (a) the total electric flux through the cube and (b) the flux through one face.

  1. Gauss's law says total flux depends only on the enclosed charge, never on the shape or size of the closed surface. The 0.40 m edge length is a distractor: Φtotal=q/ε0\Phi_{total} = q/\varepsilon_0.

  2. Substitute: Φtotal=3.0×1098.85×1012=339 Nm2/C3.4×102 Nm2/C\Phi_{total} = \frac{3.0 \times 10^{-9}}{8.85 \times 10^{-12}} = 339 \ \text{N} \cdot \text{m}^2/\text{C} \approx 3.4 \times 10^2 \ \text{N} \cdot \text{m}^2/\text{C}.

  3. The charge sits at the center, so by symmetry each of the 6 identical faces intercepts an equal share of the flux: Φface=338.986=56.556 Nm2/C\Phi_{face} = \frac{338.98}{6} = 56.5 \approx 56 \ \text{N} \cdot \text{m}^2/\text{C}.

  4. Compare the alternative: integrating EdA\vec{E} \cdot d\vec{A} directly over one square face would be a messy double integral with a varying angle. Symmetry plus Gauss's law replaces all of it with a division by 6.

(a) Φtotal3.4×102 Nm2/C\Phi_{total} \approx 3.4 \times 10^2 \ \text{N} \cdot \text{m}^2/\text{C}. (b) Φface56 Nm2/C\Phi_{face} \approx 56 \ \text{N} \cdot \text{m}^2/\text{C}. If the charge moved off-center but stayed inside, the total flux would stay the same while the per-face shares changed.

Frequently asked questions

What is electric flux in simple terms?

Electric flux measures the net amount of electric field passing through a surface, roughly the count of field lines crossing it. For a flat surface in a uniform field, it equals field strength times area times the cosine of the angle between the field and the surface's normal. Its units are newton meters squared per coulomb.

Does a Gaussian surface have to be a real physical object?

No. A Gaussian surface is an imaginary closed surface you invent for the calculation. You choose its shape to match the symmetry of the charge: a concentric sphere for spheres and point charges, a coaxial cylinder for long wires, a pillbox for planes. Nothing physical needs to exist where you draw it.

When should I use Gauss's law instead of Coulomb's law?

Use Gauss's law when the charge distribution has spherical, cylindrical, or planar symmetry, because the flux integral collapses to the field times an area. For finite rods, rings off their axis, dipoles, or any low-symmetry arrangement, add up contributions with Coulomb's law instead, integrating when the charge is continuous.

Is Gauss's law on AP Physics 2 or only on Physics C?

Electric flux and Gauss's law appear as named topics (8.5 and 8.6) only in AP Physics C: Electricity and Magnetism, the calculus-based course. The algebra-based AP Physics 2 course covers electric charge, fields, and potential in its Unit 10, but its topic list does not include Gauss's law.

Why doesn't the field of an infinite plane depend on distance?

Moving farther from an infinite plane weakens the pull of the charge directly below you, but more distant charge now contributes at a shallower angle, and the two effects cancel exactly. Gauss's law shows this instantly: the flux through a pillbox does not depend on how far its end caps sit from the plane, so the field is sigma divided by two epsilon zero at every distance.