US exams AP (Advanced Placement) AP Physics C: Electricity and Magnetism

Electric Fields and Gauss's Law: Charge Distributions and Symmetry

Learn AP Physics C electric fields with calculus: Coulomb's law, fields of rings and lines by integration, Gauss's law, and conductors in equilibrium.

Reviewed by Independent AI model review on 2026-11-17

Watch the worked example

Gauss's Law for a Charged Sphere: Electric Field Inside and Outside. Captions are available in the player.
Electric Fields and Gauss's Law: Practice Problems Solved. Captions are available in the player.

Electric charges create fields that fill the space around them. In AP Physics C you must go beyond point charges: you add up the contributions of continuous charge distributions by integration, and you use Gauss's law to get the field quickly whenever the symmetry is high enough. This lesson covers Coulomb's law, fields by integration, Gauss's law and conductors.

Key ideas

  • Coulomb's law: F = kq₁q₂ ÷ r², with k = 1 ÷ (4πε₀) = 8.99 × 10⁹ N m²/C². Like charges repel and unlike charges attract.
  • Electric field of a point charge: E = kQ ÷ r², directed away from positive charge. The force on a charge q is F = qE.
  • Continuous charge: break the object into pieces dq, write dE = k dq ÷ r², use symmetry to cancel components, and integrate.
  • Ring on its axis: E = kQx ÷ (x² + R²)^(3/2), zero at the center.
  • Gauss's law: the flux Φ = ∮ E · dA = Q_enclosed ÷ ε₀ for any closed surface.
  • Symmetric results: sphere (outside) E = kQ ÷ r²; long line E = λ ÷ (2πε₀r); large sheet E = σ ÷ 2ε₀ (non-conducting).
  • Conductors in equilibrium: E = 0 inside, the net charge sits on the surface, and just outside the surface E = σ ÷ ε₀, perpendicular to the surface.

Fields by integration

For a ring of charge Q and radius R, a point P on the axis at distance x from the center sees every bit of charge at the same distance r = √(x² + R²). Each dq gives dE = k dq ÷ r². The components perpendicular to the axis cancel in pairs, and the axial parts add: E = ∫ (k dq ÷ r²)(x ÷ r) = kQx ÷ (x² + R²)^(3/2).

The electric field on the axis of a charged ringA uniform ring of charge Q and radius R. At a point P on the axis, a distance x from the center, each small charge dq gives a field dE. The components perpendicular to the axis cancel, and the field is k Q x over x squared plus R squared to the three halves.ring: Q, RPxr = √(x² + R²)EdE = k dq ÷ r²components ⟂ axis cancelE = kQx ÷ (x² + R²)^(3/2)A uniform ring of charge Q. Add up the axial parts of dE around the ring by integration. Not to scale.
A uniform ring of charge: add the axial parts of dE around the ring.
Field along the axis of a charged ringA graph of the electric field on the axis of a charged ring against distance. The field is zero at the center of the ring, rises to a maximum at a distance of R over root 2, and then falls off as one over the distance squared.x (in units of R)ER/√2maximumfar away: E ≈ kQ/x²E = 0 at x = 0On the axis of a ring the field is zero at the center, peaks at x = R/√2, and falls as 1/x² far away.Not to scale.
On the axis of a ring the field is zero at the center, peaks at x = R/√2, and falls as 1/x² far away.

Field lines

Field lines start on positive charge and end on negative charge. The lines are closest together where the field is strongest, and the field is tangent to the line at every point.

Field lines between a positive and a negative chargeAn animation of electric field lines running from a positive charge to a negative charge, with moving dashes showing the direction of the field. The motion is switched off if your device is set to reduce motion.+−Animation (slowed down):field lines start on +and end on −. The lines areclosest where E is strongest.The electric field of two equal and opposite charges. The moving dashes show the direction of E.
Animation: field lines run from the positive to the negative charge.

Gauss's law

Choose a closed Gaussian surface on which the field is either constant and perpendicular to the surface, or parallel to it so that it gives no flux. Then Φ = E A and Q_enclosed does the rest. A sphere around a point or spherical charge gives E (4πr²) = Q ÷ ε₀. A cylinder around a long line gives E (2πrL) = λL ÷ ε₀.

A Gaussian cylinder around a line of chargeA cylindrical Gaussian surface of radius r and length L around a long straight line of charge with charge per length lambda. The field points radially outward and is the same everywhere on the curved side, so the flux is E times 2 pi r L.line charge λElength LrGaussian cylinderflux = E (2πrL)enclosed charge = λLE = λ ÷ (2πε₀r)A cylinder around a long line of charge. Only the curved side has flux. Not to scale.
A Gaussian cylinder around a long line of charge: only the curved side has flux.

For a uniformly charged insulating sphere of charge Q and radius R, the enclosed charge inside radius r is Q r³ ÷ R³, so E = kQr ÷ R³ inside and E = kQ ÷ r² outside.

