An electromagnet can be made in the following two shapes:
1. I-shape or bar magnet.
2. U-shape or horse-shoe magnet.
The principle behind making both the magnets is the same. An electromagnet can be made by winding an insulated copper wire over a piece of soft iron in U-shape or a solenoid.
The two factors on which the strength of the magnetic field of an electromagnet depends are as follows:
1. It is dependent upon the number of turns of the wire wound over the coil.
2. It is also dependent upon the current flowing through the wire.