STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Gauss's law, explained with examples

Gauss's law links the electric field on a closed surface to the charge inside it. With the right choice of surface, it turns hard electric field calculations into a few lines, and it is a core topic in AP Physics C: Electricity and Magnetism.

On this page
  1. Electric flux
  2. The statement of Gauss's law
  3. Choosing a Gaussian surface
  4. A four-step method
  5. Worked examples
  6. Conductors in electrostatic equilibrium
  7. Gauss's law and Coulomb's law
  8. Common mistakes
  9. Practice questions
  10. Frequently asked questions
  11. Key takeaways
  12. Related guides

Electric flux

Electric flux ΦE measures how much electric field passes through a surface. For a uniform field through a flat area,

ΦE = E A cosθ

where θ is the angle between the field and the normal to the surface. For curved surfaces or non-uniform fields, add up the contributions from small pieces: ΦE = ∫ E · dA. Field lines leaving a closed surface count as positive flux; lines entering count as negative.

The statement of Gauss's law

∮ E · dA = Qenc / ε0

The total electric flux out of any closed surface equals the charge enclosed by that surface divided by ε0 = 8.85 × 10−12 C²/(N m²). Charges outside the surface contribute zero net flux, because every field line from them that enters the surface also leaves it.

Gauss's law is always true, but it is only useful for calculating E when the charge distribution has strong symmetry: spherical, cylindrical or planar. Then you can choose a Gaussian surface on which E is constant in size and either perpendicular or parallel to the surface, so the integral becomes simple multiplication.

Choosing a Gaussian surface

A four-step method

  1. Identify the symmetry of the charge distribution.
  2. Choose a Gaussian surface through the point where you want E, matching that symmetry.
  3. Write the flux as E times the area where the field crosses the surface, ignoring parts where the field runs parallel to it.
  4. Find the charge enclosed, set flux equal to Qenc/ε0, and solve for E.

Worked examples

Example 1: a point charge

Use Gauss's law to find the field at distance r from a point charge Q.

Example 2: a uniformly charged solid sphere

A solid insulating sphere of radius R carries charge Q spread uniformly through its volume. Find E inside and outside.

Example 3: a long line of charge

Find the field at distance r from a long straight wire with charge per unit length λ.

Example 4: an infinite sheet

Find the field near a large flat sheet with surface charge density σ.

Example 5: a numerical flux

A closed surface surrounds charges of +5.0 nC and −2.0 nC, and a +3.0 nC charge sits outside it. Find the total flux through the surface.

Conductors in electrostatic equilibrium

Gauss's law explains several facts about conductors. Inside a conductor in equilibrium, E = 0; otherwise free charges would keep moving. Taking a Gaussian surface just inside the conductor's surface encloses no net charge, so any excess charge sits on the outer surface. Just outside the surface, the field is perpendicular to it with size E = σ/ε0. A hollow conductor shields its interior from external fields, which is the principle of a Faraday cage.

Gauss's law and Coulomb's law

For static charges, Gauss's law and Coulomb's law contain the same physics; each can be derived from the other. Gauss's law is more general, though: it is one of Maxwell's four equations, which describe all of electromagnetism, including light. A similar law for gravity explains why a uniform planet's field outside it acts as if all its mass were at the centre.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. A closed surface encloses no charge. What is the total flux through it?

Show answer
Zero.

Q2. A charge Q sits at the centre of a cube. What is the flux through one face?

Show answer
Total Q/ε0, shared equally by six faces: Q/(6ε0).

Q3. Find E at 0.10 m from a long wire with λ = 2.0 × 10−9 C/m.

Show answer
λ/(2πε0r) ≈ 360 N/C.

Q4. Where does excess charge sit on a solid conductor?

Show answer
On its outer surface.

Frequently asked questions

Is Gauss's law on AP Physics C: E&M?

Yes. Gauss's law is a central topic of AP Physics C: Electricity and Magnetism, usually with spherical, cylindrical and planar symmetry.

Is Gauss's law in A level Physics?

Not by name in most A level Physics specifications, although the inverse square fields it predicts are covered. It is standard in first-year university physics.

Key takeaways