---
title: Magnetic flux
heading: Field through a loop, and why field lines never end
eyebrow: B5 · Lesson 9 · Magnetic flux
xp: 40
---

::: hook
Everything in the next unit, generators, transformers and inductors, runs on one quantity: how much magnetic field threads through a loop of wire. That's the magnetic flux, measured in webers. Change it and a voltage appears around the loop (B6). This lesson sets it up: how to compute the flux through a coil, a loop beside a wire, or a core, and the one rule magnetic flux always obeys, that whatever goes into a closed surface comes back out.
:::

::: play
- A rectangular loop sits beside a long straight wire carrying current $I$, with its near side a distance $d$ away. The field falls as $1/r$, so the flux through the loop depends strongly on how close it is.
- The curve is the flux against $d$. Move the loop closer: the flux climbs steeply.
- B6.1 shows that moving the loop, which changes this flux, drives a voltage around it.
:::
:::

```sim plot
view: graph
x: d = 0.5..20 cm
y: P = 0..2 µWb
slider: I = 1..50 step 1 = 10 A
slider: L = 5..20 step 1 = 10 cm
slider: w = 1..10 step 0.5 = 5 cm
plot: 2e-7*I*(L/100)*ln((d + w)/d)*1e6 | label: flux through the loop
readout: flux with the loop 2 cm away, µWb = 2e-7*I*(L/100)*ln((2 + w)/2)*1e6 | digits: 4
```

::: predict
## A closed box sits next to a strong bar magnet, with the magnet's north pole poking into the box. What is the net magnetic flux out of the box?

- [ ] Positive, from the north pole
- [ ] Negative
- [x] Zero
- [ ] It depends on how far the magnet goes in

::: reveal
Zero. Magnetic field lines never start or end: every line that enters the box also leaves it. Even the part of the magnet inside the box carries its field lines out the other side, because inside the magnet the lines run from south to north and continue. There's no magnetic charge for the lines to end on.
:::
:::

::: nameit
## Flux

The **magnetic flux** through a surface is

$$\Phi_B = \int\mathbf B \cdot d\mathbf A$$

in **webers** (1 Wb = 1 T·m²). For a uniform field through a flat loop of area $A$ whose normal makes angle θ with the field, $\Phi_B = BA\cos\theta$. A tesla is one weber per square meter, which is why $B$ is also called **flux density**.

## Flux linkage

A coil of $N$ turns, each threaded by the same flux Φ, has **flux linkage** $\lambda = N\Phi$. That's what induced voltages and inductance depend on (B6).

| Situation | Flux |
|---|---|
| inside a long solenoid ($n$ turns per meter, radius $r$) | $\mu_0nI\cdot\pi r^2$ |
| rectangle of length $L$ along a long wire, from $d$ to $d + w$ | $\frac{\mu_0IL}{2\pi}\ln\frac{d + w}{d}$ |

## Gauss's law for magnetism

The net flux out of any closed surface is zero:

$$\oint\mathbf B \cdot d\mathbf A = 0 \qquad \nabla \cdot \mathbf B = 0$$

There are no magnetic charges (monopoles); field lines form closed loops. Consequences:

- the flux through a surface depends only on its rim: any two surfaces spanning the same loop catch the same flux;
- flux is conserved along a magnetic core, like current along a wire (lesson 11 builds magnetic circuits on this);
- cutting a magnet in half gives two smaller magnets, never a lone north pole.
:::

::: example
## A solenoid with 1000 turns per meter and a 1 cm radius carries 2 A. What flux does it carry, and what flux linkage does a 10-turn pickup coil wound around it have?

::: solution
1. **Field inside the solenoid.**
   $$\begin{aligned} B &= \mu_0nI \\ &= 4\pi \times 10^{-7} \times 1000 \times 2 \\ &= 2.5\ \text{mT} \end{aligned}$$
2. **Flux.**
   $$\begin{aligned} \Phi &= B\pi r^2 \\ &= 2.5 \times 10^{-3} \times 3.14 \times 10^{-4} \\ &= 7.9 \times 10^{-7}\ \text{Wb} \end{aligned}$$
3. **The pickup coil's linkage.** Outside the solenoid the field is nearly zero, so the coil's own size doesn't matter.
   $$\begin{aligned} \lambda &= 10 \times 7.9 \times 10^{-7} \\ &= 7.9 \times 10^{-6}\ \text{Wb-turns} \end{aligned}$$

**Answer:** the solenoid carries $7.9 \times 10^{-7}$ Wb, and the pickup coil links $7.9 \times 10^{-6}$ Wb-turns, whatever its size.
:::
:::

::: example
## A 10 cm by 5 cm loop lies beside a long wire carrying 10 A, its long side parallel to the wire and 2 cm from it. What flux threads it?

::: solution
1. **Flux of a nonuniform field.** The field isn't uniform over the loop, which is why the result has a logarithm:
   $$\Phi = \frac{\mu_0IL}{2\pi}\ln\frac{d + w}{d}$$
