Gauss's Law Calculator

Calculate electric flux and a uniform normal electric field from enclosed charge.

Gauss's law
Enter enclosed charge and Gaussian surface area for a symmetric electric field.

About Gauss's law

Gauss's law relates the net electric flux through a closed surface to the total electric charge enclosed by that surface. In vacuum, the law is Φ = Q/ε₀, where Φ is net electric flux, Q is enclosed charge, and ε₀ is vacuum permittivity. This calculator uses ε₀ = 8.8541878128 × 10⁻¹² farads per meter and converts the entered charge from nanocoulombs to coulombs. Electric flux measures how much electric field passes normally through a surface. Its SI unit is newton meter squared per coulomb. The total depends only on net enclosed charge, not on the surface's precise shape or the location of charges outside it. External charges can create fields on the surface, but their field lines enter and leave in equal net amounts, contributing zero to the closed-surface integral. The calculator also divides total flux by entered area to report a uniform normal electric field. That second result is valid only when symmetry makes the field magnitude constant across the Gaussian surface and the field is perpendicular to it. Common examples include a spherical surface centered on an isolated point charge, a cylindrical surface around a sufficiently long line charge when end effects are handled correctly, and a pillbox crossing an ideal infinite charged sheet. For arbitrary charge distributions or surfaces, Gauss's law remains true, but field strength cannot generally be found by simple division. Positive enclosed charge produces outward positive flux, while negative charge produces inward negative flux. Surface area must be positive even when charge is negative. Use this tool for electrostatics lessons, symmetric-field checks, and quick order-of-magnitude estimates. It assumes vacuum or air approximated as vacuum. Dielectric materials require care with permittivity, polarization, and whether the problem is written in terms of electric field or electric displacement. Complex geometries typically require direct integration or numerical field analysis rather than the uniform-field estimate.

Gauss's law examples

InputsFlux and fieldInterpretation
Q = 1 nC; A = 0.5 m²112.9409 N·m²/C; 225.8818 N/CPositive charge gives outward net flux.
Q = 5 nC; A = 2 m²564.7045 N·m²/C; 282.3523 N/CThe larger surface spreads the uniform field.
Q = -2 nC; A = 1 m²-225.8818 N·m²/C; -225.8818 N/CNegative signs indicate inward flux and field.

How to use Gauss's law

  1. Add all charges inside the closed Gaussian surface to obtain net enclosed charge.
  2. Enter that charge in nanocoulombs, retaining its positive or negative sign.
  3. Enter the closed surface area in square meters.
  4. Select Calculate electric flux and apply the field result only when symmetry supports a uniform normal field.

Frequently asked questions

Do charges outside the surface affect electric flux?

External charges can affect the field at individual points on the surface. Their net contribution to flux through a closed surface is zero because field lines both enter and leave.

Can enclosed charge be negative?

Yes, negative enclosed charge produces negative net flux. The sign indicates that the net field orientation is inward relative to the outward surface normal.

When can flux be divided by area to find field?

That step requires a field with constant magnitude that is normal to the selected surface. Such simplification comes from spherical, cylindrical, or planar symmetry, not from Gauss's law alone.

What is a Gaussian surface?

It is an imaginary closed surface chosen to analyze electric flux. A useful Gaussian surface matches the symmetry of the charge distribution.

Does the shape of the closed surface change total flux?

No, total net flux is fixed by enclosed charge regardless of the closed surface shape. Shape does affect how field and local flux density vary across the surface.