The field inside and outside a uniformly charged sphereA graph of the electric field against distance from the center of a uniformly charged insulating sphere. The field rises in proportion to the distance inside the sphere, peaks at the surface, and then falls as one over the distance squared.r (in units of R)ERkQ/R² at the surfaceE ∝ rE ∝ 1/r²A uniformly charged insulating sphere: E = kQr ÷ R³ inside and E = kQ ÷ r² outside.Gauss's law gives both. Not to scale.
A uniformly charged insulating sphere: E rises linearly inside and falls as 1/r² outside.

Worked example 1: Coulomb's law

A charge of +3.0 μC and a charge of −5.0 μC are 0.40 m apart. Find the electric force on each.

F = kq₁q₂ ÷ r² = (8.99 × 10⁹)(3.0 × 10⁻⁶)(5.0 × 10⁻⁶) ÷ (0.40)² = 0.84 N, attractive. By Newton's third law the force on each charge has this size, and each points toward the other.

Worked example 2: two charges

A charge of +4.0 nC is at x = 0 and a charge of −4.0 nC is at x = 0.20 m. Find the electric field at the midpoint, x = 0.10 m.

Each charge produces a field of E = kq ÷ r² = (8.99 × 10⁹)(4.0 × 10⁻⁹) ÷ (0.10)² = 3.6 × 10³ N/C at the midpoint. The positive charge pushes the field toward +x, and the negative charge pulls it toward +x, so the fields add: E = 7.2 × 10³ N/C in the +x direction.

Worked example 3: a charged ring

A ring of radius 0.10 m carries a uniform charge of 2.0 μC. Find the field on the axis 0.20 m from the center.

E = kQx ÷ (x² + R²)^(3/2) = (8.99 × 10⁹)(2.0 × 10⁻⁶)(0.20) ÷ (0.20² + 0.10²)^(3/2) = 3.6 × 10³ ÷ 0.01118 = 3.2 × 10⁵ N/C, directed away from the ring.

Worked example 4: Gauss's law for a sphere

A solid insulating sphere of radius 0.10 m carries a uniform charge of 6.0 μC. Find the field at r = 0.050 m and at r = 0.20 m.

Inside: E = kQr ÷ R³ = (8.99 × 10⁹)(6.0 × 10⁻⁶)(0.050) ÷ (0.10)³ = 2.7 × 10⁶ N/C.

Outside: E = kQ ÷ r² = (8.99 × 10⁹)(6.0 × 10⁻⁶) ÷ (0.20)² = 1.3 × 10⁶ N/C.

More worked problems

These three exam-style problems are worked out step by step in the video "Electric Fields and Gauss's Law: Practice Problems Solved" at the top of this page. Each solution is written out below, after the three problems. You can try new problems in "Try it yourself" afterward. Use k = 8.99 × 10⁹ N m²/C², ε₀ = 8.85 × 10⁻¹² C²/N m² and g = 9.8 m/s².

Problem 1: a long line of charge. A very long straight wire carries a uniform charge per length λ = 2.0 nC/m. Find the electric field at distances of 0.30 m and 0.60 m from the wire.

A long uniformly charged wireA very long straight wire with a uniform charge per length of 2.0 nanocoulombs per meter. A point P is 0.30 meters from the wire. The diagram is not to scale.λ = 2.0 nC/mr = 0.30 mPlong straight wire,uniform charge per lengthFind the field at P and at twice the distance. Not to scale.
Problem 1: use a Gaussian cylinder. The diagram is not to scale.

Problem 2: a ball beside a sheet. A small ball of mass 0.10 g and charge +5.0 nC hangs from a thread beside a large vertical non-conducting sheet with surface charge density σ = 3.0 μC/m². The ball is pushed away from the sheet. Find (a) the field of the sheet, (b) the angle θ the thread makes with the vertical and (c) the tension in the thread.

A charged ball hanging beside a large sheet of chargeA small ball of mass 0.10 grams with a charge of 5.0 nanocoulombs hangs from a thread beside a large vertical insulating sheet with a surface charge density of 3.0 microcoulombs per square meter. The ball is pushed away from the sheet so that the thread makes an angle theta with the vertical. The diagram is not to scale.σ = 3.0 μC/m²+F = qEmgθball: 0.10 g, +5.0 nCthread: masslessA charged ball on a thread hangs next to a large charged sheet. Find θ and the tension. Not to scale.
Problem 2: balance the electric force, the weight and the tension. The diagram is not to scale.

Problem 3: a shell around a charge. A point charge of +4.0 nC sits at the center of a neutral conducting spherical shell with inner radius 0.10 m and outer radius 0.12 m. Find the electric field at r = 0.05 m, r = 0.11 m and r = 0.30 m, and the charge on each surface of the shell.

A point charge inside a neutral conducting shellA point charge of positive 4.0 nanocoulombs at the center of a neutral conducting spherical shell with inner radius 0.10 meters and outer radius 0.12 meters. The diagram is not to scale.+4.0 nC0.10 mouter 0.12 mneutral conducting shell,inner radius 0.10 m,outer radius 0.12 mA point charge at the center of a conducting shell. Find E at 0.05 m, 0.11 m and 0.30 m. Not to scale.
Problem 3: the shell induces charge on its surfaces. The diagram is not to scale.

