Electric flux and Gauss's theorem

Coulomb's law can find the field of a single point charge in one line, but for a charged sphere, an infinite sheet, or a long charged wire it turns into a messy integral. Gauss's theorem is the shortcut: it relates the electric flux through any closed surface directly to the charge trapped inside it, no matter how the field looks in detail. Learn to count field lines crossing a surface, and a whole class of hard problems collapses into simple algebra. This article builds the idea of flux from a single small area element up to a closed surface, states Gauss's theorem, walks through its derivation-style reasoning, and solves the two standard exam problems — flux through a surface with charges inside and outside, and flux through one face of a cube. The applications that use this law to actually find E⃗\vec E for a sphere, sheet, or wire are covered next.

The core insight

Electric flux through a closed surface equals the enclosed charge divided by ε0\varepsilon_0, regardless of the surface's size, shape, or the position of any charge outside it.

The core idea

Picture the electric field as a set of field lines. Electric flux through a surface counts how many of these lines cross it — a purely geometric idea that turns a vector field into a single number for a given surface. For a small flat area element, represented by the vector dA⃗d\vec A (magnitude equal to the area, direction along the outward normal), sitting in a field E⃗\vec E, the elementary flux is

dϕE=E⃗⋅dA⃗=E dAcos⁡θd\phi_E = \vec E\cdot d\vec A = E\,dA\cos\theta

where: θ\theta is the angle between E⃗\vec E and the normal dA⃗d\vec A. Flux is maximum when the field is perpendicular to the surface (θ=0\theta = 0) and zero when the field grazes along the surface (θ=90∘\theta = 90^\circ). Adding up (integrating) the elementary flux over an entire surface gives the total flux. For an open surface,

ϕE=∫E⃗⋅dA⃗\phi_E = \int \vec E\cdot d\vec A

and for a closed surface — one that fully encloses a volume, such as a sphere or a cube — the same sum is written with a closed-surface integral:

ϕE=∮E⃗⋅dA⃗\phi_E = \oint \vec E\cdot d\vec A

By convention the normal always points outward on a closed surface, so flux counts as positive where field lines leave and negative where they enter. Flux is a scalar with SI unit N ⋅ m2/C\text{N}\,\cdot\,\text{m}^2/\text{C} (equivalently V·m).

Figure
A closed spherical Gaussian surface with two charges inside contributing outward field lines and one charge outside whose lines enter and leave without net crossing
Only enclosed charge contributes to net flux Gaussian surface q1 inside q2 inside q3 outside lines from q3 enter and leave — zero net flux Net flux depends only on q1 + q2, the enclosed charge

Gauss's theorem states that the total flux through any closed surface (a Gaussian surface) equals 1/ε01/\varepsilon_0 times the net charge enclosed:

ϕE=∮E⃗⋅dA⃗=qencε0\phi_E = \oint \vec E\cdot d\vec A = \frac{q_{\text{enc}}}{\varepsilon_0}

where: qencq_{\text{enc}} is the algebraic sum of all charges strictly inside the surface, and ε0=8.85×10−12 C2/N ⋅ m2\varepsilon_0 = 8.85\times10^{-12}\ \text{C}^2/\text{N}\,\cdot\,\text{m}^2 is the permittivity of free space. Charges outside the surface do not contribute to the net flux — every field line from an outside charge that enters the surface must also leave it, so its contributions cancel — but such charges still affect the value of E⃗\vec E at individual points on the surface. Gauss's theorem is exactly equivalent to Coulomb's law, but it becomes vastly more convenient when the charge distribution has enough symmetry (spherical, cylindrical, or planar) to choose a Gaussian surface on which E⃗\vec E is constant in magnitude and either parallel or perpendicular everywhere. That trick — turning ∮E⃗⋅dA⃗\oint \vec E\cdot d\vec A into E×AE\times A — is what the follow-up applications (charged sphere, infinite sheet, line charge) use to solve for EE directly.

Derivation ATotal flux depends only on enclosed charge, not on surface size or shape

The goal is to show, in a single worked calculation using the given anchor numbers, exactly what Gauss's theorem says about which charges count and which do not — a result students must apply correctly on nearly every flux problem, even though the full proof from Coulomb's law is beyond this syllabus.

Step 1. Identify every charge and sort it as enclosed or not enclosed by the Gaussian surface. Take a spherical surface of radius 10 cm10\ \text{cm} enclosing q1=+6 μCq_1 = +6\ \mu\text{C} and q2=−2 μCq_2 = -2\ \mu\text{C}, with a third charge q3=+5 μCq_3 = +5\ \mu\text{C} sitting just outside the sphere. Only q1q_1 and q2q_2 lie inside; q3q_3 does not, however close it sits to the surface.

Step 2. Form the enclosed charge by algebraic addition, keeping signs. qenc=q1+q2=(+6×10−6)+(−2×10−6)=4×10−6 Cq_{\text{enc}} = q_1 + q_2 = (+6\times10^{-6}) + (-2\times10^{-6}) = 4\times10^{-6}\ \text{C}. The charge q3q_3 is left out entirely of this sum — it plays no role in the total flux, even though it does distort the field pattern near the surface.

Step 3. Apply Gauss's theorem directly, using only qencq_{\text{enc}} and ε0\varepsilon_0, with no reference to the radius. ϕE=qenc/ε0=(4×10−6)/(8.85×10−12)≈4.52×105 N ⋅ m2/C\phi_E = q_{\text{enc}}/\varepsilon_0 = (4\times10^{-6})/(8.85\times10^{-12}) \approx 4.52\times10^{5}\ \text{N}\,\cdot\,\text{m}^2/\text{C}.

Step 4. Note what did not appear anywhere in the calculation: the sphere's radius of 10 cm10\ \text{cm}, and the outside charge q3=+5 μCq_3 = +5\ \mu\text{C}. This is the content of the theorem — total flux through a closed surface is fixed the instant the enclosed charge is fixed, independent of the surface's size, its shape, or any charge sitting outside it.

Worked example

A closed spherical surface of radius 10 cm10\ \text{cm} encloses q1=+6 μCq_1 = +6\ \mu\text{C} and q2=−2 μCq_2 = -2\ \mu\text{C}, with q3=+5 μCq_3 = +5\ \mu\text{C} placed just outside. Find the total flux through the sphere.

Step 1. List enclosed charges only: q1=+6 μCq_1 = +6\ \mu\text{C}, q2=−2 μCq_2 = -2\ \mu\text{C}. Exclude q3q_3 since it lies outside the surface.

Step 2. Sum with sign: qenc=6×10−6−2×10−6=4×10−6 Cq_{\text{enc}} = 6\times10^{-6} - 2\times10^{-6} = 4\times10^{-6}\ \text{C}.

Step 3. Apply Gauss's theorem: ϕE=qenc/ε0=(4×10−6)/(8.85×10−12)≈4.52×105 N ⋅ m2/C\phi_E = q_{\text{enc}}/\varepsilon_0 = (4\times10^{-6})/(8.85\times10^{-12}) \approx 4.52\times10^{5}\ \text{N}\,\cdot\,\text{m}^2/\text{C}. The total flux through the sphere is about 4.52×105 N ⋅ m2/C4.52\times10^{5}\ \text{N}\,\cdot\,\text{m}^2/\text{C}, unaffected by the sphere's radius or by q3q_3.

Competitive stretch

A point charge +q+q sits exactly at the centre of a cube of side aa. Find the flux through one face.

Step 1. The whole cube is a closed surface enclosing the entire charge qq, so by Gauss's theorem the total flux through all six faces together is ϕtotal=q/ε0\phi_{\text{total}} = q/\varepsilon_0.

Step 2. With the charge at the centre, all six faces are geometrically identical with respect to it, so the total flux splits equally among them: ϕone face=ϕtotal/6=q/(6ε0)\phi_{\text{one face}} = \phi_{\text{total}}/6 = q/(6\varepsilon_0). Each face carries q/(6ε0)q/(6\varepsilon_0) of flux, found by symmetry rather than by integrating E⃗⋅dA⃗\vec E\cdot d\vec A over a square face.

Common traps

  • Thinking a charge sitting just outside a Gaussian surface adds to the flux — only charge strictly inside counts, no matter how close the outside charge is.
  • Concluding that zero total flux means E⃗=0\vec E = 0 everywhere on the surface — it only means the enclosed charge is zero; flux can still enter through part of the surface and leave through another part.
  • Trying to extract the field E⃗\vec E at one point from Gauss's law alone — the theorem gives only the total flux; pulling out EE needs a symmetric Gaussian surface on which EE is known to be constant.
  • Confusing "charge enclosed" with "every charge in the problem" — a charge outside the surface still shapes the field pattern but must be dropped from qencq_{\text{enc}}.

Ask the tutor: want to see how this same law is used to actually derive the electric field of a charged sphere, an infinite sheet, or a long wire — ask the AI tutor to walk through the applications of Gauss's theorem.

Why does a charge just outside the Gaussian surface contribute zero flux if it is so close to the surface

Because every field line from that outside charge that dips into the enclosed volume through one part of the surface must also exit through another part — the surface has no way to "trap" field lines that originate outside it. The near and far crossings carry equal and opposite flux, so their contributions cancel exactly, regardless of how close the charge sits to the surface. The charge does bend the field at nearby points on the surface, but the total signed count of lines crossing stays zero.

Does Gauss's theorem always let me calculate the electric field directly

No. Gauss's theorem always gives you the total flux through a closed surface, but pulling the field EE out of ϕE=∮E⃗⋅dA⃗\phi_E = \oint \vec E\cdot d\vec A requires knowing in advance that EE is constant in magnitude over the whole surface (or over the part you care about) and either parallel or perpendicular to it everywhere. That only happens for highly symmetric charge distributions — a sphere, an infinite plane, or a long straight wire — with a matching symmetric Gaussian surface. For an arbitrary lump of charge, you still know the total flux, but not EE at a specific point.

Is the flux through a cube's face always exactly one sixth of the total when a charge is inside

Only when the charge sits exactly at the centre of the cube, since that is what makes all six faces geometrically identical with respect to the charge. If the charge is off-centre, the total flux through the whole cube is still q/ε0q/\varepsilon_0 by Gauss's theorem — that part never changes — but the flux is no longer split evenly, and finding the flux through one particular face needs a harder calculation beyond what symmetry alone can give.

Before this

Where this leads