Counting what comes out, and never looking inside
Here is a claim that sounds too strong to be exactly true. Draw any closed surface at all — a sphere, a cube, a crumpled paper bag, anything that has an inside and an outside. Add up the electric field crossing it, counting outward as positive and inward as negative. The answer depends on the total charge enclosed and on nothing else whatsoever.
Not on where inside the charge sits. Not on how it is distributed. Not on the shape of the surface. And not, at all, on any charge outside it, however large and however close.
The counting argument
The claim is nearly obvious in the line picture, which is the strongest argument for keeping that picture around.
Field lines start on positive charges and end on negative ones. They do not begin or end anywhere else. So a line that starts inside the surface has exactly two options: end on a negative charge inside, or leave. And a line that comes in from outside has exactly two options too: end on a negative charge inside, or leave again.
Count the crossings with sign. A line that enters and leaves contributes and and cancels itself. Only lines with an end inside fail to cancel. So the net count is the number of line-ends inside, which is the enclosed charge.
That second figure is where the counterintuitive content sits. The field on the surface is not zero anywhere. It is large on the near side and smaller on the far side, pointing in all sorts of directions. And the sum is exactly zero, by a cancellation that has nothing to do with the numbers happening to work out and everything to do with lines having two ends.
The precise statement replaces the count with an integral:
The dot product does the sign-keeping, since it measures only the component crossing the surface and ignores anything running along it.
Why the exponent has to be two
Gauss’s law and the inverse-square law are the same statement. Each implies the other, and seeing why makes the exponent stop looking arbitrary.
Put a point charge at the centre of a sphere of radius . By symmetry the field is radial and has the same magnitude everywhere on the sphere, so the flux is . Gauss’s law fixes that product at , and therefore
Coulomb’s law is not an independent input. It is what conservation of line-ends looks like in a space where a sphere’s area grows as .
The dimensional reading is worth keeping. The exponent is one less than the number of spatial dimensions. Gravity obeys an inverse square for the same reason and not by analogy — Newton’s law and Coulomb’s law share a geometry, not a mechanism. Experiments testing the exponent are therefore testing the dimensionality of space, and they have confirmed it as to within about one part in .
Two nearby results have the same origin and different exponents, which is the best evidence that the geometry rather than the electricity is doing the work. Light and sound both fall off as the inverse square of distance from a point source, because the same energy per second is spread over the same growing sphere — the intensity of a wave obeys the law for exactly the argument in the figure. And a long straight source gives instead, because a cylinder’s area grows linearly. Nothing about the emitter changes the exponent; only the shape of the surface it is spread over.
What flux is counting
The word flux is borrowed from fluid flow, and the borrowing is both helpful and dangerous.
Helpful, because the arithmetic is identical. If the arrows were water velocities, the flux through a surface would be the volume of water passing per second, and the statement that flux out of a closed surface counts what is inside would be the statement that water is not created except at taps.
Dangerous, because nothing is flowing. The electrostatic field is static; no material is moving along the arrows, and no energy is being carried across the surface. The analogy transfers the mathematics of a conserved flow and none of the substance, which is a distinction the word does nothing to preserve.
What the flux really counts is sources. A field whose flux out of every closed surface is proportional to the charge enclosed is a field whose lines begin and end only on charges — and that is a statement about where the field comes from, not about anything travelling.
Symmetry has to be supplied
Gauss’s law is true for every surface and useful for almost none. The gap between those two facts is the practical content of the subject.
The law gives one number — the total flux. Finding the field requires knowing how that total is distributed over the surface, and the law says nothing about that. It becomes a calculation only when a symmetry argument can be made first: the field has the same magnitude everywhere on this surface and crosses it perpendicularly. Then the integral collapses to and can be divided out.
Three symmetries permit it, and essentially only three.
Spherical. A point charge, a uniformly charged sphere, a charged shell. Choose a concentric sphere and the field is radial and uniform on it. The famous consequence is that a uniform shell produces no field at all inside itself: enclose zero charge and get zero flux, and symmetry forces the field itself to zero rather than merely its sum. Newton needed a page of geometry to prove the gravitational version; Gauss’s law does it in a line.
Cylindrical. A long straight wire. A coaxial cylinder encloses charge proportional to its length while its area also grows with length, so the field falls as rather than — a genuinely different law from the same principle, because the geometry of the source changed.
Planar. A large flat sheet, or any source large enough that its edges are far away. A box straddling the sheet encloses charge proportional to its cross-section, and the area does not grow with distance at all. The field is uniform: it does not fall off with distance from an infinite sheet. That result underlies the parallel-plate capacitor and it is one of the least intuitive in electrostatics.
Anything less symmetric — two charges, a finite rod, a cube of charge — and the law remains true and stops being a method. The field must then be found by integrating over the source, and Gauss’s law is demoted to a check on the answer.
Inside a conductor
One application is worth following through because its consequences are everywhere.
In a conductor at equilibrium, the field must be zero everywhere inside. If it were not, charges would feel a force and move, and the situation would not be equilibrium. That is the whole argument.
Now take any closed surface entirely within the conductor’s material. The field on it is zero, so the flux is zero, so the enclosed charge is zero. Shrink the surface anywhere and the conclusion holds: there is no charge anywhere in the bulk. Every excess charge on a conductor sits on its surface.
This is why a metal box shields its interior. Fields outside rearrange the surface charge, the rearrangement cancels the external field within the metal, and the cavity inside is left with the field its own contents produce and no more. A car in a lightning strike, a coaxial cable’s braid, the mesh in a microwave oven door and the perforated foil in an MRI room are all the same argument. The mesh works because holes much smaller than a wavelength are, to the field, not there.
The argument even survives being run in reverse. If the exponent in Coulomb’s law were not exactly two, a charged conducting shell would have a measurable field inside it. That experiment — Cavendish’s in 1773, refined ever since — is the most sensitive test of the inverse-square law available, and it works by looking for nothing and finding nothing.
There is a pleasing economy in that. A null result is usually the weakest kind of evidence; here it is the strongest available, because the prediction of exactly zero is a consequence of the exponent being exactly two and of nothing else. Measuring a small quantity precisely is hard. Confirming that a quantity is zero is limited only by the sensitivity of the instrument, which is why the same strategy — look for the thing that should not be there — has settled several other questions in physics far more decisively than any positive measurement could have.
Where the model stops
Gauss’s law in the form above is exactly true and there is nothing to correct in it. The limits are limits of what it can do, and of what the pictures showing it can represent.
It gives a total, not a distribution. Without symmetry, one equation cannot determine a field that varies from point to point. This is the practical ceiling and it is a low one.
It says nothing about direction. Flux is a scalar. Two very different fields can produce identical flux through the same surface, and the law cannot distinguish them. The missing information is supplied by a second law — that the electrostatic field has no curl — and the pair together do determine the field.
Statics only, as stated. The law itself survives into electrodynamics unchanged, which is unusual and worth noting. But the line picture behind it does not: with changing fields, lines can close on themselves with no charge at either end, and the intuition of “lines start on charges” needs replacing. Once that happens, the field can propagate on its own, and the propagating solutions are light.
Both figures are slices. A closed surface in a plane is a curve, and the flux that matters is through an area. The counting argument is dimension-independent; the drawing is not.
The deeper caution is about what the law explains. It is often presented as the reason the field of a point charge is inverse-square, and that is the wrong way round in one respect: Gauss’s law is an equivalent restatement, not a cause. What it genuinely buys is a shift in what has to be known — from where every charge is to how much charge is inside, which is the same shift that makes counting arrangements more powerful than tracking particles.
The ladder from here
Later rungs: the divergence form, and what a differential statement of a law about surfaces means. The field of a charged plane, wire and sphere worked all the way through. Conductors with cavities, and induced charge. The method of images, which replaces a conductor by a fictitious charge that reproduces its boundary condition. Dielectrics, and the version of the law with the polarisation folded in. The magnetic version, which sets the flux to zero always and thereby states that no isolated magnetic charge has ever been found. And Gauss’s law for gravity, which is the same equation with a sign change and rather different consequences.
Gauss derived it in 1813 and left it unpublished until 1867. Much of nineteenth-century electromagnetism consists of results Gauss had already worked out and not mentioned.