A simple electromagnet consisting of a coil of insulated wire wrapped around an iron core. The strength of magnetic field generated is proportional to the amount of current.
Current (I) through a wire produces a magnetic field (B). The field is oriented according to the right-hand grip rule.
An electric current flowing in a wire creates a magnetic field around the wire (see drawing below). To concentrate the magnetic field, in an electromagnet the wire is wound into a coil with many turns of wire lying side by side. The magnetic field of all the turns of wire passes through the center of the coil, creating a strong magnetic field there. A coil forming the shape of a straight tube (a helix) is called asolenoid. Much stronger magnetic fields can be produced if a "core" of ferromagnetic material, such as soft iron, is placed inside the coil. The ferromagnetic core increases the magnetic field to thousands of times the strength of the field of the coil alone, due to the highmagnetic permeability μ of the ferromagnetic material. This is called a ferromagnetic-core or iron-core electromagnet.
Magnetic field produced by a solenoid(coil of wire). This drawing shows a cross section through the center of the coil. The crosses are wires in which current is moving into the page; the dots are wires in which current is moving up out of the page.
The direction of the magnetic field through a coil of wire can be found from a form of the right-hand rule.[1][2][3][4][5][6] If the fingers of the