Gauss's Law Calculator

Enter the enclosed charge, the medium's relative permittivity, and the Gaussian surface radius to find the electric flux (ΦE = Q_enc / ε) and, assuming spherical symmetry, the electric field at that radius.

Quick Facts

Gauss's Law
ΦE = ∮E·dA = Q_enc / ε
Total electric flux through any closed surface equals the enclosed charge divided by the medium's permittivity.
Vacuum permittivity
ε₀ ≈ 8.854 × 10⁻¹² C²/(N·m²)
Used when the surrounding medium is vacuum or air (εr ≈ 1); real media use ε = εr × ε₀.
Field on a Gaussian sphere
E = ΦE / (4πr²)
Valid when the enclosed charge is spherically symmetric, so E is constant over the sphere's surface.

Your Results

Calculated
Electric Flux (ΦE)
-
N·m²/C, through the closed surface
Permittivity of Medium (ε)
-
ε = εr × ε₀, in C²/(N·m²)
Electric Field at r (E)
-
N/C, assumes spherical symmetry
Enclosed Charge
-
Q_enc converted to coulombs

Ready

Enter the enclosed charge, permittivity, and radius, then press Calculate.

About the Gauss's Law Calculator

Gauss's Law is one of the four Maxwell equations that govern electricity and magnetism. It states that the total electric flux ΦE passing through any closed ("Gaussian") surface is proportional to the electric charge enclosed by that surface: ΦE = ∮E·dA = Q_enc / ε, where ε is the permittivity of the surrounding medium. This calculator computes that flux from an enclosed charge and permittivity, and — assuming the charge distribution is spherically symmetric — the resulting electric field at a chosen radius from the center.

How the calculation works

Enter the enclosed charge Q_enc and its unit, then the relative permittivity εr of the surrounding medium (εr = 1 for vacuum or air; higher for dielectrics such as glass, mica, or water). The calculator first finds the absolute permittivity ε = εr × ε₀, where ε₀ ≈ 8.854 × 10⁻¹² C²/(N·m²) is the permittivity of free space. It then applies Gauss's Law directly to get the flux, ΦE = Q_enc / ε. Finally, treating the Gaussian surface as a sphere of radius r centered on a spherically symmetric charge (a point charge or a uniformly charged sphere), it divides the flux by the sphere's surface area to get the electric field: E = ΦE / (4πr²), which is algebraically identical to the Coulomb's-law field E = Q_enc / (4πεr²).

Choosing the Gaussian surface and symmetry

Gauss's Law is true for any closed surface — the flux never depends on the surface's shape, only on the charge it encloses. But you can only solve for E by itself when the surface is chosen to match the symmetry of the charge distribution, so that E has the same magnitude everywhere on the surface and points either parallel or perpendicular to it. A sphere works for a point charge or any spherically symmetric charge; an infinite cylinder works for a uniform line charge; a "pillbox" works for an infinite charged plane. This calculator assumes the common spherical case for its electric-field result.

Working with charge, permittivity, and units

  • Enter Q_enc in whichever unit is most natural (µC and nC are common in lab settings); the calculator converts to coulombs internally.
  • Relative permittivity εr is dimensionless: 1.000 for vacuum, about 1.0006 for air, roughly 2–4 for common plastics, about 4–7 for glass, and about 80 for liquid water at room temperature.
  • Radius r must be measured from the center of symmetry of the charge to the Gaussian surface, not from an edge — and it must be positive and outside (or on) the charge distribution for the point-charge-style field formula to apply.
  • Negative enclosed charge is valid and gives a negative flux, meaning the net field points inward through the surface.

Frequently Asked Questions

What is Gauss's Law?
Gauss's Law states that the total electric flux through any closed surface equals the enclosed charge divided by the permittivity of the surrounding medium: ΦE = ∮E·dA = Q_enc / ε. It is one of Maxwell's four equations and follows directly from Coulomb's law and the inverse-square nature of the electric field.
How do I find the electric field from Gauss's Law?
For a symmetric charge distribution you can pull E outside the flux integral because it has constant magnitude over the Gaussian surface: E = Q_enc / (ε × A). For a sphere of radius r centered on a spherically symmetric charge, A = 4πr², giving E = Q_enc / (4πεr²) — the same result Coulomb's law gives for a point charge.
Does the shape of the Gaussian surface matter?
No. Gauss's Law holds for any closed surface enclosing the charge — total flux depends only on the enclosed charge, never on the surface's shape or size. Only a surface that matches the symmetry of the charge distribution (sphere, cylinder, or plane) lets you solve for E algebraically, because only then is E constant and parallel to dA across the whole surface.
How does a dielectric medium change the result?
Replace the vacuum permittivity ε₀ with ε = εr × ε₀, where εr is the medium's relative permittivity (dielectric constant). Since εr > 1 for insulators, both the flux and the field produced by a given enclosed free charge are reduced compared to vacuum.