---
title: Magnetic dipoles
heading: Current loops as tiny magnets, from compass needles to electrons
eyebrow: B5 · Lesson 7 · Magnetic dipoles
xp: 40
---

::: hook
Seen from far away, any small current loop looks the same: its field depends only on the current times the loop's area, not on its shape. That product, the magnetic moment, describes a coil in a motor, a compass needle, the Earth, and a single electron. It sets the torque a field puts on the loop, the energy it takes to flip it, and the field it makes in turn. It's the link between currents and the magnets of lesson 1, which turn out to be nothing but vast numbers of aligned atomic loops.
:::

::: play
- The solid curve is the exact field on the axis of a coil of radius $R$; the dashed curve is the dipole approximation, which uses only its magnetic moment.
- Close to the coil they differ; beyond a few radii they're indistinguishable.
- Both fall as $1/z^3$ far away, much faster than a wire's $1/r$.
:::
:::

```sim plot
view: graph
x: z = 0.5..20 cm
y: B = 0.001..1000 µT log
slider: NI = 1..50 step 1 = 10 A
slider: R = 1..5 step 0.25 = 2 cm
plot: 4*pi*1e-7*NI*(R/100)^2/(2*((z/100)^2 + (R/100)^2)^1.5)*1e6 | label: exact, on the axis
plot: 4*pi*1e-7*NI*(R/100)^2/(2*(z/100)^3)*1e6 | label: dipole approximation | dashed | color: ch2
readout: magnetic moment, A·m² = NI*pi*(R/100)^2 | digits: 3
readout: exact / dipole at 3 radii = 27/10^1.5 | digits: 4
```

::: predict
## The Earth's magnetic moment is about 8 × 10²² A·m². Treating it as a dipole at the Earth's center, what field does it make at the equator, on the surface (radius 6371 km)?

- [ ] About 3 µT
- [x] About 30 µT
- [ ] About 300 µT
- [ ] About 3 T

::: reveal
About 30 µT: $\frac{\mu_0\mu}{4\pi R^3} = \frac{10^{-7} \times 8 \times 10^{22}}{(6.37 \times 10^6)^3} = 31$ µT. At the poles, on the dipole's axis, it's twice that, about 60 µT, close to what's measured. The Earth's field really is mostly a dipole, made by currents in its molten iron core.
:::
:::

::: nameit
## Magnetic moment

A flat loop of area $A$ carrying current $I$, with $N$ turns, has **magnetic moment**

$$\boldsymbol\mu = NIA\,\hat{\mathbf n}$$

in A·m², pointing along the loop's normal by the right-hand rule (fingers along the current, thumb along μ).

## In a field

A uniform field puts no net force on a loop but a torque that turns μ to line up with $\mathbf B$:

$$\boldsymbol\tau = \boldsymbol\mu \times \mathbf B, \qquad \tau = \mu B\sin\theta$$

with potential energy

$$U = -\boldsymbol\mu \cdot \mathbf B = -\mu B\cos\theta$$

lowest when aligned. Flipping a dipole from aligned to opposed takes $2\mu B$. A non-uniform field also pulls an aligned dipole toward stronger field, which is why magnets pick up iron.

## Its own field

Far from a loop ($r \gg$ its size), its field has the dipole form:

$$B_\text{axis} = \frac{\mu_0\mu}{2\pi z^3} \qquad B_\text{side} = \frac{\mu_0\mu}{4\pi r^3}$$

the same shape as the electric dipole of B2.4, with $\frac{\mu_0}{4\pi}$ in place of $k$.

## Atomic dipoles

An electron carries a magnetic moment of about one **Bohr magneton**, $\mu_B = \frac{e\hbar}{2m_e} = 9.27 \times 10^{-24}$ J/T, from its spin. In a field it can point with or against $\mathbf B$, and flipping it absorbs a photon at about 28 GHz per tesla: electron spin resonance. Iron is magnetic because many of its electrons' moments line up together (lesson 10).
:::

::: example
## A 100-turn coil of radius 2 cm carries 0.1 A. Find its moment, the most torque the 50 µT Earth field can put on it, and its own field 50 cm along its axis.

::: solution
1. **Moment.**
   $$\begin{aligned} \mu &= 100 \times 0.1 \times \pi(0.02)^2 \\ &= 0.0126\ \text{A·m}^2 \end{aligned}$$
2. **Largest torque from the Earth's field.**
   $$\begin{aligned} \tau &= \mu B \\ &= 6.3 \times 10^{-7}\ \text{N·m} \end{aligned}$$
3. **Its own field 50 cm along the axis.**
   $$\begin{aligned} B &= \frac{\mu_0\mu}{2\pi z^3} \\ &= \frac{2 \times 10^{-7} \times 0.0126}{0.125} \\ &= 20\ \text{nT} \end{aligned}$$
   That's less than a thousandth of the Earth's field.

**Answer:** the moment is 0.0126 A·m², the Earth's field can put at most $6.3 \times 10^{-7}$ N·m of torque on it, and its own field 50 cm along the axis is 20 nT.
:::
:::

::: example
## Check the dipole formula against the exact field of a loop, three radii along its axis.

