Part 2 of 10 · Maxwell's Equations & Electromagnetic Theory Series overview →

This article builds on Part 1: Introduction to Electromagnetic Fields. Next up: Part 3: Magnetic Flux and Gauss's Law for Magnetism.

Fig 1 — Flux through a flat surface tilted at angle θ (left) and a closed Gaussian sphere enclosing a charge (right)
Φ_E = E·A·cos θ surface A (edge view) n̂ θ Only E·cos θ (along n̂) passes through ∮ 𝐄·d𝐀 = Q_enc / ε₀ +Q Gaussian surface S Every line from +Q crosses S once — net flux depends only on Q

Introduction to Electric Flux

In Part 1: Introduction to Electromagnetic Fields we described the electric field with field lines and noted that the number of lines leaving a charge is proportional to the charge. That picture is intuitive but qualitative. Electric flux turns it into a precise quantity: it measures how much electric field passes through a surface. Once flux is defined, a remarkably powerful statement follows — the total flux out of any closed surface depends only on the charge inside it. That statement is Gauss's law, the first of Maxwell's four equations.

Gauss's law is useful at two levels. As a calculation tool, it gives the field of highly symmetric charge distributions — spheres, cylinders, planes — in a few lines, where direct integration of Coulomb's law would take pages. As a fundamental law, it holds for all charge distributions, static or time-varying, and in its differential form it is one of the equations solved by every electromagnetic simulator.

Understanding Electric Flux

Definition of Electric Flux

Electric flux Φ_E through a surface is the amount of electric field "flowing" through that surface. A useful analogy is water flowing through a hoop: the flow depends on the speed of the water, the size of the hoop, and how the hoop is tilted relative to the flow. Formally, the surface is divided into small elements, each represented by a vector d𝐀 whose magnitude is the area dA and whose direction is the unit normal n̂ to the surface:

Electric flux — general definition
ΦE= ∫S𝐄·d𝐀 d𝐀=𝐧^dA [V·m=N·m²/C]
The dot product picks out only the component of 𝐄 normal to the surface. Flux is a scalar: positive where the field leaves through the chosen side of the surface, negative where it enters.

Electric Flux Through a Flat Surface

If the field is uniform and the surface is flat with area A, the integral collapses to a single product. The angle θ is measured between the field and the normal to the surface, not the surface itself:

Flux of a uniform field through a flat surface
ΦE=𝐄·𝐀=EAcosθ
θ = 0°: the surface faces the field squarely and the flux is maximum, Φ = EA. θ = 90°: the field skims along the surface and no flux passes through, Φ = 0. θ = 180°: the field enters from the other side, Φ = −EA.

Electric Flux Through an Arbitrary Surface

For a curved surface or a non-uniform field, the field and the normal change from point to point, so the surface is broken into many small patches, each small enough to be treated as flat with a uniform field, and their contributions are summed. In the limit of infinitely small patches the sum becomes the surface integral given above.

When the surface is closed — it encloses a volume, like a balloon — the integral is written with a circle, ∮, and the normal is by convention chosen to point outward. Outward flux is positive and inward flux is negative, so the closed-surface integral measures the net flux leaving the volume:

Net flux out of a closed surface
Φnet= ∮S𝐄·d𝐀
A field line that enters the volume and leaves again contributes −1 + 1 = 0. Only lines that begin or end inside the volume — that is, on charges inside — contribute to the net flux.

Factors Affecting Electric Flux

  • Field strength E. Flux is proportional to the magnitude of the field: double E and the flux doubles.
  • Surface area A. A larger surface intercepts more field lines.
  • Orientation (angle θ). Flux varies as cos θ — maximum when the surface faces the field, zero when it is parallel to the field.
  • Enclosed charge (closed surfaces only). For a closed surface, size, shape and the field of outside charges drop out; only the net charge enclosed matters. This is Gauss's law.

Understanding the Concept of a Gaussian Surface

What Is a Gaussian Surface?

A Gaussian surface is an imaginary closed surface that we draw in space in order to apply Gauss's law. It is not a physical object — it has no thickness or material and does not disturb the field. Gauss's law holds for any closed surface, but it only solves for the field when the surface is chosen so that the flux integral can be evaluated without knowing the field in advance.

Types of Gaussian Surfaces

