Historical Context & Motivation
The relationship between electricity and magnetism was one of the great unifying discoveries of nineteenth-century physics. When Hans Christian Ørsted demonstrated in 1820 that an electric current deflects a compass needle, it became clear that moving charges produce magnetic fields. Scientists immediately sought to shape and amplify those fields for practical use, and the solenoid — a helical coil of wire carrying a steady current — emerged as the most elegant solution. Understanding the magnetic field inside an ideal solenoid is not only a cornerstone of electromagnetic theory but also the foundation for devices ranging from MRI magnets to particle accelerators.
The central question this lesson addresses is deceptively simple: given a long, tightly wound solenoid carrying a steady current, what is the magnetic field inside and outside it, and how do we derive that result rigorously from Ampère's law? Answering this question will demonstrate both the power of symmetry arguments in physics and the practical importance of the ideal solenoid approximation.
Core Principles & Definitions
Before diving into the derivation, it is essential to establish the key physical ideas and idealizations that make the solenoid calculation tractable. A real solenoid is a finite helix of wire, but the ideal solenoid is an abstraction in which the coil is infinitely long and wound so tightly that each turn can be treated as a circular current loop. Under these conditions, symmetry arguments dramatically simplify the problem.
Ideal Solenoid Assumptions
Turn Density n
Ampère's Law (Integral Form)
Symmetry of B Inside
Field Outside = 0
Visual Explanation — Solenoid Geometry & Field Lines
In the diagram above, the solenoid is oriented horizontally with its axis running left to right. The ⊗ symbols along the top represent current flowing into the page, while the ⊙ symbols along the bottom represent current emerging from the page — these are the two visible cross-sections of the same helical wire as it wraps around the cylindrical form. The critical observation is that the field lines inside are parallel, equally spaced, and purely axial, which encodes the uniformity of the interior field. Outside the solenoid, contributions from adjacent turns cancel almost perfectly, leaving essentially no external field. This cancellation becomes exact in the limit of an infinitely long, tightly wound coil — the ideal solenoid approximation.
Mathematical Framework — Deriving B via Ampère's Law
The derivation of the magnetic field inside an ideal solenoid is a showcase for the power of Ampère's law combined with symmetry reasoning. We begin by stating the law in its integral form, then choose an Amperian loop that exploits the solenoid's geometry to reduce the problem to simple algebra.
Choosing the Amperian Loop
We choose a rectangular Amperian loop with one long side (length l) running along the interior of the solenoid parallel to the axis, the opposite long side running outside the solenoid, and two short sides connecting them perpendicular to the axis. Because B is purely axial inside and zero outside, only the interior segment contributes to the line integral. The two perpendicular segments contribute nothing because B ⊥ dl along those paths, and the outside segment contributes nothing because B = 0 there.
Therefore the left-hand side of Ampère's law reduces to B × l. The enclosed current equals the current through each turn, I, multiplied by the number of turns threaded by the loop. If the turn density is n = N/L, then the number of turns in length l is n l, giving Ienc = n l I.
Detailed Breakdown — The Amperian Rectangle
Evaluating Each Side of the Loop
| Segment | Direction of dl⃗ | Value of B⃗ · dl⃗ | Reason |
|---|---|---|---|
| Side 1 (interior) | Parallel to axis (ẑ direction) | B · l | B is uniform and parallel to dl along the entire segment |
| Side 2 (right, radial) | Perpendicular to axis (radially outward) | 0 | B is axial; B ⊥ dl → dot product vanishes |
| Side 3 (exterior) | Anti-parallel to axis (−ẑ direction) | 0 | B = 0 outside an ideal solenoid |
| Side 4 (left, radial) | Perpendicular to axis (radially inward) | 0 | B is axial; B ⊥ dl → dot product vanishes |
Summing the four segments, the total line integral is simply B × l. The number of turns enclosed by the loop is n × l, each carrying current I, so Ienc = nIl. Setting B · l = μ₀ · n · I · l and canceling l from both sides immediately yields the result B = μ₀nI. The cancellation of l is physically significant: it confirms that the field does not depend on how long or short our sampling loop is, which is consistent with the field being truly uniform everywhere inside.
Worked Example — MRI Solenoid
Let us compute the magnetic field inside a solenoid representative of a clinical MRI magnet. A solenoid has a total of 15,000 turns wound over a length of 2.0 m and carries a current of 120 A. We wish to find the magnitude of the interior magnetic field.
Ideal vs. Real Solenoid — Strengths & Limitations
The ideal solenoid model is extraordinarily useful, but it is important to understand where it succeeds and where finite-length and finite-winding effects cause deviations. The table below contrasts the idealized model with the behavior of a real laboratory or engineering solenoid.
| Feature | Ideal Solenoid | Real (Finite) Solenoid |
|---|---|---|
| Interior field uniformity | Perfectly uniform everywhere inside | Approximately uniform near the center; decreases toward the ends |
| Field at the ends | Not applicable (infinite length) | B ≈ μ₀nI / 2 at each open end (half the central value) |
| Exterior field | Identically zero | Non-zero but weak; resembles a bar magnet's dipole field at large distances |
| Dependence on cross-section | None — any shape gives the same B | Slight dependence near ends due to fringe effects |
| Helical pitch | Zero (turns are perfectly planar rings) | Finite pitch introduces a small longitudinal current and a weak azimuthal B component |
| Applicability criterion | L → ∞ | Excellent when L ≫ diameter and far from the ends (central ~80 %) |
Connections to Advanced Electromagnetic Theory
The ideal solenoid is a gateway to several advanced topics in electromagnetism. It provides the simplest concrete setting for understanding magnetic flux, inductance, and the behavior of magnetic fields in magnetic materials. The table below shows how the basic solenoid result connects to these more advanced concepts.
| Concept | Relation to Solenoid Field | Key Formula |
|---|---|---|
| Magnetic Flux (Φ) | The uniform B inside allows straightforward computation of flux through the cross-section, critical for Faraday's law. | Φ = BA = μ₀nIA |
| Self-Inductance (L) | The total flux linkage NΦ divided by I gives the inductance of the solenoid, fundamental to AC circuits and energy storage. | L = μ₀n²AL (= μ₀N²A/L) |
| Stored Energy | The energy density of the magnetic field, u = B²/(2μ₀), integrated over the solenoid volume, gives total stored energy. | U = ½LI² = B²AL/(2μ₀) |
| Solenoid with Core | Inserting a material with relative permeability μᵣ multiplies the field by μᵣ, dramatically enhancing B in ferromagnetic cores. | B = μ₀μᵣnI |
These extensions illustrate why the ideal solenoid is far more than an academic exercise. The derivation of B = μ₀nI is the first step toward understanding transformers, inductors, electromagnets, and the magnetic energy that plays a central role in circuits, plasma physics, and astrophysical phenomena. In a course on advanced electrodynamics, you will encounter the vector potential A⃗ of a solenoid, which is non-zero outside the solenoid even though B = 0 there — a subtlety with deep implications for quantum mechanics (the Aharonov–Bohm effect).
Practice Problems
Lesson Summary
An ideal solenoid is an infinitely long, tightly wound coil that produces a perfectly uniform magnetic field inside and zero field outside. By applying Ampère's law to a carefully chosen rectangular Amperian loop — with one side inside the solenoid parallel to the axis, one side outside, and two perpendicular connecting sides — we showed that the line integral reduces to B × l on the interior side only, while the enclosed current is nIl, yielding the fundamental result B = μ₀nI.
This result depends only on the turn density n (turns per unit length) and the current I — not on the solenoid's radius or cross-sectional shape. The formula connects directly to magnetic flux (Φ = BA), self-inductance (L = μ₀n²AL), and magnetic energy storage (U = ½LI²), making it one of the most foundational results in electromagnetism and a cornerstone for understanding real devices from MRI magnets to particle accelerators.