Magnetic Field of a Solenoid: Formula and Derivation

Physics · Moving Charges And Magnetism · NEET

Inside a long solenoid the magnetic field is uniform and given by B = mu0 * n * I, where n = N/L is the number of turns per unit length (turns per metre), I is the current, and mu0 = 4pi x 10^-7 T m/A. Outside a long solenoid the field is nearly zero. Memory hook: a solenoid is a "magnetic straw" - the field is packed straight and even inside the tube, and leaks out to almost nothing outside.
Long Solenoid: uniform B inside, ~0 outsideB = mu0 n I (uniform, along axis)Outside:B ~ 0n = N / L turns per metreAt each end: B = mu0 n I / 2
A long solenoid: closely wound turns produce a uniform axial field B = mu0 n I inside (n = turns per metre), while the field outside is nearly zero. At each open end the field falls to half, (mu0 n I)/2.

Your doubts, answered

In B = mu0 n I, is n the total number of turns or turns per metre?

n is turns PER UNIT LENGTH, meaning turns per metre: n = N/L. This is the single most common mistake. If a solenoid has N = 100 turns over L = 0.5 m, then n = 100/0.5 = 200 turns per metre, NOT 100. Always divide total turns by the length in metres before you multiply. Watch the units: if length is given in cm or mm, convert to metres first.

Why does the radius of the solenoid never appear in the formula?

For a long solenoid (length much greater than radius), the field deep inside is uniform and depends only on how tightly the turns are packed (n) and the current (I), not on how wide the tube is. In NEET 2022 a solenoid of radius 1 mm was given - the radius was a pure distractor. B = mu0 n I ignores it. Only n and I matter for the interior field.

What is the field at the END of a solenoid compared to the centre?

At the exact centre (interior) of a long solenoid the field is B = mu0 n I. At either open END, the field drops to exactly HALF: B_end = (mu0 n I)/2. Reason: the end sees only half of the winding contributing symmetrically. NEET can test this - if the question says 'at the end' or 'at the mouth', use B/2.

Why is the magnetic field outside a long solenoid taken as zero?

The fields from opposite sides of the winding cancel outside the tube, so for an ideal long solenoid the external field is negligibly small (nearly zero). We USE this in the Ampere's law derivation: only the path segment inside the solenoid contributes. This is why a solenoid acts like a bar magnet with the field confined inside.

Does B change from point to point inside the solenoid?

No. The whole point of a long solenoid is a UNIFORM field. Anywhere in the interior (away from the ends), B = mu0 n I has the same value and direction, parallel to the axis. This uniformity is exactly why solenoids are used to make controlled magnetic fields in experiments and machines.

⚠️ The NEET trap
Plugging total turns N straight into B = mu0 N I, forgetting to divide by length.
n is turns per metre: n = N/L. First convert length to metres, then n = N/L, then B = mu0 n I.
🧠 n has a hidden 'per metre'. If you never divided by L, you did it wrong - the number is far too small.

Real NEET questions

NEET 2020

A long solenoid of 50 cm length having 100 turns carries a current 2.5 A. The magnetic field at the centre of the solenoid is (mu0 = 4pi x 10^-7 T m A^-1)

A · 6.28 x 10^-5 T
B · 3.14 x 10^-5 T
C · 6.28 x 10^-4 T
D · 3.14 x 10^-4 T
Solution: Use B = mu0 * n * I with n = N/L. Convert length: L = 50 cm = 0.50 m. So n = 100/0.50 = 200 turns per metre. Then B = (4pi x 10^-7) x 200 x 2.5 = (4pi x 10^-7) x 500 = 2000pi x 10^-7 = 6.28 x 10^-4 T. Answer: C. Trap: using n = 100 gives half this value.
NEET 2022

A long solenoid of radius 1 mm has 100 turns per mm. If 1 A current flows in the solenoid, the magnetic field strength at the centre of the solenoid is:

A · 6.28 x 10^-2 T
B · 12.56 x 10^-2 T
C · 12.26 x 10^-4 T
D · 6.28 x 10^-4 T
Solution: Use B = mu0 * n * I (radius is irrelevant for a long solenoid). Here n is already turns per unit length: n = 100 turns/mm = 100 x 10^3 = 10^5 turns per metre. Then B = (4pi x 10^-7) x 10^5 x 1 = 4pi x 10^-2 = 12.56 x 10^-2 T. Answer: B. Trap: the given radius 1 mm is a distractor and is not used.

Solved Moving Charges And Magnetism NEET PYQs

Try the real previous-year questions from this chapter — each with the answer and a full solution.

See all 30 Moving Charges And Magnetism NEET PYQs ›
Next concept: Solenoid Field Problems Using Turns Per Unit Length (n = N/L)Keep learning — 2 minFeeling ready? Solve the Moving Charges And Magnetism NEET PYQs ›Or practice on your phone — get the free MedicNEET app ›

Frequently asked

What is the formula for the magnetic field of a solenoid?

For the interior of a long solenoid, B = mu0 * n * I, where n = N/L is turns per metre, I is current, and mu0 = 4pi x 10^-7 T m/A. Outside it is nearly zero.

How is B = mu0 n I derived?

Apply Ampere's circuital law to a rectangular loop with one side of length L inside the solenoid and one outside. Field outside is zero and the side ends are perpendicular to B, so only the inside side contributes: B*L = mu0 * (n L) * I, which gives B = mu0 n I.

What is the field at the end of a solenoid?

At either end of a long solenoid, the field is half the interior value: B_end = (mu0 n I)/2.

Does the magnetic field inside a solenoid depend on its radius?

No. For a long solenoid the interior field depends only on n (turns per metre) and I. The radius does not enter the formula, which is a common NEET distractor.

What direction is the magnetic field inside a solenoid?

It points along the axis of the solenoid. Use the right-hand rule: curl fingers along the current in the turns, and the thumb points along B (the north pole end).