::: solution
1. **Exact field of the loop.**
   $$B_\text{exact} = \frac{\mu_0IR^2}{2(z^2 + R^2)^{3/2}}$$
2. **Dipole field.**
   $$B_\text{dipole} = \frac{\mu_0IR^2}{2z^3}$$
3. **Ratio at three radii.** At $z = 3R$,
   $$\begin{aligned} \frac{B_\text{exact}}{B_\text{dipole}} &= \frac{27}{10^{3/2}} \\ &= 0.854 \end{aligned}$$
4. **Read off the error.** The dipole formula is 17% high there, and within 1% beyond about 12 radii.

**Answer:** three radii out the dipole formula reads 17% high; it comes within 1% beyond about 12 radii.
:::
:::

::: check
given: N = 10 | 200; I = 0.1 | 2; r = 1 | 3
answer: N*I*pi*(r/100)^2
unit: A·m²
tolerance: 0.5%

## A coil of {N} turns and radius {r} cm carries {I} A. What is its magnetic moment?

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

::: misses
- [I*pi*(r/100)^2] Multiply by the number of turns.
- [N*I*2*pi*r/100] Use the area, not the circumference.
- [any] Not yet. $\mu = NIA$.
:::
:::

::: check
given: mu = 0.01 | 0.1; B = 0.05 | 0.5; th = 30 | 90
answer: mu*B*sin(th°)*1000
unit: mN·m
tolerance: 0.5%

## A dipole of {mu} A·m² sits at {th}° to a {B} T field. What torque acts on it?

::: right
Right. $\mu B\sin\theta$ = {answer}.
:::

::: misses
- [mu*B*cos(th°)*1000] Torque uses $\sin\theta$; it's zero when aligned.
- [any] Not yet. $\tau = \mu B\sin\theta$.
:::
:::

::: check
given: mu = 0.01 | 1; z = 10 | 50
answer: 2e-7*mu/(z/100)^3*1e9
unit: nT
tolerance: 0.5%

## What field does a {mu} A·m² dipole make on its axis {z} cm away?

::: right
Right. $\frac{\mu_0\mu}{2\pi z^3}$ = {answer}.
:::

::: misses
- [1e-7*mu/(z/100)^3*1e9] That's the side-on value; on the axis it's twice that.
- [2e-7*mu/(z/100)^2*1e9] A dipole's field falls as $1/z^3$.
- [any] Not yet. $\frac{\mu_0\mu}{2\pi z^3}$.
:::
:::

::: check
given: mu = 0.05 | 0.5; B = 0.1 | 1
answer: 2*mu*B
unit: J
tolerance: 0.5%

## How much energy does it take to flip a {mu} A·m² dipole from aligned to opposed in a {B} T field?

::: right
Right. From $-\mu B$ to $+\mu B$: {answer}.
:::

::: misses
- [mu*B] That only gets it to square with the field.
- [any] Not yet. $\Delta U = 2\mu B$.
:::
:::

::: check
given: z = 2 | 4 | 6
answer: z^3/(z^2 + 1)^1.5
tolerance: 0.5%

## On a loop's axis, at {z} radii away, what is the exact field divided by the dipole approximation?

::: right
Right. $\frac{z^3}{(z^2 + R^2)^{3/2}}$ = {answer}.
:::

::: misses
- [(z^2 + 1)^1.5/z^3] Upside down.
- [any] Not yet. Divide the exact formula by the dipole one.
:::
:::

::: check
given: mu = 6 | 10; R = 6371 | 3390
answer: 1e-7*mu*1e22/(R*1000)^3*1e6
unit: µT
tolerance: 0.5%

## A planet of radius {R} km has a dipole moment of {mu} × 10²² A·m². What field does it make at its magnetic equator, on the surface?

::: right
Right. $\frac{\mu_0\mu}{4\pi R^3}$ = {answer}.
:::

::: misses
- [2e-7*mu*1e22/(R*1000)^3*1e6] That's the pole value; the equator is side-on.
- [any] Not yet. Side-on dipole field.
:::
:::

::: explain
## Why does a current loop's far field depend only on $IA$, not on the loop's shape?

::: model
Far from the loop, every part of it is at nearly the same distance, so the details of where the wire runs blur together. What survives is how much current circulates and over how much area: the moment $IA$. A square, a circle or an irregular loop with the same $IA$ produce the same far field, just as a charge distribution far away looks like its total charge. Shape only matters close up, where some parts of the loop are noticeably nearer than others.
:::
:::

::: practice

::: check
given: a = 2 | 5; I = 1 | 3
answer: I*(a/100)^2
unit: A·m²
tolerance: 0.5%

## A single square loop of side {a} cm carries {I} A. What is its magnetic moment?

::: misses
- [any] $IA$ with $A = a^2$.
:::
:::

::: check
given: B = 0.35 | 1.5 | 3
answer: 28*B
unit: GHz
tolerance: 0.5%

## About what frequency flips an electron's spin in a {B} T field (28 GHz per tesla)?

::: misses
- [any] 28 GHz per tesla.
:::
:::

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

## How does a dipole's far field change when you move {k} times farther away?

::: misses
- [1/k^2] Dipole fields fall as $1/r^3$.
- [any] $1/k^3$.
:::
:::
:::
