Gauss's law and its applications
Gauss's law in integral and point form, choosing Gaussian surfaces, and the fields of spheres, lines, cylinders and sheets.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Gauss's law turns many field problems that would need a messy Coulomb integral into one line of algebra. Fields of coaxial cables, charged wires, spheres and plates — the geometries of real capacitive sensors, cable insulation and shielding — all come straight from it. Its point form, ∇·D = ρv, is also the first of Maxwell's equations.
Key ideas
Electric flux density D. In a linear isotropic medium D = εE = ε₀εrE, in C/m². D depends only on free charge (it is the same in free space and in a dielectric for a given free-charge arrangement with symmetric geometry), which is why Gauss's law is cleanest when written with D.
Electric flux. The flux through a surface is Ψ = ∫ D·dS (unit: coulomb). Only the component of D normal to the surface contributes. If you work with E instead, the flux of E through a closed surface is Q/ε₀ (in V·m) — be clear which one a question uses.
Gauss's law. The net outward flux of D through any closed surface equals the free charge enclosed: ∮ D·dS = Q_enc. It holds for every closed surface and every charge distribution; charges outside the surface contribute zero net flux (their field lines enter and leave). It only gives E directly when symmetry allows you to choose a Gaussian surface on which:
- D is everywhere either normal to the surface with constant magnitude, or tangential to it (contributing zero flux).
The three usable symmetries are spherical (point charge, uniformly charged sphere or shell), cylindrical (infinite line, coaxial cylinders) and planar (infinite sheet, slab).
Point form. Applying the divergence theorem to a tiny volume gives ∇·D = ρv: the divergence of D at a point equals the free volume-charge density there. Where there is no charge, D has zero divergence — field lines neither start nor end.
Conductors. Inside a conductor in electrostatic equilibrium E = 0, so any Gaussian surface inside the material encloses zero net charge; all excess charge sits on the surface. A cavity with no charge inside it is field-free (electrostatic shielding).
Limits. Gauss's law is always true, but for an irregular distribution (a finite line, a disc off its axis, a square plate) the field magnitude is not constant over any simple surface, so you cannot pull |D| outside the integral; use Coulomb's law instead.
Formulas
Ψ = ∮ D·dS = Q_enc— Gauss's law (integral form); Ψ in C, D in C/m², dS in m².∇·D = ρv— point form; ρv in C/m³.D = εE = ε₀εr E— constitutive relation; ε₀ = 8.854 × 10⁻¹² F/m.E = Q / (4πεr²) a_r— point charge, or outside a spherically symmetric charge Q (r ≥ radius).E = ρv r / (3ε) a_r(r ≤ a) andE = ρv a³ / (3εr²) a_r(r ≥ a) — uniformly charged sphere of radius a.E = ρL / (2περ) a_ρ— infinite line charge; ρL in C/m.E = ρS / (2ε) a_n— infinite sheet of charge; ρS in C/m².E = 0for ρ < a,E = ρS a / (ερ) a_ρfor ρ > a — infinitely long cylindrical shell of radius a with surface charge ρS.∮ E·dS = Q_enc / ε₀— the same law in terms of E, in vacuum (V·m).
Worked examples
Example 1 (standard). Find D and E at 0.5 m from a 5 μC point charge in vacuum.
- Gaussian surface: a sphere of radius r = 0.5 m centred on the charge; D is radial and constant over it.
∮ D·dS = D × 4πr² = Q, so D = Q / (4πr²) = 5 × 10⁻⁶ / (4π × 0.25) = 1.59 μC/m².E = D / ε₀= 1.5915 × 10⁻⁶ / 8.854 × 10⁻¹² = 1.80 × 10⁵ V/m, radially outward.
Example 2 (GATE level). A sphere of radius a = 0.1 m carries a uniform volume charge ρv = 2 μC/m³ in free space. Find E at r = 0.05 m and r = 0.2 m.
- Inside (r < a): charge enclosed = ρv × (4/3)πr³. Gauss: ε₀E × 4πr² = ρv (4/3)πr³, so
E = ρv r / (3ε₀). - E(0.05) = 2 × 10⁻⁶ × 0.05 / (3 × 8.854 × 10⁻¹²) = 3.76 kV/m.
- Outside (r > a): all charge Q = ρv (4/3)πa³ = 8.38 nC is enclosed, so
E = ρv a³ / (3ε₀r²). - E(0.2) = 2 × 10⁻⁶ × 10⁻³ / (3 × 8.854 × 10⁻¹² × 0.04) = 1.88 kV/m.
- Check: at r = a both formulas give ρv a/(3ε₀) = 7.53 kV/m, so E is continuous at the surface (there is no surface charge). E grows linearly inside and falls as 1/r² outside, peaking at r = a.
Example 3 (flux by symmetry). A 1 μC point charge sits at the centre of a cube. Find the flux of E through one face.
- Total flux of E through the closed cube = Q/ε₀. By symmetry the six faces share it equally.
- Flux per face = Q / (6ε₀) = 10⁻⁶ / (6 × 8.854 × 10⁻¹²) = 1.88 × 10⁴ V·m (in terms of D: 1/6 μC per face).
Common mistakes
- Thinking Gauss's law is "only valid for symmetric charges". It is always valid; symmetry is only needed to extract E from it.
- Including charge outside the Gaussian surface in Q_enc, or forgetting that only enclosed charge counts.
- Using the total charge Q of a sphere for a point inside it — inside a uniform sphere only the fraction (r/a)³ is enclosed.
- Concluding that zero net flux means zero field on the surface: a surface with a charge outside it has zero net flux but a non-zero E everywhere on it.
- Mixing up the flux of D (in C) with the flux of E (in V·m, = Q/ε₀).
- Applying the infinite-line or infinite-sheet formula to a short wire or small plate far from it.
For GATE IN
Common items: E or D inside and outside a charged sphere, shell or cylinder (often asking where E is maximum or the ratio of fields at two radii); flux through a face of a cube or through part of a sphere; recovering ρv from a given D using ∇·D; and the field between coaxial cylinders, which leads straight into capacitance. Practise all three symmetries, and the cylindrical and spherical divergence formulas.
Quick check
- What is the net flux of D through a closed surface containing +3 μC and −1 μC?
- Inside a uniformly charged solid sphere, how does E vary with r?
- D = 2x a_x C/m² — what is ρv?
- A charge Q is at the centre of a cube; what fraction of its flux leaves one face?
- What is E inside a charged hollow conducting sphere with no charge in the cavity?
Answers: 1. 2 μC. 2. Linearly (E ∝ r). 3. 2 C/m³. 4. One sixth. 5. Zero.
Interview questions
All Electricity and Magnetism interview questionsTry answering each one aloud before you open it.
1.What is Gauss's law in electrostatics?Concept
Gauss's law states that the net outward electric flux through any closed surface equals the free charge enclosed: ∮ D·dS = Q_enc. Written with E in vacuum, ∮ E·dS = Q_enc/ε₀. Its point form, obtained with the divergence theorem, is ∇·D = ρv, the first of Maxwell's equations. It holds for any closed surface, but it gives the field directly only when symmetry makes D constant and normal over the chosen surface.
2.Explain the significance of Gauss's law in electromagnetism.Concept
Gauss's law is significant in electromagnetism because it provides a method to calculate electric fields for symmetric charge distributions. It simplifies the calculation of electric fields by relating them to the charge enclosed within a surface, making it easier to solve problems involving complex geometries.
3.How is Gauss's law applied to determine the electric field of a point charge?Application
To determine the electric field of a point charge using Gauss's law, consider a spherical Gaussian surface centered on the charge. The symmetry ensures that the electric field is radial and constant over the surface. By applying Gauss's law, the electric field E can be calculated as E = Q/(4πε₀r²), where Q is the charge and r is the radius of the Gaussian surface.
4.Why is a Gaussian surface chosen to be symmetrical with the charge distribution?Application
Gauss's law involves an integral of D·dS, and E can only be taken outside the integral if, over each part of the surface, D is either normal with constant magnitude or tangential (giving zero flux). Choosing a sphere for point symmetry, a coaxial cylinder for line symmetry or a pill-box for planar symmetry achieves exactly that, so the integral collapses to D × area. The law itself holds for any surface; the symmetric choice is only what makes it solvable.
5.What happens to the electric field inside a conductor when it is in electrostatic equilibrium?Application
When a conductor is in electrostatic equilibrium, the electric field inside the conductor is zero. This is because the free charges within the conductor rearrange themselves on the surface to cancel any internal electric fields, ensuring that the net electric field inside is zero.
6.How does Gauss's law explain the behavior of electric fields in a hollow conductor?Application
In equilibrium E = 0 inside the conducting material, so a Gaussian surface drawn within the metal around the cavity has zero flux and therefore encloses zero net charge: if the cavity is empty, no charge sits on the inner wall and all excess charge is on the outer surface. Zero flux alone would not prove E = 0 in the cavity, but combining it with the fact that the conductor is an equipotential (the line integral of E round any loop is zero) shows the cavity is field-free. This is the basis of electrostatic shielding with a Faraday cage.
7.Calculate the electric field at a distance of 0.5 m from a point charge of 2 μC in a vacuum.Numerical
To calculate the electric field E at a distance r from a point charge Q, use the formula E = Q/(4πε₀r²). Here, Q = 2 μC = 2 × 10⁻⁶ C, r = 0.5 m, and ε₀ = 8.854 × 10⁻¹² C²/(N·m²). Thus, E = (2 × 10⁻⁶)/(4π × 8.854 × 10⁻¹² × 0.5²) ≈ 7.2 × 10⁴ N/C.
8.What is the electric flux through a cube of side 1 m with a charge of 5 μC at its center?Numerical
The electric flux Φ through a closed surface with a charge Q at its center is given by Φ = Q/ε₀. Here, Q = 5 μC = 5 × 10⁻⁶ C and ε₀ = 8.854 × 10⁻¹² C²/(N·m²). Thus, Φ = (5 × 10⁻⁶)/(8.854 × 10⁻¹²) ≈ 5.65 × 10⁵ N·m²/C.
9.Explain why Gauss's law is not useful for calculating the electric field of an irregular charge distribution.Application
Gauss's law is not useful for calculating the electric field of an irregular charge distribution because it relies on symmetry to simplify calculations. Without symmetry, the electric field is not uniform over the Gaussian surface, making it difficult to relate the electric flux to the enclosed charge using Gauss's law.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?