Flux, charge and symmetry

Gauss's Law for Electric Fields

Gauss's law states that the total electric flux through any closed surface equals the net charge inside that surface divided by the permittivity of free space, ε₀. It ties the electric field on a surface to the charge it encloses, and for symmetric charge arrangements it turns hard field calculations into a few lines of algebra.

Glowing sphere at the center of a transparent bubble with light spreading evenly outward through the surface
Like light crossing a bubble, the field from a charge passes through any closed surface around it in a total set by the charge alone.

At a Glance

Gauss's law says the electric flux out of any closed surface equals the enclosed charge divided by ε₀: Φ_E = ∮ E · dA = Q_enc / ε₀, with ε₀ ≈ 8.854 × 10⁻¹² C²/(N·m²). Charges outside the surface add zero net flux, so only the charge inside matters.

Formulated by
Joseph-Louis Lagrange (1773) and Carl Friedrich Gauss (1835)
Formula
ΦE = ∮ E · dA = Qenc / ε0
Electric flux unit
N·m²/C (equivalent to V·m)
Key constant
ε0 = 8.854 187 8188 × 10⁻¹² F/m (CODATA 2022)
Quantity type
Flux is a scalar; the field E is a vector
Applies to
Any closed surface, any charge distribution; one of Maxwell's equations
On this page
  1. What Does Gauss's Law Say?
  2. Gauss's Law Explained Simply
  3. What Is the Formula for Gauss's Law?
  4. What Is a Gaussian Surface?
  5. How Do You Use Gauss's Law to Find an Electric Field?
  6. What Does Gauss's Law Say About Conductors?
  7. Who Discovered Gauss's Law?
  8. Going Deeper: Gauss's Law vs Coulomb's Law
  9. Practice With Gauss's Law
  10. Common Misconceptions
  11. Key Facts
  12. Quiz
  13. FAQ

What Does Gauss's Law Say?

Gauss's law is a statement about electric flux, a measure of how much electric field passes through a surface. Wrap any imaginary closed surface around some charges, add up the field poking outward through every patch of it, and the total depends on only one thing: the net charge trapped inside.

Positive charge inside gives outward flux, negative charge gives inward flux, and zero net charge gives zero net flux. Charges outside the surface may change the field at each point, but every field line from an outside charge that enters the surface also leaves it, so their net contribution cancels.

The law is fully general. It holds for any closed shape and any arrangement of charges, moving slowly or sitting still. It is one of the four Maxwell's equations that together describe all of classical electromagnetism.

Gauss's Law Explained Simply

Imagine a garden sprinkler inside a big tent. However large the tent and whatever its shape, all the water sprayed out each second has to cross the tent walls. Measure the water leaving through the walls and you know how strong the sprinkler is, without ever looking inside.

A charge acts like that sprinkler, sending out field lines instead of water. Gauss's law says the total field crossing a closed surface tells you exactly how much charge is inside. A sprinkler outside the tent would spray water in one side and out the other, adding nothing to the total, just as an outside charge adds no net flux.

The diagram below shows the field lines of a single positive charge. Draw any closed curve around it and every line crosses outward exactly once.

Electric field lines spreading radially outward from a single positive point charge
Every field line from a positive charge crosses any closed surface around it outward exactly once.

What Is the Formula for Gauss's Law?

Gauss's law is written ΦE=∮E→⋅dA→=Qenc/ε0. The circle on the integral sign means the surface is closed. Each tiny patch dA→ is a vector pointing outward, and the dot product keeps only the part of the field that crosses the patch.

Qenc is the net charge inside in coulombs, and ε0 is the permittivity of free space, 8.8541878188×10−12 F/m in CODATA 2022. Flux comes out in newton meters squared per coulomb, which is the same as volt meters.

Rearranged, Qenc=ε0ΦE gives the hidden charge from a measured flux. The first worked example uses the law in its most direct form.

Here is Gauss's law with each symbol and its SI unit, plus the rearranged form for finding the enclosed charge from a measured flux.

ΦE=∮E→⋅dA→=Qencε0
What each symbol means
SymbolQuantitySI unit
ΦEelectric flux through the closed surfacenewton meter squared per coulomb (N·m²/C)
Qencnet charge enclosedcoulomb (C)
ε0permittivity of free space (8.854 × 10⁻¹² C²/(N·m²) (F/m))coulomb squared per newton meter squared (C²/(N·m²))

