Interactive Explainer
Why do magnets attract?
Magnets attract or repel because magnetic fields carry energy, and the system naturally shifts toward lower-energy arrangements. Opposite poles can lower the field energy between them, while like poles reinforce the field in a way that resists being pushed together.
Magnets attract when their field arrangement lowers the energy of the combined system, especially when opposite poles face one another.
Materials like iron contain magnetic domains that can align much more readily, making them strongly attracted in an external magnetic field.
The magnetic field weakens rapidly with distance, so a dramatic pull nearby can fade quickly as the gap widens.
Try It Yourself
Magnet Lab
Strengthen the magnet, move the pieces farther apart, switch the pole setup, or swap the target material to see why some combinations snap together while others hardly react.
What changes the fastest
What is driving the result
The Big Idea
What is actually happening?
An interactive explainer about how magnetic fields store energy, why opposite poles pull together, why like poles repel, and why some materials respond much more strongly than others.
A magnet creates a field around itself
That field fills the surrounding space and carries information about direction and strength.
Another magnet or material enters the field
Its own domains or poles respond to the external field instead of remaining unchanged.
The system seeks a lower-energy arrangement
Opposite poles often reduce the field energy between the objects, which creates a net pull together. Like poles do the opposite and resist compression.
Distance controls how much field can interact
As the gap grows, the useful field overlap drops sharply, which is why the force falls away so quickly.
Good Follow-Up Questions
The details are where this gets interesting
The short answer helps, but the edge cases and comparisons are what make the topic memorable.
Iron is special because its domains can align strongly
Many materials barely respond, but ferromagnetic materials can reorganize their internal domains dramatically in a magnetic field.
Repulsion is just as real as attraction
A magnetic interaction is not always a pull. Like poles facing one another can create a stable push-apart configuration instead.
Magnetic fields are not tiny strings
The field is spread through space. The force is the result of how those fields combine and how energy changes as the objects move.
Compare Scenes
Why one setup snaps together while another stubbornly pushes apart
The outcome depends on pole orientation, field strength, distance, and how willing the target material is to align.
Fast Answers
Questions people usually ask next
Good science pages should answer the obvious follow-ups without making the reader hunt for them.