Find a course

Module 5: Electricity and MagnetismLesson 13 of 1312 min

Magnets, Motors and Generators

Discover how electric currents create magnetic fields, how motors turn electricity into motion, and how generators, transformers and induction cooktops work.

Step 1 of 13Learn

Electricity makes magnetism

In 1820 Danish physicist Hans Christian Ørsted noticed something during a lecture: a compass needle twitched every time he switched on a current in a nearby wire. It was the first evidence that electricity and magnetism are two sides of the same phenomenon.

Every magnet has a north and south pole. Like poles repel and opposite poles attract. Around every magnet is a magnetic field, which you can map with iron filings or a compass. Earth itself is a giant magnet, its field produced by currents of molten iron in its outer core. A compass needle lines up with Earth's field; what we call the north magnetic pole is actually a south pole of the Earth's magnet, which is why it attracts the north end of a compass.

Ørsted's discovery means that every electric current creates a magnetic field around it. Coil a wire into many loops and the fields add up, creating an electromagnet. Put an iron core inside and the field becomes hundreds of times stronger. Unlike a permanent magnet, an electromagnet can be switched on and off and its strength controlled by the current.

Electromagnets are everywhere: in scrapyard cranes that lift cars, in doorbells and door locks, in loudspeakers, in the relays that switch circuits, and in MRI scanners, whose superconducting coils produce fields tens of thousands of times stronger than Earth's.

Step 2 of 13Practice · True or false

A current flowing through a wire creates a magnetic field around the wire.

Step 3 of 13Learn

How an electric motor works

An electric motor turns electrical energy into motion, and it's built on a simple fact: a wire carrying current inside a magnetic field feels a force. The force pushes the wire sideways, at right angles to both the current and the field.

In a basic motor, a coil of wire sits between the poles of a magnet. Current flows up one side of the coil and down the other, so the two sides are pushed in opposite directions and the coil starts to turn. Left alone, it would stop after half a turn, so a switching device, a commutator in simple motors or electronic controls in modern ones, reverses the current each half turn, keeping the coil spinning in the same direction.

Increase the current or the magnetic field strength and the force grows, giving more torque, or turning force. Electric motors are remarkably efficient, often converting over 90% of electrical energy into motion, compared with roughly 20 to 35% for a gasoline engine. They're in washing machines, fans, power tools, phones (the vibration motor), hard drives, elevators and electric cars.

A loudspeaker uses the same force without spinning: a coil attached to a paper or plastic cone sits in a magnet's field. The music signal varies the current, so the coil and cone move back and forth, pushing the air into sound waves.

Step 4 of 13Practice · Put in order

Put the steps of how a simple electric motor keeps turning in order.

Drag the items, or use the arrow buttons, to put them in order.

  1. Current flows through a coil placed in a magnetic field
  2. The coil rotates about half a turn
  3. The commutator reverses the current in the coil
  4. The forces keep turning the coil in the same direction
  5. The two sides of the coil are pushed in opposite directions

Step 5 of 13Diagram

Why a motor keeps turning

Why a motor keeps turningCycle diagram: Current flows in the coil → Field pushes the coil sideways → Coil turns half a turn → Commutator flips the current.DC motorCurrent flows inthe coilField pushes thecoil sidewaysCoil turns half aturnCommutatorflips thecurrent

Tap a shape with to see more.

Current flows in the coil
Field pushes the coil sideways

One side is pushed up, the other down, so the coil twists.

Coil turns half a turn
Commutator flips the current

Without this switch the coil would rock back and stop.

Step 6 of 13Learn

Generators: motion makes electricity

In 1831 Michael Faraday discovered the reverse of the motor effect: a changing magnetic field produces a voltage in a nearby wire. Move a magnet into a coil and a current flows; pull it out and the current reverses; hold it still and nothing happens. This is electromagnetic induction, and it generates almost all the world's electricity.

A generator spins a coil inside a magnetic field, or a magnet inside a coil. The field through the coil keeps changing, so a voltage is induced. Something has to provide the spinning: steam from burning coal or gas, or from nuclear reactors; falling water in a dam; wind on turbine blades. Only solar panels and batteries make electricity without a spinning generator.

Because the coil spins, the voltage naturally reverses direction many times a second, producing alternating current (AC): 60 times per second (60 Hz) in North America, 50 Hz in most other regions.

Induction also powers:

  • Transformers, which change voltage. AC in one coil creates a changing field that induces a voltage in a second coil. More turns on the second coil means higher voltage. Power grids step voltage up for transmission and down again for homes.
  • Induction cooktops, whose coil creates a rapidly changing field that induces currents in the bottom of an iron or steel pan, heating the pan directly. That's why they need magnetic cookware.
  • Wireless phone chargers, which use the same transformer trick across a small air gap.

Step 7 of 13Practice · Chart

Where the world's electricity came from in 2023

Which source supplied the largest share?

Tap the slice that answers the question, then press Check.

Where the world's electricity came from in 2023Pie chart with 6 categories: Coal: 35% (35%); Natural gas: 23% (23%); Hydro: 14% (14%); Nuclear: 9% (9%); Wind and solar: 13% (13%); Other: 6% (6%).35%23%14%9%13%
Approximate global shares, rounded, from Ember's Global Electricity Review 2024. Wind and solar are growing fastest.
Where the world's electricity came from in 2023
ItemShare of generation
Coal35%
Natural gas23%
Hydro14%
Nuclear9%
Wind and solar13%
Other6%

Step 8 of 13Practice · Match the pairs

Match each device to the physics principle it relies on most.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Electric motor
  2. Generator
  3. Electromagnet
  4. Compass

Step 9 of 13Note

Step 10 of 13Compare

Motor vs generator

AspectElectric motorGenerator
Energy inElectricalMechanical (spinning)
Energy outMechanical (spinning)Electrical
PhysicsCurrent in a magnetic field feels a forceA changing magnetic field induces a voltage
DiscoveredBuilds on Ørsted, 1820Faraday, 1831

Step 11 of 13Practice · Select all that apply

Which devices rely on electromagnetic induction? Select all that apply.

Select all that apply.

Step 12 of 13Practice · What would you do?

What would you do?

Nina bought an induction cooktop. Her favorite aluminum pan stays cold on it, while her cast-iron skillet heats quickly. Why?

Step 13 of 13Practice · Choose one

Most of the world's electricity is generated by: