E and MMagnetic Fields

Fields Inside Wires, Solenoids and Toroids

Ampère's law gives B = μ₀Ir/(2πR²) inside a wire, μ₀nI in a solenoid and μ₀NI/(2πr) in a toroid.

Not started Jump to practice

Ampère's law finds fields in one line when you can choose a path where $\vec{B}$ is constant and runs along the path (or is zero). Three shapes allow this: a long straight wire (inside and out), a long solenoid, and a toroid.

Key idea

Inside a wire of radius $R$ with current spread evenly: $B = \dfrac{\mu_0 I r}{2\pi R^2}$; outside, $\dfrac{\mu_0 I}{2\pi r}$.
Long solenoid with $n$ turns per meter: $B = \mu_0 nI$ inside, nearly zero outside.
Toroid of $N$ turns, inside the windings: $B = \dfrac{\mu_0 NI}{2\pi r}$.

Why it works

Wire: a circle of radius $r$ inside the wire encloses the fraction $r^2/R^2$ of the current, so $B(2\pi r) = \mu_0 I r^2/R^2$.
Solenoid: use a rectangle with one long side of length $\ell$ inside, along the axis, and the other outside. Outside the field is negligible, and on the short sides $\vec{B}$ is perpendicular to the path. Only the inside side counts: $B\ell = \mu_0(n\ell)I$.
Toroid: a circle of radius $r$ inside the doughnut links all $N$ turns: $B(2\pi r) = \mu_0 NI$. Unlike a solenoid's, the field is weaker toward the outer edge.
A solenoid: a strong, nearly uniform field inside, a weak field outside. Ampère's law with a rectangular path gives $B = \mu_0 nI$.
A toroid: the field stays inside the doughnut and falls off as $1/r$ across it.

Fusion machines such as tokamaks and stellarators hold hot plasma in a toroid's field. Because that field is weaker toward the outside of the doughnut, a field that only runs around the ring cannot hold the plasma: the charged particles drift, and the plasma is pushed outward. So these machines give the field lines a twist, winding them into helices. Explore twisted magnetic bottles in Magnetic Bottles for Fusion in the Science Lab.

Worked examples

Worked example: Inside a thick wire

A wire of radius $2.0\ \text{mm}$ carries $10\ \text{A}$ spread evenly. Find $B$ at $1.0\ \text{mm}$ from the axis and at the surface.
  1. $B(1.0\ \text{mm}) = \dfrac{\mu_0 I r}{2\pi R^2} = \dfrac{(4\pi \times 10^{-7})(10)(1.0 \times 10^{-3})}{2\pi(2.0 \times 10^{-3})^2} = 0.500\ \text{mT}$.
  2. At the surface, $\dfrac{\mu_0 I}{2\pi R} = 1.00\ \text{mT}$: the field grows linearly from zero at the axis to its peak at the surface, then falls as $1/r$.

Answer: $0.500\ \text{mT}$ and $1.00\ \text{mT}$

Worked example: A solenoid

A solenoid $25\ \text{cm}$ long has 500 turns and carries $2.0\ \text{A}$. Find $B$ inside.
  1. $n = 500/0.25\ \text{m} = 2000\ \text{m}^{-1}$.
  2. $B = \mu_0 nI = (4\pi \times 10^{-7})(2000)(2.0) = 5.03\ \text{mT}$.

Answer: $B \approx 5.03\ \text{mT}$

Worked example: A toroid

A toroid of 1000 turns carries $1.0\ \text{A}$. Its windings run from $8.0$ to $12\ \text{cm}$ from the center. Find $B$ at the inner and outer edges of the windings.
  1. $B = \dfrac{\mu_0 NI}{2\pi r}$: at $8.0\ \text{cm}$, $2.50\ \text{mT}$; at $12\ \text{cm}$, $1.67\ \text{mT}$.

Answer: $2.50\ \text{mT}$ to $1.67\ \text{mT}$

Common mistake

"The magnetic field inside a current-carrying wire is zero, like the electric field inside a charged conductor." That electric rule holds only when no charge is moving. In a wire carrying current, the current itself is inside, and an Ampère circle inside the wire encloses part of it. Check with the first example: halfway out, $B$ is half the surface value, not zero. Only on the axis is $B = 0$.
Try it in the Science LabMagnetic Bottles for Fusion

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 3 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax University Physics Volume 2, 12.5 Ampère's Law
  • OpenStax University Physics Volume 2, 12.6 Solenoids and Toroids
  • MIT OpenCourseWare, 8.02 Physics II: Electricity and Magnetism
@teddyrookbook GitHub