Magnetic field due to different geometries — wire, loop, solenoid, toroid formulas

medium CBSE JEE-MAIN NEET 4 min read

Question

Compare the magnetic field formulas for: (a) a long straight wire at distance rr, (b) a circular loop at its centre, (c) a solenoid, and (d) a toroid. For each, state the formula and when to use it. A solenoid has 500 turns per metre and carries 2 A. Find BB inside.

(CBSE 12 + NEET + JEE Main staple)


Solution — Step by Step

GeometryFormulaWhere it applies
Long straight wireB=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}At perpendicular distance rr from wire
Circular loop (centre)B=μ0I2RB = \dfrac{\mu_0 I}{2R}At the centre of a single loop of radius RR
Solenoid (inside)B=μ0nIB = \mu_0 n IInside a long solenoid, nn = turns per unit length
Toroid (inside)B=μ0nIB = \mu_0 n IInside the toroid, n=N/(2πr)n = N/(2\pi r)

All four come from Ampere’s circuital law or Biot-Savart law. The geometry determines which formula applies.

Given: n=500n = 500 turns/m, I=2I = 2 A

B=μ0nI=4π×107×500×2B = \mu_0 n I = 4\pi \times 10^{-7} \times 500 \times 2 B=4π×104=1.26×103 T12.6 gaussB = 4\pi \times 10^{-4} = \mathbf{1.26 \times 10^{-3} \text{ T}} \approx \mathbf{12.6 \text{ gauss}}

The field inside an ideal solenoid is uniform — it does not depend on position inside.

When you see a problem, identify the geometry first, then pick the formula. The flowchart below handles 90% of exam questions.

flowchart TD
    A["What is the current-carrying geometry?"] --> B{"Shape?"}
    B -->|"Straight wire"| C["B = μ₀I/(2πr)"]
    B -->|"Circular loop"| D{"Where is the point?"}
    B -->|"Solenoid"| E["B = μ₀nI (inside)"]
    B -->|"Toroid"| F["B = μ₀nI (inside ring)"]
    D -->|"At centre"| G["B = μ₀I/(2R)"]
    D -->|"On axis at distance x"| H["B = μ₀IR²/2(R²+x²)^(3/2)"]
    C --> I["Direction: right-hand thumb rule"]
    G --> I
    E --> I
    F --> I

Why This Works

All magnetic fields from steady currents ultimately come from the Biot-Savart law:

dB=μ04πIdl×r^r2d\vec{B} = \frac{\mu_0}{4\pi} \frac{I \, d\vec{l} \times \hat{r}}{r^2}

For a long straight wire, integrating this gives the 1/(2πr)1/(2\pi r) dependence. For a loop at the centre, symmetry simplifies the integral to μ0I/(2R)\mu_0 I/(2R). For a solenoid, Ampere’s law with a rectangular loop gives the clean result B=μ0nIB = \mu_0 nI inside.

The solenoid formula is particularly elegant — the field inside depends only on the current and how tightly the coils are wound (turns per metre), not on the radius or total length (as long as it is long enough).


Alternative Method — Ampere’s Law for Quick Derivation

For the solenoid, draw a rectangular Amperian loop with one side inside and one side outside. The field outside an ideal solenoid is zero. Applying Bdl=μ0Ienc\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{enc}:

Bl=μ0(nl)IB \cdot l = \mu_0 \cdot (nl) \cdot I B=μ0nIB = \mu_0 nI

For NEET, memorise the four formulas directly — derivations are rarely asked. For JEE Main, you also need the on-axis formula for a loop: B=μ0IR22(R2+x2)3/2B = \dfrac{\mu_0 IR^2}{2(R^2 + x^2)^{3/2}}. This reduces to μ0I/(2R)\mu_0 I/(2R) at x=0x = 0 (centre) and to μ0IR2/(2x3)\mu_0 IR^2/(2x^3) far away (xRx \gg R), which looks like a magnetic dipole.


Common Mistake

The solenoid formula uses nn = turns per unit LENGTH (turns/m), not total number of turns NN. If a problem says “a solenoid of length 50 cm with 1000 turns,” then n=1000/0.5=2000n = 1000/0.5 = 2000 turns/m. Using N=1000N = 1000 directly in B=μ0nIB = \mu_0 n I gives a wrong answer that is off by orders of magnitude. Always convert to turns per metre first.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next