Skip to content

Unit 8: Electric Charges, Fields, and Gauss's Law

Electric Flux

Calculate the electric flux through flat, curved and closed surfaces, with its sign, from a dot product or a surface integral of the field.

Topic 8.5 · 10 min read

Hold a window frame in a steady wind. How much air passes through it depends on three things: how fast the wind blows, how big the frame is, and how the frame is turned. Face-on, the most air gets through; edge-on, none does. Electric flux, written ΦE\Phi_E, is the same measurement for an electric field: how much field passes through a surface. In the field-line picture, it is proportional to the number of field lines crossing the surface. Gauss's law (topic 8.6) is a statement about flux.

Flux through a flat surface in a uniform field

To describe how a flat surface is turned, give it an area vector A⃗\vec{A}: its magnitude is the surface's area, and its direction is perpendicular (normal) to the surface. A surface is then fully described by one vector, and its tilt relative to the field is the angle θ\theta between E⃗\vec{E} and A⃗\vec{A}.

A flat plate seen edge-on, tilted in a uniform field whose arrows point to the right. The area vector A starts at the plate's center and points perpendicular to the plate, at angle theta from the field direction. The field is split into a component E cos theta along A, which passes through the plate, and a component E sin theta along the plate, which does not.

There are two ways to see where the cosine comes from. Split E⃗\vec{E} into a part along the normal, Ecos⁡θE\cos\theta, and a part lying in the surface, Esin⁡θE\sin\theta. Only the normal part carries field through; the part along the surface slides past it. Or keep the whole field and shrink the surface instead: seen from the direction the field comes from, a tilted surface looks like a smaller one, of area Acos⁡θA\cos\theta, and that "shadow" is what the field lines have to cross.

For example, a square plate 0.40 m0.40\ \text{m} on a side sits in a uniform field of 3.0×103 N/C3.0\times10^{3}\ \text{N/C}, with its normal at 60∘60^\circ to the field. The flux is

ΦE=(3.0×103 N/C)(0.16 m2)cos⁡60∘=240 N⋅m2/C.\Phi_E = (3.0\times10^{3}\ \text{N/C})(0.16\ \text{m}^2)\cos60^\circ = 240\ \text{N}\cdot\text{m}^2/\text{C}.

Turn the plate face-on (θ=0\theta = 0) and the flux reaches its maximum, EA=480 N⋅m2/CEA = 480\ \text{N}\cdot\text{m}^2/\text{C}. Turn it edge-on (θ=90∘\theta = 90^\circ, field parallel to the plate) and the flux is zero, even though the field at the plate is just as strong.

The sign of flux, and closed surfaces

A flat surface has two normals, pointing out of its two faces, and the formula needs you to pick one. Flux then has a sign, set by the dot product:

  • θ<90∘\theta < 90^\circ: positive flux, the field crosses the surface in the direction of A⃗\vec{A};
  • θ=90∘\theta = 90^\circ: zero flux, the field runs along the surface;
  • θ>90∘\theta > 90^\circ: negative flux, the field crosses against A⃗\vec{A}.

For an open surface (a flag, a window, a bowl: something with an edge), the choice of normal is yours, and the sign only means something relative to it. Flipping the normal flips the sign of the flux. State the choice and stick with it over the whole surface.

A closed surface (a box, a sphere, a can with both lids: something enclosing a volume with no gaps) removes the choice. By convention every area vector points outward, away from the enclosed volume. Then the sign has a physical meaning: positive flux through a patch means field leaving the volume there, and negative flux means field entering. The net flux through a closed surface, written ∮E⃗⋅dA⃗\oint\vec{E}\cdot d\vec{A}, adds the leaving and entering parts with their signs.

In a uniform field, every field line that enters a closed surface also leaves it, so the net flux through any closed surface in a uniform field is zero, whatever its shape. Example 2 checks this face by face. Topic 8.6 shows what a nonzero net flux means: charge inside.

Flux when the field varies: the surface integral

