A magnetic field is an invisible force that pushes and pulls on moving electric charges, magnetic materials, and other magnets. That single property underlies an enormous range of effects, from shielding the entire planet against solar radiation to storing data on a hard drive. Here’s what magnetic fields actually do across physics, nature, and everyday technology.
How Magnetic Fields Affect Moving Charges
The most fundamental thing a magnetic field does is exert a force on any electrically charged particle that moves through it. This force acts perpendicular to both the particle’s direction of travel and the field itself, which means it doesn’t speed the particle up or slow it down. Instead, it curves the particle’s path into a circle or spiral. The radius of that curve shrinks as the field gets stronger, so a powerful magnet bends a charged particle into a tight loop while a weak one barely nudges it off course.
A particle moving parallel to the field lines feels no force at all. In practice, most particles enter a magnetic field at some angle, so they end up tracing a helix, spiraling along the field lines. This basic interaction is the foundation for nearly every application of magnetic fields in science and technology.
Shielding Earth From Solar Radiation
Earth’s core generates a magnetic field that extends thousands of kilometers into space, forming a protective bubble called the magnetosphere. The Sun constantly streams charged particles outward (the solar wind), and the magnetosphere deflects most of them around the planet the way a rock diverts a river. Solar wind stretches the magnetosphere into a comet-like tail on Earth’s night side, but the field above both poles extends far enough to block high-energy particles from the Sun and from deeper in the galaxy.
Without this magnetic shield, the solar wind would gradually strip away Earth’s atmosphere. Mars offers a cautionary example: it lost most of its global magnetic field billions of years ago, and its atmosphere thinned dramatically as a result. Earth’s magnetosphere is the reason our air, water, and surface conditions remain hospitable.
Making Materials Magnetic
Inside a piece of iron or steel, atoms naturally form clusters called magnetic domains. Each domain acts like a tiny magnet with its own north and south pole. In an unmagnetized piece of metal, these domains point in random directions, so their fields cancel out and the object shows no magnetic behavior overall.
When you bring an external magnetic field close, the domains rotate to line up with it. Once most or all domains point the same way, the entire object becomes a magnet itself. This is why a paperclip sticks to a refrigerator magnet and can even pick up a second paperclip: the first magnet’s field aligns the domains inside the clip, temporarily turning it into a magnet too. Remove the external field, and some materials (like soft iron) lose their alignment quickly, while others (like certain steel alloys) hold it for years.
Generating Electricity and Powering Motors
Move a wire through a magnetic field and you generate an electric current in the wire. This principle, called electromagnetic induction, is how virtually all electricity on Earth is produced. In a power plant, whether it burns coal, splits atoms, or catches wind, something spins a shaft. That shaft rotates coils of wire inside a magnetic field (or rotates magnets around stationary coils), and current flows out to the grid.
The process works in reverse, too. Send current through a coil sitting in a magnetic field and the coil moves, which is exactly how an electric motor works. Generators and motors are mirror images of each other. A generator converts motion into electricity; a motor converts electricity into motion. Every fan, elevator, electric car, and washing machine relies on magnetic fields pushing on current-carrying wires.
Imaging the Inside of Your Body
MRI scanners use powerful magnetic fields, typically between 0.5 and 1.5 tesla, to produce detailed images of organs, joints, and soft tissue without radiation. Your body is mostly water, and every water molecule contains hydrogen atoms. Each hydrogen nucleus behaves like a tiny bar magnet, spinning on its axis. Normally, these miniature magnets point in random directions.
When you lie inside an MRI scanner, its strong field forces all those hydrogen nuclei to line up along the same axis. The scanner then sends in a pulse of radio waves tuned to the exact frequency that makes hydrogen nuclei wobble. When the pulse stops, the nuclei snap back into alignment and release their own faint radio signal. Different tissues (fat, muscle, fluid, bone marrow) release signals at slightly different rates, and the scanner maps those differences into a cross-sectional image. The entire process uses only magnetism and radio waves, with no ionizing radiation involved.
Storing Digital Data
Every conventional hard drive stores information as patterns of magnetization on a spinning disk coated with a thin magnetic layer. A write head generates a tiny, focused magnetic field that flips microscopic regions of the coating into one of two orientations, each representing a binary 1 or 0. Early drives used “longitudinal” recording, where these tiny magnets lay flat along the disk surface. Modern drives use “perpendicular” recording, standing the magnets upright. In this arrangement, neighboring magnets naturally attract each other because their opposite poles line up, allowing data to be packed far more densely.
To read the data back, a sensor detects the direction of magnetization in each region as the disk spins beneath it. The information stays intact because the magnetic material retains its orientation even after the external field is removed, the same principle that keeps a refrigerator magnet stuck to your fridge for years.
Treating Depression With Magnetic Pulses
Repetitive transcranial magnetic stimulation (rTMS) uses magnetic fields to treat major depression that hasn’t responded to medication. During a session, an electromagnetic coil placed against the scalp generates rapid magnetic pulses. These pulses pass through the skull painlessly and induce small electric currents in the brain tissue underneath, activating nerve cells in regions associated with mood regulation. In people with depression, activity in these regions is often lower than normal, and the magnetic pulses help restore it.
Guiding Animal Migration
Many migratory animals, including birds, sea turtles, and some fish, can detect Earth’s magnetic field and use it like a built-in compass. In birds, the leading explanation involves light-sensitive proteins in the eye. When light hits these proteins, it triggers a chemical reaction that produces pairs of molecules with unpaired electrons. The behavior of those electron pairs shifts depending on the orientation of Earth’s magnetic field, and that shift generates a neural signal the bird’s brain can interpret. In effect, the bird may literally see the magnetic field as a pattern overlaid on its normal vision, giving it directional information even on overcast days when the Sun isn’t visible.
Confining Plasma for Fusion Energy
Fusion reactors aim to replicate the process that powers the Sun: forcing lightweight atomic nuclei together at extreme temperatures to release energy. The challenge is that the fuel, a superheated gas called plasma, reaches temperatures of tens of millions of degrees. No physical container can survive contact with it. The solution in the most common reactor design, the tokamak, is to use precisely shaped magnetic fields to suspend the plasma in midair, keeping it away from the reactor walls entirely. Multiple magnetic coils surround the doughnut-shaped chamber, and a control system adjusts them at high speed to maintain the plasma’s position and shape. Getting this magnetic confinement right is one of the central engineering problems in fusion research.
Safety Limits for Human Exposure
Static magnetic fields, the kind produced by permanent magnets or MRI machines, have international exposure guidelines set by the International Commission on Non-Ionizing Radiation Protection. For workers, the recommended limit is 2 tesla for the head and trunk, though specialized jobs can permit up to 8 tesla in controlled environments. For the general public, the limit is 400 millitesla for any part of the body. People with implanted electronic devices like pacemakers or with ferromagnetic implants face a much stricter practical threshold of around 0.5 millitesla, because a magnetic field can interfere with the device or physically tug on metal components inside the body. Loose ferromagnetic objects near strong magnets also pose a projectile hazard, which is why MRI facilities enforce strict screening before anyone enters the scanner room.

