
Physics II course sequence · Interactive lesson
Gauss's law in integral form
Coulomb's law gives you the field of one charge at one point. Gauss's law gives you something cheaper and stranger: the total flux out of any closed surface at all depends on nothing but the charge sealed inside it. Here is what that buys, and what it flatly refuses to tell you.
UPII-03.02 · Lesson 2 of 8 in this unit. Position is not a completion score.Build the model
Count the charge sealed inside and the flux out is already decided.
The key idea
Gauss's law says the net electric flux out of any closed surface equals the net charge enclosed by that surface divided by ε₀, whatever the surface's shape and whatever charges sit outside it.
Example. Seal 4.00 nC inside a surface of any shape and the outward flux is 4.00 × 10⁻⁹ C ÷ 8.854 × 10⁻¹² C² N⁻¹ m⁻² = 452 N m² C⁻¹ — the same for a 1 cm sphere and for a crumpled bag a metre across.
The complete physical model and assumptions
Gauss's law is a statement about a whole closed surface, never about a point on it. Take the total electric field at every point of any closed surface, project it onto the outward normal, and add up E ⋅ dA over the entire surface: the answer is the net charge sealed inside, divided by ε₀, and nothing else enters. It follows from Coulomb's law and almost nothing more. A point charge at the centre of a sphere produces a field of q/4πε₀r² over an area of 4πr², so the r² cancels and the flux is q/ε₀ whatever the radius; rewriting the surface integral in terms of solid angle shows that the same total survives any deformation of the surface, and that a charge outside contributes exactly zero, because every cone it throws enters the surface once and leaves it again. Superposition then lets you add the enclosed charges one at a time, signs included. What the law does not say is that the field on the surface comes from the enclosed charge alone — it does not, and an outside charge can dominate E at every point of the surface while adding nothing at all to the sum. And one scalar equation cannot deliver three components of a vector field, so Gauss's law is always true but yields E only where symmetry collapses the integral to a field times an area.
1Start with one charge and a concentric sphere
Put a point charge q at the centre of an imaginary sphere of radius r. Coulomb's law gives a field of magnitude q/4πε₀r² pointing radially outward, and on a sphere centred on the charge the outward area element dA is radial too, so E ⋅ dA is simply E dA on every patch. E has the same magnitude everywhere on that sphere, so it comes straight out of the integral: Φ = E × 4πr² = (q/4πε₀r²)(4πr²) = q/ε₀. Watch what just happened. The r² in the denominator of Coulomb's law was cancelled by the r² in the area of the sphere, and the radius vanished from the answer. Take q = 3.00 nC. At r = 0.100 m the field is 2.70 × 10³ N C⁻¹ across an area of 0.1257 m², giving 339 N m² C⁻¹; at r = 0.200 m the field has fallen to 674 N C⁻¹ but the area has grown to 0.5027 m², and the product is 339 N m² C⁻¹ again. Only an inverse-square force law does this. Under a 1/r³ law the flux would leak away with distance and there would be no Gauss's law to write.
2Dent the surface: solid angle does the bookkeeping
Nothing in that argument obviously survives if the surface is a cube or a crumpled bag. Solid angle shows that it does. Draw a narrow cone of solid angle dΩ outward from the charge. Wherever the cone meets the closed surface, at slant distance r and with the surface tilted at angle θ to the cone's axis, the patch it cuts has area dA = r² dΩ / cos θ. The flux through that patch is E dA cos θ = (q/4πε₀r²)(r² dΩ) = (q/4πε₀) dΩ, and both r and θ have dropped out. Every cone contributes the same amount however far away or however steeply tilted the surface happens to be there, because pushing the surface outward weakens the field by exactly the factor by which it enlarges the patch. Now add the cones. The solid angle all around an interior point is 4π steradians, so Φ = (q/4πε₀)(4π) = q/ε₀ for any closed surface whatever that encloses q. Shape has been eliminated from the problem.
3A charge outside the surface contributes exactly nothing
Now move the charge outside the closed surface and run the same cones. A cone from an external charge either misses the surface entirely or pierces it an even number of times — twice for a convex surface, once going in and once coming out. On the entry patch the field points into the volume, so E ⋅ dA is negative; on the exit patch it points out and E ⋅ dA is positive. Both patches subtend the same solid angle dΩ, so both have magnitude (q/4πε₀) dΩ, and they cancel exactly. Sum over every cone and an outside charge contributes zero net flux, however close it sits and however large it is. Be careful about what has just been proved. Nothing here says the external charge produces no field on the surface. A +10.0 nC charge parked 1.00 mm outside makes a field of about 9 × 10⁷ N C⁻¹ at the nearest patch, far larger than anything inside is likely to make there. Its flux in and its flux out merely happen to be equal.
4Qenc is an algebraic sum of what is inside
Real problems have many charges, and superposition finishes the job. The total field on the surface is the vector sum of the field of every charge, inside and out, and the surface integral is linear in the field, so the total flux is the sum of the fluxes each charge would produce on its own. Each interior charge contributes qᵢ/ε₀ and each exterior charge contributes zero, so adding them gives ∮E ⋅ dA = Qenc/ε₀ with Qenc the algebraic sum of the enclosed charges, signs included. Suppose a surface encloses +12.0 nC and −4.50 nC while a −20 nC charge sits somewhere outside. Then Qenc = +7.50 nC and Φ = 7.50 × 10⁻⁹ C ÷ 8.854 × 10⁻¹² C² N⁻¹ m⁻² = +847 N m² C⁻¹, the positive sign meaning net outward. When the charge is smeared rather than pointlike the same sum becomes an integral, Qenc = ∫ρ dV over the volume the surface bounds — and only over that volume.
5What ε₀ is doing on the right-hand side
ε₀ is not a new piece of physics; it is Coulomb's constant wearing different clothes. SI fixes the unit of charge through the ampere, so the force law needs an experimental constant out front: F = k q₁q₂/r² with k = 8.988 × 10⁹ N m² C⁻². Writing k as 1/4πε₀ moves the 4π off the force law and parks it beside the 4π that the surface area of a sphere was always going to supply, which is exactly why Gauss's law emerges with no stray numerical factor. That gives ε₀ = 8.854 × 10⁻¹² C² N⁻¹ m⁻², the same number as 8.854 × 10⁻¹² F m⁻¹ when capacitance arrives later. Check the units of the law itself: C ÷ (C² N⁻¹ m⁻²) = N m² C⁻¹, which is the unit of flux and equals V m. So the flux out of a closed surface is readable as a measurement of charge: one coulomb inside registers 1.13 × 10¹¹ N m² C⁻¹ of outward flux.
6Always true, only sometimes useful
Gauss's law holds for every closed surface you can imagine drawing, around any arrangement of charges, static or moving — it is the first of Maxwell's equations, and no experiment has caught it failing. But it is one scalar equation, and an electric field is three functions of three coordinates. One number per surface cannot possibly determine all of that. What the law pins down is an average: the outward component of E summed over the whole surface, not its value anywhere on it. Draw a 3 cm sphere around one of two equal charges held 10 cm apart and the flux through it is exactly q/ε₀, yet the field on that sphere is lopsided and the law will not tell you its value at a single point. Gauss's law delivers E only when you can argue in advance, from symmetry, that |E| is constant over the surface and meets dA at a fixed angle, so that ∮E ⋅ dA collapses to E × A and can be solved for E. Hunting for those surfaces is the next topic's work.
Key equations
Read the units, assumptions and limits before substituting.
Gauss's law, integral form
∮ E ⋅ dA = Qenc / ε₀
Trades a surface integral of the field for a count of the charge sealed inside.
ΦE in N m² C⁻¹, Qenc in C, ε₀ = 8.854 × 10⁻¹² C² N⁻¹ m⁻²Why the concentric sphere works
Φ = (q / 4πε₀r²)(4πr²) = q / ε₀
The radius drops out of the answer, so the flux can depend on q alone.
q in C, r the sphere's radius in m; Coulomb's r² cancels the sphere's r²Solid-angle bookkeeping
dΦ = (q / 4πε₀) dΩ
Explains why a dented, lopsided surface returns exactly the sphere's total.
dΩ = dA cos θ / r² in steradians; ∮dΩ = 4π for q inside, 0 for q outsideSuperposition of flux
∮ (E₁ + E₂ + …) ⋅ dA = Φ₁ + Φ₂ + …
Lets you count charges one at a time, with every outside charge scoring zero.
each Φᵢ in N m² C⁻¹; the surface integral is linear in the fieldEnclosed charge from a density
Qenc = ∫ ρ dV
Supplies the right-hand side when the charge is smeared out instead of pointlike.
ρ in C m⁻³, dV in m³, taken over the volume the closed surface boundsThe constant ε₀
1 / 4πε₀ = 8.988 × 10⁹ N m² C⁻²
Shows ε₀ is Coulomb's constant rewritten so the 4π sits with the sphere's area.
ε₀ = 8.854 × 10⁻¹² C² N⁻¹ m⁻², the same number as 8.854 × 10⁻¹² F m⁻¹Interactive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Sweep qₒᵤₜ from −6.0 to +6.0 nC: every arrow swings, the near-side one hardest, while the flux bar holds at {112.94*qin|0} N m² C⁻¹. Now push the Gaussian radius out to 5.5 cm or more and the near-side arrow reverses and points inward, and the bar still has not moved.
Live results
- ENCLOSED CHARGE
- 3.0 nC
- NET FLUX Q/ε₀
- 339 N m² C⁻¹
- NEAR-SIDE Eᵣ
- 15.6 kN C⁻¹
- FAR-SIDE Eᵣ
- 23.7 kN C⁻¹
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Enclosed charge qᵢₙ: 3.0 nC; Outside charge qₒᵤₜ: 4.0 nC; Gaussian radius: 3.5 cm
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
Because Qenc alone fixes the flux, students conclude that the field on the Gaussian surface is fixed by the enclosed charge alone and that outside charges can be ignored. They cannot. The E in ∮E ⋅ dA is the total field, every source included. Park a +10.0 nC charge 1.00 mm outside a surface and it produces about 9 × 10⁷ N C⁻¹ at the nearest patch, swamping whatever the enclosed charge does there — yet its inward flux on the near side exactly cancels its outward flux on the far side, so the total never moves. The mirror error reads Φ = 0 as E = 0: a surface drawn in a uniform field, or one wrapped around a neutral dipole, has zero net flux with a strong field at every point of it.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
A point charge q = +3.20 nC sits at the centre of an imaginary spherical surface of radius 0.250 m. Find the net outward flux twice — once as field times area, once straight from Gauss's law — and say what happens to each quantity if the radius is doubled to 0.500 m.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- Field on the surface: E = q/4πε₀r² = (8.988 × 10⁹ N m² C⁻²)(3.20 × 10⁻⁹ C) ÷ (0.250 m)² = 28.76 ÷ 0.0625 = 460.2 N C⁻¹.
- E is radial with the same magnitude everywhere on the sphere, and dA is radial too, so the integral collapses: Φ = E × 4πr² = 460.2 N C⁻¹ × 0.7854 m² = 361.4 N m² C⁻¹.
- Gauss's law gets there in one line: Φ = q/ε₀ = 3.20 × 10⁻⁹ C ÷ 8.854 × 10⁻¹² C² N⁻¹ m⁻² = 361.4 N m² C⁻¹.
- Double the radius. The field falls by a factor of four, to 115.0 N C⁻¹, while the area grows by a factor of four, to 3.142 m². Their product is 361.4 N m² C⁻¹ again, unchanged, because no new charge was enclosed.
Answer. Φ = 3.61 × 10² N m² C⁻¹ at both radii. The field drops by four while the area grows by four, so the product — and therefore the flux — never moves.
MediumExample 2
A ball of radius 6.00 cm carries charge spread uniformly through its volume with density ρ = 2.50 × 10⁻⁶ C m⁻³. A closed spherical surface of radius 4.00 cm is drawn concentric with the ball. Find the charge it encloses and the net flux through it, then find the flux through a concentric surface of radius 9.00 cm.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Only charge inside the surface counts, so integrate ρ over the volume the surface bounds: V = (4/3)π(0.0400 m)³ = 2.681 × 10⁻⁴ m³.
- Qenc = ρV = (2.50 × 10⁻⁶ C m⁻³)(2.681 × 10⁻⁴ m³) = 6.702 × 10⁻¹⁰ C = 0.670 nC.
- Φ = Qenc/ε₀ = 6.702 × 10⁻¹⁰ C ÷ 8.854 × 10⁻¹² C² N⁻¹ m⁻² = 75.7 N m² C⁻¹.
- At 9.00 cm the whole ball is inside, so stop the integral at the ball's own radius: Q = (2.50 × 10⁻⁶ C m⁻³)(4/3)π(0.0600 m)³ = 2.262 × 10⁻⁹ C = 2.26 nC.
- Φ = 2.262 × 10⁻⁹ C ÷ 8.854 × 10⁻¹² C² N⁻¹ m⁻² = 255 N m² C⁻¹, and it stays at that value for every larger radius, because beyond 6.00 cm no further charge is being swept up.
Answer. Qenc = 0.670 nC and Φ = 75.7 N m² C⁻¹ through the 4.00 cm surface; Φ = 255 N m² C⁻¹ through the 9.00 cm surface and through every larger one.
HardExample 3
A sealed instrument case is surveyed by measuring the net outward flux through imaginary spheres drawn concentric with it. The readings are Φ = +4.52 × 10² N m² C⁻¹ at 5.0 cm, −2.26 × 10² N m² C⁻¹ at 15.0 cm, −2.26 × 10² N m² C⁻¹ at 30.0 cm and +8.13 × 10² N m² C⁻¹ at 60.0 cm. Find the net charge in each shell, and state what the survey cannot tell you.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Run Gauss's law backwards at each radius: Qenc = ε₀Φ. At 5.0 cm, Qenc = (8.854 × 10⁻¹²)(451.8) = 4.00 × 10⁻⁹ C = +4.00 nC.
- At 15.0 cm, Qenc = (8.854 × 10⁻¹²)(−225.9) = −2.00 × 10⁻⁹ C = −2.00 nC. Since each reading is a running total, the shell between 5.0 cm and 15.0 cm must hold −2.00 nC − (+4.00 nC) = −6.00 nC.
- At 30.0 cm the reading has not moved, so Qenc is still −2.00 nC and the shell from 15.0 cm to 30.0 cm is neutral. Neutral is not the same as empty: it may hold equal positive and negative charge.
- At 60.0 cm, Qenc = (8.854 × 10⁻¹²)(813.2) = 7.20 × 10⁻⁹ C = +7.20 nC, so the shell from 30.0 cm to 60.0 cm holds +7.20 nC − (−2.00 nC) = +9.20 nC.
- What the survey cannot do is locate anything. Each reading fixes only the algebraic total inside that radius, so the −6.00 nC could be one point charge, a thin shell, or a lopsided smear — and any charge beyond 60.0 cm, however large, is invisible to all four readings.
Answer. +4.00 nC inside 5.0 cm, −6.00 nC between 5.0 and 15.0 cm, zero net between 15.0 and 30.0 cm, and +9.20 nC between 30.0 and 60.0 cm. The survey fixes totals, never positions, and sees nothing outside the largest sphere.
Quick check
Select an answer and explain it before checking.
Review & continue
Gauss's law says the net electric flux out of any closed surface equals the net charge enclosed by that surface divided by ε₀, whatever the surface's shape and whatever charges sit outside it.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.
Optional supporting lessons
These chapter resources can help with earlier ideas; they are not additional required Physics II completion tasks.