An electric field passing through a surface produces a quantity called electric flux, which measures how much of the field penetrates that surface. To describe this precisely, take a very small, infinitesimal patch of area and assume the field is essentially uniform over it. If the patch has a vector area dA and the field is the vector E, the amount of field crossing the patch is given by the dot product of those two vectors; see the entry on the dot product. A symbolic differential for the flux can be written as and the oriented patch is represented by .
Combining these gives the local expression for flux through the small patch:
Flux over a surface
To find the total flux through a finite surface S, add (integrate) the contributions from each infinitesimal patch. This is the surface integral form:
Here S denotes the surface and dA is taken with the outward-pointing normal when a direction must be chosen.
Closed surfaces and Gauss's law
When the surface is closed (often called a Gaussian surface), the integral is written with a closed-contour symbol and relates directly to the net electric charge enclosed. In compact form:
In this relation QS is the total charge contained inside the surface, including any bound or free contribution, and ε0 is the electric constant. This statement is the integral version of Gauss' law and appears as one of Maxwell's equations; in textbooks it is often described as the integral form of the law.
Charges located outside a closed surface do not change the net flux through that surface, though they can alter the field distribution on the surface itself. Gauss's law always holds, but solving for E from the law by hand is practical only when the field has a high degree of symmetry (for example, spherical or cylindrical situations). In more general geometries numerical methods and a computer are typically required.
Units
Electric flux is expressed in SI units as volt metres (V·m). Equivalent derived units are newton metres squared per coulomb (N·m²·C⁻¹). In base SI units this becomes kg·m³·s⁻³·A⁻¹.