Magnetic Field of a Solenoid
On this page· 13 sections
Source & scope. Class 12 Physics, Chapter 4 Moving Charges and Magnetism, Section 4.7 The Solenoid. Builds on: Ampere's Circuital Law, [Magnetic Field on the Axis of a Circular Current Loop](/study-materials/phy12-ch04-magnetic-field-on-the-axis-of-a-circular-current-loop) (each turn of the solenoid...
Source & scope. Class 12 Physics, Chapter 4 Moving Charges and Magnetism, Section 4.7 The Solenoid. Builds on: Ampere's Circuital Law, [Magnetic Field on the Axis of a Circular Current Loop](/study-materials/phy12-ch04-magnetic-field-on-the-axis-of-a-circular-current-loop) (each turn of the solenoid behaves approximately as one such loop).
A solenoid is a long, tightly-wound helical coil of insulated wire, and the magnetic field inside a long solenoid is uniform, directed along its axis, and given by B = μ0nI, where n is the number of turns per unit length and I is the current. Outside an idealised long solenoid, the field is taken to be zero, making the solenoid the standard laboratory device for producing a strong, uniform magnetic field.
At a glance
- A long solenoid: length much greater than its radius, wound from enamelled (insulated) wire so adjacent turns don't short-circuit.
- Each turn behaves like a circular loop; the net field is the superposition of all turns' fields.
- For a finite solenoid: field is strong and axial at an interior point, weak but still purely axial (no outward component) at an exterior point.
- In the long-solenoid idealisation: field outside → 0; field inside is uniform and purely axial.
- — Eq. 4.16, derived via Ampere's law on a rectangular loop straddling the solenoid wall.
Learning objectives
- Describe the physical construction of a solenoid and why each turn behaves like a circular current loop.
- Explain, using the finite-solenoid field pattern, why the long-solenoid idealisation has zero external field.
- Derive B = μ0nI using a rectangular Amperian loop.
- Apply the formula to a numerical and check the validity of the long-solenoid approximation.
Prerequisite knowledge
The reader should know Ampere's circuital law in its simplified form BL = μ0Ie, and the idea that a circular current loop produces an axial magnetic field (covered in the sibling "axis of a circular loop" article), since a solenoid is built from many such loops stacked together.
Core explanation
What a solenoid is
A solenoid consists of a long wire wound into a close, tightly-spaced helix, long compared to its radius; the wire is enamelled, so adjacent turns are electrically insulated from one another even though they sit right next to each other. Because each turn is approximately a circular loop carrying the same current, the magnetic field at any point is the vector sum (superposition) of the fields produced by every individual turn — the same superposition principle that governs all magnetic field calculations in this chapter.
The field pattern of a finite solenoid
For a solenoid of finite length (NCERT Fig. 4.15), zooming into the gap between two neighbouring turns (Fig. 4.15a) shows that the fields the two turns separately produce there largely cancel — their circular-loop contributions oppose in that narrow region between turns. Looking at the whole finite solenoid (Fig. 4.15b): at an interior point P near the middle, the net field is strong, uniform, and directed along the solenoid's axis; at an exterior point Q near the middle (outside the windings), the field is comparatively weak, but importantly it is still purely axial — it has no component perpendicular to the axis, it is not scattered in random directions outside.
The long-solenoid idealisation
As the solenoid is made progressively longer relative to its radius (NCERT Fig. 4.16), it begins to behave like an idealised long cylindrical current sheet. In this limit: the field outside the solenoid is taken to be exactly zero, and the field inside becomes uniform and purely axial everywhere across the cross-section, not just near the centre. This idealisation — exact only for an infinitely long solenoid, but an excellent approximation whenever the length is much greater than the radius — is what makes the Ampere's-law derivation below tractable.
Deriving B = μ0nI
Take a rectangular Amperian loop abcd: side ab (length h) lies along the solenoid's axis, entirely inside the solenoid; the opposite side cd lies entirely outside; the two transverse sides bc and ad cross the winding, connecting ab and cd. Evaluate ∮B·dl around this loop piece by piece:
- Along cd (outside): B = 0 by the long-solenoid idealisation, so this side contributes nothing.
- Along bc and ad (the transverse sides): the field inside is purely axial, so B is perpendicular to these sides everywhere along them — their contribution to B·dl is zero.
- Along ab (inside, length h): B is axial and constant, contributing simply B·h.
So the only surviving term is Bh, meaning the effective length in Ampere's law is . If n is the number of turns per unit length, the number of turns enclosed by this loop is nh, each carrying current I, so the total enclosed current is . Ampere's law (simplified form) then gives:
— Eq. 4.16
The field's direction is along the solenoid's axis, found by applying the straight-wire-style right-hand rule to the sense of winding of the current.
Why solenoids matter
A solenoid is the standard way to produce a strong, uniform magnetic field in a laboratory setting, since B = μ0nI can be made large simply by increasing the number of turns per unit length or the current. Placing a soft-iron core inside a solenoid further strengthens the field considerably — the detailed explanation of how magnetic materials respond belongs to the next chapter on magnetism and matter; here it is only a forward-pointer.
Key terms
- Solenoid — a long, tightly-wound helical coil whose length is large compared to its radius.
- Turns per unit length (n) — the number of wire turns per unit length along the solenoid's axis.
- Long-solenoid idealisation — the limit in which external field → 0 and internal field is uniform and axial everywhere across the cross-section.
- Amperian loop (solenoid case) — a rectangle with one side inside the solenoid (along the axis), the opposite side outside, used to derive B = μ0nI.
Diagram / figure guidance
Draw a long solenoid in cross-section (side view), showing closely-spaced circular turns of wire. Draw a rectangular Amperian loop abcd with side ab inside the solenoid (parallel to the axis, arrow showing field direction along it), side cd outside (labelled B = 0), and the two short transverse sides bc, ad crossing the winding perpendicular to the field lines inside. Add field-line arrows inside the solenoid, closely spaced and parallel, spreading out and thinning outside to emphasise the near-zero external field in the long-solenoid limit.
Worked example
(NCERT Example 4.8.) A solenoid of length 0.5 m and radius 1 cm has 500 turns, and carries a current of 5 A. Find the magnitude of the magnetic field inside the solenoid, and confirm that the long-solenoid approximation is valid.
Turns per unit length: n = 500/0.5 = 1000 turns/m.
Check the validity of the long-solenoid approximation: length l = 0.5 m, radius a = 0.01 m, so l/a = 0.5/0.01 = 50. Since l/a ≫ 1 (l is 50 times the radius), the long-solenoid idealisation (uniform axial field inside, zero field outside) is well justified here.
Field inside: B = μ0nI = (4π×10⁻⁷) × 1000 × 5 = 4π × 5 × 10⁻⁴ = (about 6.3 mT).
Common misconceptions
- "The field inside a solenoid is strongest near the ends." False — in the long-solenoid idealisation, the field inside is uniform across the cross-section; the end regions of a real, finite solenoid are actually where the field is weaker and less uniform than near the middle.
- "The field just outside a solenoid is strong but in a random direction." False — even for a finite solenoid, the exterior field is weak and purely axial (per NCERT's own figure); in the long-solenoid idealisation it is taken to be exactly zero.
- "B = μ0nI uses the total number of turns, N." False — n is turns per unit length, not the total turn count N; confusing the two is a very common numerical error (as seen in the worked example, n = N/l).
- "A solenoid's field depends on its radius." False — B = μ0nI has no explicit dependence on the solenoid's radius at all, only on n and I (within the long-solenoid approximation).
Exam application (NEET & JEE)
Solenoid numericals almost always require computing n = N/l first (a frequent silent error is substituting total turns N directly for n), then applying B = μ0nI. A standard variant gives l, a, N, and I and asks students to first verify l ≫ a before trusting the formula. Conceptual questions test the uniform-and-axial nature of the interior field, the near-zero exterior field in the idealised limit, and occasionally the forward-link to how a soft-iron core increases B (detailed only in the next chapter).
Frequently asked questions
- What is the formula for the magnetic field inside a long solenoid? B = μ0nI, where n is the number of turns per unit length and I is the current through the solenoid.
- Is the magnetic field inside a solenoid uniform? Yes — in the long-solenoid idealisation, the field inside is uniform in magnitude and direction (along the axis) everywhere across the solenoid's cross-section.
- What is the magnetic field outside an ideal long solenoid? It is taken to be zero in the long-solenoid idealisation; for a real, finite solenoid it is small but still purely axial, not zero or random.
- How is n different from the total number of turns N? n = N/l is the number of turns per unit length, found by dividing the total turns N by the solenoid's length l; B = μ0nI uses n, not N directly.
- Why does a soft-iron core increase a solenoid's field? The core's magnetic response adds to the field produced by the current alone; the mechanism is covered in the next chapter on magnetic materials.
Practice questions (original practice questions)
- A solenoid of length 1 m has 2000 turns and carries a current of 2 A. Taking μ0 = 4π×10⁻⁷ T·m/A, the field inside is closest to:
- (a) 2.5×10⁻³ T
- (b) 5×10⁻³ T
- (c) 1×10⁻² T
- (d) 1.25×10⁻³ T
- Answer: (b) — n = 2000/1 = 2000; B = μ0nI = 4π×10⁻⁷×2000×2 ≈ 5×10⁻³ T.
- In the formula B = μ0nI for a solenoid, the symbol n represents:
- (a) the total number of turns
- (b) the number of turns per unit length
- (c) the number of layers of winding
- (d) the radius of the solenoid
- Answer: (b)
- In the idealised long-solenoid limit, the magnetic field just outside the solenoid is:
- (a) equal to the inside field
- (b) exactly zero
- (c) always negative
- (d) directed radially outward
- Answer: (b)
- For the long-solenoid approximation (used to derive B = μ0nI) to be valid, a solenoid's length l and radius a should satisfy:
- (a) l ≪ a
- (b) l ≈ a
- (c) l ≫ a
- (d) there is no such requirement
- Answer: (c)
- If the number of turns per unit length of a solenoid is doubled while the current is kept the same, the internal field:
- (a) doubles
- (b) halves
- (c) remains unchanged
- (d) quadruples
- Answer: (a) — B = μ0nI is directly proportional to n.
Quick revision
- Solenoid: long, tightly-wound helical coil; each turn behaves like a circular current loop.
- Finite solenoid: strong axial field inside at mid-point; weak but still axial field outside.
- Long-solenoid idealisation: field outside → 0; field inside uniform and axial everywhere.
- Derivation uses a rectangular Amperian loop (one side inside, one outside): (Eq. 4.16).
- n = turns per unit length = N/l, not the total turn count N.
Related articles
- Builds on: Ampere's Circuital Law, Magnetic Field on the Axis of a Circular Current Loop
- See also: Magnetic Field Inside and Outside a Current-Carrying Cylindrical Wire
- Related topics: Biot-Savart Law, Biot-Savart Law vs Coulomb's Law — Similarities and Differences, Circular Motion of a Charged Particle in a Magnetic Field, Conversion of a Galvanometer to a Voltmeter, Conversion of a Galvanometer to an Ammeter, Current Loop as a Magnetic Dipole