What is magnetism?
Magnetism is a force produced by moving electric charges that can attract or repel certain materials, such as iron. Magnets have two ends, called the north and south poles, and like poles push apart while opposite poles pull together.
Magnetic fields
Every magnet is surrounded by an invisible magnetic field. You can see its pattern by sprinkling iron filings around a magnet. The filings line up along curved lines running from one pole to the other.
Where magnetism comes from
Magnetism comes from the movement and spin of electrons. In most materials, the magnetic effects of electrons cancel out.
In ferromagnetic materials, such as iron, nickel and cobalt, groups of atoms called domains can line up in the same direction, creating a strong magnet.
Electricity and magnetism
An electric current flowing through a wire creates a magnetic field. Coiling the wire around iron makes an electromagnet, which can be switched on and off.
Moving a magnet near a coil of wire produces an electric current. This is how generators work.
Earth's magnetism
Earth acts like a giant magnet because of molten iron moving in its outer core. Its magnetic field protects the planet from much of the solar wind.
A compass needle lines up with Earth's magnetic field and points roughly north.
Uses
Magnets are used in motors, speakers, hard drives, MRI scanners, credit card strips and fridge doors.
Some animals, such as birds and sea turtles, can sense Earth's magnetic field to navigate.