When the field changes in size or direction across the surface, or the surface is curved, EAcos⁡θEA\cos\theta has no single value to use. Cut the surface into patches dA⃗d\vec{A} small enough that each is flat and the field is constant across it, find the flux E⃗⋅dA⃗\vec{E}\cdot d\vec{A} through each, and add them:

The skill is choosing patches on which E⃗⋅dA⃗\vec{E}\cdot d\vec{A} is the same everywhere, so the integral has one variable:

  • if the field changes along one direction across a flat surface, use thin strips perpendicular to that direction;
  • if the field depends on distance from a point on a flat surface (a point charge facing a disk, as in Example 3), use thin rings, dA=2πs dsdA = 2\pi s\,ds;
  • if the surface is a sphere or cylinder centered on the charge's symmetry, the field may be the same over the whole surface (topic 8.6 uses exactly this).

For example, take a square of side ss in the xyxy-plane, from 00 to ss in both xx and yy, with normal +k^+\hat{k}, in the field E⃗=Cx k^+B ı^\vec{E} = Cx\,\hat{k} + B\,\hat{\imath}, where CC and BB are constants. The B ı^B\,\hat{\imath} part lies in the surface and contributes nothing. The k^\hat{k} part depends only on xx, so use strips of width dxdx and length ss, with dA=s dxdA = s\,dx:

ΦE=∫0sCx⋅s dx=Cs32.\Phi_E = \int_0^s Cx\cdot s\,dx = \frac{Cs^3}{2}.

With C=500 N/(C⋅m)C = 500\ \text{N}/(\text{C}\cdot\text{m}) and s=0.20 ms = 0.20\ \text{m}, ΦE=2.0 N⋅m2/C\Phi_E = 2.0\ \text{N}\cdot\text{m}^2/\text{C}.

Curved surfaces in a uniform field have a shortcut. Cap an open curved surface with a flat one sharing its edge, and the two together form a closed surface, whose net flux in a uniform field is zero. With outward normals on that closed surface, Φcurved+Φcap, outward=0\Phi_{\text{curved}} + \Phi_{\text{cap, outward}} = 0, where the cap's outward normal points away from the curved part. Flip the cap's normal to point the same way across as the curved surface's normals (for a dome bulging toward +z+z with normals pointing away from its center, the cap's flipped normal is +k^+\hat{k}), and Φcurved=Φcap, flipped\Phi_{\text{curved}} = \Phi_{\text{cap, flipped}}: both count field crossing from the same side to the other. In a uniform field, the flux through any surface depends only on its edge.

Worked examples

Worked exampleExample 1: a tilted window

A rectangular window 0.30 m0.30\ \text{m} by 0.50 m0.50\ \text{m} sits in a uniform field of magnitude 2.0×103 N/C2.0\times10^{3}\ \text{N/C}. The field makes an angle of 25∘25^\circ with the plane of the window.

(a) Calculate the magnitude of the electric flux through the window.

(b) What is the largest flux the window could have in this field, and how must it be oriented?

(c) The window's area vector is chosen to point to the side the field arrives from. What is the sign of the flux?

Show solution

(a) The 25∘25^\circ is measured from the window's plane, but the flux formula needs the angle from the normal, which is 90∘−25∘=65∘90^\circ - 25^\circ = 65^\circ. The area is (0.30)(0.50)=0.15 m2(0.30)(0.50) = 0.15\ \text{m}^2, so

ΦE=EAcos⁡65∘=(2.0×103 N/C)(0.15 m2)(0.423)=127 N⋅m2/C.\Phi_E = EA\cos65^\circ = (2.0\times10^{3}\ \text{N/C})(0.15\ \text{m}^2)(0.423) = 127\ \text{N}\cdot\text{m}^2/\text{C}.

A field only 25∘25^\circ from lying along the window passes little through it, which is why the answer is less than half the maximum.

