Why do magnets work?
Last updated: April 1, 2026
Key Facts
- Electrons spinning around atoms create magnetic fields at the atomic level
- In magnetic materials, billions of atomic magnetic fields align in the same direction
- Magnetic domains are regions where atomic magnets point the same way, amplifying the effect
- Opposite magnetic poles attract while similar poles repel each other
- Earth's core contains moving molten iron that generates Earth's protective magnetic field
The Atomic Foundation of Magnetism
Magnetism originates from the movement of electrons within atoms. As electrons orbit the nucleus and spin on their axes, they generate tiny magnetic fields. In most materials, these electron movements are random and cancel each other out. However, in magnetic materials like iron, cobalt, and nickel, the atomic magnetic moments align in the same direction, creating a measurable magnetic force.
Magnetic Domains and Alignment
A magnet's strength comes from magnetic domains—regions containing billions of aligned atoms. When domains point in the same direction, their individual magnetic fields combine to create a powerful effect. In non-magnetic materials, domains point randomly. When you magnetize something, you force domains to align. This is why heating a magnet weakens it: heat causes atomic vibrations that disrupt alignment.
How Magnetic Poles Work
Every magnet has a north and south pole. Unlike charges, opposite poles attract while similar poles repel. This happens because magnetic field lines flow from north to south poles, and the field configuration creates attractive or repulsive forces between magnets. Interestingly, you cannot isolate a single pole—cutting a magnet in half creates two complete magnets with their own north and south poles.
Earth's Magnetic Field
Earth acts as a giant magnet due to moving molten iron in the outer core. This flowing iron generates electric currents, which produce the magnetic field protecting us from solar radiation. The magnetic north pole is actually near the geographic south pole, and it shifts gradually over time. This field is essential for life, shielding Earth's atmosphere from solar wind.
Electromagnets and Applications
When electric current flows through a wire coiled around iron, it creates an electromagnet. The moving electrons in the current generate a magnetic field that aligns iron's domains. This principle powers motors, transformers, MRI machines, and countless other devices. The strength depends on current flow and coil design.
Related Questions
What is a magnetic field?
A magnetic field is the invisible area of force surrounding a magnet where magnetic effects occur. It exerts forces on other magnets and moving charged particles, and can be visualized using iron filings that align along field lines.
What is the difference between permanent and electromagnets?
Permanent magnets have aligned electrons that continuously generate a magnetic field without external power. Electromagnets create magnetic fields only when electric current flows through coiled wire, allowing them to be switched on and off.
How are electromagnets different from permanent magnets?
Electromagnets generate magnetism by passing electric current through coiled wire, while permanent magnets maintain constant magnetism from aligned atomic fields. Electromagnets can be turned on and off, whereas permanent magnets cannot.
What's the difference between permanent and electromagnets?
Permanent magnets maintain their magnetic field through aligned atomic electrons, while electromagnets generate magnetic fields only when electric current flows through them. Electromagnets can be turned on and off.
What causes a compass needle to point north?
Earth itself is a giant magnet with molten iron swirling in its core, creating a planetary magnetic field. A compass needle aligns with this global field, causing its north pole to point toward Earth's magnetic north pole.
What are magnetic domains?
Magnetic domains are regions within a magnet where atoms are aligned in the same direction, creating a localized magnetic field. When multiple domains point the same way, their effects combine to create a strong overall magnetic field that we observe in the magnet.
Can magnets lose their strength over time?
Yes, magnets gradually weaken through physical impacts that misalign domains, extreme heat that causes atomic vibrations, and corrosion that damages the magnetic material. Permanent magnets lose strength much slower than electromagnets.
Why do some materials lose their magnetism?
Heat disrupts the aligned electron spins in magnetic materials, causing them to move randomly and cancel each other out. If a magnet is heated above its Curie temperature, it permanently loses its magnetic properties because the atomic structure changes.
Why do magnets attract iron but not all metals?
Iron, cobalt, and nickel are ferromagnetic, meaning their unpaired electrons easily align in the same direction. Most other metals lack this property and don't respond strongly to magnetic fields.
Why do some materials stick to magnets and others don't?
Materials with unpaired electrons in their atomic structure, like iron and nickel, can become magnetized. Non-ferromagnetic materials like aluminum and copper lack the necessary unpaired electrons to align and respond to magnetic fields.
Can electromagnets be turned on and off?
Yes, electromagnets work by running electrical current through coiled wire, which creates a magnetic field around the coil. Turn off the current and the magnetic field disappears, giving you full control over when the electromagnet is active.
Can magnets lose their strength?
Yes, magnets can lose their strength through heating, physical shock, or exposure to opposing magnetic fields. This demagnetization occurs because heat or mechanical stress disrupts the alignment of magnetic domains within the material.
Why do magnets stick to some metals but not others?
Magnets stick to ferromagnetic materials like iron, nickel, and cobalt because these elements' electrons can easily align with external magnetic fields. Non-ferromagnetic metals like aluminum and copper have atomic structures that resist this alignment.
Can magnets ever stop working?
Permanent magnets gradually lose strength over time due to vibrations, heat, and environmental factors that disrupt electron alignment. However, they retain some magnetism indefinitely unless exposed to extreme conditions that fundamentally alter the material's structure.
Can magnets lose their strength over time?
Yes, magnets gradually lose strength due to vibrations, temperature changes, and physical shocks that disrupt the alignment of magnetic domains. This process occurs slowly in well-maintained magnets but can happen quickly with rough handling or heat.
Can magnets work in space?
Yes, magnets work in space just as they do on Earth. Magnetism doesn't depend on air or atmosphere, only on electron alignment and electromagnetic forces, which operate the same in the vacuum of space.
Why do some metals stick to magnets and others don't?
Ferromagnetic metals like iron, nickel, and cobalt have electrons that naturally align their spins in the same direction, making them magnetic. Non-ferromagnetic metals like aluminum and copper cannot achieve this alignment and therefore won't stick to magnets.
How do electromagnets differ from permanent magnets?
Electromagnets generate magnetism only when electric current flows through coiled wire, allowing them to be turned on and off. Permanent magnets maintain their magnetic properties indefinitely, though their strength can gradually decrease over time.
Sources
- Wikipedia - Magnetism CC-BY-SA-4.0
- NASA - How Electromagnets Work Public Domain