Magnetic Field Inside a Solenoid
Also known as: Long Solenoid Formula · Ideal Solenoid B Field
Each turn contributes a circular field; many tightly packed turns add up inside the tube and cancel outside — leaving a near-uniform interior field.
Animated current flowing through coil; B-field along axis pulses.
Equivalent forms
An infinite solenoid's interior field depends only on turn density and current — not on radius or position. A rare case where geometry drops out entirely.
Unit systems
Where it holds
Dimensional analysis
/A)(1/m)(A
Ampère wrapped wire around a glass tube and showed it behaved like a bar magnet — a discovery so important he proposed all magnetism arises from circulating microscopic currents.
How can a hollow tube of wire produce a magnetic field as uniform as a permanent magnet's?
A solenoid 0.4 m long with 1000 turns carries 2 A. Find the magnetic field strength along its axis.
- MRI machines use superconducting solenoids producing 1.5–7 T fields
- Relay coils, fuel injectors, and door locks in cars
- Magnetic confinement coils in tokamak fusion reactors
- Pickup coils in electric guitars
- B does not depend on the solenoid's radius (in the ideal long limit)
- The field is not zero outside — only approximately zero for long solenoids
- Near the ends, B is roughly half the interior value (a useful sanity check)
Limiting cases
What if…
n stays the same, so B is unchanged. Field strength depends on turn density, not absolute count.
Replace with ᵣ. For soft iron, ᵣ , so B grows by orders of magnitude — the basis of electromagnets.
B alternates too, inducing eddy currents in nearby conductors — used in induction cooktops and transformers.
Lab-bench solenoid
- N:
- 1000
- L:
- 0.4
- I:
- 2
- Compute turns/m
- Apply
Current needed for 0.05 T
- n:
- 5000
- B target:
- 0.05
- Rearrange:
- A