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 for a sphere, sheet, or wire are covered next.
Electric flux through a closed surface equals the enclosed charge divided by , 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 (magnitude equal to the area, direction along the outward normal), sitting in a field , the elementary flux is
where: is the angle between and the normal . Flux is maximum when the field is perpendicular to the surface () and zero when the field grazes along the surface (). Adding up (integrating) the elementary flux over an entire surface gives the total flux. For an open surface,
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:
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 (equivalently V·m).
Gauss's theorem states that the total flux through any closed surface (a Gaussian surface) equals times the net charge enclosed:
where: is the algebraic sum of all charges strictly inside the surface, and 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 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 is constant in magnitude and either parallel or perpendicular everywhere. That trick — turning into — is what the follow-up applications (charged sphere, infinite sheet, line charge) use to solve for directly.
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 enclosing and , with a third charge sitting just outside the sphere. Only and lie inside; does not, however close it sits to the surface.
Step 2. Form the enclosed charge by algebraic addition, keeping signs. . The charge 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 and , with no reference to the radius. .
Step 4. Note what did not appear anywhere in the calculation: the sphere's radius of , and the outside charge . 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 encloses and , with placed just outside. Find the total flux through the sphere.
Step 1. List enclosed charges only: , . Exclude since it lies outside the surface.
Step 2. Sum with sign: .
Step 3. Apply Gauss's theorem: . The total flux through the sphere is about , unaffected by the sphere's radius or by .
Competitive stretch
A point charge sits exactly at the centre of a cube of side . Find the flux through one face.
Step 1. The whole cube is a closed surface enclosing the entire charge , so by Gauss's theorem the total flux through all six faces together is .
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: . Each face carries of flux, found by symmetry rather than by integrating 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 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 at one point from Gauss's law alone — the theorem gives only the total flux; pulling out needs a symmetric Gaussian surface on which 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 .
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 out of requires knowing in advance that 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 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 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.