All Tools

Gauss's Law & Electric Flux Visualizer

Select a charge distribution, adjust parameters, and see how Gauss's Law determines the electric field. Interactive 2D cross-sections, step-by-step KaTeX derivations, and E(r) field plots for five fundamental geometries.

Parameters

2D Cross-Section

Gaussian SurfaceE-field lines+r

E(r) Field Magnitude vs Distance

03.5e+97.0e+91.1e+101.4e+101.8e+1000.030.060.090.120.15rr (m)E (N/C)

Results for Point Charge

Enclosed Charge Q_enc
1.00e-6 C
Electric Flux Φ
1.13e+5 N·m²/C
E-field |E|
3.60e+6 N/C

Step-by-Step Gauss's Law Derivation

Step 1: Symmetry Argument
Step 2: Gaussian Surface Area
Step 3: Enclosed Charge
Step 4: Gauss's Law
Step 5: By Symmetry, E is Constant on Surface
Step 6: Solve for E
Step 7: Electric Flux

Reference Guide

Gauss's Law

The total electric flux through any closed surface equals the enclosed charge divided by the permittivity of free space.

ΦE=EdA=Qencε0\Phi_E = \oint \vec{E} \cdot d\vec{A} = \frac{Q_{\text{enc}}}{\varepsilon_0}

where ε0=8.854×1012 C2/(Nm2)\varepsilon_0 = 8.854 \times 10^{-12} \text{ C}^2/(\text{N}\cdot\text{m}^2) is the permittivity of free space. The integral is over the entire closed Gaussian surface.

Symmetry Arguments

Gauss's Law is most useful when the charge distribution has high symmetry, letting you pull E out of the integral.

  • Spherical (point charge, charged sphere) uses a spherical Gaussian surface
  • Cylindrical (line charge, charged cylinder) uses a cylindrical surface
  • Planar (infinite plane) uses a pillbox surface

In each case, the symmetry ensures E is constant on the Gaussian surface and either parallel or perpendicular to the area element.

Common Distributions

Point: E=Q4πε0r2\text{Point: } E = \frac{Q}{4\pi\varepsilon_0 r^2}
Line: E=λ2πε0r\text{Line: } E = \frac{\lambda}{2\pi\varepsilon_0 r}
Plane: E=σ2ε0\text{Plane: } E = \frac{\sigma}{2\varepsilon_0}

Electric Flux

Electric flux measures how much electric field passes through a surface. For a uniform field passing through a flat area at angle θ\theta,

ΦE=EAcosθ=EA\Phi_E = E \cdot A \cos\theta = \vec{E} \cdot \vec{A}

Flux is positive when field lines exit the surface and negative when they enter. The net flux through a closed surface depends only on the enclosed charge, not on charges outside.