Magnetic fields — Full Explainer

How Magnetic fields Works

A magnetic field is an invisible force field that surrounds magnets and electric currents, exerting forces on other magnets and moving charges within its reach. Think of it like the scent cloud around a perfume bottle: you cannot see it,…

MECHANISM 1 OF 5
GENERATE
Electric charges in motion—from spinning electrons to flowing currents—generate magnetic fields around themselves.

At the atomic level, electrons behave like tiny spinning tops, and this spin creates minuscule magnetic fields around each electron. Additionally, electrons orbit atomic nuclei, and this orbital motion generates another magnetic contribution. In most materials, these atomic magnetic fields point in random directions and cancel out, but in magnetic materials like iron, they align to produce a measurable net field.

When electric current flows through a wire, the moving charges create a magnetic field that wraps around the conductor in circular patterns. The field's strength depends directly on how much current flows: double the current, and you double the field strength. This principle powers electromagnets, where coiling wire into many loops concentrates the magnetic field, creating the same kind of field pattern that surrounds a bar magnet.

The direction of the generated field follows a predictable rule known as the right-hand grip. If you imagine gripping a current-carrying wire with your right hand, thumb pointing in the direction of current flow, your fingers curl in the direction of the magnetic field lines. This relationship between electricity and magnetism is fundamental—there is no magnetism without moving charges, whether those charges move in loops within atoms or flow through circuits.

MECHANISM 2 OF 5
ALIGN
Magnetic dipoles—from atoms to compass needles—rotate to align with surrounding magnetic fields.

Every magnet, regardless of size, acts as a magnetic dipole with a north and south pole. When placed in an external magnetic field, these dipoles experience a torque that rotates them until they align with the field direction. A compass needle demonstrates this perfectly: its magnetic dipole twists until it points toward Earth's magnetic north, settling into alignment with our planet's field.

At the atomic scale, each electron's spin creates a tiny dipole that responds to external fields. In materials like iron, these atomic dipoles can lock together through quantum mechanical interactions, causing neighboring atoms to reinforce each other's alignment. When you stroke a needle with a magnet, you're applying an external field that coaxes these atomic dipoles to point in the same direction, transforming random magnetic orientations into organized alignment—creating a permanent magnet.

This alignment tendency stores energy in the system. Just as a compressed spring holds potential energy, a dipole rotated away from field alignment stores magnetic potential energy. The dipole naturally rotates back to minimize this energy, which is why compass needles swing back to north after being disturbed and why refrigerator magnets twist to stick flat against the steel surface.

MECHANISM 3 OF 5
DEFLECT
Moving charged particles curve sideways when crossing magnetic field lines, following circular paths.

When a charged particle moves through a magnetic field, it experiences a force perpendicular to both its velocity and the field direction. Unlike electric forces that push charges forward or backward along the field, magnetic forces always push sideways. An electron traveling northward through an upward-pointing field gets shoved westward, while a proton in the same situation gets pushed eastward—opposite charges deflect in opposite directions.

This perpendicular force cannot speed up or slow down the particle; it can only change the particle's direction. The result is that charged particles bend into circular or spiral paths when moving through uniform magnetic fields. The faster the particle moves or the stronger the field, the tighter the curve. This deflection principle underlies countless technologies, from old television tubes that steered electron beams to paint images, to particle accelerators that whip protons around circular tracks.

Earth's magnetic field exploits this deflection mechanism to shield life from dangerous cosmic radiation. When high-energy charged particles from the sun stream toward Earth, the planet's magnetic field deflects them toward the poles, where they spiral along field lines into the upper atmosphere. There they collide with air molecules, creating the shimmering curtains of light we call auroras—visible evidence of magnetic deflection in action.

MECHANISM 4 OF 5
INDUCE
A changing magnetic field creates an electric field that drives current through nearby conductors.

When magnetic field strength increases or decreases through a loop of wire, or when a wire moves across field lines, an electric field materializes inside the conductor. This induced electric field pushes electrons around the circuit, creating current without any battery or power source. The faster the magnetic field changes, the stronger the induced electric field and the larger the resulting current.

This electromagnetic induction powers electric generators worldwide. Inside a power plant generator, spinning coils of wire rotate through strong magnetic fields, continuously changing the amount of field passing through each loop. This constant change induces electric fields that drive current through the coils and out to the power grid. The mechanical energy of the spinning rotor—turned by falling water, steam, or wind—converts directly into electrical energy through this magnetic mechanism.

Induction works in reverse too. When you plug in a transformer to charge your phone, alternating current in the wall creates a fluctuating magnetic field in the transformer's core. This changing field induces current in a separate coil wound around the same core, transferring energy from wall socket to device without any direct electrical connection. The phenomenon also creates unwanted effects: rapidly switching currents in circuits can induce interfering currents in nearby wires, which is why engineers carefully shield sensitive electronics.

MECHANISM 5 OF 5
ATTRACT
North and south poles attract while identical poles repel, creating forces between magnets.

Every magnet's north pole seeks another magnet's south pole, pulling the two magnets together with a force that strengthens rapidly as they approach. Conversely, two north poles or two south poles push apart with equal vigor. This attraction and repulsion pattern differs fundamentally from electric charges: while you can isolate positive or negative charges, you cannot create a magnetic north without simultaneously creating a south pole somewhere else—magnetic monopoles don't exist.

The force between magnetic poles follows an inverse square law similar to gravity and electric forces. If you halve the distance between two magnets, the force between them quadruples. This means magnetic forces remain weak at a distance but become dominant up close, which is why you must bring a magnet nearly touching a refrigerator door before it suddenly snaps into contact. The field strength drops off so rapidly that even powerful magnets become ineffective beyond a few centimeters.

This attractive force emerges because magnetic field lines behave like stretched elastic bands trying to contract. Field lines always run from north poles to south poles, and these lines naturally seek the shortest possible path. When opposite poles approach each other, the field lines can shorten by pulling the magnets together. Like poles, by contrast, force field lines to bend away from each other, storing energy in the stretched configuration—the field pattern literally pushes the magnets apart to relax this tension.

Latest Discoveries in Magnetic fields
Why Magnetic fields Matters
Magnetic fields Real-World Impact
Medical Imaging
Seeing inside the body safely
MRI machines use powerful magnetic fields to create detailed images of organs without radiation exposure.
Power Generation
Converting motion into electricity globally
Electric generators spin magnets near coils to produce most of the world's electrical power supply.
Data Storage
Storing billions of digital memories
Hard drives use magnetic fields to encode and preserve data on spinning disks for computers.
Navigation
Guiding travelers for centuries worldwide
Earth's magnetic field enables compasses to point north, helping billions navigate across land and sea.
Concept Galaxy
Magnetic fields
Electromagnetism Electric current Magnetic materials Electric motors Magnetic resonance imaging Particle accelerators Electromagnetic radiation Plasma physics Geophysics
Directly Related Applications Cross-Disciplinary
Continue Learning
Foundations Path
1Magnetic fields 2Electromagnetism 3Maxwell's equations 4Electromagnetic induction 5Lorentz force
Applications Path
1Magnetic fields 2Electric motors 3Transformers 4Magnetic resonance imaging 5Superconducting magnets
Physical Sciences Path