PhysicsMagnetism

Electromagnets: How They Work, Strength and Everyday Uses

A simple iron-core electromagnet, a wire coil around an iron bar, connected to a 9-volt battery
A simple iron-core electromagnet, a wire coil around an iron bar, connected to a 9-volt battery. Image: MikeRun (CC BY-SA 4.0), via Wikimedia Commons

An electromagnet is a coil of wire that becomes a magnet while an electric current flows through it and loses most of its magnetism when the current stops. A scrapyard crane uses one to lift steel cars and then drops them by switching the current off. Electromagnets are simple, strong and easy to control.

Contents

What is an electromagnet?

In everyday words, an electromagnet is a magnet that you can switch on and off with electricity. It is usually a coil of insulated copper wire, called a solenoid, wrapped around a core. The core is often a piece of soft iron. Without current, the core is not magnetic. With current, it behaves like a bar magnet with a north pole at one end and a south pole at the other.

In physics, an electromagnet is a device that produces a magnetic field from an electric current. A magnetic field is a region of space where a magnet or a moving electric charge feels a force. The field is a vector quantity, so it has both a size and a direction. Its strength is measured as magnetic flux density B, in tesla (T). One tesla is a strong field for a laboratory magnet, and the field of the Earth at its surface is about 25 to 65 microtesla.

The electromagnet is different from a permanent magnet, such as a fridge magnet. A permanent magnet keeps its field all the time because its atoms are already aligned. An electromagnet gets its field from current, so its strength can be changed by changing the current. The unit of current is the ampere (A), which is one coulomb of charge passing a point each second.

The magnetic field of an electromagnet is the same kind of field that a bar magnet produces, which is why the two can attract or repel each other. The difference lies only in where the field comes from.

How it works: from current to magnetism

Start with a length of wire. When a current flows along a straight wire, the moving charges create a magnetic field that circles the wire. The field lines form rings around the wire, and their direction depends on the direction of the current. This effect was first observed by Hans Christian Ørsted in 1820.

Now bend the wire into a coil. The field around each turn adds to the field of the other turns. Inside the coil, the field lines run roughly parallel along the axis of the coil, and the coil behaves like a bar magnet. One end of the coil becomes a north pole and the other becomes a south pole.

Place an iron core inside the coil and the effect becomes much larger. Iron contains tiny regions called magnetic domains. The field of the coil lines up these domains, so each one adds its own small field to the total. Soft iron loses most of its magnetism when the current is switched off, because its domains return to random directions. This is why iron is used as the core of most electromagnets, while steel is avoided when the magnet must be switched off quickly.

The steps can be summarized simply. Current flows through the wire. The coil produces a magnetic field along its axis. The iron core concentrates and multiplies the field. When the current stops, the field collapses and the core loses most of its magnetism.

The formula for the field inside a coil

The field inside a long, tightly wound coil depends on the number of turns, the current and the length of the coil. The key equation is shown below.

B = μ0 × N × I / L

B is the magnetic flux density inside the coil, in tesla (T). N is the number of turns of wire, which is a pure number. I is the current in amperes (A). L is the length of the coil in metres (m). The constant μ0 is the permeability of free space, about 1.26 × 10⁻⁶ T·m/A, which is 4π × 10⁻⁷ T·m/A in older textbooks. The equation applies to an air-cored solenoid whose length is much greater than its diameter. An iron core multiplies the result by a factor called the relative permeability, which for soft iron can be many hundreds or thousands.

For example, take a coil with 500 turns, a current of 2.0 A and a length of 0.25 m, with an air core. The field is 1.26 × 10⁻⁶ × 500 × 2.0 ÷ 0.25, which is about 5.0 × 10⁻³ T, or 5 millitesla. Putting a soft iron core inside the same coil could increase the field hundreds of times. Doubling the number of turns or the current doubles the field in the air-cored case.

This is the reason designers use many turns of wire and a good iron core. Heating is the limit. A wire has electrical resistance, so the current heats it at a rate equal to I²R. Too much current overheats the coil, so practical electromagnets balance the number of turns, the wire thickness and the cooling.

Everyday examples

