How can the north and south poles of an electromagnet be reversed?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

The north and south poles of an electromagnet can be reversed by reversing the direction of the electric current flowing through its coil.1

An electromagnet functions by passing current through a coil to magnetize a core, creating a magnetic field. Because the magnetic field is generated by the motion of electric charges, changing the direction of that current flow alters the orientation of the magnetic field, thereby swapping the positions of the north and south poles. This ability to easily reverse, vary, or switch the magnetic flux is a primary reason why electromagnets are used in applications requiring controllable magnets.12