Solutions to the worked problems

Problem 1. Use a Gaussian cylinder of radius r and length L. The flux is E(2πrL) and the enclosed charge is λL, so E = λ ÷ (2πε₀r) = 2kλ ÷ r.

At 0.30 m: E = 2(8.99 × 10⁹)(2.0 × 10⁻⁹) ÷ 0.30 = 1.2 × 10² N/C. At 0.60 m: E = 60 N/C. Doubling the distance halves the field.

Problem 2.

(a) E = σ ÷ 2ε₀ = 3.0 × 10⁻⁶ ÷ (2 × 8.85 × 10⁻¹²) = 1.7 × 10⁵ N/C, away from the sheet and independent of the distance.

(b) The electric force is F = qE = (5.0 × 10⁻⁹)(1.7 × 10⁵) = 8.5 × 10⁻⁴ N horizontally. The weight is mg = (1.0 × 10⁻⁴)(9.8) = 9.8 × 10⁻⁴ N. Then tan θ = F ÷ mg = 0.86, so θ = 41°.

(c) T = √(F² + (mg)²) = √((8.5 × 10⁻⁴)² + (9.8 × 10⁻⁴)²) = 1.3 × 10⁻³ N.

Problem 3. Inside the cavity, only the point charge enclosed counts. At r = 0.05 m: E = kq ÷ r² = (8.99 × 10⁹)(4.0 × 10⁻⁹) ÷ (0.05)² = 1.4 × 10⁴ N/C.

At r = 0.11 m the point is inside the conductor, so E = 0. A Gaussian sphere there must enclose zero net charge, so the inner surface carries −4.0 nC. The shell is neutral, so the outer surface carries +4.0 nC.

At r = 0.30 m the enclosed charge is +4.0 nC, so E = (8.99 × 10⁹)(4.0 × 10⁻⁹) ÷ (0.30)² = 4.0 × 10² N/C, directed outward.

Try it yourself

These problems are not worked out in the videos. Use k = 8.99 × 10⁹ N m²/C² and ε₀ = 8.85 × 10⁻¹² C²/N m².

Problem A. Two point charges of +2.0 μC and +6.0 μC are 0.30 m apart. Find the magnitude of the electric force on each and say whether it is attractive or repulsive.

Problem B. A ring of radius 0.040 m carries a uniform charge of 5.0 nC. Find the field on the axis 0.030 m from the center.

Problem C. The electric field just outside the surface of a conductor is 1.0 × 10⁵ N/C, perpendicular to the surface. Find the surface charge density.

Check your answers. A: 1.2 N, repulsive. B: 1.1 × 10⁴ N/C. C: 8.9 × 10⁻⁷ C/m².

Common mistakes

  • Adding magnitudes instead of vectors. Fields are vectors. Use symmetry to cancel components and add the rest with signs.
  • Using Gauss's law without symmetry. The law is always true, but you can only solve for E when E is constant over the surface.
  • Using σ ÷ ε₀ for a sheet. That is for a conductor. A non-conducting sheet gives σ ÷ 2ε₀.
  • Forgetting induced charge. A shell around a charge gets equal and opposite charge on its inner surface.
  • Thinking flux depends on the surface shape. It depends only on the enclosed charge.

Exam approach

AP Physics C free-response questions often ask you to set up the integral for a charge distribution (define dq, r and the components) or to apply Gauss's law with a labeled Gaussian surface. State the symmetry argument, show the enclosed charge and give units. Check the College Board course page for the current exam format and the equation sheet.

Practice questions

Choose an answer to see whether you are right and why.

1. The distance between two point charges is doubled. What happens to the electric force between them?

2. What is the electric field inside a conductor in electrostatic equilibrium?

3. How does the field of a very long straight line of charge depend on the distance r from the line?

4. What is the field magnitude near a large, thin, non-conducting sheet with surface charge density σ?

5. A closed surface encloses a net charge Q. What is the net electric flux through the surface?

6. What is the electric field at the center of a uniformly charged ring?

Make your own study set

Upload your class notes, a PDF or a revision video and CampusBadge builds notes, flashcards and quizzes for you to practise with.

This lesson is a study guide, not the syllabus. Check what is examined in the official AP Physics C: Electricity and Magnetism syllabus for your exam year.

All AP Physics C: Electricity and Magnetism lessons

Upload Documents for Study Materials

We'll generate notes, flashcards and quizzes from your document.

Drop your document here

PDF, Word (.docx), or Text files

Processing your document...

Generating study materials

Process YouTube Video

Paste a link to a revision video.

How it works

We'll extract the transcript from the YouTube video and generate study notes, flashcards, and quizzes.

Processing YouTube video...

Extracting transcript and generating study materials

Add New Badge

Create a badge to mark an achievement.

Are you sure?