Skip to main content

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.
Starting model: Gauss's law in integral formCross-section of a closed spherical Gaussian surface of radius 3.5 cm around an enclosed charge q_in = 3.0 nC, with a second charge q_out = 4.0 nC held 11.0 cm from the centre, outside the surface. The four arrows give the outward radial component of the total field at four points of the surface; the bar on the right is the net flux, 339 N m² C⁻¹.∮ E ⋅ dA = Qenc / ε₀Gaussian sphere, radius 3.5 cmQenc = 3.0 nCΦ / N m² C⁻¹339qₒᵤₜ = 4.0 nCqᵢₙ = 3.0 nCarrows: outward radial E at four points
Start with a picture. Change the model in the lab below.
1

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.

2

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 outside

Superposition 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 field

Enclosed 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 bounds

The 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⁻¹
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

3.0 nC
−4 to 4 nC; steps of 0.5.
4.0 nC
−6 to 6 nC; steps of 0.5.
3.5 cm
2.5 to 6.5 cm; steps of 0.5.

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.

Interactive Physics II modelCross-section of a closed spherical Gaussian surface of radius 3.5 cm around an enclosed charge q_in = 3.0 nC, with a second charge q_out = 4.0 nC held 11.0 cm from the centre, outside the surface. The four arrows give the outward radial component of the total field at four points of the surface; the bar on the right is the net flux, 339 N m² C⁻¹.∮ E ⋅ dA = Qenc / ε₀Gaussian sphere, radius 3.5 cmQenc = 3.0 nCΦ / N m² C⁻¹339qₒᵤₜ = 4.0 nCqᵢₙ = 3.0 nCarrows: outward radial E at four points
Cross-section of a closed spherical Gaussian surface of radius 3.5 cm around an enclosed charge qᵢₙ = 3.0 nC, with a second charge qₒᵤₜ = 4.0 nC held 11.0 cm from the centre, outside the surface. The four arrows give the outward radial component of the total field at four points of the surface; the bar on the right is the net flux, 339 N m² C⁻¹.

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

Baseline 3.0; choose −4 to 4, in steps of 0.5.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

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.

5

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.

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.

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.

6

Quick check

Select an answer and explain it before checking.

A closed surface of irregular shape encloses a single point charge of +4.00 nC. A −7.00 nC charge is then brought up and held 1.0 mm outside the surface, where its field at the nearest wall is far stronger than the enclosed charge's. What is the net outward flux through the surface?
7

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.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.