Skip to main content

Physics II course sequence · Interactive lesson

Solenoids & Toroids

Wind a wire into a close helix and you get the one magnetic field you can order to specification: axial, uniform, and fixed by turns per metre and current alone. This lesson shows where that uniformity comes from, how much of it survives near the mouths, and what changes when the coil is bent into a closed ring.

UPII-09.04 · Lesson 4 of 8 in this unit. Position is not a completion score.
Starting model: Solenoids & ToroidsOn-axis field of a finite solenoid, plotted as B/μ₀nI against position, with the winding drawn below on the same horizontal scale. The winding is 16 cm long and 4.0 cm across, an aspect ratio ℓ/2R of 4.0. The upper dashed line is the ideal μ₀nI and the lower one half of it; the curve reaches 0.970 at the centre and 0.496 at each mouth.B / μ₀nI1.000.500z / cmℓ = 16 cm
Start with a picture. Change the model in the lab below.
1

Build the model

Turns per metre set the field; the ends decide where that stops being true.

The key idea

A solenoid is a wire wound in a close helix, whose interior magnetic field is axial and uniform with magnitude B = μ₀nI, set by the turns per metre n and the current I and by nothing else.

Example. A winding of 2000 turns per metre carrying 3.0 A gives B = (4π × 10⁻⁷)(2000)(3.0) = 7.5 × 10⁻³ T inside — about 150 times the Earth's field, and the same 7.5 mT whether the bore is 1 cm or 10 cm across.

The complete physical model and assumptions

Stack coaxial current loops closely enough and the individual fields stop being distinguishable: on the axis the contributions simply add, while just off the axis the outward radial part of one loop's field meets the inward radial part of its neighbour and cancels. What is left inside is axial, uniform across the bore, and of magnitude μ₀nI, where n = N/ℓ is turns per metre. The radius does not appear, the wire gauge does not appear, and neither does where inside you stand — which is why a solenoid is the standard way to produce a magnetic field you can trust to a stated value. But that result is a limit, not a fact. It comes from integrating the on-axis loop field over a winding of infinite length, and every real winding ends. Superposing loops over a finite length gives B(z) = (μ₀nI/2)[(ℓ/2 − z)/√((ℓ/2 − z)² + R²) + (ℓ/2 + z)/√((ℓ/2 + z)² + R²)], which reaches μ₀nI only when ℓ ≫ R, sits 3% below it at the centre of a coil four times as long as it is wide, and has fallen to half at the plane of the last turn. Bend the solenoid round until its two mouths meet and the leakage has nowhere to go: a toroid holds μ₀NI/(2πr) inside the windings and essentially nothing outside, at the cost of a field that is no longer uniform across the bore. Fill either with soft iron and the field multiplies by μᵣ — until the iron saturates near 2 T and the linear model quits without warning.

1Why the bore is uniform and the outside is nearly empty

Think of the winding as a stack of coaxial loops carrying the same current. On the axis every loop contributes in the same direction, so the contributions add. Just off the axis each loop's field also has a radial part, but it points outward on one side of the loop's plane and inward on the other, so between two neighbouring turns those parts cancel. Deep inside a long stack only the axial part survives, and it is the same at the wall as at the centre: B = μ₀nI, with n = N/ℓ. The exterior is settled by flux. Whatever flux fills the bore must return outside, and outside it has the whole surrounding space to spread through. A coil of radius 15 mm has a bore area of 7.1 × 10⁻⁴ m²; if the return flux spreads over a region of radius 0.15 m, that is 100 times the area, so the returning field is about a hundredth of the interior value — roughly 68 μT for a coil running at 6.8 mT inside. Make the coil longer and the return path spreads further still, which is the sense in which the ideal exterior field is zero.

2Integrate the loops and the ends appear on their own

A slice of winding of thickness dz′ holds dN = n dz′ turns, so it acts as a single loop carrying n I dz′. The on-axis field of a loop of radius R at axial distance s is μ₀IR²/(2(R² + s²)³⁄²), so the slice contributes dB = μ₀ n I R² dz′ / (2(R² + (z − z′)²)³⁄²). Put w = z′ − z and the integral is the standard one: ∫ dw/(R² + w²)³⁄² = w/(R²√(R² + w²)). The limits run from w = −ℓ/2 − z to w = ℓ/2 − z, and the R² in front cancels the R² the integral leaves behind, giving B(z) = (μ₀nI/2)[(ℓ/2 − z)/√((ℓ/2 − z)² + R²) + (ℓ/2 + z)/√((ℓ/2 + z)² + R²)]. That cancellation is the whole story of the ideal result: let ℓ → ∞ with z fixed and both fractions go to 1, leaving μ₀nI with no R in it at all.

3How long is long enough

