English
/

How Do Magnets Work? Electrons, Poles and Domains

Last edited Nov 5, 2026 · 5 min read

Magnets work by producing magnetic fields from electron spin or electric current. In a permanent magnet, magnetic domains align so their effects reinforce one another; opposite poles attract and like poles repel.

On this page▾
  1. Three kinds of magnetic behavior
  2. What every magnet has in common
  3. How does a magnet work at the electron level?
  4. Why do magnets attract iron but not everything?
  5. What makes iron special: magnetic domains
  6. Permanent magnets vs temporary magnets
  7. How magnets lose their pull
  8. How do electromagnets work?
  9. How strong is a magnet?
  10. Frequently asked questions
  11. Can a paper clip attract another paper clip?
  12. Does a permanent magnet need electricity?
  13. What changes the result?

Three kinds of magnetic behavior

Type Where the field comes from What happens when the influence is removed
Permanent magnet Magnetic order retained in the material Remains magnetized without an electrical supply
Temporary magnet, such as a paper clip An outside magnet organizes its magnetic domains Magnetization is readily lost; some can remain briefly
Electromagnet Current through a wire or coil The current-produced field disappears when current stops

What every magnet has in common

The MagLab lists a few properties shared by all magnets:

  • Every magnet has a north pole and a south pole.
  • Opposite poles attract, and like poles repel. North pulls on south; north pushes away north.
  • Every magnet is surrounded by a magnetic field. By convention, the field lines point away from the north pole and toward the south pole.

How does a magnet work at the electron level?

According to the MagLab, all magnetism comes down to electrons, in one of two ways:

  1. Moving electrons. An electric current, which is a flow of electrons through a wire, always creates a magnetic field. This is how electromagnets work.
  2. Spinning electrons. In permanent magnets like the one on your fridge, magnetism comes from the spin of the electrons. Each electron acts like a tiny magnet with its own north and south pole, and its axis can point in one of two possible directions.

Why do magnets attract iron but not everything?

In most materials, opposing electron magnetic orientations cancel one another rather than adding up to a noticeable overall magnet. Iron behaves differently because groups of atoms form domains with shared magnetic orientation.

What makes iron special: magnetic domains

Iron and a few other substances are different. Their atoms group into small regions called magnetic domains. Inside each domain, the electrons share the same magnetic orientation.

An ordinary iron nail is not a permanent magnet because its domains point in different directions and cancel each other out.

Put that nail in a magnetic field, and the domains begin lining up in the same direction. The MagLab describes the result simply: a permanent magnet is an object in which all the domains are aligned the same way.

Materials with this behavior are called ferromagnetic. Iron, nickel and cobalt are familiar examples. The important distinction is not simply "metal or not metal": the electrons and domains must respond in a way that produces a noticeable overall attraction. Aluminum does not behave like iron, so a magnet does not stick to an aluminum soda can the way it can stick to an iron-containing surface.

An unmagnetized iron nail can still be attracted: a nearby magnet changes its domain alignment. The nail need not already be a strong permanent magnet.

Permanent magnets vs temporary magnets

Permanent magnets keep their magnetism without any power. You cannot switch them off. The MagLab names ceramic magnets and alnico, an alloy of aluminum, nickel, and cobalt, as two common types.

Temporary magnets act like magnets only while they are in a magnetic field. Soft iron behaves this way, and the MagLab notes that this is why it is used as a temporary magnet in devices such as telephones and electric motors.

In a MagLab classroom activity, a paper clip touching a magnet becomes a magnet itself and can hold up a second paper clip. Pull the two clips away gently and they still cling to each other for a while, because their electrons are still organized. Drop them on a table and the jolt scrambles that order, so the magnetism is lost.

How magnets lose their pull

"Permanent" does not mean forever. The MagLab describes two main ways to demagnetize a magnet:

  • Heat. Adding heat adds energy that disrupts the alignment. The temperature at which a magnet can no longer hold its field is called the Curie point.
  • Impact. A hard blow, such as from a hammer, can knock aligned domains out of alignment.

How do electromagnets work?

Current generates a magnetic field circling the wire.

A single straight wire makes a weak field. The MagLab describes how to make it stronger:

  1. Coil the wire. Wrapping it into loops combines the separate fields into a much stronger one. A coil like this is called a solenoid, and its field increases in proportion to the number of coils. For the same current and otherwise comparable geometry, more turns strengthen the field; the MagLab illustrates this with a ten-coil example.
  2. Add an iron core. The iron's domains line up with the coil's field and boost it significantly without using more electricity.
  3. Increase the current. For the same coil and comparable conditions, a larger current strengthens its field. This explains the principle; it is not an instruction to connect wire to a household outlet.

When the current stops, the field produced by that current disappears; an iron core may retain some magnetization.

How strong is a magnet?

Scientists measure magnetic field strength in tesla and gauss, where 1 tesla equals 10,000 gauss. The MagLab gives some comparisons:

Magnet Approximate strength
Earth's magnetic field 0.5 gauss (0.00005 tesla)
Typical fridge magnet 10 gauss
Permanent-magnet example in the MagLab overview about 1.5 tesla

Worked comparison: using the overview's examples, a 10-gauss fridge magnet field is 10 divided by 0.5, or 20 times the listed Earth-field value. It is also 10 divided by 10,000, or 0.001 tesla. This compares field values only: it does not mean the fridge magnet can lift 20 times as much. The values describe different magnetic fields, not a universal pulling-force rating.

Electromagnets can produce very strong fields, useful in research and MRI. Their power supply, coil design and, for superconducting magnets, cooling requirements differ from an ordinary fridge magnet.

The temperature at which a magnet loses its magnetism depends on its material.

Frequently asked questions

Can a paper clip attract another paper clip?

Yes. A paper clip touching a magnet becomes magnetized and can attract a second clip. If you separate them gently, they can still attract; dropping them on a table can remove the field. Paper clips are temporary magnets: they can be magnetized but do not hold the field.

Does a permanent magnet need electricity?

No electrical supply is needed to maintain an ordinary permanent magnet's field. An electromagnet instead relies on current. Stopping the current removes the field made by that current, although an iron core may retain magnetization.

What changes the result?

For a permanent magnet, heat and impact can disturb the magnetic organization; the temperature at which a magnet no longer holds its field is the Curie point. An electromagnet's field depends on the current.

Sources

  1. National MagLab Magnet Academy, Magnets from Mini to Mighty
  2. National MagLab Magnet Academy, Magnetic Domains
  3. National MagLab Magnet Academy, Magnetizing and Unmagnetizing (lesson plan)

About this guide

Howlane operator · Checked against the official sources listed above. It is general information, not professional advice.

AboutEditorial standardsCorrectionsReport an error

Edit history

  • Updated
  • Sources checked
  • Updated
  • Updated
  • Updated
  • Published
Also available in 18 languages

Español · Português · Français · Deutsch · Italiano · Nederlands · Polski · Русский · Українська · Türkçe · العربية · हिन्दी · Bahasa Indonesia · Tiếng Việt · ไทย · 日本語 · 简体中文 · 繁體中文