Sub topic 9
Field of a Solenoid and a Toroid
This chapter applies Ampère's law to two coil geometries that JEE problems use constantly: the long straight solenoid and the toroid. You should already know Ampère's circuital law and the field of a long straight wire. You should also be comfortable with the right-hand rule for current loops and with the field on the axis of a circular loop. The goal is to derive each result from symmetry and to learn where the formulas stop being valid.
The solenoid
A solenoid is a wire wound in a tight helix on a cylinder. Each turn is close to a circular loop, and the loops share a common axis. Let the winding have n turns per unit length, and let the wire carry current I.
Near the middle of a long solenoid, the field has these properties:
- It points along the axis. The direction comes from the right-hand rule: curl the fingers of your right hand along the current in the turns, and the thumb gives the direction of B inside.
- It is nearly uniform across the cross-section.
- Outside the solenoid it is very small, and it tends to zero for an ideal infinite solenoid.
The key point is that the field of each turn adds on the inside. Between neighbouring turns, the fields of the individual loops partly cancel on the outside, because the return field of one loop opposes that of its neighbours.
Ampère's law for an ideal solenoid
Take a rectangular Amperian loop abcd with side ab of length L inside the solenoid and parallel to the axis. Side cd lies outside, also parallel to the axis. The sides bc and da are perpendicular to the axis.
The line integral of B around the loop is split into four parts:
- Along ab, B is uniform and parallel to the path, so the contribution is BL.
- Along bc and da, B is either perpendicular to the path or zero, so these contribute nothing.
- Along cd, the field is zero outside an ideal solenoid, so this contributes nothing.
The current enclosed by the loop is the number of turns that pass through it, nL, times I. Ampère's law, ∮B·dl = μ0 I_enc, gives
BL = μ0 n L I
which simplifies to
B = μ0 n I
The result does not depend on the radius of the solenoid or on the position inside it. Only n and I matter. If the solenoid has N turns over a length ℓ, then n = N/ℓ.
Field at the end of a solenoid
At the centre of one end face of a long solenoid, the field is half the interior value:
B_end = μ0 n I / 2
The reason is superposition. Imagine an infinitely long solenoid, which gives μ0 n I at any interior point. Cut it in two at that point. By symmetry each half contributes equally, so each half gives μ0 n I / 2 at the cut. A semi-infinite solenoid therefore gives half the value on its end face.
Finite solenoid on the axis
For a solenoid of finite length, the axial field comes from integrating the loop formula over the turns. If the point on the axis sees the two ends at angles θ1 and θ2 from the axis (measured to the edge of the end turns), the field is
B = (μ0 n I / 2)(cos θ1 + cos θ2)
For a very long solenoid at the centre, both angles tend to zero, cos θ → 1, and B → μ0 n I. At an end of a long solenoid, one angle is 90 degrees and the other is near zero, which gives μ0 n I / 2 again.
The next program checks this by adding up the axial fields of individual loops spread along a solenoid.
import numpy as np
MU0 = 4e-7 * np.pi
def loop_axis(I, R, x):
return MU0 * I * R**2 / (2 * (R**2 + x**2) ** 1.5)
def solenoid_axis(I, R, length, n_per_m, x, steps=20000):
# Field at axial position x; the solenoid spans from 0 to length.
z = np.linspace(0, length, steps)
dz = z[1] - z[0]
# Each slice of width dz carries n_per_m * dz turns.
return np.sum(n_per_m * dz * loop_axis(I, R, x - z))
I, R, L, n = 2.0, 0.02, 2.0, 1000.0
print("ideal :", MU0 * n * I)
print("centre :", solenoid_axis(I, R, L, n, L / 2))
print("end :", solenoid_axis(I, R, L, n, 0.0))
print("half :", MU0 * n * I / 2)The centre value is almost exactly μ0 n I. The end value is close to half of it. The match improves as length grows relative to radius.
Worked example
A solenoid is 50 cm long, has 500 turns, and carries 4 A.
- n = 500 / 0.50 = 1000 turns per metre.
- B = μ0 n I = (4π × 10⁻⁷)(1000)(4) ≈ 5.03 × 10⁻³ T.
- At the centre of an end face, B ≈ 2.5 × 10⁻³ T.
The toroid
A toroid is a solenoid bent into a circle, so that it closes on itself. Its winding forms a doughnut shape. Let it have N turns in total, carrying current I, with the mean radius r and a circular or rectangular cross-section.
Ampère's law for a toroid
By symmetry, the field lines inside the winding are circles about the toroid's axis, and B has the same magnitude everywhere on a given circle. Choose an Amperian circle of radius r that lies inside the winding.
- The line integral is B · 2πr, because B is tangent to the circle and constant along it.
- The circle is threaded by N turns, each carrying I, so the enclosed current is NI.
Ampère's law gives B · 2πr = μ0 N I, and so
B = μ0 N I / (2π r)
Unlike the solenoid, the field depends on r. It is stronger near the inner edge of the winding and weaker near the outer edge. If the cross-section is small compared with the mean radius, B is nearly uniform and equals μ0 n I, where n = N / (2π r).
Now check two other circles:
- A circle inside the central hole (radius less than the inner radius). It encloses no current, so B = 0.
- A circle outside the whole toroid (radius greater than the outer radius). Each turn crosses the plane of the circle twice, once going in and once coming out. The net enclosed current is zero, so B = 0.
The field is therefore confined to the space inside the winding. This is the reason toroids are used when stray fields must be avoided.
Worked example
A toroid has 1200 turns, an inner radius of 8 cm, an outer radius of 12 cm, and a current of 3 A.
- The field varies with r. At the inner edge, B = μ0 N I / (2π r) = (4π × 10⁻⁷)(1200)(3) / (2π × 0.08) = 9.0 × 10⁻³ T.
- At the outer edge, r = 0.12 m, giving 6.0 × 10⁻³ T.
- At the mean radius of 0.10 m, B = 7.2 × 10⁻³ T.
import math
MU0 = 4e-7 * math.pi
def toroid_field(N, I, r):
return MU0 * N * I / (2 * math.pi * r)
for r in (0.08, 0.10, 0.12):
print(r, toroid_field(1200, 3, r))Comparing the two
| Feature | Long solenoid | Toroid |
|---|---|---|
| Field inside | μ0 n I, uniform | μ0 N I / (2π r), varies with r |
| Field outside | About zero (ideal) | Exactly zero in the hole and outside |
| Field lines | Straight, parallel to axis | Circles about the toroid axis |
| Ends | Field at end is μ0 n I / 2 | No ends |
| Symmetry used | Rectangular loop, translation | Circular loop, rotation |
Common errors
- Using n as total turns. In B = μ0 n I, n is turns per unit length. Divide N by the length first.
- Applying the infinite-solenoid formula near the ends. The result μ0 n I holds only well inside a solenoid whose length is much greater than its radius. At the end face, use half.
- Forgetting the radius dependence in a toroid. B changes with r. Only for a thin toroid is it treated as constant.
- Assuming the toroid has field outside. An ideal toroid has none, in the hole or beyond the outer edge.
- Counting turns incorrectly in the Amperian loop. The enclosed current is the current times the number of wires that pass through the loop, not the total current in the whole coil.
- Getting the direction wrong. Use the curled-fingers rule on the turns, not the straight-wire rule.
Exercises
Exercise
A solenoid of length 40 cm has 800 turns and carries 5 A. Find the field at the centre and at the centre of an end face.
Show answer
n = 800 / 0.40 = 2000 turns per metre. At the centre, B = μ0 n I = (4π × 10⁻⁷)(2000)(5) ≈ 1.26 × 10⁻² T. At the end face the field is half of this, about 6.3 × 10⁻³ T (treating the solenoid as long compared with its radius).
Exercise
A toroid with 500 turns has a mean radius of 20 cm and carries 2 A. Find the field at the mean radius, and the field at a point 5 cm from the axis.
Show answer
At r = 0.20 m, B = μ0 N I / (2π r) = (4π × 10⁻⁷)(500)(2) / (2π × 0.20) = 1.0 × 10⁻³ T. A point 5 cm from the axis lies in the central hole, where an Amperian circle encloses no current, so B = 0.