Rearranged to find another variable:

Qenc=ε0ΦE

Valid for: any closed (Gaussian) surface.

Example 1 Flux out of a box around a charged bead

A small bead carrying +2.5 nC (2.5 × 10⁻⁹ C) sits somewhere inside a closed cardboard box. Using ε₀ = 8.854 × 10⁻¹² C²/(N·m²), what is the total electric flux out through the six faces of the box?

  1. Given:
    • net charge enclosed: Qenc=2.5×10−9 C
    • permittivity of free space: ε0=8.854×10−12 C2/(N·m2)
  2. Formula: ΦE=∮E→⋅dA→=Qencε0
  3. Substitute: Qenc=2.5×10−9 C,ε0=8.854×10−12 C2/(N·m2)
  4. Answer: ΦE=282.4 N·m2/C

The answer does not depend on the size or shape of the box, or on where the bead sits inside it.

Net electric flux through a closed surface for different enclosed charges
Enclosed chargeCharge (C)Net flux (N·m²/C)Direction
One electron−1.602 × 10-19−1.810 × 10-8Inward
Small static charge1 × 10-9112.9Outward
Charged plastic comb (rough)5 × 10-9564.7Outward
Negative bead−2 × 10-9−225.9Inward
Large lab charge1 × 10-61.129 × 105Outward
Dipole (+q and −q)00No net flux
Source: Computed with Φ_E = Q_enc / ε₀, ε₀ = 8.854 187 8188 × 10-12 F/m and e = 1.602 176 634 × 10-19 C (NIST CODATA 2022) · Retrieved October 2026

What Is a Gaussian Surface?

A Gaussian surface is any imaginary closed surface you draw in order to apply Gauss's law. It is not a real object. It can be a sphere, a cylinder, a box or any lumpy shape, and it can pass through empty space, through conductors or through charged material.

The law is true for every Gaussian surface, but only a well-chosen one makes it useful for finding the field. The trick is to match the surface to the symmetry of the charges so that the field has the same size everywhere on it, and points straight out or lies flat along it.

The diagram below shows a dipole: equal positive and negative charges side by side. A surface around both charges encloses zero net charge, so the outward flux near the positive charge is exactly canceled by the inward flux near the negative one.

Example 2 How much charge is hidden inside?

Field measurements over a closed surface around a sealed instrument case add up to a net outward electric flux of 450 N·m²/C. How much net charge is inside the case?

  1. Given:
    • electric flux through the closed surface: ΦE=450 N·m2/C
    • permittivity of free space: ε0=8.854×10−12 C2/(N·m2)
  2. Formula: Qenc=ε0ΦE
  3. Substitute: ΦE=450 N·m2/C,ε0=8.854×10−12 C2/(N·m2)
  4. Answer: Qenc=3.984×10−9 C

A few nanocoulombs is typical of everyday static charge, enough to make a small spark but far too little to notice as weight or force.

Electric field lines running from a positive charge to an equal negative charge, a dipole with zero net enclosed charge
A surface around both charges of a dipole encloses zero net charge, so outward and inward flux cancel.

How Do You Use Gauss's Law to Find an Electric Field?

With the right symmetry, the flux integral collapses to field times area, and the field drops out in one line. The three classic cases are:

  • Spherical symmetry (a point charge, a charged ball or shell): use a sphere of radius r. Then E⋅4πr2=Q/ε0, so E=Q/(4πε0r2), which is Coulomb's law.
  • Cylindrical symmetry (a long charged wire or rod with charge λ per meter): use a coaxial cylinder. The ends carry no flux, and E=λ/(2πε0r).
  • Planar symmetry (a large flat sheet with charge σ per square meter): use a short box that straddles the sheet. The field is E=σ/(2ε0), the same at any distance.

Without such symmetry, Gauss's law is still true but no longer hands you the field directly. Our guide to electric fields of charge distributions covers those harder cases.

Example 3 Field outside a charged metal sphere

