Electric flux through Gaussian surfaces and enclosed charge relationships
Gauss's Law is one of Maxwell's four equations and relates the electric flux through a closed surface to the charge enclosed within it. The law states Φ_E = Q_enc/ε₀, where ε₀ = 8.854×10⁻¹² C²/(N·m²). For highly symmetric charge distributions (spherical, cylindrical, planar), Gauss's Law provides an elegant shortcut to calculate the electric field without integration. For a point charge Q, the field at distance r is E = kQ/r² (radial). A spherical Gaussian surface of radius r centered on the charge captures flux Φ = E·4πr² = Q/ε₀, independent of r — demonstrating that flux depends only on enclosed charge, not surface size. For an infinite line charge with linear density λ, a cylindrical Gaussian surface gives E = λ/(2πε₀r). For an infinite plane with surface density σ, E = σ/(2ε₀), uniform and independent of distance.
Plus 148+ other Pro labs covering AP Physics, Biology, Chemistry, Earth Science, and Math — with unlimited simulation time, advanced parameters, and detailed analytics.
Already have an account?
Sign in →Gauss's Law — one of Maxwell's four equations — states that the total electric flux through any closed surface equals the net charge enclosed divided by ε₀: ∮E·dA = Q_enc/ε₀. The law is always true, but it becomes a practical field-calculation tool only when the charge distribution has enough symmetry (spherical, cylindrical, or planar) to factor a constant E out of the surface integral. This simulation places point charges, infinite line charges, or uniformly charged spheres inside user-defined Gaussian surfaces rendered in 3D, computes the flux numerically at every surface element dA, and displays the running total alongside the analytical result Q_enc/ε₀. Drag the surface radius slider to watch flux stay constant as the surface grows — as long as no additional charge crosses the boundary — and observe field vectors stretch or compress while their total flux through the surface remains unchanged.
MisconceptionGauss's Law gives you the electric field directly for any charge distribution — just solve ∮E·dA = Q/ε₀ for E.
CorrectThe integral gives total flux, not field. To extract E from the integral you need E to be constant and parallel to dA over the entire surface, which requires a symmetric charge distribution. For asymmetric distributions, ∮E·dA = Q/ε₀ is still true but E varies over the surface — you cannot pull it out of the integral.
MisconceptionA larger Gaussian surface encloses more field lines and therefore has more flux.
CorrectFlux through a closed surface depends only on Q_enc, not surface size or shape. Doubling the sphere's radius quadruples A but reduces E to one-quarter (since E ∝ 1/r²); the product E·4πr² = Q/ε₀ remains constant. Verify this with the Gaussian Surface Radius slider in the Point preset while watching the flux readout stay fixed.
MisconceptionCharges outside the Gaussian surface contribute to the flux through it.
CorrectAn external charge produces field lines that enter and exit the closed surface in equal numbers, giving zero net flux from that charge. Only charges inside the surface — Q_enc — contribute net flux. Conceptually, this means moving a charge from inside to outside any closed surface drops its flux contribution to zero, regardless of how the field lines weave through space.
MisconceptionInside a conductor, the electric field is zero because there are no charges there.
CorrectThe field is zero inside a conductor in electrostatic equilibrium because free charges redistribute to the surface until the internal field is cancelled — this is a separate electrostatic-equilibrium fact. Gauss's Law applied to a surface just inside the conductor is consistent with it: zero enclosed charge gives zero net flux. However, zero flux from a Gaussian surface alone does not prove E = 0 pointwise without the symmetry and equilibrium argument; the two must work together.
MisconceptionGauss's Law and Coulomb's Law are independent laws — you need both separately.
CorrectGauss's Law in integral form is equivalent to Coulomb's Law for electrostatics. Applying Gauss's Law with a spherical surface around a point charge Q immediately reproduces E = kQ/r² = Q/(4πε₀r²). The two formulations are mathematically identical for static charge distributions; Gauss's Law is simply more general (it also applies to moving charges via Maxwell's equations).
The goal is to choose a surface where E is constant in magnitude and everywhere parallel (or perpendicular) to dA, so E factors out of the integral. A point charge has spherical symmetry — E is radial and constant on a sphere. A line charge has cylindrical symmetry — E is radial from the axis and constant on a coaxial cylinder. Using the wrong surface shape still gives a valid flux equation but E cannot be extracted algebraically.
Standards 2.A.1 (electric field and force), 2.B.1 (Gauss's Law and flux), and 2.C.1 (electric field from symmetric charge distributions) are all addressed in this simulation. Standard 2.B.1 in particular is the core Gauss's Law statement ∮E·dA = Q_enc/ε₀ that the flux panel verifies numerically as students compare the Point, Line, and Sphere presets.
ε₀ = 8.854 × 10⁻¹² C²/(N·m²) is the permittivity of free space, a fundamental constant of electromagnetism that sets the scale of electric forces. It appears in Gauss's Law as the proportionality between charge and flux, and in Coulomb's constant k = 1/(4πε₀) = 8.99 × 10⁹ N·m²/C². On the AP Physics C exam, you will be given both k and ε₀.
Only the charge within radius r contributes: Q_enc = Q(r/R)³ for a uniform volume distribution. Gauss's Law then gives E = kQr/R³, which is linear in r — the field grows from zero at the center to kQ/R² at the surface. Outside the sphere (r > R), the full charge is enclosed and E = kQ/r² as if all the charge were at the center.
Yes — ∮E·dA = Q_enc/ε₀ is always mathematically true for any closed surface. However, for asymmetric distributions, E varies in magnitude and direction across the surface, so the integral must be computed numerically or by other analytical methods. Gauss's Law then serves as a consistency check rather than a shortcut to find E.
Zero. Draw a Gaussian surface just inside the shell wall. In electrostatic equilibrium, all free charges on a conductor reside on the outer surface, so Q_enc = 0 for the interior Gaussian surface. Gauss's Law then gives Φ = 0, and by symmetry this requires E = 0 everywhere inside the cavity. This is the principle behind Faraday cages.