Magnesium is one of the most reactive common metals, readily combining with oxygen, water, acids, halogens, and even nitrogen. Its high reactivity makes it useful in everything from fireworks to industrial manufacturing, but it also means magnesium behaves in ways that can be surprising or dangerous if you’re not prepared.
Oxygen and Air
The most familiar magnesium reaction is burning in air. When magnesium reaches its ignition point of roughly 400 to 500°C, its protective oxide coating breaks down and the metal ignites with an intensely bright white flame. The product is magnesium oxide, a white powder. This is the classic chemistry demonstration where a strip of magnesium ribbon is held in a flame until it catches fire.
What many people don’t realize is that magnesium also reacts with nitrogen in the air, not just oxygen. When magnesium burns in a normal atmosphere, a small amount of magnesium nitride forms alongside the oxide. This is why burning magnesium in pure oxygen versus open air can produce slightly different mixtures of products.
Even at room temperature, magnesium slowly reacts with oxygen. That dull gray coating on a piece of magnesium ribbon is a thin layer of magnesium oxide that forms on the surface over time. This film actually protects the metal underneath from further corrosion, similar to how aluminum develops a protective oxide layer.
Water and Steam
Magnesium’s reaction with water depends heavily on temperature. In cold water, very clean magnesium ribbon reacts slowly. You’ll see small hydrogen gas bubbles forming on the surface over several minutes, and the ribbon often floats to the top. But this reaction fizzles out quickly because the product, magnesium hydroxide, is nearly insoluble. It coats the metal surface like a shield and blocks further contact with the water.
Steam is a completely different story. Magnesium burns vigorously in steam, producing magnesium oxide (instead of hydroxide) and hydrogen gas. This is the reason you should never use water to fight a magnesium fire. Spraying water on burning magnesium generates hydrogen, which itself is highly flammable. The hydrogen ignites immediately, making the fire hotter and more intense. Sand or specialized dry powder extinguishers are the correct tools for a magnesium fire.
Acids
Magnesium reacts enthusiastically with most acids. Drop a piece of magnesium ribbon into hydrochloric acid and you’ll see rapid fizzing as hydrogen gas escapes. The magnesium dissolves to form magnesium chloride, a salt that stays dissolved in the solution. The reaction is fast enough to be visibly dramatic, which is why it’s a staple of chemistry classrooms.
The same pattern holds with other acids. Sulfuric acid produces magnesium sulfate and hydrogen. Nitric acid reacts similarly, though the products can vary depending on the acid’s concentration. In general, the stronger and more concentrated the acid, the faster magnesium dissolves. Even weak acids like vinegar (acetic acid) will slowly attack magnesium, producing bubbles of hydrogen over time.
Halogens
Magnesium reacts with all four common halogens: fluorine, chlorine, bromine, and iodine. Each reaction produces a magnesium halide salt. Fluorine reacts most aggressively, while iodine is the slowest of the group, following the general trend of halogen reactivity.
One of the most industrially important halogen reactions involves magnesium with organic halides (carbon-containing compounds bonded to chlorine, bromine, or iodine). When magnesium metal is combined with an organic bromide or chloride in a solvent, it forms what chemists call a Grignard reagent. These compounds are workhorses of organic chemistry, used to build complex molecules in pharmaceutical manufacturing and materials science. This reaction is why magnesium turnings are a common sight in chemistry labs worldwide.
Carbon Dioxide
Here’s one that surprises most people: magnesium burns in carbon dioxide. If you lower a burning strip of magnesium into a jar of CO₂, a gas that normally extinguishes flames, the magnesium keeps burning. It strips the oxygen right out of the carbon dioxide molecules, producing magnesium oxide and leaving behind black specks of pure carbon. This is another reason magnesium fires are so difficult to extinguish. Standard CO₂ fire extinguishers are useless against them.
Nitrogen
Most metals ignore nitrogen entirely, but magnesium is reactive enough to combine with it. At high temperatures, magnesium reacts with nitrogen gas to form magnesium nitride, a yellowish-green powder. If you add water to magnesium nitride, it breaks down into magnesium hydroxide and ammonia, which you can detect by its sharp smell. This reaction is often used as a simple test to confirm that magnesium nitride has formed.
Magnesium Reactions Inside Your Body
Magnesium’s reactivity isn’t limited to dramatic lab demonstrations. Inside your cells, magnesium ions play a critical chemical role by binding to ATP, the molecule your body uses as its primary energy currency. The bioactive form of ATP is actually an ATP-magnesium complex. The magnesium ion latches onto the phosphate groups of ATP, stabilizing the molecule so enzymes can use it efficiently. Without magnesium, hundreds of enzyme-driven reactions in your body, from muscle contraction to DNA repair, would slow or stall.
This biochemical reactivity is why dietary magnesium matters. Your body absorbs magnesium from food, but not all sources are equal. Oxalate-rich vegetables like spinach bind magnesium and reduce absorption. In one study, magnesium absorption from a meal with spinach was about 27%, compared to nearly 37% from the same amount of magnesium served with kale, which contains very little oxalate. Phytates, found in whole grains and legumes, have a similar binding effect.
For supplements, the tolerable upper intake level for adults is 350 mg of supplemental magnesium per day, as established by the NIH. This limit applies only to magnesium from supplements and medications, not from food. Exceeding it can cause diarrhea, nausea, and cramping, which are essentially your gut’s reaction to more dissolved magnesium than it can absorb at once.

