High School · Physics · Unit 8
Magnetism and Electromagnetism
Why magnets attract and repel, how electric currents make magnetic fields, and how moving magnets make electric currents.
A compass needle swings to point north. A crane lifts a scrapyard car with a switch. The motor in a fan spins, and a power station's generator sends electricity to your home. All of these come from one idea: electricity and magnetism are two sides of the same thing. A moving charge makes a magnetic field, and a changing magnetic field pushes charges around.
On this page you'll draw magnetic field lines, see why Earth acts like a giant magnet, build an electromagnet, work out the force on a wire and on a moving charge, see how motors, generators and transformers work, then try the force calculator, meet the people who worked it out, and take a quiz.
On this page
- Start hereKey words
- Idea 1Magnets and field lines
- Idea 2Earth's magnetic field
- Idea 3Currents make magnetic fields
- Idea 4The force on wires and charges
- Idea 5Electric motors
- Idea 6Electromagnetic induction
- Idea 7Generators and transformers
- PracticeWorked examples
- Try itMagnetic force calculator
- 1600–1865From Gilbert to Maxwell
- Test yourselfQuiz
Key words first
Magnetic pole
The ends of a magnet where its pull is strongest: north and south. Like poles repel; unlike poles attract. Poles always come in pairs.
Magnetic field (B)
The region around a magnet or current where magnetic forces act. Its strength is measured in teslas (T).
Field lines
Lines showing the field's direction, from N to S outside a magnet. The closer together they are, the stronger the field.
Electromagnet
A coil of wire, often around an iron core, that is magnetic only while current flows. You can switch it on and off.
Induction
Making a voltage, and so a current, in a wire by changing the magnetic field through it.
Transformer
Two coils on an iron core that raise or lower an AC voltage. It works only with alternating current.
Idea 1: Magnets and field lines
Every magnet has a north pole and a south pole. Bring two magnets together and like poles repel, unlike poles attract. Cut a bar magnet in half and you don't get a lone north and a lone south: you get two smaller magnets, each with both poles. No one has ever found a single, isolated pole.
We picture the magnetic field with field lines. Outside a magnet they run from the north pole to the south pole; they never cross; and they're crowded together where the field is strong. Sprinkle iron filings on paper over a magnet and they line up along these lines. A small compass placed anywhere points along the line through that spot.
Only a few materials, mainly iron, nickel and cobalt and some of their alloys, are strongly attracted to magnets. They're called ferromagnetic. Inside them, tiny regions called domains act like mini-magnets. Usually the domains point every which way and cancel out; a magnet nearby lines them up, and the material becomes magnetized.
Idea 2: Earth's magnetic field
Earth behaves as if it had a huge bar magnet inside it. The field actually comes from currents of molten iron flowing in its outer core. At the surface the field is weak, roughly 25 to 65 microteslas (μT), but it's enough to turn a compass needle.
The north pole of a compass needle points toward the Arctic, and unlike poles attract, so the magnetic pole near the geographic North Pole is really a magnetic south pole. It also wanders, drifting tens of kilometers a year, which is why maps list the difference between true north and magnetic north. Earth's field also shields us by steering charged particles from the Sun toward the poles, where they light up the sky as auroras.
| Source | Typical field |
|---|---|
| Earth's surface | 25–65 μT |
| Fridge magnet | about 5 mT |
| Strong neodymium magnet, at its surface | up to about 1 T |
| Hospital MRI scanner | 1.5–3 T |
Idea 3: Currents make magnetic fields
In 1820 Hans Christian Ørsted noticed that a compass needle moved when a current flowed in a nearby wire. Every electric current makes a magnetic field. Around a long straight wire the field lines are circles centered on the wire. To find their direction use the right-hand rule: point your right thumb along the current, and your fingers curl the way the field goes.
The field gets weaker with distance r from the wire: B = μ₀I ÷ (2πr), where μ₀ ≈ 4π × 10⁻⁷ T·m/A. Wind the wire into a coil, called a solenoid, and the fields of all the loops add up. Inside, the field is strong and nearly uniform; outside, it looks just like a bar magnet's. Put an iron core inside and the field gets hundreds of times stronger: you've made an electromagnet. More turns, more current or an iron core all make it stronger, and it switches off when the current stops. Electromagnets are used in scrapyard cranes, door locks, loudspeakers and MRI machines.
Idea 4: The force on wires and charges
If a current makes a magnetic field, then a magnetic field should push on a current, and it does: a wire of length L carrying current I through a field B feels a force
F = BIL sin θ
where θ is the angle between the wire and the field. The force is biggest when the wire is at right angles to the field (sin 90° = 1) and zero when it runs along the field. Its direction is at right angles to both the current and the field; on a diagram you can find it with a right-hand rule (fingers along B, thumb along I, and the force comes out of your palm) or Fleming's left-hand rule.
A current is just moving charges, so a single charge q moving at speed v through a field also feels a force:
F = qvB sin θ
Because this force is always at right angles to the motion, it changes the charge's direction but not its speed. A charge moving across a uniform field goes round in a circle. That's how particle accelerators steer beams, and how mass spectrometers sort atoms by mass.
Idea 5: Electric motors
Put a loop of wire in a magnetic field and pass a current through it. The current goes one way along one side of the loop and the other way along the opposite side, so the two sides are pushed in opposite directions, up and down. The loop turns. In a DC motor, a split-ring commutator reverses the current every half turn so the loop keeps spinning the same way. Real motors use many turns of wire on an iron core and strong magnets or electromagnets. They turn electrical energy into motion in everything from phone vibrators to electric cars.
Idea 6: Electromagnetic induction
In 1831 Michael Faraday found the reverse of Ørsted's discovery: a changing magnetic field makes a current. Push a magnet into a coil and a meter connected to the coil flicks one way. Hold it still and nothing happens. Pull it out and the meter flicks the other way. Joseph Henry found the same effect in America at around the same time.
Faraday's law says the induced voltage depends on how fast the magnetic field through the coil changes, and on the number of turns. Move the magnet faster, use a stronger magnet or add more turns and you get more voltage. Lenz's law gives the direction: the induced current always makes a field that opposes the change that caused it. Energy is conserved: you have to do work to push the magnet in, and that work becomes electrical energy.
Idea 7: Generators and transformers
A generator is a motor run backward. Steam, wind or falling water turns a coil in a magnetic field (or a magnet inside a coil), and the constantly changing field induces a voltage that flips direction every half turn: alternating current (AC). In the US the grid alternates 60 times a second (60 Hz); in much of the world it's 50 Hz.
A transformer has two coils wound on the same iron core. AC in the primary coil makes a changing field in the core, which induces a voltage in the secondary coil. The voltages are in the same ratio as the numbers of turns:
Vs ÷ Vp = Ns ÷ Np
A step-up transformer has more turns on the secondary; a step-down transformer has fewer. An ideal transformer doesn't create energy, so power in equals power out: VpIp = VsIs. Power companies step voltages up to hundreds of thousands of volts for long-distance lines, because a lower current loses less energy as heat in the wires, then step them down again near your home.
Worked examples
Try each one first, then open the solution. Use e = 1.602 × 10⁻¹⁹ C and μ₀ = 4π × 10⁻⁷ T·m/A.
1. A wire in a magnet
A 0.20 m wire carrying 3.0 A sits at right angles to a 0.50 T field. What force acts on it?
Show solution
= 0.50 × 3.0 × 0.20 × 1
= 0.30 N
About the weight of a 30 g object.
2. At an angle
The same wire is turned so it makes 30° with the field. Now what is the force?
Show solution
= 0.30 × 0.50
= 0.15 N
Line the wire up with the field (θ = 0°) and the force drops to zero.
3. A fast proton
A proton moves at 2.0 × 10⁶ m/s at right angles to a 0.10 T field. What force acts on it?
Show solution
= (1.602 × 10⁻¹⁹)(2.0 × 10⁶)(0.10)
≈ 3.2 × 10⁻¹⁴ N
Tiny, but a proton's mass is only 1.67 × 10⁻²⁷ kg, so it curves sharply.
4. Near a wire
How strong is the field 2.0 cm from a long straight wire carrying 10 A?
Show solution
= (4π × 10⁻⁷ × 10) ÷ (2π × 0.020)
= 1.0 × 10⁻⁴ T = 100 μT
About 2 to 4 times Earth's field, enough to deflect a compass.
5. A phone charger
A transformer steps 120 V down to 6.0 V. Its primary has 1,000 turns. How many turns are on the secondary?
Show solution
= 1,000 × 6.0 ÷ 120
= 50 turns
Modern chargers mostly use electronics too, but the idea is the same.
6. Power in, power out
An ideal step-up transformer takes 120 V and gives 240 V. The secondary current is 2.0 A. What is the primary current?
Show solution
Ip = 240 × 2.0 ÷ 120
= 4.0 A
Doubling the voltage halves the current: power stays at 480 W.
Try it: magnetic force calculator
F = BIL sin θ calculator
Answers are rounded to up to 3 significant figures. Only the length of wire inside the field counts.
A short history: from Gilbert to Maxwell
Lodestones, naturally magnetic rocks, were known in ancient Greece and China, and compasses were guiding ships by the 1100s. In 1600 the English physician William Gilbert published De Magnete, showing with a small magnetized sphere that Earth itself is a great magnet.
For two centuries electricity and magnetism seemed unrelated. Then in 1820 the Danish physicist Hans Christian Ørsted saw a compass needle swing beside a wire carrying current. Within months André-Marie Ampère in Paris showed that two parallel currents attract or repel each other. In 1821 Michael Faraday made a wire spin around a magnet, the first electric motor, and in 1831 he discovered electromagnetic induction. Joseph Henry built powerful electromagnets and found induction independently, and in 1834 Heinrich Lenz stated the rule for its direction.
James Clerk Maxwell then described electricity and magnetism with one set of equations. In 1865 they predicted electromagnetic waves traveling at the speed of light, and he concluded that light itself is one.
- 1600 Gilbert's De Magnete: Earth is a magnet.
- 1820 Ørsted finds that a current deflects a compass; Ampère studies forces between currents.
- 1821 Faraday's electromagnetic rotation, the first electric motor.
- 1825 William Sturgeon builds an electromagnet with an iron core.
- 1831 Faraday discovers electromagnetic induction; Henry finds it independently.
- 1834 Lenz's law gives the direction of induced currents.
- 1865 Maxwell's "A Dynamical Theory of the Electromagnetic Field" unites electricity, magnetism and light.
Test yourself
The Magnetism Check
Talk about it
- If you cut a bar magnet in half, why don't you get a separate north and south pole? What does that suggest about where magnetism comes from?
- Why does a compass point north? Is the pole it points to really a magnetic north pole?
- A motor and a generator are almost the same machine. Explain how one can become the other.
- Why is electricity sent across the country at very high voltage, then stepped down before it reaches homes?
Sources
- OpenStax, Physics (high school), Chapter 20 "Magnetism": 20.1 Magnetic Fields, Field Lines, and Force, 20.2 Motors, Generators, and Transformers, 20.3 Electromagnetic Induction.
- NOAA National Centers for Environmental Information, "Geomagnetism Frequently Asked Questions." ncei.noaa.gov
- National MagLab, "Magnetic Field Strengths" and "Hans Christian Ørsted."
- J. C. Maxwell, "A Dynamical Theory of the Electromagnetic Field," Philosophical Transactions of the Royal Society of London 155 (1865): 459–512. doi:10.1098/rstl.1865.0008
- Wikipedia, "De Magnete," "Michael Faraday," "Joseph Henry," "Lenz's law" and "Electromagnet."
Credits: all diagrams on this page, including the field lines, the motor-effect diagram and the share image, are original SVG made for Jugami.