Charge enclosed in AP Physics C: E&M

Charge enclosed (q_enc) is the net electric charge contained inside a closed Gaussian surface; by Gauss's law, the total electric flux through that surface equals q_enc/ε₀, no matter where charges sit outside the surface.

Verified for the 2027 AP Physics C: E&M examLast updated June 2026

What is charge enclosed?

Charge enclosed, written q_enc, is the net charge that lives strictly inside whatever closed Gaussian surface you draw. It's the right-hand side of Gauss's law: Φ = ∮E·dA = q_enc/ε₀. The flux through your surface depends only on this number. Charges outside the surface bend the field lines, but every line they send in also comes back out, so they contribute zero net flux.

For point charges, q_enc is just the sum of the charges inside (with signs). For continuous distributions, you integrate: q_enc = ∫ρ dV for volume charge, λL for a length L of line charge, σA for surface charge. The key word is enclosed. If your Gaussian sphere of radius r sits inside a charged ball of radius R, you only count the charge from 0 to r, not the whole ball. That single idea is why the field inside a uniformly charged sphere grows linearly with r while the field outside falls off as 1/r².

Why charge enclosed matters in AP® Physics C: E&M

This is the engine of Topic 8.6 (Gauss's Law) in Unit 8 of AP Physics C: E&M. Every Gauss's law calculation has two halves. The symmetry argument handles the flux integral on the left side, and finding q_enc handles the right side. Get q_enc wrong and the whole answer is wrong, even with perfect symmetry reasoning. It's also the concept that makes conductors work on the exam: the field inside conductor material is zero, so any Gaussian surface drawn inside the metal must enclose zero net charge, which is exactly how you deduce induced charges on shells. Calculating q_enc by integrating a non-uniform ρ(r) is one of the most reliably tested calculus skills in the course.

How charge enclosed connects across the course

Gaussian surface (Unit 8)

The Gaussian surface defines what counts as enclosed. You choose the surface, and that choice decides q_enc. A sphere of radius r inside a charged ball encloses a different charge than one outside it, which is why the same distribution gives different field formulas in different regions.

Spherical symmetry (Unit 8)

With spherical symmetry, q_enc for a non-uniform density ρ(r) comes from q_enc = ∫₀ʳ ρ(r') 4πr'² dr'. Forgetting the 4πr'² shell-volume factor is the classic point-losing mistake in these integrals.

Cylindrical symmetry (Unit 8)

For a line or cylinder of charge, q_enc scales with the length of your Gaussian cylinder: q_enc = λh for a line, or an integral over ρ(r) 2πr h dr for a thick cylinder. The h cancels with the h in the flux integral, which is why the final field doesn't depend on it.

Conductors in electrostatic equilibrium (Unit 8)

Inside conducting material, E = 0, so any Gaussian surface buried in the metal encloses zero net charge. That's how you prove the inner surface of a conducting shell picks up charge equal and opposite to whatever sits in its cavity.

Is charge enclosed on the AP® Physics C: E&M exam?

On multiple choice, expect to compute q_enc from a non-uniform density like ρ(r) = ρ₀e^{-r/a} (set up the integral with the 4πr² shell element), or run Gauss's law backward: given the flux Φ through a cylinder around a line charge, solve for λ or the field at radius R. The 2018 FRQ Q1 is the classic full workout, with a charged plastic sphere inside a conducting shell of unknown charge. You draw Gaussian surfaces in each region, state q_enc for each, and derive E(r) piece by piece, using q_enc = 0 inside the conductor to find the induced charges. One more trap that shows up: when E isn't uniform over your surface or the symmetry breaks (like a hemisphere on a charged plane), you can still use q_enc/ε₀ for the total flux, but you can't pull E out of the integral to get a field value.

Charge enclosed vs Total charge of the distribution

q_enc is only the charge inside your Gaussian surface, not the total charge of the object. If your surface of radius r sits inside a charged sphere of radius R, you integrate ρ only from 0 to r. Using the full charge Q there gives you the outside-the-sphere formula in a region where it's wrong. The two only match when your surface encloses the entire distribution.

Key things to remember about charge enclosed

  • Gauss's law says the total flux through any closed surface equals q_enc/ε₀, where q_enc is the net charge inside that surface.

  • Charges outside the Gaussian surface contribute zero net flux, because every field line they send in also exits.

  • For non-uniform volume charge, find q_enc by integrating ρ(r) over the enclosed volume, using dV = 4πr² dr for spheres and dV = 2πr h dr for cylinders.

  • Inside a uniformly charged sphere, q_enc grows as r³, which makes the field grow linearly with r instead of falling off as 1/r².

  • Any Gaussian surface drawn inside conducting material must enclose zero net charge, since E = 0 there; this is how you find induced charges on shells.

  • q_enc tells you the total flux even without symmetry, but you can only solve for E itself when symmetry lets you pull E out of the integral.

Frequently asked questions about charge enclosed

What is charge enclosed in Gauss's law?

It's the net charge q_enc sitting inside a closed Gaussian surface. Gauss's law states the total electric flux through that surface is Φ = q_enc/ε₀, so q_enc alone determines the flux.

Do charges outside the Gaussian surface affect the flux?

No. Outside charges affect the electric field at points on the surface, but their net flux through the closed surface is exactly zero, since every field line that enters also leaves. Only q_enc shows up in Φ = q_enc/ε₀.

How do I find the charge enclosed for a non-uniform charge density?

Integrate the density over the enclosed volume. For a spherically symmetric ρ(r), use q_enc = ∫₀ʳ ρ(r') 4πr'² dr'. For example, with ρ(r) = ρ₀e^{-r/a} you integrate that expression times 4πr'² from 0 to your Gaussian radius.

Is charge enclosed the same as the total charge of the object?

Only when your Gaussian surface contains the whole object. If the surface sits inside the charge distribution, q_enc is just the fraction of charge within that radius, which is exactly why the field inside a charged sphere follows a different formula than the field outside.

Why is the charge enclosed zero inside a conductor?

In electrostatic equilibrium, E = 0 everywhere inside conducting material, so the flux through any Gaussian surface drawn in the metal is zero, forcing q_enc = 0. On the 2018 FRQ, that's how you show a conducting shell's inner surface carries charge opposite to the charge in its cavity.