What Is a Magnet Made Of? From Iron to Neodymium

Magnets are made of metals whose atoms contain unpaired electrons that align in the same direction, creating a magnetic field. The most common elements in magnets are iron, nickel, and cobalt, but the specific recipe varies widely depending on the type of magnet and its intended strength. From chunks of naturally magnetic rock to high-tech alloys containing rare earth elements, the materials inside a magnet determine how strong it is, how long it lasts, and where it can be used.

Why Certain Metals Are Magnetic

Magnetism starts at the atomic level. Every electron generates a tiny magnetic field as it moves within its orbital. In most materials, these tiny fields cancel each other out because the electrons are paired, spinning in opposite directions. But in iron, nickel, and cobalt, there are unpaired electrons whose magnetic fields don’t cancel. Instead, they line up parallel to each other, reinforcing one another and producing a combined field strong enough to attract other metals or repel another magnet.

This property is called ferromagnetism, and it’s the reason these three elements show up in nearly every magnet you’ll encounter. Certain rare earth elements, like neodymium and samarium, also have unpaired electrons arranged in a way that produces even stronger magnetic alignment, which is why they’re used in the most powerful commercial magnets available.

Natural Magnets: Lodestone

The original magnet is lodestone, a naturally occurring form of the mineral magnetite. Its chemical makeup is iron oxide (Fe₃O₄), containing two different forms of iron ions within its crystal structure. Lodestone forms when magnetite is struck by lightning or exposed to the Earth’s magnetic field over long periods, aligning its internal structure into a permanent magnet. Ancient civilizations used lodestone as the first compasses, and it remains the only mineral that occurs naturally as a magnet.

Ceramic (Ferrite) Magnets

The dark gray magnets stuck to your refrigerator are almost certainly ferrite magnets, sometimes called ceramic magnets. They’re made from barium or strontium mixed with iron oxide, then pressed into shape and heated in a kiln at high temperatures, a process called sintering. A common formula is barium ferrite (BaFe₁₂O₁₉).

Ferrite magnets are inexpensive, resistant to corrosion, and hold up well at high temperatures. Their main trade-off is strength. With a maximum energy product of about 25 kJ/m³ and a remanence (the residual magnetic field after magnetization) of around 0.36 Tesla, they’re roughly ten times weaker than neodymium magnets. That’s perfectly adequate for craft projects, cabinet latches, and basic motors, but not for applications where compact power matters.

Alnico Magnets

Before rare earth magnets came along, alnico was the go-to material for strong permanent magnets. The name is a shorthand for its three core ingredients: aluminum, nickel, and cobalt, all mixed with iron. Later versions added copper, titanium, and other elements to improve performance. Alnico magnets are made by either casting molten alloy into molds or sintering metal powders together under heat and pressure.

These magnets excel in high-temperature environments and retain their magnetism well over time, which is why they’re still found in guitar pickups, sensors, and certain industrial instruments. Their weakness is that they can be demagnetized relatively easily by an opposing magnetic field, so they’ve been largely replaced by rare earth magnets in applications that demand both strength and stability.

Neodymium Magnets

Neodymium magnets are the strongest permanent magnets commercially available. They’re made from an alloy of neodymium, iron, and boron, with the chemical formula Nd₂Fe₁₄B. Manufacturing involves grinding the alloy into a fine powder, pressing it in a magnetic field to align the particles, then sintering it into a dense solid block.

The numbers tell the story of their dominance. Neodymium magnets have a remanence of about 1.2 Tesla and a maximum energy product of roughly 260 kJ/m³, more than ten times the energy density of a ferrite magnet. That’s why a neodymium magnet the size of a coin can hold several kilograms against a steel surface. You’ll find them in hard drives, headphones, electric vehicle motors, wind turbines, and MRI machines.

Their main vulnerabilities are heat and corrosion. Neodymium magnets start losing strength at relatively moderate temperatures (typically above 80°C for standard grades), and the iron content makes them prone to rust, so they’re usually coated in nickel, zinc, or epoxy.

Samarium Cobalt Magnets

Samarium cobalt magnets are the other major family of rare earth magnets. They come in two common compositions: SmCo₅ and Sm₂Co₁₇. While not quite as strong as neodymium magnets, they tolerate much higher temperatures (some grades remain stable above 300°C) and resist corrosion without any protective coating. This makes them the material of choice for aerospace, military, and high-temperature industrial applications where reliability matters more than cost. They’re significantly more expensive than neodymium magnets because cobalt and samarium are both costly to source.

Temporary (Soft) Magnets

Not all magnetic materials hold onto their magnetism permanently. Soft magnetic materials, like pure iron or iron-silicon alloys, become magnetized when exposed to an external magnetic field but lose that magnetism as soon as the field is removed. This is by design. Transformer cores, for instance, use iron-silicon steel (typically around 3% to 6.5% silicon by weight) precisely because the material needs to switch its magnetic direction thousands of times per second. Higher silicon content improves electrical efficiency and reduces energy loss, though it makes the metal brittle and harder to manufacture.

Electromagnets also rely on soft magnetic materials. Wrapping a coil of wire around an iron core and running current through it creates a magnet you can switch on and off. The iron amplifies the magnetic field produced by the current but doesn’t stay magnetized afterward.

Organic and Metal-Free Magnets

A newer class of magnets skips metals entirely. Researchers have developed magnetic polymers built from lightweight organic elements: hydrogen, carbon, nitrogen, oxygen, and sulfur. These materials get their magnetism from stable organic molecules called free radicals, which contain unpaired electrons similar to those in iron. One approach uses a molecule called TEMPO, a nitroxide radical that remains stable at room temperature in air and water, incorporated directly into a flexible polymer network.

These organic magnets are far weaker than rare earth magnets, so they won’t replace the neodymium magnet in your headphones anytime soon. But they’re soft, compressible, lightweight, and compatible with living tissue. That combination makes them promising for medical soft robotics, where tiny flexible magnets could be guided through the body using an MRI scanner. They also sidestep the environmental and supply-chain concerns tied to mining rare earth metals.

How Raw Materials Become Finished Magnets

Regardless of composition, most permanent magnets follow a similar manufacturing path. Raw metals are melted together or ground into fine powders, shaped through casting or pressing, then heated to bond the particles into a solid (sintering). For high-performance magnets like neodymium, the powder is pressed inside a strong magnetic field so the tiny grains all point the same direction, maximizing the final magnet’s strength. After sintering, the magnet is cooled, machined to its final shape, coated if necessary, and then magnetized by exposing it to a powerful external field that locks the internal alignment into place.

The quality of each step matters. Grain size, pressing pressure, sintering temperature, and the strength of the magnetizing field all affect the finished magnet’s performance. This is why two magnets with the same chemical formula can have noticeably different pull strengths depending on how they were manufactured.