SurfaceMatches symmetry ofFlux integral becomesTypical problem
Sphere (radius r)Point charge, charged sphere, spherical shellE · 4πr²Field of a charged ball or conductor
Cylinder (radius r, length L)Line charge, charged wire, coaxial cableE · 2πrL (ends give zero)Field between coax conductors
Pillbox (flat box straddling a sheet)Infinite plane, conductor surfaceE · 2A or E · AParallel-plate capacitor, surface charge on a conductor

Choosing an Appropriate Gaussian Surface

Choose the surface so that, on every part of it, one of two things is true:

  • 𝐄 is perpendicular to the surface and constant in magnitude — then 𝐄 · d𝐀 = E dA and E comes out of the integral, leaving E × (area).
  • 𝐄 is parallel to the surface — then 𝐄 · d𝐀 = 0 and that part contributes nothing (for example, the flat ends of a cylinder around a line charge).

The surface must also pass through the point where you want to know the field. If the charge distribution has no symmetry — a charged cube, an irregular PCB trace — Gauss's law is still true but cannot isolate E, and the field must be found by direct integration or numerically.

Introduction to Gauss's Law for Electricity

Statement of Gauss's Law

📌 Gauss's law

The net electric flux through any closed surface is equal to the total electric charge enclosed by that surface divided by the permittivity of free space, ε₀.

Mathematical Expression of Gauss's Law

Gauss's law (free space)
∮S𝐄·d𝐀 = Qencε0
Q_enc is the algebraic sum of all charges inside S (positive and negative). Charges outside S produce field on S, but their flux in and out cancels exactly.

We can verify the law for a point charge. On a sphere of radius r centred on q, the field is radial with magnitude q/(4πε₀r²) everywhere, so the flux is q/(4πε₀r²) × 4πr² = q/ε₀ — independent of r. The 1/r² fall-off of the field is exactly compensated by the r² growth of the area. This is why Gauss's law and Coulomb's inverse-square law are two statements of the same physics.

Physical Meaning of Gauss's Law

  • Charges are the sources and sinks of the electric field. Positive charges emit flux and negative charges absorb it. No charge inside means zero net flux.
  • Shape does not matter. A sphere, a cube or a potato-shaped surface around the same charge all give the same flux.
  • Outside charges do not matter for the net flux, although they do change the field on the surface.
  • It is valid for time-varying fields. Unlike Coulomb's law, Gauss's law remains exactly true when charges move and fields propagate as waves, which is why it is one of Maxwell's equations.

Integral Form of Gauss's Law

Inside materials, charges in the dielectric become slightly displaced (polarised) and create their own field. It is convenient to introduce the electric flux density 𝐃 (also called the electric displacement), whose flux depends only on the free charge we place on conductors, not on the bound charge of the polarised material:

Gauss's law — integral form, in terms of 𝐃
∮S𝐃·d𝐀 = Qfree,enc = ∫VρvdV 𝐃=ε𝐄=ε0εr𝐄
𝐃 is measured in C/m². In a dielectric with relative permittivity ε_r, the same free charge produces a field E that is ε_r times smaller than in vacuum — which is why filling a capacitor with dielectric multiplies its capacitance by ε_r.

Differential Form of Gauss's Law

The integral form relates flux through a surface to charge inside a volume. To obtain a statement that holds at each point, we use the divergence theorem, which converts the flux out of a closed surface into a volume integral of the divergence:

Divergence theorem
∮S𝐃·d𝐀 = ∫V(∇·𝐃)dV

Since the equality ∫(∇·𝐃) dV = ∫ρ_v dV must hold for every possible volume, the integrands must be equal at every point:

Gauss's law — differential (point) form
∇·𝐃=ρv ∇·𝐄=ρvε ∇·𝐃= ∂Dx∂x+ ∂Dy∂y+ ∂Dz∂z
Divergence measures how much a field "spreads out" from a point. Where there is charge, the field diverges (ρ_v > 0) or converges (ρ_v < 0); in charge-free space ∇·𝐃 = 0 and every line that enters a small region also leaves it. The second form assumes a uniform (homogeneous) material.

The differential form is the version used in field solvers: finite-element and finite-difference codes enforce ∇·𝐃 = ρ_v cell by cell. It is also the starting point of Poisson's equation ∇²V = −ρ_v/ε, used to compute the static fields and capacitance of transmission-line cross-sections.

Applications of Gauss's Law

Electric Field Due to a Point Charge

Choose a sphere of radius r centred on the charge q. By symmetry 𝐄 is radial and has the same magnitude everywhere on the sphere, so the flux is E × 4πr². Gauss's law gives E × 4πr² = q/ε₀, and therefore:

