
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
- What Does Gauss's Law Say?
- Gauss's Law Explained Simply
- What Is the Formula for Gauss's Law?
- What Is a Gaussian Surface?
- How Do You Use Gauss's Law to Find an Electric Field?
- What Does Gauss's Law Say About Conductors?
- Who Discovered Gauss's Law?
- Going Deeper: Gauss's Law vs Coulomb's Law
- Practice With Gauss's Law
- Common Misconceptions
- Key Facts
- Quiz
- 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.

What Is the Formula for Gauss's Law?
Gauss's law is written
Rearranged,
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.
| Symbol | Quantity | SI unit |
|---|---|---|
| electric flux through the closed surface | newton meter squared per coulomb (N·m²/C) | |
| net charge enclosed | coulomb (C) | |
| permittivity 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:
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?
- Given:
- net charge enclosed:
- permittivity of free space:
- net charge enclosed:
- Formula:
- Substitute:
- Answer:
The answer does not depend on the size or shape of the box, or on where the bead sits inside it.
| Enclosed charge | Charge (C) | Net flux (N·m²/C) | Direction |
|---|---|---|---|
| One electron | −1.602 × 10-19 | −1.810 × 10-8 | Inward |
| Small static charge | 1 × 10-9 | 112.9 | Outward |
| Charged plastic comb (rough) | 5 × 10-9 | 564.7 | Outward |
| Negative bead | −2 × 10-9 | −225.9 | Inward |
| Large lab charge | 1 × 10-6 | 1.129 × 105 | Outward |
| Dipole (+q and −q) | 0 | 0 | No 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?
- Given:
- electric flux through the closed surface:
- permittivity of free space:
- electric flux through the closed surface:
- Formula:
- Substitute:
- Answer:
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.

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
. Then , so , 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 . - Planar symmetry (a large flat sheet with charge
per square meter): use a short box that straddles the sheet. The field is , 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?
- Given:
- source charge:
- ε0:
- distance from the charge:
- source charge:
- Formula:
- Substitute:
- Answer:
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.
| Charge arrangement | Gaussian surface | Field result | How E changes with distance |
|---|---|---|---|
| Point charge or charged sphere | Concentric sphere | E = Q / (4π ε₀ r²) | Falls as 1/r² |
| Long straight charged wire | Coaxial cylinder | E = λ / (2π ε₀ r) | Falls as 1/r |
| Large flat charged sheet | Box straddling the sheet | E = σ / (2 ε₀) | Constant |
| Inside a solid conductor | Surface inside the metal | E = 0 | Zero everywhere inside |
| Inside a uniformly charged shell | Smaller concentric sphere | E = 0 | Zero 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.

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
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,
The magnetic version,
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.
Quick Quiz: How Well Do You Know Gauss's Law?
6 questions. Tap an answer to check it.
A closed surface encloses no charge, but a charge sits just outside it. What is the net flux through the surface?
Only enclosed charge produces net flux; field lines from the outside charge enter and leave.
If the charge inside a closed surface doubles, what happens to the net electric flux?
Flux is directly proportional to the enclosed charge, Φ = Q_enc / ε₀.
Which Gaussian surface is best for finding the field of a long straight charged wire?
A cylinder matches the wire's symmetry, so the field is constant on its curved side.
What is the SI unit of electric flux?
Flux is field (N/C) times area (m²), so its unit is N·m²/C.
Where does excess charge sit on a conductor at rest?
The field inside the metal is zero, so Gauss's law forces all excess charge to the surface.
Gauss's law is one of which set of equations?
It is the first of Maxwell's four equations of electromagnetism.
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.








