Gauss's Law Problems Step by Step: Sphere, Line and Plane
Choose the right Gaussian surface for a sphere, a line of charge and a plane, then solve each with full steps and checks, plus the mistake that wastes the most time.
Professor Eric Editorial · Nov 29, 2026 · 7 min read
In this article
- What does Gauss's law say?
- How do you choose the Gaussian surface?
- How do you solve for a charged sphere?
- How do you solve for a line of charge?
- How do you solve for an infinite plane?
- How can you spot the mistake?
- Why does the same law give different distance dependence?
- Which courses use this?
- What assignments does it help with, and what help is allowed?
- Gauss's law checklist
- Frequently asked questions
- Practice with a shell
Gauss's law is a shortcut, but only if the geometry cooperates. The whole skill is choosing a surface where the electric field is either constant or perpendicular, so the flux integral collapses into a product.
What does Gauss's law say?
The law states Φ = ∮E · dA = Qenc/ε₀, with ε₀ = 8.854 × 10⁻¹² C²/(N·m²). Flux counts field lines crossing the surface, and only the enclosed charge matters. The field itself comes from all charges, but outside charges contribute zero net flux. The law is always true, but it is useful for finding E only when symmetry lets E come out of the integral.
This topic is calculus-based. Algebra-based courses mention flux qualitatively, and calculus-based courses, such as the AP Physics C: Electricity and Magnetism unit on charges, fields and Gauss's law, use the integral form. AP is a trademark of the College Board, which isn't affiliated with Professor Eric.
How do you choose the Gaussian surface?
Match the surface to the symmetry of the charge.
- Spherical symmetry (point charge, charged sphere or shell): a concentric sphere, with area 4πr².
- Cylindrical symmetry (long line or cylinder): a coaxial cylinder, with side area 2πrL. The end caps contribute no flux because E is parallel to them.
- Planar symmetry (infinite sheet): a small cylinder or box crossing the sheet, with two caps of area A.
Then state the symmetry argument in words: E is radial and has the same magnitude everywhere on the surface. That sentence earns credit.
How do you solve for a charged sphere?
Assumptions: a uniformly charged solid insulating sphere.
Outside (r > R): the enclosed charge is Q, so E(4πr²) = Q/ε₀, giving E = Q/(4πε₀r²). At r = 0.20 m: E = 8.99 × 10⁹ × 5.0 × 10⁻⁹/0.20² = 1.12 × 10³ N/C, directed radially outward.
Inside (r < R): the enclosed charge is the fraction of volume, Qenc = Q(r/R)³. At r = 0.050 m, Qenc = 5.0 nC × (0.5)³ = 0.625 nC. Then E = Qr/(4πε₀R³) = 8.99 × 10⁹ × 5.0 × 10⁻⁹ × 0.050/(0.10)³ = 2.25 × 10³ N/C.
Check: at r = R, both formulas give 4.50 × 10³ N/C, so the field is continuous. Outside, doubling r quarters E, so 1.12 × 10³ N/C at 0.20 m is a quarter of the surface value. Inside, E rises linearly with r.
How do you solve for a line of charge?
Assumptions: an infinitely long line, or a segment long compared with the distance r.
Use a coaxial cylinder of radius r and length L. The caps carry no flux, and the side has area 2πrL. Then E(2πrL) = λL/ε₀, so E = λ/(2πε₀r) = 2.0 × 10⁻⁹/(2π × 8.854 × 10⁻¹² × 0.50) = 71.9 N/C. Check with the equivalent form 2kλ/r = 2 × 8.99 × 10⁹ × 2.0 × 10⁻⁹/0.50 = 71.9 N/C. The field falls as 1/r, not 1/r².
How do you solve for an infinite plane?
Assumptions: an infinite, uniformly charged non-conducting sheet.
Use a small cylinder crossing the sheet. The field exits through both caps, so the flux is 2EA, and the enclosed charge is σA. Then 2EA = σA/ε₀, giving E = σ/(2ε₀) = 1.0 × 10⁻⁶/(2 × 8.854 × 10⁻¹²) = 5.65 × 10⁴ N/C. The field doesn't depend on the distance from the sheet. For comparison, just outside the surface of a conductor with surface charge density σ the field is σ/ε₀, because the field inside the conductor is zero. For σ = 1.0 μC/m² that would be 1.13 × 10⁵ N/C.
How can you spot the mistake?
Check the dependence on distance. A sphere outside gives 1/r², a line gives 1/r, and a plane gives a constant. If your answer disagrees, your area or enclosed charge is wrong. Check continuity at boundaries and check the units: Q/(ε₀r²) has units C ÷ [C²/(N·m²) × m²] = N/C.
Why does the same law give different distance dependence?
The geometry sets how the surface area grows with distance. A sphere's area grows as r², so the field from a fixed charge falls as 1/r². A cylinder's side area grows as r with fixed length, so the field from a line falls as 1/r. A plane's cap area doesn't change with distance, so the field stays constant. This is a quick way to remember which result belongs to which geometry, and to check that a final formula has the right shape.
You can also use this to sanity-check numbers. For the sphere above, moving from 0.20 m to 0.40 m should cut the field by a factor of four, to about 281 N/C, and a line at 1.0 m instead of 0.50 m should cut its field in half, to about 36 N/C. A plane at any distance should give the same 5.65 × 10⁴ N/C. If your calculation disagrees with these scaling rules, look for a wrong power of r.
Finally, remember what Gauss's law does not tell you. It says nothing about which charges produce the field, only about the net flux. A point charge placed outside a closed surface changes the field everywhere on the surface but adds zero net flux, because every field line that enters also leaves.
Which courses use this?
Gauss's law appears in calculus-based introductory electricity and magnetism, in AP Physics C: Electricity and Magnetism, and in upper-division electrodynamics. Upper-division courses use the differential form ∇ · E = ρ/ε₀ and solve problems with less symmetry. Algebra-based courses usually skip the integral form.
What assignments does it help with, and what help is allowed?
Gauss's law shows up on problem sets, exams and in written derivations. Show the symmetry argument, the choice of surface and each flux contribution. Follow your school's honor code and your instructor's rules on outside help, and submit only your own work.
Appropriate help includes a model solution to a similar problem, feedback on your own derivation, and tutoring. We don't do graded online homework, quizzes, labs or exams. See our physics assignment help page.
Gauss's law checklist
Your checklist
0 of 7 done
Frequently asked questions
Does the Gaussian surface have to be a real object?
No. It's an imaginary closed surface you choose, so choose it for convenience.
Why do the end caps of the cylinder contribute no flux for a line charge?
Because the field is radial and the cap's area vector is along the axis, so E · dA is zero there.
What if the charge is not symmetric?
Gauss's law still holds, but you can't pull E out of the integral. Use Coulomb's law or superposition instead.
How do I handle a conductor?
In electrostatic equilibrium the field inside a conductor is zero, and all excess charge sits on the surface. Use a Gaussian surface inside the conductor to show the enclosed charge is zero.
Practice with a shell
Try a thin spherical shell with the same total charge, predict the field inside before you calculate, then check it with Gauss's law. For feedback, a tutoring session or a model solution to a similar problem can help.