Point charge — Coulomb's law recovered
E=q4πε0r2

Electric Field Due to a Spherical Charge Distribution

Consider a solid sphere of radius a carrying total charge Q spread uniformly through its volume, so ρ_v = Q / (4πa³/3). Outside the sphere (r ≥ a) a Gaussian sphere encloses all of Q, and the field is exactly that of a point charge at the centre. Inside (r < a) the Gaussian sphere encloses only the fraction (r/a)³ of the charge:

Uniformly charged solid sphere
E(r)= { Qr4πε0a3 r < a (inside) Q4πε0r2 r ≥ a (outside)
Inside, the field grows linearly from zero at the centre; outside, it falls as 1/r². The two expressions agree at r = a, where the field is maximum.

Electric Field Inside and Outside a Conducting Sphere

A conductor contains free electrons. If any field existed inside it, they would move until the field was cancelled, so in electrostatic equilibrium 𝐄 = 0 everywhere inside a conductor. Gauss's law then requires zero charge inside any surface drawn within the metal: all excess charge resides on the outer surface. For a conducting sphere of radius a carrying charge Q:

Conducting sphere
E=0 (r < a) E=Q4πε0r2 (r ≥ a) Esurface=ρsε0
ρ_s = Q/(4πa²) is the surface charge density. The result E = ρ_s/ε₀ just outside a conductor holds for any conductor shape (a pillbox Gaussian surface proves it) and is one of the boundary conditions developed in Part 9.
📌 Why this matters in RF: shielding and sharp edges

Because the field inside a closed conductor is zero, a metal enclosure shields its contents from external electrostatic fields — the principle of the Faraday cage. And because charge crowds onto regions of high curvature, the surface field is strongest at sharp corners and points. This is why high-power RF connectors, waveguide flanges and antenna tips are given rounded edges to avoid corona and arcing.

Numerical Examples

Work through each problem before reading the solution. Use ε₀ = 8.854 × 10⁻¹² F/m and 1/(4πε₀) = 8.988 × 10⁹ N·m²/C².

01

Flux Through a Tilted Flat Surface

Problem: A uniform electric field of 500 V/m passes through a flat rectangular plate of area 0.2 m². The plate's normal makes an angle of 30° with the field. Find the electric flux. What is the flux if the plate is rotated so its normal is at 90° to the field?

Φ_E = E A cos θ
ΦE=500×0.2×cos30° =100×0.866=86.6 V·m
Answer: Φ_E = 86.6 V·m at 30°; Φ_E = 0 at 90°

At 90° the field lines run parallel to the plate and none pass through it. The same reasoning tells you how to orient a small loop or plate probe: an electric field probe responds most strongly when its sensing surface faces the field.

02

Flux From an Enclosed Point Charge

Problem: A point charge of +5 nC sits inside an irregularly shaped closed box. (a) What is the net electric flux out of the box? (b) What is the field magnitude 30 cm from the charge? (c) A second charge of −2 nC is added inside the box and a third charge of +10 nC is placed outside it. What is the new net flux?

(a) Net flux, by Gauss's law — the box shape is irrelevant
ΦE=Qencε0 =5×10−98.854×10−12 =564.7 V·m
(b) Field at r = 0.3 m
E=8.988×109×5×10−90.32 =44.940.09=499.3 V/m
(c) Only enclosed charges count: Q_enc = 5 − 2 = 3 nC
ΦE=3×10−98.854×10−12=338.8 V·m
Answer: (a) 564.7 V·m  |  (b) 499.3 V/m  |  (c) 338.8 V·m

The +10 nC charge outside changes the field at every point of the box surface, but every flux line it sends in also leaves, so it adds nothing to the net flux.

03

Field Inside and Outside a Uniformly Charged Sphere

Problem: A solid insulating sphere of radius a = 5 cm carries Q = 10 nC distributed uniformly through its volume. Find the field at r = 2 cm, r = 5 cm and r = 10 cm from the centre.

Common factor: Q/(4πε₀) = 8.988 × 10⁹ × 10 × 10⁻⁹ = 89.88 V·m
E(2 cm)=89.88×0.020.053 =1.7981.25×10−4 =14.38 kV/m
E(5 cm)=89.880.052=35.95 kV/m E(10 cm)=89.880.102=8.99 kV/m
Answer: 14.38 kV/m (inside)  |  35.95 kV/m (surface, maximum)  |  8.99 kV/m (outside)

Check: at r = 2 cm the field is 2/5 of the surface value (linear growth inside), and at r = 10 cm it is (5/10)² = 1/4 of the surface value (inverse-square fall-off outside). Both match.

04

Surface Charge and Field of a Conducting Sphere

Problem: A metal sphere of radius 10 cm holds a charge of 20 nC. Find (a) the field at the centre, (b) the surface charge density, (c) the field just outside the surface, and (d) the charge that would make the surface field reach the 3 MV/m breakdown strength of air.

(b) Surface charge density ρ_s = Q / 4πa²
ρs=20×10−94π×0.12 =2×10−80.12566 =1.592×10−7 C/m²
(c) Surface field E = ρ_s / ε₀ (check: Q / 4πε₀a²)
E=1.592×10−78.854×10−12 =17.98 kV/m (8.988×109×2×10−80.01=17.98 kV/m ✓)
(d) Charge for 3 MV/m at the surface: Q = 4πε₀a²E
Qmax=0.12×3×1068.988×109 =3.34 μC
Answer: (a) 0  |  (b) 1.59 × 10⁻⁷ C/m²  |  (c) 17.98 kV/m  |  (d) 3.34 μC

The field inside the metal is zero no matter how much charge is placed on it. The breakdown limit scales with a²: halving the radius cuts the charge the sphere can hold by a factor of four, which is why small-radius features are the first to arc.

05

Electric Field and Capacitance of a Coaxial Cable

Problem: An RG-58-type coaxial cable has an inner conductor of radius a = 0.45 mm and an outer conductor of inner radius b = 1.47 mm, filled with polyethylene (ε_r = 2.25). With V = 100 V between the conductors, find (a) the field at the surface of the inner conductor and (b) the capacitance per metre.

Gauss's law on a cylinder of radius r (a < r < b), length L, with line charge λ on the inner conductor
εE·2πrL=λL ⟹ E=λ2πεr ⟹ V=λ2πεlnba ⟹ E(r)=Vrln(b/a)
(a) ln(b/a) = ln(1.47/0.45) = ln(3.267) = 1.1837
E(a)=1000.45×10−3×1.1837 =188 kV/m
(b) Capacitance per metre C′ = λ/V = 2πε / ln(b/a)
C′=2π×2.25×8.854×10−121.1837 =105.7 pF/m
Answer: E(a) = 188 kV/m  |  C′ = 105.7 pF/m

The calculated capacitance matches the ≈ 100 pF/m on RG-58 datasheets. The field is strongest at the inner conductor (it falls as 1/r), so voltage breakdown and peak-power rating are set there. In Part 5: Ampere's Circuital Law we use Ampère's law to find the inductance per metre of the same cable, and combine the two to obtain its 50 Ω characteristic impedance.

Summary

ConceptExpressionKey point
Electric fluxΦ_E = ∫ 𝐄·d𝐀Field "through" a surface; uniform case EA cos θ
Gauss's law (integral)∮ 𝐃·d𝐀 = Q_encNet outward flux = enclosed free charge
Gauss's law (differential)∇·𝐃 = ρ_vCharges are the sources of 𝐃
Constitutive relation𝐃 = ε₀ε_r𝐄Dielectric reduces E for the same charge
Point charge / outside sphereE = Q / 4πε₀r²Spherical Gaussian surface
Inside uniform sphereE = Qr / 4πε₀a³Grows linearly from the centre
ConductorE = 0 inside; E = ρ_s/ε₀ at surfaceCharge lives on the surface
Coaxial lineE = V / (r ln(b/a)); C′ = 2πε / ln(b/a)Cylindrical Gaussian surface
  • Electric flux measures the normal component of the field integrated over a surface.
  • Gauss's law states that the net flux out of any closed surface equals the enclosed charge divided by ε₀ (or, for 𝐃, the enclosed free charge).
  • With a well-chosen Gaussian surface — sphere, cylinder or pillbox — symmetric field problems reduce to one line of algebra.
  • The differential form ∇·𝐃 = ρ_v is Maxwell's first equation and holds at every point, including for time-varying fields.

Next, Part 3: Magnetic Flux and Gauss's Law for Magnetism applies the same flux idea to the magnetic field, and finds a strikingly different answer: the net magnetic flux through every closed surface is always zero.

Put It Into Practice

Use the NEXT ANTENNAS calculators to apply the ideas from this article to real designs.