The basic principle behind an electromagnet is that electricity flowing through a metal object generates a magnetic field. To create a simple electromagnet, you'll need a power source, a conductor, and a piece of metal. Wrap insulated copper wire around a nail or a bolt made of iron before connecting the wire to a battery, and watch the electromagnet attract metallic objects. Remember, since you are working with electricity, exercise caution to avoid electric shocks.
Steps
Wrap the wire around the iron object

Choose a nail or screw made of iron as the core for your electromagnet. Look around your house for an iron object like a nail, screw, or bolt. Pick one that is about 8-15 cm long to have ample space to coil the copper wire around it.

Cut a length of copper wire. Since you won’t know the exact length needed until you finish wrapping the wire around the metal, don’t cut the wire off the spool just yet. Position the wire perpendicular to the axis of the metal object so you can easily wrap multiple loops.
Leave a 5-8 cm section of copper wire free at the end. Before you begin wrapping, leave a 5-8 cm section of unwrapped wire to connect to the battery.
- Position the wire so it is perpendicular to the axis of the metal object.
Wrap the insulated copper wire around the metal object in one direction. Coil the wire around the metal in a spiral pattern to create the conductive coil. Make sure to wrap it continuously in one direction to generate a strong current.
- It’s crucial that the wire runs in one direction, so the current flows in the same direction. If you wrap the wire in different directions, the current will flow in multiple directions, and the magnetic field will not be created.
Push the coils tightly together as you wrap. Wrap the wire tightly around the metal object, creating multiple spirals for the strongest current. As you wrap, use your fingers to press the coils together. Continue wrapping and pressing the coils together until you reach the end of the metal object.
- The more wire you use, the stronger the current, so be cautious while handling the electromagnet.

Wrap the entire nail in copper wire. There’s no specific number of loops required—just make sure to wrap the entire nail, and remember to press the coils together tightly.
Cut the wire and leave an extra 5-8 cm section. After wrapping the wire around the metal object, use scissors or pliers to cut the wire from the spool. Make sure the second wire’s length matches the first one so both ends can connect evenly to the battery.
Strip the insulation from both ends
Remove about 1-2 cm of insulation from both ends of the wire. Use scissors, sandpaper, or a razor blade to strip the insulation from each end. This allows the wire to conduct electricity better.
- Once the insulation is removed, the wire will change from the copper color of the coating to its natural silver color.
Twist the ends of the wire to form small loops. Use your fingers to bend each wire end into a small loop with a diameter of about 0.5 cm. These loops will connect with the battery terminals.
- Forming loops will ensure a better connection between the wire and the battery terminals.
Attach both ends of the wire to each terminal of a D-size battery. Find a D-size battery or a 1.5-volt battery, and connect each end of the wire to one terminal of the battery. Secure the connections with tape or electrical tape.
- Attach one wire to the negative terminal of the battery and the other to the positive terminal.
Test the electromagnet while keeping the wire ends connected to the battery. Once the battery and wires are secure, try the electromagnet! Hold the battery and metal object near a small metal item like a paperclip or a pin. If the nail, screw, or bolt attracts the metal object, the electromagnet is working.
- If the battery gets hot, place a piece of cloth between the battery and the wire to prevent direct contact.
- When you're done testing, disconnect the wire from the battery.
Increase the magnet's strength

Use a battery pack instead of individual batteries for a stronger current. A battery pack can provide longer-lasting power and a stronger current than a single battery. These can be purchased at hardware stores or battery shops and work like regular batteries.
- Do some research before choosing a large battery pack to ensure your experiment remains safe.
- Connect each end of the wire to the positive and negative terminals of the battery pack, and use tape to secure the connections.

Use a larger metal object to generate a stronger magnetic field. Instead of a nail, use a metal rod about 30 cm long and 1 cm in diameter. Pair it with a battery pack to create a more powerful magnet. You will need more copper wire to wrap around the larger metal rod.
- Wrap the copper wire tightly around the metal rod to ensure a strong current.
- If using a larger metal rod, wrap it only around part of the rod for safety.
- Use electrical tape to connect the wire ends to the battery pack terminals.

Wrap more coils for a stronger magnet. The more coils you wrap, the stronger the current becomes. Buy a larger spool of copper wire and wrap as many coils as possible around the nail or screw to create a stronger magnet. Feel free to add more layers of wire if you wish.
- Use a small metal object like a nail, screw, or bolt for this experiment.
- Wrap the copper wire around the metal in one direction.
- Use fabric tape or electrical tape to secure the wire ends to the battery terminals.
Warning
- Never use high-voltage electricity, as it can result in electric shock.
- Do not attempt to insert the wire into an electrical outlet. High-voltage electricity passing through the wire can create a very strong current, which could lead to a dangerous electric shock.
Things You’ll Need
- Nails, screws, or bolts made of iron
- Insulated copper wire
- D-size battery
- Wire cutters
- Sandpaper or razor blade
- Metal objects (e.g., pins, paper clips, etc.)
- Battery pack (optional)
- Larger metal object (optional)
