AP Physics C: Electricity & Magnetism • Electric Charges, Fields, and Gauss's Law

Electric Flux

Quantifying how electric field lines thread through surfaces to unlock Gauss's law.

A magnet with electric energy and an atomic field.
Inside this lesson 9 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

The concept of electric flux arose from physicists' efforts to move beyond the notion of mysterious action-at-a-distance and instead describe electric interactions through the properties of space itself. In the early nineteenth century, scientists recognized that electric charges influence one another across empty space, but the mechanism remained unclear. The breakthrough came when theorists began modeling the influence of a charge as a continuous field permeating the surrounding region, and the idea of counting how much of that field passes through a given surface became the foundation of flux. This single idea ultimately connected Coulomb's inverse-square law to a far more powerful integral relationship—Gauss's law—which remains one of Maxwell's four equations governing all classical electromagnetism.

1785 • Coulomb's Law

Charles-Augustin de Coulomb publishes his inverse-square law for the force between point charges, establishing the quantitative basis for electrostatics.

1831 • Faraday's Field Lines

Michael Faraday introduces "lines of force" to visualize electric and magnetic fields, providing the geometric intuition that flux formalizes mathematically.

1835 • Gauss's Law

Carl Friedrich Gauss formulates the relationship between the total electric flux through a closed surface and the enclosed charge, unifying Coulomb's law with the field concept.

1865 • Maxwell's Equations

James Clerk Maxwell synthesizes Gauss's law into his four-equation framework, cementing electric flux as a cornerstone of electromagnetic theory.

The central question that electric flux answers is deceptively simple: how much electric field passes through a surface? Answering this question rigorously requires combining vector calculus with Faraday's geometric picture of field lines, and the result is a scalar quantity that forms the bridge between field descriptions and charge distributions.

SECTION 2

Core Principles & Definitions

Electric flux captures the idea of how much electric field "flows" through a surface. Although nothing physically flows, the metaphor—borrowed from fluid dynamics—proves extraordinarily useful. To build a rigorous definition, we need to understand how the electric field vector, the surface orientation, and the angle between them combine to produce a single scalar measure.

1

Electric Field as a Vector Field

The electric field E⃗ assigns a vector (magnitude and direction) to every point in space. Field lines visualize this: denser lines mean a stronger field.
2

Surface Normal Vector

Every infinitesimal patch of a surface has an outward-pointing area vector dA⃗ whose magnitude equals the patch area and whose direction is perpendicular (normal) to the surface.
3

Dot Product & Angle Dependence

Flux through a patch is E⃗ · dA⃗ = E dA cos θ, where θ is the angle between E⃗ and the outward normal. Maximum flux occurs when the field is perpendicular to the surface; zero flux when the field is parallel.
4

Scalar Result, Signed Quantity

Because of the dot product, flux can be positive (field exits the surface), negative (field enters), or zero. The total flux through a closed surface is the net flow outward.

SECTION 3

Visual Explanation

Electric Flux Through a Tilted Planar Surfaceθ = 0° (max flux)Surface An̂Φ = EAθ = 45°Surface An̂Φ = EA cos 45°θ = 90° (zero flux)Surface A (edge-on)n̂Φ = 0E⃗ (electric field)n̂ (outward normal)Surface
Three orientations of a flat surface relative to a uniform electric field. When the field is perpendicular to the surface (θ = 0°), flux is maximized at EA. At 45° the flux falls to EA cos 45°. When the surface is edge-on (θ = 90°), no field lines penetrate and the flux is zero.

The diagram above illustrates the critical role of the angle θ between the electric field vector E⃗ and the outward unit normal n̂ to the surface. In the left panel, the field strikes the surface head-on (θ = 0°), and every field line crosses through, yielding maximum flux. In the center panel, tilting the surface to 45° reduces the effective cross-sectional area that intercepts the field, scaling the flux by cos 45° ≈ 0.707. In the right panel the surface is parallel to the field (θ = 90°), so field lines skim along without crossing, and the flux vanishes entirely. This cos θ dependence is encoded directly in the dot product E⃗ · dA⃗.

SECTION 4

Mathematical Framework

We now formalize electric flux from the intuitive picture of field lines crossing surfaces to precise integral expressions. The mathematical development starts with a uniform field through a flat surface and generalizes to arbitrary fields and curved surfaces using the surface integral.