Electromagnets are used in many places where a force must be switched on, switched off or adjusted. Most people meet several every day.

  • Scrapyard cranes: A large electromagnet lifts scrap iron and steel. When the current is switched off, the load is released.
  • Doorbells: Pressing the button sends current through a coil, which pulls an iron armature to strike a bell. The armature returns when the current stops.
  • Relays: A small current in a coil closes a switch that carries a much larger current. Cars, lamps and industrial controls use relays to separate low-power controls from high-power circuits.
  • Loudspeakers: A coil attached to a paper cone moves inside a fixed magnet, and the signal current in the coil makes the cone vibrate and produce sound.
  • MRI scanners: Hospitals use very large superconducting electromagnets to make the strong, steady field that the scanner needs to image the body.
  • Maglev trains: Some high-speed trains use electromagnets to lift and guide the train above a track, so there is little friction.

Each of these uses depends on the same rule: current makes a field, and the field pulls on magnetic materials or on other magnets.

Electromagnet or permanent magnet: a common confusion

Students often think that an electromagnet is a different kind of magnetism. It is not. Both produce the same kind of magnetic field, and both can attract iron, steel, nickel and cobalt. The difference lies in the source of the field. A permanent magnet is magnetized once and keeps its field. An electromagnet needs a current, and its field stops almost at once when the current is switched off.

A related confusion is between electromagnets and electric motors or generators. Both use a coil and a magnetic field, but they work in different directions. In a motor, current in the coil produces a force that turns the shaft. In a generator, a moving magnetic field or a moving coil produces a voltage through electromagnetic induction. An electromagnet on its own produces a field and does not turn anything unless it is part of a machine.

The current that drives an electromagnet is measured in amperes. Counting the turns and the current gives the field of the coil, and the core only multiplies that field.

Who discovered it

The electromagnet developed from one observation and a series of improvements over about five years. The first step was the discovery that electricity and magnetism are linked.

In 1820, Hans Christian Ørsted, a Danish physicist, noticed that a compass needle moved when a current flowed in a nearby wire. This showed that an electric current produces a magnetic field. Within weeks, André-Marie Ampère showed that wires carrying current attract and repel each other, and he proposed that a coil acts like a magnet.

In 1824 and 1825, William Sturgeon, an English inventor, wound a bare copper wire around a horseshoe-shaped iron core. He showed that it could lift a much larger weight than its own mass when a current flowed. In the 1830s, the American physicist Joseph Henry made electromagnets with many layers of insulated wire, which were far stronger, and he showed how coils could work over long distances. Later inventors used electromagnets in telegraphs, motors and generators.

Common mistakes and exam tips

Students lose marks on electromagnets in a few predictable ways. The most common mistake is to say that an electromagnet is always magnetic. It is magnetic only while current flows. In an exam, always link the magnetism to the current.

A second mistake is to think that more current always gives a stronger electromagnet without limit. More current does give a stronger field, but the wire heats up, and the coil may be damaged. A better answer lists more turns, more current and an iron core together, and says that the iron core must be soft so that it loses its magnetism when the current stops.

A third mistake concerns poles. To find the north pole of a solenoid, curl the fingers of your right hand in the direction of the conventional current around the coil. Your thumb then points towards the north pole. Check the direction of the current carefully, because the conventional current flows from positive to negative.

Frequently asked questions

How does an electromagnet work?

An electromagnet is a coil of wire, often wrapped around an iron core. When an electric current flows through the coil, it produces a magnetic field that makes the core magnetic. When the current is switched off, the magnetism almost disappears.

What makes an electromagnet stronger?

An electromagnet is stronger with more turns of wire, a larger current and a soft iron core. Each of these increases the magnetic field of the coil. Heating from the current limits how large the current can safely be.

What is the difference between an electromagnet and a permanent magnet?

A permanent magnet keeps its magnetism all the time, while an electromagnet needs an electric current to be magnetic. An electromagnet can be switched on and off and its strength can be adjusted. Permanent magnets are simpler and need no power.

Who invented the electromagnet?

Hans Christian Ørsted showed in 1820 that an electric current deflects a compass needle. William Sturgeon built the first iron-core electromagnet in 1824 and 1825. Joseph Henry later made much more powerful versions with many more turns of wire.

What are electromagnets used for?

Electromagnets are used in scrapyard cranes, relays, doorbells, loudspeakers, MRI scanners and maglev trains. They are useful wherever a magnetic force must be turned on, off or adjusted.

Sources and further reading

  • OpenStax, "College Physics 2e"
  • Encyclopaedia Britannica, "Electromagnet"
  • NIST, "CODATA Fundamental Physical Constants"

Cite this page

“Electromagnets: How They Work, Strength and Everyday Uses.” Atoms & Forces, https://science.bigworldlist.com/physics/electromagnet/.