2. **Put in the numbers.** With $L$ = 0.1 m, $d$ = 2 cm and $w$ = 5 cm:
   $$\begin{aligned} \Phi &= 2 \times 10^{-7} \times 10 \times 0.1 \\ &\quad \times \ln\frac{7}{2} \\ &= 2.5 \times 10^{-7}\ \text{Wb} \end{aligned}$$

**Answer:** about $2.5 \times 10^{-7}$ Wb threads the loop.
:::
:::

::: check
given: B = 0.1 | 0.5; A = 10 | 50; th = 0 | 30 | 60
answer: B*A*1e-4*cos(th°)*1000
unit: mWb
tolerance: 0.5%

## A uniform {B} T field threads a {A} cm² loop, at {th}° to its normal. What flux passes through?

::: right
Right. $BA\cos\theta$ = {answer}.
:::

::: misses
- [B*A*1e-4*sin(th°)*1000] θ is measured from the normal, so use $\cos\theta$.
- [B*A*cos(th°)*1000] Convert cm² to m².
- [any] Not yet. $\Phi = BA\cos\theta$.
:::
:::

::: check
given: n = 500 | 2000; I = 0.5 | 3; r = 0.5 | 2
answer: 4*pi*1e-7*n*I*pi*(r/100)^2*1e6
unit: µWb
tolerance: 0.5%

## A long solenoid has {n} turns per meter, radius {r} cm, and {I} A. What flux runs through it?

::: right
Right. $\mu_0nI\cdot\pi r^2$ = {answer}.
:::

::: misses
- [4*pi*1e-7*n*I*1e6] Multiply the field by the cross-section's area.
- [any] Not yet. $B = \mu_0nI$, then $\Phi = BA$.
:::
:::

::: check
given: N = 5 | 50; P = 2 | 20
answer: N*P
unit: µWb
tolerance: 0.5%

## A {N}-turn coil is threaded by {P} µWb through each turn. What is its flux linkage?

::: right
Right. $N\Phi$ = {answer}.
:::

::: misses
- [any] Not yet. Flux through each turn, times the turns.
:::
:::

::: check
given: I = 5 | 20; L = 5 | 20; d = 1 | 3; w = 2 | 5
answer: 2e-7*I*(L/100)*ln((d + w)/d)*1e6
unit: µWb
tolerance: 0.5%

## A loop {L} cm long and {w} cm wide lies beside a long wire carrying {I} A, its near side {d} cm away. What flux threads it?

::: right
Right. $\frac{\mu_0IL}{2\pi}\ln\frac{d + w}{d}$ = {answer}.
:::

::: misses
- [2e-7*I*(L/100)*(w/100)/(d/100)*1e6] The field varies across the loop; integrate $\frac{1}{r}$ to get a logarithm.
- [any] Not yet. Integrate $\frac{\mu_0I}{2\pi r}L\,dr$ from $d$ to $d + w$.
:::
:::

::: check
given: P = 0.1 | 1; A = 1 | 4
answer: P*1e-3/(A*1e-4)
unit: T
tolerance: 0.5%

## A core of {A} cm² cross-section carries {P} mWb. What is the flux density in it?

::: right
Right. $B = \Phi/A$ = {answer}.
:::

::: misses
- [P/A] Convert mWb and cm² to SI.
- [any] Not yet. Flux over area.
:::
:::

::: check
kind: choice

## A magnet is cut in half, between its poles. What do you get?

- [x] Two smaller magnets, each with a north and a south pole
- [ ] A separate north pole and south pole
- [ ] Two unmagnetized pieces
- [ ] One magnet and one unmagnetized piece

::: right
Right. Field lines are closed loops, so there's nowhere for a lone pole to come from.
:::

::: misses
- [2] That would need magnetic charge; $\nabla \cdot \mathbf B = 0$ forbids it.
- [3] The aligned atomic dipoles in each half are still aligned.
- [4] Both halves keep their aligned atomic dipoles.
:::
:::

::: explain
## Why must the flux through any two surfaces with the same rim be equal?

::: model
Put the two surfaces together and they enclose a volume, a closed surface. Gauss's law for magnetism says the net flux out of a closed surface is zero, because field lines have no ends: every line that enters through one surface leaves through the other. So the flux in through one equals the flux out through the other, measured the same way. That's what makes "the flux through a loop" well defined, no matter what surface you imagine stretched across it.
:::
:::

::: practice

::: check
given: B = 0.2 | 1.2; A = 5 | 20
answer: B*A*1e-4*1e6
unit: µWb
tolerance: 0.5%

## A {B} T field passes squarely through {A} cm². What is the flux?

::: misses
- [any] $BA$.
:::
:::

::: check
given: P = 1..100 int
answer: 0
unit: µWb
tolerance: 0.5%

## {P} µWb enters a closed surface on one side. What is the net flux out of the whole surface?

::: misses
- [any] Gauss's law for magnetism.
:::
:::

::: check
given: k = 2..10 int
answer: k^2
tolerance: 0.5%

## A solenoid's radius is made {k} times larger, with the same turns per meter and current. By what factor does its flux grow?

::: misses
- [k] Flux goes with the area.
- [any] $\Phi \propto r^2$.
:::
:::
:::
