Britannica
Sources used in this answer
How do magnets produce magnetic fields?
Created from Britannica articles
using AI.
AI can make mistakes, so verify using Britannica articles.
magnet
Magnetic fields and the levels of magnetism of particles, atoms, crystals, and domains.
At the most fundamental level, magnetic fields arise from the motion of electric charges. A magnet is any material capable of producing such a field outside of itself.1
The production of these fields occurs through two primary mechanisms at the atomic level:
- Electron Motion: Electrons in orbit around an atomic nucleus act like miniature loops of electric current, which generates a magnetic field. Additionally, electrons, protons, and neutrons possess an intrinsic property called spin, which creates its own magnetic dipole moment.234
- Alignment of Domains: In most materials, these atomic magnetic moments point in random directions, causing them to cancel each other out. However, in ferromagnetic materials like iron, nickel, and cobalt, these moments can align within small regions called domains. When these domains are oriented in the same direction—often through the influence of an external magnetic field—the material produces a strong, macroscopic magnetic field.2314
Essentially, a magnet functions because the collective magnetic moments of its constituent atoms are aligned, creating a unified field.34