Magnetic Field of a Solenoid
Imagine you take a long wire and wind it into a tight, helical coil — that's a solenoid. If you've ever seen a spring, it looks just like that. Now pass a current through this coil. Each loop of wire produces its own tiny magnetic field, and when you pack many loops close together, those individual fields add up.
The key insight is superposition: the total field at any point is the vector sum of the fields from every turn. Inside the coil, the fields from adjacent turns reinforce each other. Outside, they tend to cancel. The result is striking — a long solenoid behaves almost like a bar magnet, with a uniform field inside and a very weak field outside.
The solenoid is the magnetic analogue of a parallel-plate capacitor: it creates a uniform field in a confined region.
The Precise Statement
For an ideal solenoid — infinitely long, tightly wound, with negligible spacing between turns — the magnetic field is:
- Inside: uniform, directed along the axis of the solenoid, with magnitude
B=μ0nI
where n=N/L is the number of turns per unit length, I is the current, and μ0=4π×10−7T⋅m/A is the permeability of free space.
- Outside: nearly zero (strictly zero for an ideal solenoid; for a real one, it's very small and falls off rapidly with distance).
The direction of the field inside follows the right-hand rule: curl your fingers in the direction of the current around the coil, and your thumb points along the field inside.
Binside=μ0nI
Why Is the Field Uniform Inside?
Consider a rectangular Amperian loop that runs along the axis inside the solenoid, goes out radially, runs parallel to the axis outside, and returns. Ampère's law says:
∮B⋅dl=μ0Ienc
The outside field is negligible, so only the inside segment contributes. The enclosed current is nLI for a loop of axial length L. This gives:
BL=μ0(nLI)⇒B=μ0nI …