Everything about edge effects is controlled by one number, the aspect ratio a = ℓ/2R. At the centre the field is a fraction a/√(a² + 1) of μ₀nI: that is 0.707 for a stubby coil as long as it is wide, 0.894 at a = 2, 0.981 at a = 5, 0.995 at a = 10 and 0.998 at a = 15. So a coil twice as long as it is wide runs 11% below the textbook value at its own centre, while one fifteen times as long is inside 0.2% — good enough to calibrate a magnetometer against. Along the axis the profile is flat in the middle and then falls away: for a coil 0.24 m long and 0.030 m in radius, the field two thirds of the way out from the centre, at z = 0.080 m, is already down to 92% of the centre value, and at the mouth it is 51%. Quote a solenoid's field without quoting where in the coil you mean and you have not said anything useful.

4Close the ring and the leakage has nowhere to go

Bend a solenoid until its mouths join and the winding becomes a toroid. Symmetry now says the field is azimuthal and can depend only on the distance r from the symmetry axis, so take a circle of that radius as a path: its circulation is B(2πr), the current threading it is N I, and B = μ₀NI/(2πr). Take a circle inside the hole instead and it threads no current at all; take one outside the outer wall and it threads N turns going up and N coming back down, which also sums to zero. Both give B = 0. The general licence for this argument is Ampere's law, the next topic; here the symmetry alone does the work. Put numbers on it: 1200 turns at 3.5 A between radii 0.080 m and 0.110 m give 10.50 mT at the inner wall and 7.64 mT at the outer, a 27% spread across a 30 mm bore. At the mean radius 0.095 m the turn density along the winding is 1200/(2π × 0.095) = 2010 m⁻¹, and μ₀ × 2010 × 3.5 = 8.84 mT — the solenoid formula, recovered exactly in the middle of the bore.

5The field outside is small, not zero

A helix is not a stack of closed loops. The wire advances one pitch per turn, so as well as N circulating loops the winding carries one net current I running the length of the solenoid. That axial current produces an azimuthal field outside the coil, B = μ₀I/(2πr): at 3.0 A and 50 mm from the axis it is 12 μT, a quarter of the Earth's field. Small, but not nothing, which is why coils intended for precision work carry a return wire laid back along the outside of the winding, so that the net axial current enclosed by any circle outside the coil is zero. The return has to run alongside the winding and not down the bore: a wire on the axis would clear the outside field but leave its own μ₀I/(2πr) circling inside, which is the one region the coil exists to keep clean. A toroid has the same defect in a different direction: its winding also carries I once around the major circumference, so from outside it behaves like a single loop of that radius. For the 1200-turn toroid above, that equivalent loop has moment I π r̄² = 0.099 A m² and gives only about 0.7 μT at 0.30 m on its axis, against 10.5 mT inside — a factor of 10⁴ down, but a real field, and one that a nearby magnetometer will see.

6What a core actually buys, and where it stops

Fill the bore with soft iron and the applied field aligns the material's own magnetic moments; their contribution adds to the field, giving B = μ₀μᵣ n I. The gain looks spectacular on paper. The 2000 turn per metre coil at 3.0 A produced 7.5 mT empty; with μᵣ = 2000 that formula predicts 15 T. No iron delivers it. The magnetisation runs out near 1.5 to 2 T, and beyond saturation every extra amp adds only its μ₀nI, so the last amp is worth about a two-thousandth of the first. Two further cautions come with cores. μᵣ is not a material constant: it depends on B and on the history of the sample, which is what a hysteresis loop records. And a gap dominates. A 1 mm air gap in a 0.30 m iron path with μᵣ = 2000 contributes 0.001/μ₀ against the iron's 0.300/(2000μ₀) = 0.00015/μ₀, so the gap takes 87% of the magnetic drop and most of the core's advantage with it.

2

Key equations

Read the units, assumptions and limits before substituting.

Ideal solenoid, deep inside

B = μ₀ n I

Radius, wire gauge and position across the bore are all absent, so winding pitch and current alone fix the field.

n = N/ℓ in turns per metre (m⁻¹), I in A, μ₀ = 4π × 10⁻⁷ T m A⁻¹, B in T

On the axis of a finite solenoid

B(z) = (μ₀nI/2)[(ℓ/2 − z)/√((ℓ/2 − z)² + R²) + (ℓ/2 + z)/√((ℓ/2 + z)² + R²)]

The whole edge profile: it tells you how far inside the mouth you must be before μ₀nI is honest.

z measured from the centre, ℓ the winding length, R the winding radius, all in m

Centre of a finite solenoid

Bcentre = μ₀nI × ℓ/√(ℓ² + 4R²)

Turns the word long into a number, so a coil can be sized to a stated field tolerance.

The factor depends only on ℓ/2R: it is 0.894 at ℓ/2R = 2, 0.981 at 5, and 0.998 at 15

At the mouth of the winding

Bend = μ₀nI ℓ/(2√(ℓ² + R²))

Half the interior field marks where the flux begins leaving the bore, and where a coil should not be cut short.

Evaluated in the plane of the last turn; for ℓ ≫ R it becomes μ₀nI/2 exactly

