Britannica
Sources used in this answer
Why do opposite magnetic poles attract while like magnetic poles repel?
Created from Britannica articles
using AI.
AI can make mistakes, so verify using Britannica articles.
magnetism
Some lines of the magnetic field B (blue) for an electric current I (gold) in a loop.
In physics, the interaction between magnetic poles is fundamentally understood through the behavior of magnetic dipoles and their associated magnetic fields.1
The attraction and repulsion of magnets can be explained by the following principles:
- Interaction of Fields: The force between two magnets is the result of one dipole interacting with the magnetic field produced by the other. When a magnetic dipole is placed in a nonuniform magnetic field, it experiences a force that depends on its orientation relative to that field.1
- Potential Energy: The system naturally tends toward a state of lower potential energy. When opposite poles are brought together, the orientation of the dipoles results in a configuration where the potential energy decreases as the magnets move closer, creating an attractive force. Conversely, when like poles are brought together, the orientation leads to a configuration where the potential energy is higher, resulting in a repulsive force.1
- Historical Context: This behavior is consistent with the inverse square law of force, which historically established that unlike poles attract and like poles repel, analogous to the behavior of electric charges.12
Ultimately, these magnetic forces arise from the motion of electric charges, as the magnetic moments of atoms are generated by the spin and orbital motion of electrons.23