(b) The flux is largest when cos⁡θ=1\cos\theta = 1: the window faces the field squarely, with the field perpendicular to the glass. Then ΦE=EA=300 N⋅m2/C\Phi_E = EA = 300\ \text{N}\cdot\text{m}^2/\text{C}.

(c) An area vector aimed toward the side the field comes from makes an angle of 180∘−65∘=115∘180^\circ - 65^\circ = 115^\circ with the field, so the cosine is negative and ΦE=−127 N⋅m2/C\Phi_E = -127\ \text{N}\cdot\text{m}^2/\text{C}. The physics hasn't changed; only the reference direction has.

Worked exampleExample 2: every face of a closed wedge

A closed wedge-shaped surface sits in a uniform field E⃗=(500 N/C) ı^\vec{E} = (500\ \text{N/C})\,\hat{\imath}. Its bottom is a 0.40 m0.40\ \text{m} by 0.50 m0.50\ \text{m} rectangle on the floor, its back is a vertical 0.30 m0.30\ \text{m} by 0.50 m0.50\ \text{m} rectangle facing −ı^-\hat{\imath}, its sloped top is a rectangle running from the top of the back down to the far edge of the bottom, and its two ends are right triangles. Find the flux through each face and the net flux.

Side view of the wedge. The vertical back face, 0.30 m tall, is on the left at x equals 0, with its outward normal pointing left. The bottom runs 0.40 m to the right along the floor, with its outward normal pointing down. The sloped face, 0.50 m long, runs from the top of the back down to the right end of the bottom, with its outward normal pointing up and to the right at components 0.6 and 0.8. Uniform field arrows point to the right, entering through the back face and leaving through the sloped face. The triangular ends face out of and into the page.
Show solution

All area vectors point outward, because the surface is closed.

  • Back face (0.30×0.50=0.15 m20.30 \times 0.50 = 0.15\ \text{m}^2): outward normal −ı^-\hat{\imath}, opposite the field, so Φ=−(500)(0.15)=−75 N⋅m2/C\Phi = -(500)(0.15) = -75\ \text{N}\cdot\text{m}^2/\text{C}. Field enters here.
  • Bottom and both triangular ends: their normals (−ȷ^-\hat{\jmath} and ±k^\pm\hat{k}) are perpendicular to ı^\hat{\imath}, so the field runs along them and each has zero flux.
  • Sloped face: its length is 0.302+0.402=0.50 m\sqrt{0.30^2 + 0.40^2} = 0.50\ \text{m}, so its area is 0.50×0.50=0.25 m20.50 \times 0.50 = 0.25\ \text{m}^2. Its outward normal points up and to the right, perpendicular to the slope: n^=0.6 ı^+0.8 ȷ^\hat{n} = 0.6\,\hat{\imath} + 0.8\,\hat{\jmath} (going down the slope is the direction 0.8 ı^−0.6 ȷ^0.8\,\hat{\imath} - 0.6\,\hat{\jmath}, and the unit vector perpendicular to that, pointing out of the wedge, swaps the numbers and fixes the signs). Then Φ=(500 ı^)⋅(0.25)(0.6 ı^+0.8 ȷ^)=+75 N⋅m2/C\Phi = (500\,\hat{\imath})\cdot(0.25)(0.6\,\hat{\imath} + 0.8\,\hat{\jmath}) = +75\ \text{N}\cdot\text{m}^2/\text{C}. Field leaves here.

Net flux: −75+0+0+0+75=0-75 + 0 + 0 + 0 + 75 = 0. The sloped face is larger than the back, but it is tilted, and its shadow seen along the field is exactly the back's 0.30 m0.30\ \text{m} by 0.50 m0.50\ \text{m}. The same field lines enter through one and leave through the other.

Worked exampleExample 3: a point charge facing a disk (free-response style)

A point charge +q+q sits on the axis of a flat disk of radius RR, a distance dd from the disk's center. Take the disk's area vector to point away from the charge.

(a) Derive an expression for the electric flux through the disk in terms of qq, dd, RR and physical constants.

