A solenoid is a long wire wound in the form of a helix. An ideal solenoid is tightly wound and infinitely long, i.e., its turns are closely spaced and the solenoid is very long compared to its crosssectional radius.
Each turn of a solenoid acts approximately as a circular loop. Suppose the solenoid carries a steady current I. The net magnetic field due to the current in the solenoid is the vector sum of the fields due to the current in all the turns. In the case of a tightly- wound solenoid of finite length, Fig. 10.39, the magnetic field lines are approximately parallel only near the centre of the solenoid, indicating a nearly uniform field there. However, close to the ends, the field lines diverge from one end and converge at the other end. This field distribution is similar to that of a bar magnet. Thus, one end of the solenoid behaves like the north pole of a magnet and the opposite end behaves like the south pole. The field outside is very weak near the midpoint.
![](https://doubtly.in/qa/?qa=blob&qa_blobid=17730965595561235091)
For an ideal solenoid, the magnetic field inside is reasonably uniform over the cross section and parallel to the axis throughout the volume enclosed by the solenoid. The field outside is negligible in this case.