01 / 21

Magnetic Field:
Solenoid

Master the ideal solenoid and learn to compute its uniform interior magnetic field using Ampère's law: \( B = \mu_0 n I \).

Physics 2

What Is a Solenoid?

A solenoid is a long, tightly wound helical coil of wire designed to produce a nearly uniform magnetic field inside when current flows through it. Think of it as many circular loops stacked end to end.

Uniform \( B \) inside
Current-carrying coils
\( S \)
\( N \)

Key Parameters

\( N \)
Total number of turns (loops) wound around the solenoid.
\( L \)
Length of the solenoid (meters). Must be much greater than its radius for an ideal solenoid.
\( n = N/L \)
Turn density: the number of turns per unit length (turns/m).
\( I \)
Current flowing through the wire (amperes).

Why Solenoids Matter

Solenoids are everywhere in engineering and physics. Their uniform interior field makes them ideal for controlled magnetic environments.

MRI Machines
Superconducting solenoids create the strong, uniform fields needed for medical imaging.
Electromagnets
Door locks, relay switches, and car starters all rely on solenoid-driven electromagnets.
Particle Physics
Solenoids guide charged particles in accelerators and detectors with precise field control.

Ampère's Law Review

Ampère's law relates the line integral of the magnetic field around a closed loop to the total enclosed current:

For an ideal solenoid, we choose a rectangular Ampèrian loop that exploits the symmetry: the field is uniform inside (parallel to the axis) and zero outside.

✕ ✕ ✕ ✕ ✕ ✕ ✕
\( B \)
Ampèrian loop Cross-section view (side) Inside Outside
\( B \approx 0 \)

Deriving \( B = \mu_0 n I \)

1
Choose an Ampèrian loop: a rectangle of length \( l \) with one side inside the solenoid and one side outside.
2
Evaluate the line integral. The two vertical sides contribute zero (perpendicular to \( \vec{B} \)). The outside horizontal side also contributes zero (\( B \approx 0 \) outside). Only the inside segment gives \( B \cdot l \).
3
Count enclosed current. The loop encloses \( n \cdot l \) turns, each carrying current \( I \), so \( I_{\text{enc}} = nlI \).
4
Apply Ampère's law: \( Bl = \mu_0 n l I \). Cancel \( l \) to get the result.

The Ideal Solenoid Formula

\( B \)
Magnetic field strength inside the solenoid (tesla, T)
\( \mu_0 \)
Permeability of free space: \( 4\pi \times 10^{-7} \;\text{T}\cdot\text{m}\cdot\text{A}^{-1} \)
\( n \)
Turn density: \( N / L \) (turns per meter)
\( I \)
Current through the wire (amperes, A)

Solenoid vs. Single Loop vs. Bar Magnet

Property Solenoid Single Loop Bar Magnet
Source Many coils + current One coil + current Aligned atomic dipoles
Interior field Uniform Non-uniform Non-uniform
Formula \( \mu_0 n I \) \( \frac{\mu_0 I}{2R} \) (center) No simple formula
Controllable? Yes (vary \( I \)) Yes No
External field shape Dipole-like Dipole-like Dipole

Field Lines: Inside vs. Outside

Uniform B (inside) Weak, curved (outside)
\( S \)
\( N \)

How to Compute \( B \)

1
Identify the given quantities: \( N \) (total turns), \( L \) (length), and \( I \) (current).
2
Compute the turn density: \( n = N / L \) (turns per meter). If \( n \) is given directly, skip this step.
3
Apply the formula: \( B = \mu_0 n I \) where \( \mu_0 = 4\pi \times 10^{-7} \;\text{T}\cdot\text{m}\cdot\text{A}^{-1} \).
4
Check units and reasonableness. Typical lab solenoids produce fields on the order of \( 10^{-3} \) to \( 10^{-2} \;\text{T} \).
5
Determine direction using the right-hand rule: curl fingers in the direction of current flow; your thumb points in the direction of \( \vec{B} \) inside.

Example 1: Basic Calculation

A solenoid has \( N = 500 \) turns wound over a length of \( L = 0.25 \;\text{m} \). A current of \( I = 3.0 \;\text{A} \) flows through the wire. Find the magnetic field inside.

1
Turn density: \( n = \dfrac{N}{L} = \dfrac{500}{0.25} = 2000 \;\text{turns/m} \)
2
Apply formula: \( B = \mu_0 n I = (4\pi \times 10^{-7})(2000)(3.0) \)
3
Calculate: \( B = 4\pi \times 10^{-7} \times 6000 = 24\pi \times 10^{-4} \)

Example 2: Finding Required Current

An MRI solenoid must produce a field of \( B = 1.5 \;\text{T} \). It has a turn density of \( n = 2400 \;\text{turns/m} \). What current is needed?

1
Rearrange: \( I = \dfrac{B}{\mu_0 n} \)
2
Substitute: \( I = \dfrac{1.5}{(4\pi \times 10^{-7})(2400)} \)
3
Denominator: \( \mu_0 n = 4\pi \times 10^{-7} \times 2400 \approx 3.016 \times 10^{-3} \)

Example 3: Doubling Turns

A solenoid initially has \( n = 1000 \;\text{turns/m} \) carrying \( I = 2.0 \;\text{A} \). If you double the number of turns per meter while keeping the current the same, what happens to \( B \)?

Before
\( B_1 = \mu_0 (1000)(2.0) \)
\( = 2.51 \times 10^{-3} \;\text{T} \)
After
\( B_2 = \mu_0 (2000)(2.0) \)
\( = 5.03 \times 10^{-3} \;\text{T} \)

Direction via the Right-Hand Rule

\( I \) (curl)
\( B \) (thumb)
Curl fingers in direction of current Thumb points in direction of B

Common Mistakes

✕ Using total turns instead of turn density
The formula uses \( n = N/L \), not \( N \) alone. Forgetting to divide by length gives answers that are off by a factor of \( L \).
✕ Wrong value of \( \mu_0 \)
Students sometimes use \( \mu_0 = 4\pi \times 10^{-7} \) but forget the factor of \( \pi \), writing \( 4 \times 10^{-7} \) instead.
✕ Thinking \( B \) depends on radius
The ideal solenoid field is independent of the cross-sectional area or radius. It depends only on \( n \) and \( I \).

Summary Cheat Sheet

Concept Detail
Core formula \( B = \mu_0 n I \)
Turn density \( n = N / L \) (turns per meter)
Permeability \( \mu_0 = 4\pi \times 10^{-7} \;\text{T}\cdot\text{m}\cdot\text{A}^{-1} \)
Interior field Uniform, along the axis
Exterior field Approximately zero (ideal)
Direction Right-hand rule
Dependencies Linear in \( n \) and \( I \); independent of radius

Question 1 of 5

A solenoid has 800 turns and is 0.40 m long. A current of 5.0 A flows through it. What is the magnetic field inside?

Question 2 of 5

If the current through an ideal solenoid is tripled while everything else stays the same, the interior magnetic field:

Question 3 of 5

Which of the following is the correct expression for the turn density of a solenoid?

Question 4 of 5

A solenoid with \( n = 3000 \;\text{turns/m} \) needs to produce a field of \( 0.015 \;\text{T} \). What current is required?

Question 5 of 5

In an ideal solenoid, the magnetic field outside the solenoid is: