Why magnets attract and repel: a simple explanation

North and south poles, why opposites attract, why magnets pull iron but not aluminium, and why closer magnets push and pull harder. With simple experiments to try at home.

Pick up two fridge magnets and push them together. One way round they snap together; flip one over and they shove each other away. It's one of the first bits of physics most of us ever feel with our own hands. Here is what's going on, in plain language.

Every magnet has two poles

A magnet has two ends, called the north pole and the south pole. The names come from compasses: a magnet that's free to turn lines up with the Earth's own magnetism, with one end pointing roughly north. That end is the magnet's north pole.

You can't get one pole on its own. Cut a bar magnet in half and you get two smaller magnets, each with its own north and south pole.

Opposites attract, likes repel

The basic rule:

  • north and south pull towards each other (attract)
  • north and north push apart (repel)
  • south and south push apart (repel)

The pull or push comes from the magnetic field, an invisible region around the magnet where it affects other magnets and some metals. If you sprinkle iron filings on paper over a magnet, they line up along curved lines running from one pole to the other, so you can see the shape of the field.

Why magnets pick up iron but not everything

A paperclip isn't a magnet, but a magnet still pulls it. Iron, nickel and cobalt (and steels containing iron) are ferromagnetic. Inside them, the material is made of tiny regions called domains, each like a miniature magnet. Normally the domains point in random directions and cancel out. When a magnet comes near, the domains line up with its field, so the iron briefly behaves like a magnet with the opposite pole facing yours, and the two attract.

That's why iron is attracted by both poles of a magnet. It isn't a fixed magnet, so it simply lines up whichever way it's pulled. It's also why magnets don't stick to aluminium, copper, wood or plastic: those materials don't have domains that line up in the same way.

Closer means stronger

Magnetic force falls off quickly with distance. Two magnets a few millimetres apart grip hard; a few centimetres apart, you may barely feel anything. You can feel this yourself by sliding one magnet slowly towards another until it suddenly jumps the gap.

Try it at home

Find the poles

Hang a bar magnet from a thread so it can turn freely, away from metal. When it settles, the end pointing roughly north is its north pole. Mark it with tape. Now you can label the poles of other magnets: the end your marked north pole pushes away is also a north pole.

See the field

Put a sheet of paper over a magnet and sprinkle iron filings (or very finely cut steel wool) on top. Tap the paper gently and watch the pattern form.

Test materials

Collect a spoon, a coin, a key, foil, a paperclip and a plastic cup. Guess which ones will stick, then test. Coins vary by country and year, so they make a good surprise.

Make a temporary magnet

Stroke a steel needle or paperclip with one end of a magnet, always in the same direction, twenty or thirty times. It will now pick up another paperclip for a while. For more ideas, see our magnet experiments for kids.

Safety note: keep small, strong magnets away from young children. Swallowing more than one can cause serious internal injury.

How Magnet Lab uses these rules

Magnet Lab is a puzzle game we made that's built on these ideas. The board has red (+) and blue (-) cubes. Tap one to flip its pole and the board settles: opposite poles pull together, like poles push apart, and a nearer cube pulls or pushes harder than one further away. Iron cubes are pulled by every magnet, just like a paperclip. Bolted magnets never move, so they drag everything else to them.

The game simplifies real physics so the puzzles stay fair (cubes slide on a grid and each one feels the first cube it sees in each direction), but playing it is a good way to build intuition for attraction, repulsion and distance. It's free, plays offline and needs no account.

Download Magnet Lab on the App Store or get it on Google Play.

More Magnet Lab guides