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 :
The circle through the integral sign means the surface is closed: it fully wraps a volume with no gaps, like a balloon. is the total charge inside that surface, counting signs, and 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 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 perpendicular to the patch; the flux through it is , and the total over a surface is
If the field is uniform and the surface is flat, this collapses to , where is the angle between 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 .
For a closed surface, the convention is that 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 with an imaginary sphere of radius . By symmetry, has the same magnitude at every point of the sphere and points radially, so the flux integral is just times the sphere's area:
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 has constant magnitude and is either perpendicular or parallel to each part of the surface. Three geometries deliver that on the AP exam:
| Distribution | Gaussian surface | Field result |
|---|---|---|
| Sphere or point charge (outside, ) | Concentric sphere | |
| Infinite line, density | Coaxial cylinder | |
| Infinite plane, density | Small cylinder (pillbox) through the plane |
The falloff pattern is worth memorizing: spheres go as , lines as , and planes not at all. Every problem in this family follows the same script: state the symmetry, choose the surface, write the flux as times an area, set it equal to , 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 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, 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 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 for a sphere whose charge density varies with radius (which requires an actual integral for ), and sketch versus 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 m carries total charge spread uniformly through its volume. Find the electric field magnitude at (a) m and (b) m from the center.
Outside the sphere (r = 0.20 m > R). Draw a concentric Gaussian sphere of radius m. It encloses the full charge . Symmetry makes radial with constant magnitude over the surface, so , which rearranges to with .
Substitute the numbers: N/C.
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: C.
Apply Gauss's law again with the smaller enclosed charge: N/C.
(a) N/C, radially outward. (b) N/C, radially outward. Inside a uniformly charged sphere the field grows linearly with (the general result is ), peaks at the surface, then falls off as outside.
Infinite line of charge
A very long straight wire carries uniform linear charge density . Find the electric field magnitude at a perpendicular distance m from the wire.
Choose a coaxial Gaussian cylinder of radius m and length centered on the wire. By symmetry, points radially outward from the wire with the same magnitude everywhere on the curved wall.
Evaluate the flux piece by piece. On the two flat end caps, lies parallel to the surface (perpendicular to ), so those contribute zero. On the curved wall, is parallel to , so the flux is times the wall area: .
The cylinder encloses a length of wire, so . Gauss's law gives . The arbitrary length cancels, leaving .
Substitute: the denominator is in SI units, so N/C.
N/C, pointing radially away from the wire since is positive. Note the falloff: doubling your distance halves the field, unlike the behavior of a point charge.
Electric flux through a cube
A point charge 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.
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: .
Substitute: .
The charge sits at the center, so by symmetry each of the 6 identical faces intercepts an equal share of the flux: .
Compare the alternative: integrating 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) . (b) . 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.