A metal sphere carries a charge of 4.0 nC (4.0 × 10⁻⁹ C). Using a spherical Gaussian surface of radius 0.30 m around it, Gauss's law gives E = Q / (4π ε₀ r²). What is the field strength 0.30 m from the center?

  1. Given:
    • source charge: Q=4×10−9 C
    • ε0: ε0=8.854×10−12
    • distance from the charge: r=0.3 m
  2. Formula: E=k|Q|r2
  3. Substitute: Q=4×10−9 C,ε0=8.854×10−12,r=0.3 m
  4. Answer: E=399.4 N/C

This is exactly the field of a point charge at the center, which is why a charged sphere acts like a point charge from outside.

Choosing a Gaussian surface for each symmetry
Charge arrangementGaussian surfaceField resultHow E changes with distance
Point charge or charged sphereConcentric sphereE = Q / (4π ε₀ r²)Falls as 1/r²
Long straight charged wireCoaxial cylinderE = λ / (2π ε₀ r)Falls as 1/r
Large flat charged sheetBox straddling the sheetE = σ / (2 ε₀)Constant
Inside a solid conductorSurface inside the metalE = 0Zero everywhere inside
Inside a uniformly charged shellSmaller concentric sphereE = 0Zero everywhere inside
Source: Derived from Gauss's law for ideal symmetric charge distributions · Retrieved October 2026

What Does Gauss's Law Say About Conductors?

In a conductor at rest, the field inside the metal must be zero. If it were not, free electrons would move until it was. Draw a Gaussian surface just inside the metal: the field there is zero, so the flux is zero, so the enclosed charge is zero. Any extra charge on a conductor must therefore sit on its outer surface.

The same reasoning shows that a hollow metal box with no charge inside it has zero field in its cavity, whatever is happening outside. This is the principle behind a Faraday cage, which shields its contents from outside electric fields.

Our page on conductors in electrostatic equilibrium follows these ideas further, including why charge crowds onto sharp points.

Person standing calmly inside a metal mesh cage while artificial lightning strikes its outside
Gauss's law explains why the field inside a closed metal cage stays zero even when sparks hit the outside.

Who Discovered Gauss's Law?

The idea first appeared in work on gravity, not electricity. The Italian-French mathematician Joseph-Louis Lagrange formulated it in 1773 while studying the gravitational pull of ellipsoid-shaped bodies. The German mathematician Carl Friedrich Gauss developed it independently in 1835, and his name stuck.

The law became central to electromagnetism when James Clerk Maxwell made it one of his field equations in the 1860s. In Maxwell's set, it is the equation that tells you how electric charge creates electric field.

Because gravity also follows an inverse-square law, the same mathematics gives a gravitational version: the gravitational flux through a closed surface depends only on the mass inside. That is why a planet attracts outside objects as if all its mass sat at its center.

Going Deeper: Gauss's Law vs Coulomb's Law

For charges at rest, Gauss's law and Coulomb's law carry the same information. Each can be derived from the other, and both depend on the field of a point charge falling off exactly as 1/r2. If the exponent were even slightly different from 2, flux would no longer be independent of the surface's size.

Gauss's law is the more powerful form. It still holds when charges move, while Coulomb's simple formula does not, and it fits naturally into Maxwell's equations. In differential form, ∇⋅E→=ρ/ε0, it says that field lines spread out only where charge density ρ is present.

The magnetic version, ∮B→⋅dA→=0, says the magnetic flux through any closed surface is always zero. No isolated magnetic charge has ever been found, so magnetic field lines always close on themselves.

Practice With Gauss's Law

Start by finding the flux from given enclosed charges, then move to symmetric field problems with spheres, wires and sheets. Our electricity formula sheet collects every equation used here, and the electric field vs magnetic field comparison shows how Gauss's law differs for the two fields. Then try the quiz below.

Common Misconceptions

Myth: If the net flux through a surface is zero, the electric field on the surface must be zero.

Physics: Zero net flux only means the inward and outward flux cancel. Charges outside the surface can still create a strong field on it.

Myth: Charges outside a Gaussian surface have no effect on the field at the surface.

Physics: They do change the field at each point. They just add no net flux, because their field lines enter and leave the surface.

Myth: A Gaussian surface has to be a sphere.

Physics: Any closed shape works. Spheres, cylinders and boxes are chosen only because they match common symmetries and make the integral easy.

Myth: Gauss's law only applies to point charges.

