Magnetic Field in Coil
In the last few sections we saw that a conductor carrying some electric current produces a magnetic field. A current-carrying conductor can be made into a powerful magnet. If we wind a conductor in a coil, then the magnetic field due to adjacent coil loops adds up and makes a powerful magnetic field.
Notice the left hand side figure in the illustration provided here. This figure shows a coiled conductor. Notice that the coil produces a magnetic field just like magnet. In this case the resultant magnetic field has the north pole on the right hand side, and the south pole on the left hand side. As stated earlier, this magnetic field is similar to that of a magnet of this size. The only difference is that if the current flow through the coil is stopped, the magnetic field vanishes.