You can make a magnet without starting from one by using Earth’s own magnetic field to align the internal structure of steel or iron. The key methods involve hammering, stroking, or running electric current through a coil, and each one works by nudging tiny magnetic regions inside the metal into the same direction. Some of these techniques date back centuries and require nothing more than a steel bar and a hammer.
Why Some Metals Can Become Magnets
Iron, steel, nickel, and cobalt are all ferromagnetic, meaning their atoms naturally form small clusters called magnetic domains. Inside each domain, the atoms already point the same way, creating a tiny pocket of magnetism. In an unmagnetized nail or needle, though, these domains point in random directions, so their fields cancel out and the object shows no magnetic behavior.
Making a magnet is really about forcing those domains to line up. Once enough of them point the same direction, the object produces a net magnetic field you can detect. The challenge is doing this without an existing magnet to guide them, which is where Earth’s magnetic field comes in. The planet itself acts as a weak magnet, with field lines running roughly north to south. That field is faint compared to a refrigerator magnet, but it’s strong enough to bias domains in the right conditions.
Hammering a Steel Bar
The oldest and simplest method is to hold a steel bar vertically (pointing toward the ground) and strike one end repeatedly with a hammer. Each impact sends a shockwave through the metal that jostles the magnetic domains loose from their random positions. While they’re free to shift, Earth’s magnetic field nudges them into partial alignment along the bar’s length. The lower end develops north polarity and the upper end develops south polarity, matching the planet’s field lines.
This works best with hardened steel rather than soft iron. Soft iron magnetizes easily but also loses its magnetism almost immediately once the influence stops. Steel has higher coercivity, which is just a measure of how stubbornly a material holds onto its magnetization. Carbon steel, the kind found in old files, chisels, and large nails, is a good candidate. A sewing needle (which is hardened steel) also works well for small-scale experiments.
Point the bar toward magnetic north if you can, tilting it at a downward angle that roughly matches your latitude. In most of the continental U.S., that’s about 60 to 70 degrees from horizontal. Strike the same end 30 to 50 times with firm, consistent blows. You won’t get a strong magnet this way, but you should be able to pick up a paperclip or deflect a compass needle.
Letting Gravity and Time Do the Work
If you don’t need results quickly, you can skip the hammer entirely. Hanging an iron or steel bar vertically for several days to a week allows Earth’s field to slowly coax domains into alignment. The effect is subtle and produces a very weak magnet, but it demonstrates the same principle. Historical accounts from early magnetism research describe this as a viable starting point, particularly when combined with the stroking technique below.
The Stroking Method Without a Magnet
Once you’ve created even a weakly magnetized bar through hammering, you can use it to magnetize other bars more strongly through repeated stroking. This is the technique Joseph Henry and other early physicists used to bootstrap strong magnets from nothing.
The process works like this: start with six equal steel bars. Strike each one on its ends with a hammer while holding it vertically. Now arrange four of them into a rectangle (a parallelogram shape) and use the remaining two together as a horseshoe-shaped stroking tool. Rub the horseshoe pair repeatedly along the bars in the rectangle, always in the same direction. Then swap: take two bars from the rectangle and use them as the new stroking pair, replacing them in the rectangle with the bars you just used. Rotate through all six bars this way, and with each pass, the magnetism in the set grows stronger. You’re essentially using weak magnets to make slightly stronger ones, then using those to make even stronger ones.
For a simpler version, take a single hammered bar and stroke a steel needle across it repeatedly in one direction. Lift the needle off at the end of each stroke and return to the starting point before stroking again. After 40 or 50 strokes, the needle should hold enough magnetism to pick up iron filings or small paperclips.
Building a Battery-Powered Electromagnet
An electromagnet doesn’t use a permanent magnet at all. It creates a magnetic field by running electric current through a coil of wire. Wrap insulated copper wire (the kind used in hobby electronics) tightly around an iron nail, making as many turns as you can fit. Connect the two free ends of the wire to a battery, and the nail becomes a magnet instantly.
A single D-cell battery works for a basic demonstration. More turns of wire generally produce a stronger field. The nail acts as a core that concentrates the magnetic field lines created by the current flowing through the coil. When you disconnect the battery, the nail loses most of its magnetism right away if it’s soft iron, but a steel core will retain some.
One important caution: the wire and nail heat up quickly, especially near the battery terminals. Disconnect the battery every 30 seconds or so to prevent the insulation from melting. If the setup gets too warm to touch comfortably, let it cool before reconnecting. Using thicker wire and a fresh battery reduces resistance and heat buildup, but the warming effect is unavoidable in a simple circuit like this.
If your goal is to create a permanent magnet, use the electromagnet with a steel core instead of iron. Run the current for several short intervals, and the steel will retain a portion of the magnetism after you disconnect the battery. You’ve essentially used electricity to do what Earth’s field does, just far more effectively.
Heating and Cooling in a Field
Every ferromagnetic material has a temperature called the Curie point where it temporarily loses all magnetism. For iron, that’s about 770°C (1,418°F). For steel, it varies depending on the carbon content but sits in a similar range. If you heat a steel bar above its Curie point and then let it cool while aligned with a magnetic field, the domains reform in the direction of that field instead of randomly.
This is harder to do at home because the temperatures involved require a forge or a very hot torch. But the principle is the same one that created the first natural magnets. Lodestone, the naturally occurring magnetic mineral that ancient navigators relied on, likely got its magnetism from lightning strikes that provided a massive field while the rock cooled from volcanic heat. You can replicate a simplified version by heating a steel needle red-hot with a propane torch, then holding it in a north-south orientation (or inside an electromagnet coil) as it cools. The result is typically stronger than hammering alone.
Choosing the Right Metal
Not every piece of metal will hold magnetism. The distinction that matters is between magnetically “soft” and “hard” materials. Soft magnetic materials like pure iron or mild steel magnetize easily but let go of that magnetism just as easily. Hard magnetic materials like high-carbon steel, tool steel, and certain alloys resist demagnetization and make better permanent magnets.
For practical purposes, look for steel that’s been hardened. Hacksaw blades, sewing needles, old files, and drill bits are all good choices. Stainless steel is hit-or-miss because many common stainless alloys (like those in kitchen flatware) are not ferromagnetic at all. A quick test: if a known magnet sticks to it, it can be magnetized. If a magnet slides right off, the alloy won’t work regardless of what method you use.
Nails from a hardware store are usually mild steel and will hold a weak charge at best. If you want a magnet that lasts, start with the hardest steel you can find.
Testing Your Magnet’s Strength
The simplest test is to see whether your magnet picks up a paperclip. For a more precise measurement, gather a pile of paperclips and slowly lower your magnet flat onto the pile, then lift it straight up. Count the clips that stick, or better yet, weigh them on a kitchen scale in grams. This gives you a repeatable number you can compare across methods.
Consistency matters more than a single impressive pull. Lower the magnet the same way each time, from the same height, onto a flat pile that’s wider than the magnet itself. Run five trials and average the weight. Small changes in technique, like tilting the magnet or pushing clips off while lifting, can skew results significantly. If you’re comparing the hammering method against the stroking method, this kind of controlled testing will show you the real difference.
A hammered needle might pick up one or two clips. A well-stroked steel bar can manage a small chain. An electromagnet with a steel core, properly wound, can easily hold a dozen or more.

