---
title: Magnets and field lines
heading: The field a compass needle follows
eyebrow: B5 · Lesson 1 · Magnets and field lines
xp: 40
---

::: hook
Scatter compasses around a magnet and each needle swings to point along an invisible pattern: out of one end, around the outside, into the other end. That pattern is the magnetic field. It looks like an electric dipole's field from outside, but with one big difference: the lines don't stop at the magnet's ends. They carry straight on through the inside and close on themselves, because there are no magnetic charges for them to end on. Every magnetic field is made by moving charge, and a magnet is no exception.

::: play
- The needles show the field of a magnet, modeled as a loop of current seen edge on: current flows out of the page at the top dot and into it at the bottom one.
- Follow the needles around the outside, then through the middle. Do the lines ever stop?
- Reverse the current. What happens to every needle?
:::
:::

```sim plot
view: flow
x: x = -3..3 cm
y: y = -2..2 cm
slider: I = -1..1 step 2 = 1
slider: d = 0.4..2 step 0.1 = 1.2 cm
dx: I*(-(y - d/2)/(x^2 + (y - d/2)^2) + (y + d/2)/(x^2 + (y + d/2)^2))
dy: I*(x/(x^2 + (y - d/2)^2) - x/(x^2 + (y + d/2)^2))
heads: on
grid: 18
start: 0, 0.04*d | quiet
start: 0, -0.04*d | quiet
start: 0, 0.12*d | quiet
start: 0, -0.12*d | quiet
start: 0, 0.25*d | quiet
start: 0, -0.25*d | quiet
dot: 0, d/2 | label: out of page
dot: 0, -d/2 | label: into page | color: ch2
```

::: predict
## You cut a bar magnet in half. What do you get?

- [ ] A north pole and a separate south pole
- [x] Two smaller magnets, each with its own north and south ends
- [ ] Two pieces with no magnetism
- [ ] Two north poles

::: reveal
Two smaller magnets, each complete. No one has ever found a lone north or south pole. A magnet's field comes from countless tiny current loops, the electrons in its atoms, all lined up, and cutting it just divides the loops between the pieces. That's why magnetic field lines always close on themselves, and why $\nabla \cdot \mathbf B = 0$ (A9.33).
:::
:::

::: nameit
## The magnetic field

**Direction.** The **magnetic field** $\mathbf B$ at a point is the direction a small compass needle settles in, from its south end to its north end. Field lines leave a magnet's north pole, curve around outside, and re-enter at its south pole, then continue through the magnet back to the north pole. Like the electric field, crowded lines mean a stronger field.

**Unit.** B is measured in **teslas** (T). A tesla is a strong field, so microteslas and millitesla are common:

| Source | Field |
|---|---|
| Earth, at the surface | about 50 µT |
| 1 cm from a wire carrying 1 A | 20 µT |
| fridge magnet | about 5 mT |
| strong neodymium magnet, at its surface | about 1 T |
| MRI scanner | 1.5 to 3 T |

**Closed lines.** Electric field lines start and end on charges. Magnetic field lines never end, because there are no magnetic charges: whatever field enters any closed surface leaves it again ($\oint\mathbf B \cdot d\mathbf A = 0$). A magnet's poles are just where the lines happen to bunch together as they leave and enter.

**Where it comes from.** Every magnetic field comes from moving charge: currents in wires, and the spinning, orbiting electrons inside magnetic materials. That's why the sim can model a magnet as a loop of current: from outside, a magnet and a current loop of the right size are indistinguishable. Lesson 4 shows how currents make fields.

**Earth's field** points roughly north, and it also tilts down into the ground at most places. A compass's "north" end is attracted toward Earth's geographic north, so the magnetic pole up there is, in fact, a south pole.
:::

::: example
## How do an MRI scanner's 1.5 T field and a fridge magnet's 5 mT compare with the Earth's 50 µT?

::: solution
1. **MRI against the Earth.**
   $$\frac{1.5}{50 \times 10^{-6}} = 30\,000$$
2. **Fridge magnet against the Earth.**
   $$\frac{5 \times 10^{-3}}{50 \times 10^{-6}} = 100$$
3. **The span.** Magnetic fields in everyday life span more than four orders of magnitude.

**Answer:** the MRI's field is 30 000 times the Earth's, and the fridge magnet's is 100 times.
:::
:::

::: example
## Somewhere the Earth's 50 µT field dips 60° below horizontal. What are its horizontal and vertical parts?

::: solution
1. **Horizontal part.** This is the part a compass needle feels.
   $$50\cos 60° = 25\ \mu\text{T}$$
2. **Vertical part.**
   $$50\sin 60° = 43\ \mu\text{T}$$

**Answer:** the horizontal part is 25 µT and the vertical part is 43 µT.
:::
:::

::: check
kind: choice

## Where do magnetic field lines end?

- [ ] On the magnet's south pole
- [ ] On magnetic charges
- [x] Nowhere: they close on themselves
- [ ] On the nearest iron

