The electromagnet converts electrical energy into magnetic energy. To understand the mechanism of conversion, the relationship between the magnetic field produced by the electromagnet and the electric current flowing through it must be understood clearly, before we understand the strength of the magnet.