Skip to content

How Do Magnets Work?

Magnets work through the electromagnetic interaction. Moving electric charges and intrinsic properties of electrons create magnetic moments and fields. In permanent magnets, many atomic-scale moments align in regions called domains, producing a persistent field with north and south poles.

Fields, electrons and aligned domains

How Do Magnets Work?

The short answer

Electricity and magnetism are connected parts of electromagnetism. Moving charge produces magnetic fields, and changing magnetic fields produce electric fields.

Electron spin and orbital motion give atoms magnetic moments. In some materials, interactions align many moments strongly enough to create a magnet.

What a magnetic field is

A magnetic field describes how magnetic forces would act at positions in space. It has both magnitude and direction.

Field lines are a visualization tool rather than physical strings. The field carries energy and can exert forces on moving charges and magnetic materials.

Why magnets have two poles

Every ordinary magnet has a north-seeking and south-seeking pole. Cutting a bar magnet produces smaller dipole magnets rather than isolated poles.

Field lines form closed patterns, emerging and returning in the conventional diagram. No confirmed isolated magnetic monopole has been found in ordinary matter.

Electron magnetism

Electrons possess intrinsic angular momentum called spin and an associated magnetic moment. Electron motion in atoms contributes additional magnetic behaviour.

Quantum mechanics governs how these moments can align and interact. The phrase tiny bar magnet is a helpful analogy but not a literal mechanical picture.

Magnetic domains

Ferromagnetic materials can divide into domains containing similarly aligned moments. Different domains may point in different directions, cancelling much of the external field.

An applied field can move domain boundaries and favour some orientations. A strong remanent alignment can remain after the external field is removed.

Why iron is attracted

Iron is ferromagnetic under ordinary conditions and responds strongly to a magnetic field. A nearby magnet can rearrange domains and induce a net magnetization.

The force is stronger where the field changes across position. Not every metal is ferromagnetic; copper and aluminium behave very differently.

Attraction and repulsion

Opposite magnetic poles in a simple pair attract, while like poles repel. The forces arise from the energy of the combined field configuration.

Orientation matters because magnets tend to rotate as well as translate. Complex magnet shapes can create force patterns that simple pole slogans do not capture.

Permanent magnets

Hard magnetic materials resist changes in domain orientation. Composition, crystal structure and manufacturing influence coercivity and strength.

Heating, shock or strong opposing fields can reduce magnetization. Rare-earth magnets are powerful because of specific material properties, not because rare earths are the only magnetic elements.

Electromagnets

Electric current in a wire produces a magnetic field around it. A coil adds the contributions from many loops and concentrates the field.

An iron core can greatly strengthen the response. Switching or varying current gives electromagnets controllability that permanent magnets lack.

Motors and generators

Motors use magnetic forces on currents to create torque. Generators use changing magnetic flux to induce voltage.

The devices convert energy rather than creating it. Their operation shows that electric and magnetic fields are different aspects of one interaction.

Why compasses point north

Earth has a large-scale magnetic field generated mainly by motion in its liquid outer core. A compass needle aligns approximately with the local field direction.

Magnetic north is not identical to geographic north and changes over time. Nearby metal, electronics and geological anomalies can disturb a compass.

Magnetism and temperature

Thermal motion can disrupt ordered magnetic alignment. Above a material’s Curie temperature, ferromagnetic order is lost.

Cooling does not make every substance a permanent magnet. Temperature effects depend on material structure and quantum interactions.

Superconductors and levitation

Superconductors below a critical temperature can exclude or strongly reshape magnetic fields. Induced currents can oppose changes and support levitation configurations.

Flux pinning can stabilize a superconductor relative to a magnet. The effect is not ordinary attraction with friction magically removed.

How magnetic fields are measured

Magnetometers measure field strength and direction using several physical principles. The tesla is the SI unit of magnetic flux density.

Sensitive instruments detect fields from Earth, the brain and distant spacecraft environments. Calibration and magnetic contamination are major experimental concerns.

Common misconceptions

Magnets do not contain an unlimited supply of usable energy. A static magnet cannot power a perpetual-motion machine.

All metals are not attracted to magnets. Magnetism is not blocked by most ordinary materials in the way light is blocked by an opaque wall.

Can the appearance change without the underlying physics changing?

Yes.

What should a reader remember?

Keep the geometry and the energy pathway in view.

Key takeaways

  • Magnets work through the electromagnetic interaction. Moving electric charges and intrinsic properties of electrons create magnetic moments and fields. In permanent magnets, many atomic-scale moments align in regions called domains, producing a persistent field with north and south poles.
  • A strong explanation follows the mechanism step by step instead of relying on a slogan.
  • Authoritative measurements support the central account while leaving room to refine unresolved details.
  • Related phenomena may share part of the mechanism without being the same event.

Continue exploring

What researchers will test next

When several independent tests agree, confidence can grow.

Sources and further reading

  1. University of Minnesota Institute for Rock Magnetism — Magnetic anisotropy
  2. DOE — The electromagnetic force
Accuracy and updates

Last updated October 29, 2026.

Report a correction →
ABOUT THE EDITORIAL TEAM

Barnakle Editorial Team

Barnakle Editorial Team is the collective byline used for Barnakle’s editorial articles. The contributor profile explains the team identity and links to the publication’s editorial policies.

More from the editorial team →
THE CURIOUS LIST

Discover something remarkable.

Ideas from nature, science, history and beyond—delivered regularly.

Join the Curious List →