Question
What are the magnetic field expressions for a straight wire, circular loop, solenoid, and toroid — and when do we use each formula?
Solution — Step by Step
For a long straight wire carrying current , at perpendicular distance :
The field forms concentric circles around the wire (use right-hand thumb rule). This is the most frequently used formula — appears in nearly every magnetism problem set.
At the centre of a circular loop of radius carrying current :
On the axis at distance from the centre:
For turns, multiply by . Notice that when , the axis formula reduces to the centre formula — a good sanity check.
Inside an ideal long solenoid with turns per unit length:
Outside the solenoid: . The field inside is uniform and parallel to the axis — like a bar magnet but uniform throughout.
Inside the toroid (within the windings), for total turns and mean radius :
Outside the toroid: (both inside the hole and outside the ring). A toroid is essentially a solenoid bent into a circle — the field is confined entirely within the windings.
graph TD
A[What geometry?] --> B{Straight wire?}
B -->|Yes| C["B = mu0 I / 2pi r"]
B -->|No| D{Circular loop?}
D -->|Yes, at centre| E["B = mu0 I / 2R"]
D -->|Yes, on axis| F["B = mu0 IR^2 / 2(R^2+x^2)^3/2"]
D -->|No| G{Solenoid?}
G -->|Yes| H["B = mu0 n I (inside)"]
G -->|No| I{Toroid?}
I -->|Yes| J["B = mu0 NI / 2pi r (inside)"]
Why This Works
All four formulas come from the same law — either Biot-Savart (for loops and finite wires) or Ampere’s circuital law (for solenoids, toroids, and infinite wires). The geometry determines which method is easier. Ampere’s law works beautifully when there is a clear symmetry that makes tractable.
For JEE and NEET, memorise all four formulas cold. But also understand WHEN to use each: see a long wire? First formula. See a coil? Check if they want centre or axis point. See many turns wound on a cylinder? Solenoid. Wound in a ring? Toroid.
Alternative Method
For a finite straight wire of length , the field at perpendicular distance from the midpoint is:
where and are the angles subtended by the two ends. For an infinite wire, both angles approach , giving — consistent with Step 1.
Common Mistake
Students mix up (turns per unit length) and (total turns) in solenoid and toroid formulas. Solenoid uses ; toroid uses total . Writing for a solenoid gives wrong dimensions. Always check: solenoid formula has no in the denominator; toroid formula does.