(b) Find the flux in the limit R→∞R \to \infty and explain the result physically.

(c) For what radius RR, in terms of dd, does one quarter of the charge's total flux qε0\frac{q}{\varepsilon_0} pass through the disk?

(d) Calculate the flux for q=2.0 nCq = 2.0\ \text{nC} and d=R=0.10 md = R = 0.10\ \text{m}. Use ε0=8.85×10−12 C2/(N⋅m2)\varepsilon_0 = 8.85\times10^{-12}\ \text{C}^2/(\text{N}\cdot\text{m}^2).

Show solution

(a) The field changes in size and direction across the disk but depends only on the distance ss from the disk's center, so cut the disk into thin rings of radius ss, width dsds and area dA=2πs dsdA = 2\pi s\,ds. Every point of one ring is a distance d2+s2\sqrt{d^2 + s^2} from the charge, where the field has magnitude q4πε0(d2+s2)\frac{q}{4\pi\varepsilon_0(d^2 + s^2)} and makes angle θ\theta with the axis, with cos⁡θ=dd2+s2\cos\theta = \frac{d}{\sqrt{d^2 + s^2}}. So

ΦE=∫0Rq4πε0(d2+s2)⋅dd2+s2⋅2πs ds=qd2ε0∫0Rs ds(d2+s2)3/2.\Phi_E = \int_0^R\frac{q}{4\pi\varepsilon_0(d^2 + s^2)}\cdot\frac{d}{\sqrt{d^2 + s^2}}\cdot2\pi s\,ds = \frac{qd}{2\varepsilon_0}\int_0^R\frac{s\,ds}{(d^2 + s^2)^{3/2}}.

With u=d2+s2u = d^2 + s^2, du=2s dsdu = 2s\,ds, the integral is [−1d2+s2]0R=1d−1d2+R2\left[-\frac{1}{\sqrt{d^2 + s^2}}\right]_0^R = \frac{1}{d} - \frac{1}{\sqrt{d^2 + R^2}}, and

ΦE=q2ε0(1−dd2+R2).\Phi_E = \frac{q}{2\varepsilon_0}\left(1 - \frac{d}{\sqrt{d^2 + R^2}}\right).

The rings are the right patches because E⃗⋅dA⃗\vec{E}\cdot d\vec{A} is the same all the way around each one.

(b) As R→∞R \to \infty, dd2+R2→0\frac{d}{\sqrt{d^2 + R^2}} \to 0 and ΦE→q2ε0\Phi_E \to \frac{q}{2\varepsilon_0}. An infinite plane splits space in half, and by symmetry half of the charge's field lines go toward the plane's side and all of them cross it. Topic 8.6 shows that the total flux leaving a charge through any closed surface is qε0\frac{q}{\varepsilon_0}; the plane catches half.

(c) Set 12(1−dd2+R2)=14\frac{1}{2}\left(1 - \frac{d}{\sqrt{d^2 + R^2}}\right) = \frac{1}{4}, so dd2+R2=12\frac{d}{\sqrt{d^2 + R^2}} = \frac{1}{2}, d2+R2=4d2d^2 + R^2 = 4d^2, and R=3 dR = \sqrt{3}\,d. Geometrically, the disk's edge is then seen from the charge at 60∘60^\circ from the axis.

(d) With d=Rd = R, the bracket is 1−12=0.2931 - \frac{1}{\sqrt{2}} = 0.293:

ΦE=2.0×10−9 C2(8.85×10−12 C2/(N⋅m2))(0.293)=33.1 N⋅m2/C.\Phi_E = \frac{2.0\times10^{-9}\ \text{C}}{2(8.85\times10^{-12}\ \text{C}^2/(\text{N}\cdot\text{m}^2))}(0.293) = 33.1\ \text{N}\cdot\text{m}^2/\text{C}.

Where students lose points

On the exam