Inside a toroid

B = μ₀ N I/(2π r), a ≤ r ≤ b

Confines the field entirely, but not uniformly: the inner wall exceeds the outer wall by the ratio b/a.

N total turns, r the distance from the toroid's symmetry axis in m, a and b the inner and outer radii

With a magnetic core

B = μ₀ μᵣ n I = μ n I

Multiplies the field at the same current, but only until the core saturates somewhere near 1.5 to 2 T.

μᵣ dimensionless, of order 10³ to 10⁴ for soft iron below saturation; μ in T m A⁻¹
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

16 cm
4 to 30 cm; steps of 1.
2.0 cm
1 to 4 cm; steps of 0.5.
0.0 cm
−20 to 20 cm; steps of 0.5.

Try this. Pull the length down to 4 cm with the radius at 4 cm and the plateau vanishes, the peak falling to 0.447 of μ₀nI; stretch the length to 30 cm and the curve squares off, the mouth value climbing to almost exactly half. Half the field at the end is a long-coil rule, not a universal one.

Live results

B/μ₀nI AT PROBE
0.970
AT THE CENTRE
0.970
AT THE MOUTH
0.496
ASPECT RATIO ℓ/2R
4.0

Results follow this lesson’s model and assumptions. Displayed values are rounded.

Interactive Physics II modelOn-axis field of a finite solenoid, plotted as B/μ₀nI against position, with the winding drawn below on the same horizontal scale. The winding is 16 cm long and 4.0 cm across, an aspect ratio ℓ/2R of 4.0. The upper dashed line is the ideal μ₀nI and the lower one half of it; the curve reaches 0.970 at the centre and 0.496 at each mouth.B / μ₀nI1.000.500z / cmℓ = 16 cm
On-axis field of a finite solenoid, plotted as B/μ₀nI against position, with the winding drawn below on the same horizontal scale. The winding is 16 cm long and 4.0 cm across, an aspect ratio ℓ/2R of 4.0. The upper dashed line is the ideal μ₀nI and the lower one half of it; the curve reaches 0.970 at the centre and 0.496 at each mouth.

Predict → change one variable → check

Plan a change before running it. Every other input stays at the saved baseline.

Saved baseline. Winding length ℓ: 16 cm; Winding radius R: 2.0 cm; Probe position z: 0.0 cm

Baseline 16; choose 4 to 30, in steps of 1.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

Catch the common trap

The formula is B = μ₀nI with n = N/ℓ, not B = μ₀NI. The number of turns is not the quantity that counts; turns per metre is. Unwind a 600-turn coil and rewind the same 600 turns over twice the length and the centre field halves, because the same current is now spread half as densely along the axis. Wind a second 600-turn layer over the original length instead and the field doubles, because n has doubled while the radius has barely changed. The other half of the error is treating μ₀nI as the field everywhere inside the tube. It is the deep-interior value of a winding with ℓ ≫ R. At the plane of the last turn the field is already down to half, and a coil only twice as long as it is wide sits about 11% below μ₀nI even at its own centre.

5

Practice & worked examples

3 authored examples. Make an attempt, then reveal the reasoning one step at a time.

EasyExample 1

A solenoid is wound with 1350 turns spread evenly over a former 0.45 m long and 0.015 m in radius, and carries 1.8 A. Find the turn density, the field deep inside, and the field in the plane of the last turn.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 4 steps revealed.

MediumExample 2

A short air-cored solenoid is 0.24 m long and 0.030 m in winding radius, wound at 2500 turns per metre and carrying 4.0 A. Find μ₀nI, the field at the centre, the field 0.080 m from the centre, and the field at the mouth, and say what fraction of the centre value each of the last two is.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 5 steps revealed.

HardExample 3

A toroid of square cross-section has inner radius 0.080 m, outer radius 0.110 m and height 0.030 m, and carries 3.5 A through 1200 turns. Find the field at the inner and outer walls, the flux through one cross-section by integration, and the flux the mean-radius shortcut predicts. Then test whether a soft-iron core of μᵣ = 900 could deliver 900 times the empty field.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 5 steps revealed.

6

Quick check

Select an answer and explain it before checking.

A solenoid of 600 turns is wound evenly over a length of 0.30 m on a former of radius 0.020 m and carries 2.0 A. It is then unwound and rewound with the same wire, the same 600 turns and the same current, on a former of the same radius but 0.60 m long. What happens to the field at its centre?
7

Review & continue

A solenoid is a wire wound in a close helix, whose interior magnetic field is axial and uniform with magnitude B = μ₀nI, set by the turns per metre n and the current I and by nothing else.

  • Explain the relationship without looking at the equation.
  • Check a sign, a unit and a model assumption in your working.
  • Return to the lab or worked example if a step is still unclear.

Optional supporting lessons

These chapter resources can help with earlier ideas; they are not additional required Physics II completion tasks.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.