Gauss's law relates the electric field on a closed surface to the net electric charge inside it. In SI units, with outward unit normal ,Here describes a volume charge density, and is the vacuum permittivity; for ideal point or surface charges, use the enclosed electric charge directly rather than an ordinary volume-density integral. The left side is electric flux: the surface integral of the outward normal component of the electric field. Field directed outward contributes positively; field directed inward contributes negatively. The equality uses net signed electric charge, so positive and negative enclosed charges can cancel. The Gaussian surface is an imagined accounting boundary, not necessarily a material object. See OpenStax, explaining Gauss's law.
Where the electric field and charge density are smooth, the local statement is . The divergence theorem connects this divergence to the surface integral. This is the satisfying connection between local sources and global accounting: a surface can register how much net electric charge it encloses without revealing where that charge is located within it. A point charge requires care with the singular field at its position; the integral formulation remains useful with a boundary that avoids the charge.
The law fixes total electric flux, rather than every value of the electric field. In an uncharged region, a uniform electric field crosses a cube of side . Its left and right faces contribute and ; the other four faces contribute zero. Thus the net electric flux is zero while the electric field is nonzero everywhere. Charges outside a Gaussian surface can change the field on it without changing its net electric flux. Conversely, fields cannot generally be reconstructed from enclosed electric charge alone. Electrostatics also requires the electric field to be the negative gradient of an electric potential, with appropriate boundary information. This distinction is emphasized in Feynman lectures II.5, application of Gauss' law.
Zero net flux can coexist with a nonzero uniform field, and equal enclosed charge can give different field magnitudes on different spheres
. Details. Spherical symmetry supplies the extra information needed for a particularly simple calculation. An isolated spherically symmetric charge distribution in vacuum produces a radial electric field, constant in magnitude on each concentric sphere. Its electric flux is therefore , givingOutside the distribution, doubling quadruples the surface area and divides the radial electric field by four, while the electric flux stays . The inverse-square dependence is an area-dilution result. The electric field of a uniformly charged ball and electric field of a uniformly charged spherical shell show that the same total charge can give different interior fields. These symmetry arguments and their limits are developed in OpenStax, applying Gauss's law.
Place a fixed sheet of charge density at and a uniform fixed volume charge in . With no imposed uniform background field, the above-sheet and below-slab fields are . The interior field is the title expression, obtained by adding the slab's linear field to the sheet's constant field. If , it vanishes at , inside the lower half of the slab. At the sheet it jumps down by , while it remains continuous at the slab's uncharged lower face.
For a point charge exactly at a cube corner, each of the three opposite faces has outward electric flux . Reflecting the cube in its three incident faces makes a larger cube centred on the charge and proves the result by symmetry. The three incident faces have zero normal electric field away from their singular corner. Their improper integrals vanish; the total is . This boundary convention differs from moving a charge to the corner from the interior after computing a closed-surface integral.
For an infinite insulating cylinder of radius and uniform fixed charge density , Gauss's law gives interior electric field and exterior electric field , where is transverse displacement from its axis. The electric field is continuous at when there is no separate surface charge density. The interior linear dependence makes displaced-cylinder superposition particularly simple.
Remove an axial cylindrical hole, wholly contained in an infinite insulating cylinder with uniform fixed charge density . Let point from the original axis to the hole axis. The superposition principle replaces the removed material by a cylinder of charge density . At any point inside the hole, the two interior electric fields add to . The result is uniform throughout the hole, even when the hole is not concentric; it does not apply to a hole in an electrical conductor whose electric charges can redistribute.
Outside a bounded spherically symmetric charge distribution in vacuum, the electric field is that of a central point charge with the same total electric charge. With zero electric potential at infinity, the exterior electric potential is . A uniform surface charge on a sphere has zero electric field inside.
For a spherically symmetric electric field in vacuum, integrate Gauss's law over a sphere. Its electric flux is , so taking the enclosing radius to infinity gives the displayed total charge, whenever that limit and total charge exist. In particular, a radial field decaying faster than can be nonzero locally while its total source charge is zero. The origin must also be checked: a point charge contributes a nonzero limiting flux as .
Let the spherically symmetric volume charge density be , with so the origin contains finite charge. Integration gives . Gauss's law yields the radial electric field for . The field tends to zero at the centre if ; finite enclosed charge alone does not guarantee a regular central field.
Distribute a positive electric charge uniformly through a closed ball of radius in vacuum, with no external field. Its volume charge density is . For , the enclosed fraction is . Applying Gauss's law on a concentric Gaussian surface givesThe electric field grows linearly inside and decays as an inverse square outside. With , its values at are . The field vanishes at the centre by spherical symmetry and is continuous at the surface because this ideal volume distribution has no singular surface layer. Its interior behavior differs from a conductor in electrostatic equilibrium, where mobile charge redistributes.
A uniform volume charge and a uniform thin-shell charge have the same exterior field but different interior fields
. Details. Place the same positive electric charge uniformly on the sphere of radius , with no external field. Every concentric interior Gaussian surface encloses zero charge; spherical symmetry then makes the interior electric field zero. Outside, it is again . At , the inner and outer limits differ by , with surface charge density . The ideal surface charge makes the field discontinuous, so the plot displays one-sided limits rather than assigning a single field value on the charged sheet. An isolated charged conducting sphere in electrostatic equilibrium realizes this exterior/interior pattern.
In static time times round three-dimensional hyperbolic space of curvature radius , a geodesic sphere has area . The Gauss law therefore gives the displayed radial field. It approaches the flat-space inverse-square field near the charge and falls exponentially at large geodesic distance. The curvature changes the area of a sphere, not the conserved flux.
For uniform charge density , Gauss's law gives the interior electric field . Integrate its vertical force density over the upper hemisphere: . Internal pair forces in that hemisphere cancel, so its net force is exactly the force from the lower hemisphere. The result is upward and has magnitude .
A Gaussian surface is a closed surface used with the integral form of Gauss's law to relate electric flux to enclosed electric charge. It need not coincide with the surface of any charged body. Choosing it to match a symmetry can make the normal component of the electric field constant on a portion of it, allowing that component to be taken outside a surface integral. A concentric sphere works for an isolated spherically symmetric charge distribution; an arbitrarily placed sphere generally does not.
Zero enclosed electric charge implies zero total electric flux. Inferring zero electric field additionally needs information such as the spherical symmetry used in the electric field of a uniformly charged spherical shell. The imagined boundary does not itself block or redirect the electric field.
Articles by others on the same topic
Gauss's law is a fundamental principle in electrostatics, part of Maxwell's equations, that relates the electric field generated by a charge distribution to the charge enclosed within a closed surface.

