Academy
Formulas/physics/Moving Charges/Field Inside a Solenoid

Field Inside a Solenoid

n = N/L is turns per unit length. Derived via Ampere's law on a rectangular loop. Field is uniform inside, zero outside an ideal infinite solenoid.
Class 12
Derivation

Setup

An ideal solenoid: NN total turns, length LL, n=N/Ln = N/L turns per unit length, carrying current II. Ideal means length \gg radius and turns are closely wound.

Field Structure

For an ideal solenoid:

  • Field inside is uniform, directed along the axis.
  • Field outside is negligible (fields from adjacent turns cancel outside).

Rectangular Amperian Loop

Choose loop abcdabcd with side abab of length \ell inside the solenoid (parallel to axis) and side cdcd outside:

SideContribution
abab (inside, Bdl\vec{B} \parallel d\vec{l})BB\ell
cdcd (outside, B0B \approx 0)00
bcbc, dada (perpendicular to axis, Bdl\vec{B} \perp d\vec{l})00
Bdl=B\oint \vec{B} \cdot d\vec{l} = B\ell

Applying Ampere's Law

Turns enclosed by loop: nn\ell. Each carries current II:

B=μ0nIB\ell = \mu_0\,n\ell\,I B=μ0nI\boxed{B = \mu_0 n I}

Key Features

  • BB is uniform inside — independent of position or radius.
  • For a ferromagnetic core of relative permeability μr\mu_r: B=μ0μrnIB = \mu_0\mu_r nI.

Field at the Ends

At either open end of a finite solenoid:

Bend=μ0nI2B_{\text{end}} = \frac{\mu_0 n I}{2}

This follows because an infinite solenoid can be split into two semi-infinite solenoids at any interior point.