How to Wind a 12-Volt Solenoid Coil

Use magnet wire to create the coil for a simple solenoid.
••• spools with a wire image by Victor M. from

A solenoid is described as a coil of wire that generates a magnetic field when an electric current passes through it. The strength of the generated magnetic field is proportional to the number of turns in the coil and the amount of electric current flowing through the wire. If a core of ferromagnetic material, such as soft iron, is inserted into the coil, the strength of the magnetic field is magnified to many times the strength of the coil alone. A solenoid is simple to construct, using magnet wire for the coil and an iron nail for the core.

    Wind the magnet wire around 2 inches of plastic tube, cut from a straw or a pen casing. Leaving 1 foot of wire free, wind the wire around the tube, starting at one end and working your way across to the other. The coils should be neatly wound, and tightly packed together. Once you have reached the other end of the tube, start a new layer and repeat until all the wire is wound. Leave 1 foot of wire at the other end of the coil to allow you to connect the wire to the battery.

    Wrap a layer of masking tape around the coil, which will help to hold the coil together and stop it from unwinding.

    Rough up the ends of the wire with sand paper to reveal clean copper and create a good electrical connection to the battery.

    Connect the free wire from one end of the coil to the negative terminal on the battery, and the free wire at the other end of the coil to the positive terminal on the battery. As the circuit is completed, a magnetic field is created around the coil with the highest intensity through the center of the coil. You can verify this by placing a compass near the coil, and watching the needle swing as it is affected by the coil's magnetic field.

    Disconnect the wire from the positive terminal of the battery. Place the iron nail with it's tip slightly inside the coil. Attach the wire to the positive terminal of the battery again, and you will see the iron nail is pulled further into the coil due to the coil's magnetic field. This is the principle used by solenoid switches and valves.

    Disconnect the wire from the positive terminal. Place the nail fully inside the coil, and then reconnect the wire to the positive terminal again to complete the circuit. With the nail fully inside the core, the magnetic field strengthening effect is maximized, and the coil can be used as an electromagnet. Try using the coil to pick up small metal items, such as paperclips. You will see they are attracted to the coil.

    Things You'll Need

    • 40 feet of magnet wire
    • Iron nail
    • 12-volt battery
    • 2-inch length of plastic tube
    • Sand paper
    • Masking tape
    • Compass
    • Paper clips


    • Use 36 SWG magnet wire or a similar gauge. Thicker wires have less resistance, allowing more current to flow. Although this increases the strength of the electromagnet, it will also drain the battery much faster, so a thin wire is best for this experiment.

      To increase the power of the solenoid, use a longer iron nail and add more windings to the coil.


    • Do not leave the coil connected to the battery for more than 10 to 15 seconds at a time. Any longer and the battery will quickly drain, and the coil and battery can become very hot.

Related Articles

How to Strengthen an Electromagnetic Field
How to Magnetize Washers
How to Build an Electromagnet
How to Make a Negative Charge Magnet
How to Remagnetize a Compass Needle
Motor Rewinding Procedures
How to Remove Iron Filings From Magnets
How to Reverse the Poles on a Magnet
How to Make a Powerful DC Electromagnet
How to Build a Magnetic Coil
How to Build an Electromagnetic Field Generator
Science Project on an Electric Bell
How to Increase the Strength of an Electromagnet
How to Make an Electrical Circuit With a Switch
How to Make Stainless Steel Magnetic
How to Demagnetize Steel
Factors That Affect the Strength of an Electromagnet
How to Build an Electric Motor From Scratch
What Is a Ferrite Clamp?