📘 CodingMarble Learn

Magnetism: Magnets and the Compass

A magnet pulls iron, nickel and cobalt. Its pull is strongest at its two ends, the north (N) and south (S) poles. Like poles repel and unlike poles attract. Around a magnet is a magnetic field, drawn as lines from N to S; a compass needle lines up with it. Inside a magnet, tiny atomic magnets all point the same way. The Earth is a giant magnet, so a compass points north. An electric current in a coil makes an electromagnet.

🎬 Step-by-step story

  1. A bar magnet pulls iron pins. The pins gather at its two ends, called poles. Copper and plastic do not stick.
  2. Two magnets meet. North facing north pushes apart. North facing south pulls together.
  3. Small compass needles sit around the magnet. Each needle turns to follow the magnetic field, out of N and into S.
  4. Inside the magnet are tiny magnets, all pointing the same way. Break the magnet, and each piece has its own N and S.
  5. The Earth is a giant magnet. A compass needle points north, because the Earth's magnetic south pole lies there.
  6. Your turn. Flip and slide the second magnet, and walk the compass around the bar.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why do the pins stick only at the ends?

The field is strongest at the poles, where field lines bunch together. The middle of a bar magnet pulls very weakly.

How do I know which way two magnets will move?

Look at the faces that meet. Same letters push apart, different letters pull together. The 3D shows both cases.

Why does the compass needle turn near a magnet?

The needle is itself a tiny magnet, so the magnet's poles push and pull its ends until it lies along the field line.

Can I get a magnet with only a north pole?

No. The tiny magnets inside are lined up end to end, so any piece always has an N end and an S end. Watch the magnet break into two full magnets.

If unlike poles attract, why does the compass N point to the North Pole?

Because the Earth's pole near geographic north is magnetically a south pole. The red needle end points at it.

Does the distance between magnets matter?

Yes. Slide the second magnet in free play: the closer they are, the stronger the push or pull.

Magnets and magnetic materials

A magnet is an object that pulls iron. Things a magnet pulls are magnetic materials: iron, steel, nickel and cobalt. Things it does not pull are non-magnetic: copper, aluminium, gold, wood, plastic, glass.

A permanent magnet keeps its magnetism for a long time (a fridge magnet). Magnets can be bars, horseshoes, rings or discs.

Uses

Poles: like repel, unlike attract

The pull of a magnet is strongest at its ends. These ends are the poles: the north pole (N) and the south pole (S). A freely hanging magnet turns until its N pole points north.

Poles always come in pairs. If you break a magnet, each piece gets its own N and S. You can never get a magnet with only one pole.

Repulsion is the sure test for a magnet. Iron is attracted by both poles, but only another magnet can be pushed away.

Magnetic field and the compass

The space around a magnet where its force can be felt is its magnetic field. We draw it with field lines:

A compass is a tiny magnet (a needle) that can turn freely. Near a magnet, the needle lines up along the field line at that place. You can map a field by moving a compass around and marking which way its N end points. Iron filings sprinkled on paper over a magnet also show the pattern.

Why some things are magnets

Every atom has moving electrons. A moving charge is a tiny electric current, and a current loop acts like a tiny magnet. This idea is Ampère's hypothesis: magnetism comes from tiny current loops inside matter.

In iron, these tiny magnets group into small regions called domains. In ordinary iron the domains point every which way, so they cancel. When you magnetise iron (stroke it with a magnet or put it in a coil with current), the domains line up and the iron becomes a magnet. Heating or hammering a magnet mixes the domains up again and it loses magnetism.

Earth's magnetism, electromagnets and levitation

The Earth behaves like a giant bar magnet, made by moving molten iron in its outer core. Its magnetic south pole is near the geographic North Pole. That is why the N end of a compass needle points north. The magnetic poles are not exactly at the geographic poles, and they slowly wander. The Earth's field also shields us from fast charged particles from the Sun; where they leak in near the poles we see auroras. The Sun has its own, much more tangled magnetic field, seen in sunspots.

Electromagnets

A coil of wire carrying current makes a magnetic field like a bar magnet. Put an iron core inside and it becomes an electromagnet: strong, and it can be switched on and off. More turns or more current make it stronger. Uses: cranes in scrapyards, electric bells, relays, MRI scanners.

Magnetic levitation

Repulsion (or carefully controlled attraction) can hold an object in the air. Maglev trains float a few centimetres above the track, so there is almost no friction.

Try it

  1. Stroke a steel needle 30 times in one direction with one end of a magnet. Push it through a small piece of cork and float it in a bowl of water. It turns to point north–south: you made a compass!
  2. Bring a fridge magnet near a spoon, a coin, a key and a pencil. Predict first, then check which stick.
  3. In the 3D free-play step, flip the second magnet and slide it. When do they attract? When do they repel?

Key formulas and definitions

Worked examples

1. A magnet's N pole is brought near another magnet's S pole. What happens?

They attract, because unlike poles attract.

2. You have two identical-looking metal bars. One is a magnet, one is plain iron. How can you tell which is the magnet using only the two bars?

Touch the end of bar A to the middle of bar B. The middle of a magnet has almost no pull. If they stick strongly, A is the magnet; if not, B is. (Or: only a magnet can repel the other bar.)

3. Why does a compass needle point north?

The needle is a small magnet. The Earth's magnetic south pole lies near geographic north, and it attracts the needle's N pole.

4. A bar magnet is cut into three pieces. How many poles are there in total?

Each piece becomes a full magnet with N and S, so there are 3 × 2 = 6 poles.

5. How can you make an electromagnet stronger?

Increase the current, add more turns of wire, or use a soft iron core.

Common mistakes

Practice quiz

1. Which of these is attracted by a magnet?
2. Two N poles brought close together will:
3. Outside a magnet, field lines go:
4. A magnet is strongest:
5. An electromagnet is made with:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is magnetism in simple words?

Magnetism is the pushing and pulling force of magnets. Magnets pull iron, nickel and cobalt, and two magnets attract or repel each other.

Why do like poles repel?

Their field lines push against each other between the magnets, so the magnets move apart. Unlike poles have field lines that join up, pulling the magnets together.

Is the Earth a magnet?

Yes. Moving molten iron in the outer core makes the Earth act like a giant bar magnet, which is why compasses work.

Where this is taught

PolandSzkoła podstawowa, klasa VIIIMagnetism
Ukraine9 класElectromagnetic phenomena; electromagnetic oscillations and waves

Learn first

Learn next

Related lessons

All Physics lessons