How Do Magnets Work? The Invisible Force That Shapes Our World

Magnets work through invisible fields created by spinning electrons in atoms. Learn how magnetic domains, electromagnets, and Earth's magnetic field power the world around us—from electric motors to MRI machines.

How Do Magnets Work? The Invisible Force That Shapes Our World
Photo by Dan Cristian Pădureț

Magnets are all around us—from the simple fridge magnet to the powerful electromagnets in MRI machines. They help generate electricity, store data, and power countless technologies. But how do magnets actually work? Let’s dive into the invisible force of magnetism.


What Is a Magnet?

A magnet is any object that produces a magnetic field, an invisible area of force that can attract or repel certain materials—mainly iron, nickel, and cobalt.

Magnets come in two main types:

  • Permanent Magnets: Naturally magnetic all the time (like the ones on your fridge).
  • Electromagnets: Magnetic only when an electric current flows through them (used in motors, speakers, and MRI machines).

Magnetic Fields: The Force You Can’t See

A magnetic field is the area around a magnet where magnetic forces can be detected. It flows from the north pole to the south pole of a magnet. You can see this in action by sprinkling iron filings near a magnet—they align along the magnetic field lines.


How Do Magnets Work on an Atomic Level?

At the heart of magnetism is a tiny particle called the electron. Electrons spin as they move around the nucleus of an atom, and this spin creates a tiny magnetic field.

In most materials, these tiny magnetic fields cancel each other out because the electrons spin in random directions. But in magnetic materials, like iron, many of the electrons align in the same direction. This alignment causes a net magnetic field—and the material becomes magnetized.


Domains: Tiny Magnetic Regions

In magnetic materials, atoms group into regions called magnetic domains. Each domain acts like a tiny magnet. When a material is unmagnetized, these domains point in different directions and cancel each other out.

But when you magnetize the material, the domains align—and the object becomes a magnet.


Electromagnets: Powering Modern Technology

An electromagnet is created by running an electric current through a coil of wire wrapped around a metal core, usually iron. This current creates a magnetic field. The more coils and the stronger the current, the more powerful the magnet becomes.

Electromagnets are used in:

  • Electric motors and generators
  • MRI machines
  • Maglev trains
  • Speakers and microphones

Fun and Fascinating Facts About Magnets

  • Earth itself is a giant magnet with a magnetic field that protects us from solar radiation.
  • The strongest magnets on Earth are made from neodymium, a rare earth element.
  • Birds and other animals use Earth's magnetic field to navigate during migration.
  • Magnetic fields are also used in magnetic resonance imaging (MRI) to see inside the human body.

Why Do Opposites Attract?

One of the most familiar rules of magnetism is: opposite poles attract, like poles repel. This happens because magnetic fields always flow from the north pole to the south pole. Two north poles push against each other, while a north and a south pole pull toward each other, completing the magnetic circuit.


Magnets might seem like everyday objects, but the science behind them is anything but ordinary. They reveal a fundamental force of nature—electromagnetism—that plays a crucial role in everything from the structure of atoms to the power grid that lights up your home.

Understanding how magnets work isn’t just fascinating—it’s essential to appreciating the hidden forces that make modern life possible.