Electronics Information · 8 min lesson

What you will learn
Predict whether two magnetic poles attract or repel, read the direction of field lines, and use the right-hand rule to find the field around a current-carrying wire.
The lesson
Every magnet has two ends called poles: a north (N) pole and a south (S) pole. The space around a magnet where it can push or pull on other magnets is its magnetic field. The rule for poles is short and worth memorizing.
↔ Like poles repel
N facing N, or S facing S, push apart.
→← Unlike poles attract
N facing S pull together.
½ Poles come in pairs
Break a magnet in half and each piece has its own N and S.
Reading field lines
We draw the field with field lines. By convention, the lines point out of the north pole and into the south pole outside the magnet. Inside the magnet they run from S back to N, so each line forms a closed loop.
Two things to read from a field-line drawing:
- Direction: the arrow on a line shows which way the north end of a compass needle would point at that spot.
- Strength: lines packed close together mean a strong field. On a bar magnet that happens near the poles, not in the middle.
A compass needle is just a small magnet. Its north end is pulled toward a south pole. That is why the magnetic pole near Earth's geographic North Pole is actually a magnetic south pole.
Current makes a magnetic field too
A permanent magnet is not the only source of a field. Any electric current produces a magnetic field around it. Around a straight wire, the field lines are circles centered on the wire. Hold a compass near a wire with current flowing and the needle swings.
To find which way the circles run, use the right-hand grip rule: point your right thumb in the direction of conventional current (+ to −). Your curled fingers show the direction of the field lines.
Reverse the current and the circles reverse direction. Switch the current off and that field disappears.
| Permanent magnet | Field from a current | |
|---|---|---|
| Source | The magnetized material itself | Moving charge in a wire |
| Shape near a straight wire or bar | Loops from N to S | Circles around the wire |
| Can you switch it off? | No | Yes, stop the current |
| Can you reverse it? | Only by turning the magnet around | Yes, reverse the current |
Like poles repel and unlike poles attract. Field lines run from N to S outside a magnet. A current makes circular field lines around its wire, and your right thumb along the current shows their direction with your fingers.
Worked example
Problem: You hold the left end of an unmarked bar magnet near a compass. The compass needle's north end swings toward that left end. You then bring the same left end close to the south pole of a second magnet. What happens?
- Use the attractionThe compass's north end is pulled toward the left end. Unlike poles attract.
- Name the poleSo the left end of the magnet must be a south pole.
- Apply the rule againSouth facing south is a pair of like poles.
- ResultLike poles repel, so the magnets push apart.
Answer: The left end is a south pole, and it repels the second magnet's south pole.
The other end of the unmarked magnet must then be north. It would attract the second magnet's south pole.
Practice with a hint
Hint: A magnet strongly attracts only magnetic materials, mainly iron and metals made mostly of iron. Check what each object is made of.
Try it on your own
Point your right thumb the way the current flows, then picture which way your fingers curl as you look at the page.
Common mistakes
- Flipping the attraction rule. Some students think "same attracts same." It is the other way: two south poles push apart, a north and a south pull together.
- Drawing field lines from S to N outside the magnet. Outside the magnet, lines leave north and enter south.
- Thinking the middle of a bar magnet is strongest. The field is strongest near the poles, where the lines crowd together.
- Thinking only permanent magnets have fields. A wire carrying 5 A has a magnetic field around it while the current flows.
- Using the left hand. The grip rule uses the right hand with conventional current. The left hand gives the opposite direction.
Next step
- Like poles repel; unlike poles attract.
- Outside a magnet, field lines run from N to S and are densest near the poles.
- Any current makes a magnetic field; around a straight wire it forms circles.
- Right thumb along the current, fingers curl the way the field goes.
Practice this with the free Electronics Information practice test, then review key ideas with the Electronics Information flashcards.