Physics: It applies to any charge distribution. Point charges are just the simplest case where the symmetry makes the field easy to find.

Key Facts

  • Gauss's law states that the electric flux through any closed surface equals the enclosed charge divided by ε₀.
  • Charges outside a closed surface add zero net flux through it.
  • The size and shape of the closed surface do not change the total flux.
  • With spherical, cylindrical or planar symmetry, Gauss's law gives the electric field in a few steps.
  • The field inside a conductor at rest is zero, so excess charge sits on its outer surface.
  • Gauss's law is one of Maxwell's four equations of electromagnetism.
  • Lagrange formulated the idea in 1773 and Gauss in 1835, both for gravity.
Did you know? Gauss's law only works because the electric force falls off as exactly one over distance squared, and precise tests of the field inside closed charged shells have confirmed that exponent of 2 to extraordinary accuracy.

Quick Quiz: How Well Do You Know Gauss's Law?

6 questions. Tap an answer to check it.

  1. A closed surface encloses no charge, but a charge sits just outside it. What is the net flux through the surface?

  2. If the charge inside a closed surface doubles, what happens to the net electric flux?

  3. Which Gaussian surface is best for finding the field of a long straight charged wire?

  4. What is the SI unit of electric flux?

  5. Where does excess charge sit on a conductor at rest?

  6. Gauss's law is one of which set of equations?

Frequently Asked Questions

What is Gauss's law in simple terms?

Gauss's law says that if you wrap an imaginary closed surface around some electric charges, the total electric field passing out through that surface depends only on the net charge inside. More charge inside means more flux coming out. Charges outside the surface do not change the total, because their field lines pass in one side and out the other.

What is the formula for Gauss's law?

The formula is Φ_E = ∮ E · dA = Q_enc / ε₀. Φ_E is the electric flux in N·m²/C, the integral adds the outward field over a closed surface, Q_enc is the net enclosed charge in coulombs and ε₀ is the permittivity of free space, about 8.854 × 10⁻¹² C²/(N·m²). The differential form is ∇ · E = ρ / ε₀.

What is a Gaussian surface?

A Gaussian surface is an imaginary closed surface drawn to apply Gauss's law. It can have any shape, but you usually choose one that matches the symmetry of the charges, such as a sphere around a point charge or a cylinder around a long wire. On a well-chosen surface the field has a constant size, so the flux integral becomes simple.

What is electric flux?

Electric flux measures how much electric field passes through a surface. For a flat surface in a uniform field it equals the field strength times the area times the cosine of the angle between the field and the surface's outward direction. Its SI unit is the newton meter squared per coulomb, which is equivalent to the volt meter.

How is Gauss's law related to Coulomb's law?

For charges at rest, they are two forms of the same physics. Apply Gauss's law to a sphere around a point charge and you get the field E = Q/(4πε₀r²), which is Coulomb's law. Going the other way, Coulomb's inverse-square law implies Gauss's law. Gauss's law is more general because it also holds for moving charges.

Why is the electric field inside a conductor zero?

A conductor contains free electrons that move whenever a field acts on them. In a conductor at rest, they rearrange until the field inside the metal is exactly zero. Gauss's law then shows that a closed surface inside the metal encloses no net charge, so any extra charge must sit on the conductor's outer surface.

Does Gauss's law work for gravity?

Yes. Gravity also follows an inverse-square law, so there is a gravitational version: the gravitational flux through a closed surface is proportional to the mass inside. This is why a uniform spherical planet pulls on outside objects as if all its mass were concentrated at its center. Historically, the idea was first worked out for gravity.

What is Gauss's law for magnetism?

Gauss's law for magnetism says the net magnetic flux through any closed surface is zero: ∮ B · dA = 0. Magnetic field lines have no starting or ending points and always form closed loops. In other words, no isolated north or south magnetic pole has ever been observed. It is another of Maxwell's four equations.

Sources

Constants come from NIST CODATA 2022 (public domain) and unit definitions from the BIPM SI Brochure (CC BY 4.0). Text, diagrams and illustrations are original work by Physics Tribune.

Physics Tribune Editorial Team
Written by our editors and checked against NIST and BIPM reference data. Every worked example is recomputed in code. Read our editorial policy. Last updated October 2026.