Electromagnetismhigh schoolundergraduate

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.

B=μ0nIB = \mu_0 n I
Live simulation
warming up the physics…

Animated current flowing through coil; B-field along axis pulses.

Equivalent forms

B=μ0NLIB = \mu_0 \frac{N}{L} I
B=μ0nI(inside, far from ends)B = \mu_0 n I \quad (\text{inside, far from ends})
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.