Expect to calculate flux (through a tilted surface, a face of a box, or a surface where the field varies), to compare fluxes by ranking or factor of change as the orientation or area changes, and to evaluate the flux side of Gauss's law, ∮E⃗⋅dA⃗\oint\vec{E}\cdot d\vec{A}, which each derivation in topic 8.6 sets equal to qencε0\frac{q_{\text{enc}}}{\varepsilon_0}. In a derivation, state the patch you chose and why E⃗⋅dA⃗\vec{E}\cdot d\vec{A} is constant on it, and give the sign of a flux with the direction of the area vector you used.

Check yourself

  1. Question 1

    An open hemispherical bowl of radius RR sits in a uniform field E⃗\vec{E} that points along the bowl's axis of symmetry. What is the magnitude of the flux through the bowl?

    1. A

      2πR2E2\pi R^2E

    2. B

      πR2E\pi R^2E

    3. C

      4πR2E4\pi R^2E

    4. D

      00, because the field is not perpendicular to most of the bowl

    Show answer

    B

    Cap the bowl with the flat disk across its rim. The closed surface has zero net flux in a uniform field, so the bowl carries the same flux as the disk, E⋅πR2E\cdot\pi R^2, the bowl's shadow along the field. Choice A multiplies EE by the bowl's full curved area, ignoring that most of it is tilted away from the field.

  2. Question 2

    A flat loop in a uniform field has flux Φ0\Phi_0 when it faces the field squarely. Through what angle must it be turned (about an axis in its own plane) for the flux to drop to Φ02\frac{\Phi_0}{2}?

    1. A

      30∘30^\circ

    2. B

      45∘45^\circ

    3. C

      60∘60^\circ

    4. D

      90∘90^\circ

    Show answer

    C

    Face-on, the area vector is parallel to the field and Φ0=EA\Phi_0 = EA. Turning the loop by θ\theta turns its normal by θ\theta, so Φ=EAcos⁡θ\Phi = EA\cos\theta, and cos⁡θ=12\cos\theta = \frac{1}{2} at 60∘60^\circ. Choice B assumes the flux falls in proportion to the angle, and choice A mixes up sin⁡\sin and cos⁡\cos.

  3. Question 3

    In a region of space the field is E⃗=(4.0 N/(C⋅m)) x ı^+(5.0 N/C) ȷ^\vec{E} = (4.0\ \text{N}/(\text{C}\cdot\text{m}))\,x\,\hat{\imath} + (5.0\ \text{N/C})\,\hat{\jmath}. A square 0.50 m0.50\ \text{m} on a side lies in the plane x=3.0 mx = 3.0\ \text{m}, with its area vector along +ı^+\hat{\imath}. What is the flux through it?

    Show answer

    3.0 N⋅m2/C3.0\ \text{N}\cdot\text{m}^2/\text{C}

    On the plane x=3.0 mx = 3.0\ \text{m} the xx-component of the field is (4.0)(3.0)=12 N/C(4.0)(3.0) = 12\ \text{N/C} everywhere, so it is uniform over the square: Φ=(12 N/C)(0.25 m2)=3.0 N⋅m2/C\Phi = (12\ \text{N/C})(0.25\ \text{m}^2) = 3.0\ \text{N}\cdot\text{m}^2/\text{C}. The ȷ^\hat{\jmath} part lies in the square and contributes nothing.

  4. Question 4

    A cube sits in a uniform electric field, turned at some odd angle so that the field passes through three of its faces in and three faces out. Which statement is correct?

    1. A

      The flux through each face is zero.

    2. B

      The net flux through the cube is zero, but the fluxes through individual faces are not.

    3. C

      The net flux is positive because the field passes through all six faces.

    4. D

      The net flux depends on the angle at which the cube is turned.

    Show answer

    B

    With outward area vectors, the three faces where the field enters have negative flux and the three where it leaves have positive flux, and in a uniform field every line that enters also leaves, so the total is zero at any orientation. Choice C adds magnitudes and ignores that entering flux is negative.

Go deeper