FLUX THROUGH A FLAT SURFACE (UNIFORM FIELD)

ΦE=E⃗⋅A⃗=EAcosθΦ_E = E⃗ · A⃗ = EA cos θ

ΦE = electric flux (N·m²/C), E = magnitude of the uniform electric field (N/C), A = area of the flat surface (m²), θ = angle between E⃗ and the outward normal n̂.

GENERAL SURFACE INTEGRAL

ΦE=∫∫SE⃗⋅dA⃗Φ_E = ∫∫_S E⃗ · dA⃗

For a non-uniform field or curved surface, break the surface into infinitesimal patches dA⃗, compute E⃗ · dA⃗ on each patch, and sum (integrate) over the entire surface S.

CLOSED-SURFACE (GAUSS'S LAW FORM)

ΦE=∮E⃗⋅dA⃗=Qenc/ε0Φ_E = ∮ E⃗ · dA⃗ = Q_enc / ε₀

The circle on the integral sign denotes a closed surface (Gaussian surface). Qenc = total charge enclosed. ε₀ = 8.85 × 10⁻¹² C²/(N·m²) is the permittivity of free space. This is Gauss's law—the payoff of electric flux.

ℹ
UNITS CHECK

The transition from the simple product EA cos θ to the surface integral is essential: real charge distributions create non-uniform fields, and Gaussian surfaces are often spheres or cylinders whose curvature requires integration. However, when the field has constant magnitude and is everywhere perpendicular (or everywhere parallel) to the surface, the integral collapses back to the simple product, which is exactly why we choose symmetric Gaussian surfaces in applications of Gauss's law.

SECTION 5

Flux Through Closed Surfaces

The most powerful application of electric flux concerns closed surfaces—surfaces that completely enclose a volume, like a sphere or a cube. For a closed surface, the convention is that dA⃗ always points outward. This means flux leaving the volume is positive and flux entering is negative. The net flux therefore measures the imbalance between outgoing and incoming field lines, which, by Gauss's law, is proportional to the enclosed charge.

Net Flux Through Closed Surfaces: Three Scenarios+Positive charge insideΦ = +Q/ε₀ > 0No charge insideΦ = 0−Negative charge insideΦ = −|Q|/ε₀ < 0Dashed circles represent closed Gaussian surfaces. Arrows show E⃗ direction.
Left: A positive charge inside produces net outward flux (Φ > 0). Center: A uniform external field sends equal flux in and out, yielding Φ = 0 with no enclosed charge. Right: A negative charge inside draws field lines inward, giving net negative flux (Φ < 0).

The middle scenario is particularly instructive: even though field lines enter and exit the closed surface, every line that enters must also exit when no charge is enclosed, so the positive and negative contributions to the flux integral cancel exactly. This is a direct geometric consequence of the inverse-square dependence of Coulomb's law—if the force fell off at any other rate, the cancellation would fail and Gauss's law in its simple form would not hold.

ScenarioQ_encNet Flux Φ_EPhysical Picture
Positive charge inside+Q+Q/ε₀ > 0More lines exit than enter
Negative charge inside−Q−Q/ε₀ < 0More lines enter than exit
No enclosed charge00Every entering line exits
Mixed charges, net positive+Q_net+Q_net/ε₀Net outward surplus

Net flux depends only on the total enclosed charge, regardless of its distribution.

SECTION 6

Worked Example

Worked example

  1. 1

    Step 1 — Identify Given Values

    A uniform electric field E⃗ = 500 N/C points in the +x direction. A square surface of side length 0.30 m is oriented so that its outward normal makes an angle of 60° with the +x axis. We seek the electric flux ΦE through this surface.
  2. 2

    Step 2 — Compute the Surface Area

    A = (0.30 m)² = 0.09 m².
    A = 0.09 m²
  3. 3

    Step 3 — Apply the Flux Formula

    Since the field is uniform and the surface is flat, we use ΦE = EA cos θ = (500 N/C)(0.09 m²)(cos 60°).
  4. 4

    Step 4 — Evaluate

    cos 60° = 0.50, so ΦE = 500 × 0.09 × 0.50 = 22.5 N·m²/C.
    Φ_E = 22.5 N·m²/C
  5. 5

    Step 5 — Interpret

    The flux is positive, indicating a net flow of field lines outward through the surface in the direction of the chosen normal. Had the normal been anti-parallel to E⃗ (θ = 180°), the flux would have been −45 N·m²/C, reflecting that the field enters the back of the surface.

Worked example

  1. 1

    Step 1 — Setup

    A point charge Q = +3.0 μC sits at the center of a spherical Gaussian surface of radius R = 0.20 m. Find the total flux through the sphere.
  2. 2

    Step 2 — Apply Gauss's Law Directly

    By Gauss's law, ΦE = Qenc / ε₀. The radius R is irrelevant for the total flux.
  3. 3

    Step 3 — Substitute

    ΦE = 3.0 × 10⁻⁶ C / (8.85 × 10⁻¹² C²/(N·m²)) = 3.39 × 10⁵ N·m²/C.
    Φ_E ≈ 3.39 × 10⁵ N·m²/C
  4. 4

    Step 4 — Verify with Integration

    By symmetry, E is constant over the sphere and parallel to dA⃗ everywhere, so ∮ E⃗ · dA⃗ = E(4πR²). Using Coulomb's field E = kQ/R² = Q/(4πε₀R²), we get E × 4πR² = Q/ε₀, confirming the result independently of R.

SECTION 7

Common Pitfalls & Clarifications

PitfallWhy It's WrongCorrect Understanding
Flux depends on the size of the Gaussian surfaceExpanding the sphere weakens E but increases A by the same factor (inverse-square cancels area)Total flux through a closed surface depends only on Q_enc, not on the surface's size or shape
Using the angle between E⃗ and the surface itselfThe dot product uses the surface normal, not the surface tangentθ is always measured between E⃗ and the outward normal n̂
Charges outside the surface contribute to the fluxExternal charges create equal inward and outward flux contributions that cancelOnly enclosed charges determine net flux; external charges affect E locally but not ∮ E⃗ · dA⃗
Negative flux means the field is weakNegative flux only means the net field direction is inwardSign indicates direction (inward vs outward), not magnitude

Frequent misconceptions in flux and Gauss's law problems

SECTION 8

Connection to Gauss's Law & Advanced Theory

Electric flux is not merely a computational stepping-stone; it is the language in which Gauss's law is expressed, and Gauss's law is one of Maxwell's four equations—the complete set of laws governing all classical electromagnetic phenomena. Mastering flux now prepares you not only for AP-level applications but for the differential form of Gauss's law (∇ · E⃗ = ρ/ε₀) encountered in upper-division courses, where the divergence operator replaces the surface integral.

FeatureIntegral Form (AP Level)Differential Form (Advanced)
Statement∮ E⃗ · dA⃗ = Q_enc / ε₀∇ · E⃗ = ρ / ε₀
Applies toA finite closed surfaceEvery point in space
RequiresChoosing a Gaussian surfaceTaking partial derivatives of E
Best forHighly symmetric charge distributionsGeneral charge distributions; numerical methods

Gauss's law in integral vs. differential form

The divergence theorem (also called Gauss's theorem in mathematics) provides the formal bridge: it states that the surface integral of any vector field over a closed surface equals the volume integral of its divergence. Applied to E⃗, this transforms ∮ E⃗ · dA⃗ = Qenc/ε₀ into ∫∫∫ (∇ · E⃗) dV = ∫∫∫ (ρ/ε₀) dV. Since this must hold for every volume, the integrands must be equal pointwise, giving the differential form. You will also encounter magnetic flux (ΦB) later in the course, where ∮ B⃗ · dA⃗ = 0 (no magnetic monopoles) and changes in ΦB drive Faraday's law of induction.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A closed Gaussian surface surrounds no electric charge. A very large positive charge is placed just outside the surface. Which statement about the net electric flux through the surface is correct?
  • A. The net flux is positive because the external positive charge pushes field lines into the surface.
  • B. The net flux is zero because the surface encloses no charge.
  • C. The net flux is negative because field lines from the external charge terminate inside the surface.
  • D. The net flux depends on the distance between the charge and the surface.
Show answer (B)
B is correct. By Gauss's law, Φ = Q_enc/ε₀, and Q_enc = 0, so the net flux is zero regardless of external charges. A is wrong because field lines from the external charge both enter and exit the closed surface, contributing equal and opposite flux that cancels. C is wrong because field lines from a positive external charge do not terminate inside the surface—they pass through it. D is wrong because the net flux through a closed surface depends only on the enclosed charge, not on the location of external charges.

Question 2: BASIC CALCULATION

A uniform electric field E = 400 N/C is directed along the +y axis. A rectangular surface of dimensions 0.50 m × 0.80 m lies in the xz-plane. What is the electric flux through this surface?
  • A. 0 N·m²/C
  • B. 80 N·m²/C
  • C. 160 N·m²/C
  • D. 320 N·m²/C
Show answer (C)
C is correct. A surface in the xz-plane has its outward normal along ±ŷ, which is parallel (or anti-parallel) to E⃗. Thus θ = 0° and Φ = EA cos 0° = 400 × (0.50 × 0.80) × 1 = 160 N·m²/C. A is wrong because the field is perpendicular to the xz-plane, meaning it fully penetrates the surface (θ = 0°, not 90°). B (80) likely results from using only one dimension. D (320) would require doubling the area incorrectly.

Question 3: INTERMEDIATE

A point charge Q = −5.0 μC is at the center of a cube of side length 0.40 m. What is the electric flux through one face of the cube?
  • A. −5.65 × 10⁵ N·m²/C
  • B. −9.41 × 10⁴ N·m²/C
  • C. +9.41 × 10⁴ N·m²/C
  • D. −1.88 × 10⁵ N·m²/C
Show answer (B)
B is correct. Total flux through the cube: Φ_total = Q/ε₀ = (−5.0 × 10⁻⁶)/(8.85 × 10⁻¹²) = −5.65 × 10⁵ N·m²/C. By the symmetry of a charge at the center of a cube, each of the six faces carries one-sixth of the total: Φ_face = −5.65 × 10⁵/6 = −9.41 × 10⁴ N·m²/C. A is the total flux, not per face. C has the wrong sign—the charge is negative so net flux is inward. D divides by 3 instead of 6. Note the side length is irrelevant; only Q_enc and symmetry matter.

Question 4: APPLIED

A non-uniform electric field in a region is given by E⃗ = (3.0x² î + 4.0 ĵ) N/C, where x is in meters. A cube of side length L = 2.0 m has one corner at the origin and extends along the positive x, y, and z axes. (a) Calculate the electric flux through the face at x = 0. (b) Calculate the electric flux through the face at x = 2.0 m. (c) Calculate the net electric flux through the entire cube. (d) Determine the total charge enclosed by the cube.
Show answer
(a) At x = 0, ExE_x = 3.0(0)² = 0. The outward normal on the x = 0 face is −x̂. Since the x-component of E is zero and the y-component (4.0 ĵ) is parallel to this face, Φ(x=0) = 0. [1 pt] (b) At x = 2.0, ExE_x = 3.0(2.0)² = 12.0 N/C. The outward normal is +x̂. ExE_x is uniform over this face, so Φ(x=2) = 12.0 × (2.0)² = 48 N·m²/C. [1 pt] (c) The y-component of E is uniform (4.0 ĵ), so the flux in through the y = 0 face exactly cancels the flux out through the y = 2 face. The z-component of E is zero everywhere. No x-component contribution from y or z faces (ExE_x is in the x̂ direction, perpendicular to the normal of those faces, contributing zero). Net flux = 48 + 0 = 48 N·m²/C. [1 pt for net flux; 1 pt for reasoning about cancellations] (d) Q_enc = ε₀ × Φ_net = (8.85 × 10⁻¹²)(48) = 4.25 × 10⁻¹⁰ C ≈ 0.425 nC. [1 pt]

Question 5: CRITICAL THINKING

A student claims: "If I double the radius of a spherical Gaussian surface centered on a point charge, the electric flux doubles because the surface area increases by a factor of 4 and the field decreases by a factor of 2, giving a net factor of 2." Identify the error and provide the correct analysis. Then explain what quantity does change when the radius is doubled and what quantity stays the same.
Show answer
The student's error is in the field scaling: E = kQ/r², so doubling r reduces E by a factor of 4, not 2. [1 pt] When radius doubles: A → 4A and E → E/4, so Φ = EA → (E/4)(4A) = EA—unchanged. [1 pt] This invariance is Gauss's law: Φ = Q_enc/ε₀ depends only on the enclosed charge, not on the surface geometry. [1 pt] What does change is the field magnitude at the surface (reduced by a factor of 4) and correspondingly the flux density (flux per unit area); the total flux, however, remains constant. [1 pt]

Varsity Tutors • AP Physics C: Electricity and Magnetism • Electric Flux