A child demonstrates a homemade electromagnet made from an iron nail wrapped in copper wire and connected to an AA battery, attracting metal paper clips.

Make an Electromagnet with a Battery

Build a temporary magnet using a battery, wire and a nail, and discover how electricity can make magnetism.

  • Easy
  • 30 min

Your Mission

Can electricity turn a plain nail into a magnet?

In this project, you will wrap wire around a nail and connect it to a battery. You will find out how electricity can make a magnet that switches on and off.

AimBuild a working electromagnet and find out how to make it stronger.

What You Need

  • Large iron nail1About 3 in (8 cm) long.
  • Insulated copper wire1 pieceAbout 3 ft (1 m) long.
  • AA battery (1.5 V)1
  • Small paper clips20
  • Tape1 roll
  • Scissors1
  • Compass1Optional, for the challenge.

Step by Step

  1. Step 1: Get ready

    Ask an adult to strip about 1 in (2 cm) of plastic off both ends of the wire.

  2. Step 2: Wrap the nail

    Wind the wire around the nail 20 times, all in the same direction. Leave a long tail at each end.

  3. Step 3: Connect the battery

    Tape one wire end to the + end of the battery and the other wire end to the - end.

  4. Step 4: Test your magnet

    Touch the tip of the nail to the paper clips. Count how many stick.

  5. Step 5: Switch it off

    Peel one wire off the battery and watch what happens to the clips.

  6. Step 6: Make it stronger

    Wrap the wire 20 more times, so there are 40 turns in all. Test again and count the clips.

How Does It Work?

When electricity flows through a wire, it makes an invisible magnetic field around the wire. Wrapping the wire into a coil makes the field stronger. The iron nail makes it stronger still, because the tiny magnetic bits inside the iron line up. When the electricity stops, the bits mix up again and the magnet switches off.

Where Are Electromagnets Used?

Cranes in scrapyards use giant electromagnets to lift heavy metal. Doorbells, electric motors, speakers and headphones all use electromagnets. Hospital MRI scanners and maglev trains use very powerful ones.

Try This Challenge

Swap the nail for a wooden pencil and count the clips again. Then hold a compass near the nail and watch the needle. What do you notice?

What Happened?

The nail picks up paper clips while the battery is connected and drops them when a wire is removed. More turns of wire pick up more clips. Your counts will depend on your nail, wire and battery.

What we learned

Electricity can make a magnet, and an electromagnet is temporary because it works only while the electricity flows.