Why WondersBig questions, clear answers.

Why Do Magnets Stick to Some Metals?

Physics Level 3 · Expert Ages 13+ Try it at home

Short answer

Magnetism comes from electrons, which act like tiny spinning magnets. In iron, groups of them called domains can line up. A magnet nearby makes the domains in a fridge door point the same way, so the door and magnet pull together.

Diagram: in plain iron, arrows for magnetic domains point in random directions; in a magnet, all the arrows line up from S to N
Original diagram by Why Wonders.

Press a magnet against the refrigerator and it clings. Try the same magnet on a wooden table, a glass jar or a soda can, and it slides right off. The difference comes down to what is happening deep inside the metal, at the level of electrons.

All magnetism comes from electrons

Every atom contains electrons, tiny charged particles. According to the National High Magnetic Field Laboratory, all magnetism comes down to electrons, in two ways.

  • Moving electrons. When electrons flow through a wire as an electric current, they always create a magnetic field around the wire. That is how electromagnets work.
  • Spinning electrons. Electrons also have a property called spin, which makes each one behave like an extremely tiny magnet. In permanent magnets, such as the ones on your fridge, it is this spin that produces the magnetism.

If every electron is a tiny magnet, why isn’t everything magnetic? In most materials, the electrons are arranged so that the magnetic direction of one cancels out another. The tiny magnets point in opposite ways and add up to nothing.

Domains: teams of electrons

Iron is special. Inside a piece of iron are small regions called magnetic domains. Within each domain, the electrons’ magnetic directions all line up. Each domain is a small magnet.

But a plain iron nail is not a magnet, because the domains themselves point in many different directions. One domain points left, another points up, another points down. Overall, they cancel.

Now bring a magnet close. Its magnetic field pushes the domains in the iron to swing and line up with it. Suddenly many domains point the same way, and the iron itself becomes magnetized. Its new north and south ends face the magnet’s opposite ends, and opposite poles attract. That attraction is the stick you feel.

This is why a magnet grabs a steel fridge door, which is mostly iron, but ignores wood, glass and plastic. Those materials have no domains to line up.

Only a few elements play along

Materials that behave like iron are called ferromagnetic. There are only four elements that are ferromagnetic at room temperature and can become permanently magnetized: iron, nickel, cobalt and gadolinium. Common permanent magnets are made from materials containing them, such as ceramic magnets and alnico, a mix of aluminum, nickel and cobalt.

Permanent versus temporary magnets

A permanent magnet is simply a piece of material in which the domains are locked into alignment. It keeps working without electricity. You cannot switch it off. But it is not indestructible: a hard knock, such as a good swift blow from a hammer, can jostle the domains out of line and weaken it.

Soft iron behaves differently. Its domains line up readily when a magnet is near, so iron filings, nails or paper clips become magnets themselves. But the moment the magnet is taken away, they lose that magnetism again. Engineers use this “easy come, easy go” behavior in telephones and electric motors. The paper clip chain in the experiment shows it happening.

Electromagnets are another kind of temporary magnet. Run current through a coil of wire and you switch on a magnetic field. Turn off the current, and the field disappears. Electromagnets can be far stronger than the strongest permanent magnet, which is why researchers build them for heavy-duty science.

Poles, fields and strength

Every magnet has a north pole and a south pole. Opposite poles attract and like poles repel, so two north ends push away from each other. Scientists draw invisible magnetic field lines that leave the north pole and loop around to the south pole.

Magnetic strength is measured in tesla and gauss; one tesla equals 10,000 gauss. MRI machines in hospitals use powerful magnets, while the field from a household appliance, measured about a foot from a ceiling fan, is only a few milligauss.

Earth is a giant magnet

Our planet has north and south magnetic poles too. NASA explains that Earth’s fast rotation and its molten nickel-iron core create a magnetic field, and that this field is what makes compass needles point north. Scientists think the field comes from currents of hot, liquid metal swirling in the outer core, a process called a geodynamo. The field even flips direction over long stretches of geologic time.

Long before anyone understood electrons, people noticed a natural magnetic rock called lodestone, a type of magnetite. It lines itself up with Earth’s magnetic field all on its own.

So a magnet sticks to your fridge because the steel door is full of iron domains that line up in the magnet’s field, turning the door into a magnet of its own for as long as the two are touching.

Try it at home: Turn a paper clip into a temporary magnet

You need:

  • A fridge magnet or bar magnet
  • Several steel paper clips
  1. Hang one paper clip from the magnet.
  2. Touch a second paper clip to the bottom of the first. See if it hangs on, forming a chain.
  3. Keep adding clips until the chain will not hold any more.
  4. Carefully pull the top clip off the magnet. Watch what happens to the chain once the magnet's field is gone.

Grown-up check: Keep magnets away from phones, cards and young children who might swallow small pieces.

Fun facts

  • Only four elements can be made into permanent magnets at room temperature: iron, nickel, cobalt and gadolinium.
  • Earth's magnetic field is only about 0.5 gauss, while the strongest permanent magnets reach about 1.5 tesla, tens of thousands of times stronger.
  • A hard knock, like a strong hammer blow, can scramble the domains in a magnet and weaken it.

Key words

electron
A tiny particle with a negative charge that is found in every atom.
magnetic domain
A small region inside a material where the electrons' magnetic directions all point the same way.
ferromagnetic
Describes materials, like iron, that can be strongly attracted to magnets and can become magnets themselves.
electromagnet
A magnet made by sending electric current through a wire; it can be switched on and off.

See the full glossary

Quick quiz

1. What is the source of all magnetism?
Show the answer

Electrons. Electron spin creates permanent magnets, and electron flow in wires creates electromagnets.

2. Why isn't an ordinary iron nail a magnet already?
Show the answer

Its domains point in different directions. Each domain is magnetic, but they point every which way and cancel out.

3. What happens when two north poles meet?
Show the answer

They push apart. Like poles repel; opposite poles attract.

What did you think?

Tap one. We only count the button, never who pressed it: no names, no accounts, no cookies.

Still have a question? Kids: ask a grown-up to email our editors for you. Found a mistake? Send a correction.

Sources

Pages our editors opened and checked for this answer.

  1. Magnets from Mini to Mighty - Magnet Academy — retrieved November 23, 2026
  2. Facts About Earth — retrieved November 23, 2026

Related questions

  • Diagram: a heavy ball and a light ball fall side by side in a space with no air and land together
    Why Do Things Fall Down?

    Drop a ball and it falls. Learn how gravity pulls objects toward Earth's center, why heavy and light things fall together, and what air changes.

    Physics Investigator Ages 9–12 Try it

  • Diagram: a lightning flash reaches a person almost at once while thunder follows more slowly, about 5 seconds per mile
    Why Do We See Lightning Before We Hear Thunder?

    Lightning flashes first and thunder rumbles later. See why light beats sound, how to count the seconds, and how thunder is made.

    Physics Explorer Ages 6–8 Try it

  • Diagram: white sunlight enters a large raindrop, bends, bounces inside and leaves split into colors from red to violet
    Why Do Rainbows Form?

    Rainbows appear when sun and rain meet. See how raindrops bend sunlight and split it into red, orange, yellow, green, blue and violet.

    Physics Investigator Ages 9–12 Try it

  • Diagram: a jet flies ahead of its circular sound waves, which form a cone-shaped shock wave that sweeps the ground
    Why Do Jets Make Sonic Booms?

    Supersonic jets can make a thunder-like boom. Learn about the speed of sound, Mach numbers, shock waves and NASA's quieter X-59 aircraft.

    Physics Expert Ages 13+