Try it yourself · Class 12 Physics · Magnetic Field of Currents

Straight wire and solenoid: the field of a current with compass-needle arrows

A long straight wire has circular field lines that weaken as . A long solenoid has a strong uniform field inside and almost none outside. The simulation draws both, with compass needles around the wire and arrows inside the coil.

Left: a long straight wire, , field lines are circles around it and a compass needle points along the circle. Right: a long solenoid, inside, parallel to the axis and uniform, and close to zero outside. Arrow length shows the size of .

The simulation needs JavaScript; everything it shows is explained below.

What to change

  • Current : 1 to 20 A, shared by the wire and the solenoid.
  • Distance from the wire: 1 to 20 cm.
  • Solenoid turns per metre : 100 to 2000.

What to watch

  • = 10 A, = 5 cm: the wire’s field is 40.0 uT; at twice the distance, 20.0 uT.
  • Same current with = 1000 per metre: the field inside the solenoid is 12.57 mT, 314.2 times the wire’s field at 5 cm.
  • Move to = 10 cm: the wire’s field halves to 20.0 uT.
  • = 20 A, = 5 cm, = 2000 per metre: the wire gives 80.0 uT and the solenoid 50.27 mT.
  • Change only : the solenoid’s arrows and reading change but the wire’s field does not; inside does not depend on the coil’s length or radius.

The formula

T m/A, in ampere, in metre, the number of turns per metre; in tesla (shown in uT or mT). The solenoid is long compared with its radius.

Try these questions

Work each one out with the simulation, tap to see the answer, then try the chapter quiz.

  1. Bihar Board 2025

    The direction of magnetic field inside a current carrying solenoid is
    1. circular
    2. parallel to axis
    3. perpendicular to the axis
    4. random
    Show the answer
    (B) parallel to axis
  2. CBSE 2026

    A straight long wire lying along y-axis, carries a current of 1 A along –y direction. The magnetic field due to the conductor at a point (50 cm, 0, 0) will point along.
    1. z-axis
    2. –z-axis
    3. -axis
    4. –-axis
    Show the answer
    (A) z-axis
  3. CBSE 2025

    A long straight wire is held vertically and carries a steady current in upward direction. The shape of magnetic field lines produced by the current-carrying wire are :
    1. horizontal straight lines directed radially out from the wire.
    2. straight lines parallel to the current-carrying wire.
    3. concentric horizontal circles around the wire.
    4. coaxial helixes around the wire.
    Show the answer
    (C) concentric horizontal circles around the wire.

More to try in Magnetic Field of Currents

Every simulation in the Lab