::: right
Right. They pass through the magnet and loop back, since there are no magnetic charges.
:::

::: misses
- [1] At the south pole they enter the magnet and continue inside it to the north pole.
- [2] No magnetic charges have ever been found.
- [4] Iron bends them toward itself, but they pass through and continue.
:::
:::

::: check
given: B = 20 | 50 | 65; k = 2..9 int
answer: k*1e-3/(B*1e-6)
tolerance: 0.5%

## A fridge magnet makes {k} mT at its surface. How many times stronger is that than Earth's {B} µT field?

::: right
Right. {k} mT ÷ {B} µT = {answer}.
:::

::: misses
- [k/B] Convert to the same unit: 1 mT is 1000 µT.
- [B*1e-6/(k*1e-3)] That's the ratio the other way round.
- [any] Not yet. Divide, with both in teslas.
:::
:::

::: check
kind: choice

## A compass is placed just above a magnet's middle, where the field lines run parallel to the magnet. Which way does its north end point?

- [x] Along the magnet, toward the magnet's south pole
- [ ] Toward the magnet's north pole
- [ ] Straight down into the magnet
- [ ] It spins freely

::: right
Right. Outside the magnet the lines run from its north pole around to its south pole, and the compass follows them.
:::

::: misses
- [2] Outside a magnet, the field runs from its north end toward its south end.
- [3] Above the middle, the field runs parallel to the magnet.
- [4] It aligns with the field there.
:::
:::

::: check
given: B = 1..9 int; p = 3 | 6
answer: B*10^(-p)*1e4
unit: G
tolerance: 0.5%

## An older unit, the gauss, is 10⁻⁴ T. What is {B} × 10⁻{p} T in gauss?

::: right
Right. 1 T = 10,000 G, so {answer}.
:::

::: misses
- [B*10^(-p)*1e-4] Teslas are the bigger unit: multiply by $10^4$.
- [any] Not yet. Multiply by $10^4$.
:::
:::

::: check
kind: choice

## Why can a magnet be modeled as a loop of current?

- [ ] It contains wires
- [x] Its field comes from the aligned motion of electrons in its atoms, which act like tiny current loops
- [ ] Magnets conduct current
- [ ] It can't; they're completely different

::: right
Right. Lined-up atomic moments add up to the same field a current around the magnet's surface would make.
:::

::: misses
- [1] No wires: the current loops are in the atoms.
- [3] Many magnets, like ferrites, barely conduct at all.
- [4] From outside, their fields are the same.
:::
:::

::: check
kind: parts
given: m = 0.1 | 1 | 5; B = 50 | 200 | 1000; th = 20 | 30 | 70

## A small magnet with moment {m} A·m² sits in a {B} µT field.

::: part
answer: m*B*1e-6*sin(th°)*1e6
unit: µN·m
tolerance: 0.5%

### What torque acts on it at {th}° to the field?

::: misses
- [m*B*1e-6*cos(th°)*1e6] Torque goes as $\sin\theta$.
- [any] Not yet. $\tau = mB\sin\theta$.
:::
:::

::: part
answer: 2*m*B*1e-6*1e6
unit: µJ
tolerance: 0.5%

### How much energy does it take to turn it from aligned to opposed?

::: misses
- [m*B*1e-6*1e6] The energy goes from $-mB$ to $+mB$.
- [any] Not yet. $\Delta U = 2mB$.
:::
:::

::: right
Right. A compass needle feels only micronewton-meters from Earth's field, which is why it needs a frictionless pivot.
:::
:::

::: explain
## Why do magnetic field lines form closed loops, while electric field lines start and end?

::: model
Electric field lines begin on positive charges and end on negative ones. There are no magnetic charges, no isolated north or south poles, for magnetic lines to start or end on. Magnetic fields are made by moving charges, and the field of a current always circles around it. So every magnetic field line just keeps going until it comes back to where it started, passing through magnets rather than ending at their poles.
:::
:::

::: practice

::: check
given: B = 1 | 1.5 | 3
answer: B/50e-6
tolerance: 0.5%

## An MRI makes {B} T. How many times Earth's 50 µT field is that?

::: misses
- [any] Divide, with both in teslas.
:::
:::

::: check
given: G = 0.5 | 1 | 100
answer: G*1e-4*1e6
unit: µT
tolerance: 0.5%

## How many microteslas is {G} G?

::: misses
- [G*1e-4] That's in teslas. Convert to µT.
- [any] 1 G = 100 µT.
:::
:::

::: check
kind: choice

## A magnet is broken into four pieces. How many north poles are there now?

- [ ] One
- [ ] Two
- [x] Four
- [ ] None

::: right
Right. Every piece is a complete magnet.
:::

::: misses
- [1] Each piece gets its own pair of poles.
- [2] Each of the four pieces has a north and a south end.
- [4] Breaking a magnet doesn't destroy the alignment.
:::
:::
:::
