← Periodic Table

Magnesium: the metal in every leaf

Element 12: Magnesium, the full story

Atomic number
12
Atomic mass
24.3
Shells
2, 8, 2
Configuration
1s² 2s² 2p⁶ 3s²
In the table
period 3, group 2 (IIA), s-block
Kind
Alkaline earth metal
Valency
2 (Mg²⁺)
State at 25 °C
solid
Melts · boils
650 °C · 1,090 °C
Density
1.7 × as heavy as water
Known since
1808
A lump covered in gray metal crystals shaped like little feathers, standing close together
Crystals of pure magnesium metal, grown from magnesium vapor. Photo: Warut Roonguthai, CC BY-SA 3.0

Look at any green leaf: a mango leaf, a blade of grass, a leaf of saag. Its green color comes from chlorophyll, the substance that catches sunlight to make the plant’s food, and in the middle of every chlorophyll molecule sits one atom of a metal: magnesium.

The same metal, as a thin ribbon held in a flame, burns with a light so bright that you must not look straight at it. It is in the white powder of an antacid, the bricks that line steel furnaces, the frame of a laptop and the rocks of Dolakha. Here is its story.

The magnesium atom

A magnesium atom has 12 protons, so its atomic number is 12, and 12 electrons. Most magnesium atoms have 12 neutrons too, so their mass number is 12 + 12 = 24.

By the 2n² rule the K shell takes 2 electrons, the L shell 8, and the last 2 go into the M shell: 2, 8, 2 Grade 8: Bohr and Bury’s rule. In subshells it is 1s² 2s² 2p⁶ 3s² Grade 10: The Aufbau principle.

A magnesium atom gives away its two outer electrons and becomes the magnesium ion, Mg²⁺: 12 protons and 10 electrons, arranged 2, 8, like the noble gas neon (Neon’s shells, everywhere). So magnesium’s valency is 2 Grade 8: Valency.

Its place in the periodic table

  • Period 3, because its electrons are in three shells. It sits between sodium (11) and aluminium (13).
  • Group 2 (IIA), because it has two outer electrons.
  • s-block, because they are in an s subshell.

The metals of group 2 are the alkaline earth metals: beryllium, magnesium, calcium, strontium, barium and radium Grade 8: Characteristics of groups. Their oxides were once called “earths”, and they make alkalis with water. They are reactive, but less so than the alkali metals beside them in group 1: pulling two electrons off an atom takes more energy than pulling one. So magnesium is less reactive than sodium, and less reactive than calcium below it.

Magnesium and calcium are in group 2. Which is true?

Pick an answer to see why.

When magnesium burns, each atom gives its two outer electrons to an oxygen atom. Magnesium becomes Mg²⁺ and oxygen becomes O²⁻, and the two ions hold together in magnesium oxide, MgO Grade 9: Formation of magnesium oxide.

12p⁺12n⁰8p⁺8n⁰Mg atom (2, 8, 2)O atom (2, 6)12p⁺12n⁰2+Mg²⁺ ion (2, 8)8p⁺8n⁰2−O²⁻ ion (2, 8)magnesium’s electronsoxygen’s electronsMg − 2e⁻ → Mg²⁺O + 2e⁻ → O²⁻Mg²⁺ + O²⁻ → MgO
Figure 1 How magnesium oxide forms: the magnesium atom’s two outer electrons (×) move to the oxygen atom, leaving two ions with full outer shells.

How magnesium was found and named

Another white powder, magnesia, was sold by chemists as a medicine. It came from rocks found near Magnesia, a district of Thessaly in Greece, and it looked like lime (calcium oxide). In 1755 the Scottish chemist Joseph Black showed that they were different substances: magnesia held an element of its own.

Getting the metal out was harder. In 1808 the English chemist Humphry Davy, who had made sodium and potassium the year before with electricity, made a tiny amount of magnesium by electrolysis. He wanted to call it magnium, because “magnesium” was then being used for manganese, but magnesium won. In 1831 the French chemist Antoine Bussy made the first lump of magnesium big enough to study, by heating magnesium chloride with potassium. Its symbol is Mg. Nepali writes it म्याग्नेसियम; it has no older Nepali name.

Where magnesium is found

In the universe. Magnesium is made in the cores of big stars, as they fuse carbon and then neon at temperatures of around a billion degrees (Each fuel needs a hotter core), and is scattered when they explode.

In the Earth. Magnesium is the eighth most common element in the Earth’s crust, and far more common deeper down: the mantle, the thick layer under the crust, is made mostly of rock rich in magnesium and iron (Inside the Earth). It is never found as the metal. Its main ores are:

  • magnesite, magnesium carbonate, MgCO₃;
  • dolomite, calcium magnesium carbonate, CaCO₃·MgCO₃, a rock like limestone;
  • sea water, which holds about 1.3 g of magnesium in every liter, and salt lakes.

In 2024 the world made about 1 million tonnes of magnesium metal, about 95% of it in China (USGS, 2025).

In Nepal. Nepal has magnesite in Dolakha, Udayapur and Palpa Grade 8: Minerals in Nepal. The deposit at Kharidhunga in Dolakha is one of the largest known: surveys have estimated about 180 to 200 million tonnes of magnesite. A government company, Nepal Orind Magnesite, mined it at Lakuri Danda and roasted it into magnesia for furnace bricks, but its plant has been closed since 1997, and plans to restart it have not yet succeeded.

A cluster of pale cream, blocky crystals against a black background
Figure 2 Crystals of magnesite, MgCO₃, the main ore of magnesium, from Brazil. Photo: Robert M. Lavinsky, CC BY-SA 3.0

Farmers in Nepal also spread powdered dolomite on acid soil: it makes the soil less acid and gives plants magnesium and calcium Grade 8: Minerals in agriculture.

In water. Water that has run through rocks picks up magnesium and calcium salts and becomes hard water, which wastes soap and leaves scale in kettles Grade 8: Hardness of water.

What magnesium is like

  • A shiny, silvery-white metal, which turns dull gray in air as a thin layer of oxide forms. The oxide protects the metal underneath.
  • Very light for a metal: its density is 1.74 g/cm³. It is the lightest metal strong enough to build with: about two-thirds as heavy as aluminium, and less than a quarter as heavy as steel.
  • Melts at 650 °C, and boils at 1,090 °C.
  • Conducts heat and electricity well, like every metal.
0246810mass of a 10 cm cube (kg)magnesium1.74 kgaluminium2.70 kgtitanium4.51 kgiron (steel)7.87 kgcopper8.96 kg
Figure 3 The mass of a cube of each metal 10 cm on each side (1 liter). Magnesium is the lightest of the metals used to build things.

How magnesium reacts

Magnesium is a reactive metal, high in the reactivity series, but well below sodium and calcium.

With oxygen. Held in a flame, magnesium ribbon catches fire and burns with a dazzling white light, leaving a white ash of magnesium oxide Grade 9: Metals react with oxygen:

2Mg + O₂ → 2MgO

The light is so bright that before electric flashes, photographers lit their pictures with burning magnesium powder; fireworks, sparklers and emergency flares still use it.

A coil of metal ribbon on a dark plate, burning at one end with a blinding white flame and a plume of white smoke, with white ash beside it
Figure 4 Magnesium ribbon burning in air. The white smoke and ash are magnesium oxide. Never look straight at the flame for long. Photo: Capt. John Yossarian, CC BY-SA 3.0

Magnesium oxide is a basic oxide. Shaken with water, a little dissolves as magnesium hydroxide, which turns red litmus blue:

MgO + H₂O → Mg(OH)₂

With water. Cold water attacks magnesium only very slowly: a few bubbles of hydrogen in a day. With hot water it is faster, and with steam it burns with a white glow, giving magnesium oxide and hydrogen:

Mg + H₂O → MgO + H₂

With dilute acids. Magnesium fizzes fast in dilute hydrochloric acid, getting warm and slowly disappearing as it gives off hydrogen Grade 8: Acids react with metals:

Mg + 2HCl → MgCl₂ + H₂

With carbon dioxide. Carbon dioxide puts out most fires, but not burning magnesium. Magnesium pulls the oxygen out of carbon dioxide and goes on burning, leaving white magnesium oxide speckled with black carbon Grade 10: Chemical properties of carbon dioxide:

2Mg + CO₂ → 2MgO + C

Magnesium and the other metals

Try magnesium in air, water and acid, then compare it with sodium above it and zinc and iron below.

dilute HClhydrogenbubbles
Metal
Put it in

What you see: Lots of bubbles at once; the ribbon dissolves and the tube gets warm.
Mg + 2HCl → MgCl2 + H2

A strip of magnesium is dropped into blue copper sulphate solution. What happens?

Pick an answer to see why.

Magnesium’s useful compounds

Compound Formula Uses
magnesium oxide (magnesia) MgO bricks that line steel furnaces and kilns (it melts only above 2,800 °C), animal feed, fertilizer
magnesium hydroxide (milk of magnesia) Mg(OH)₂ an antacid for acidity, and a laxative Grade 8: Uses of bases
magnesium sulphate (Epsom salt) MgSO₄·7H₂O fertilizer, bath salts, a laxative, medicine in hospitals
magnesium carbonate MgCO₃ the white “chalk” that gymnasts and climbers rub on their hands to keep them dry
magnesium chloride MgCl₂ making magnesium metal; in tofu-making

How magnesium metal is made

Most magnesium, nearly all of it in China, is made by the Pidgeon process: dolomite is roasted to drive off carbon dioxide, then heated with ferrosilicon (an alloy of iron and silicon) in steel tubes, without air, to about 1,200 °C. Silicon takes the oxygen from the magnesium oxide, and magnesium boils off as a vapor that condenses as crystals at the cool end of the tube, like the ones in the photo at the top of this page.

The other way, used where sea water or salt lakes are handy, is like sodium’s: magnesium chloride is melted and split by electricity, giving magnesium at the cathode and chlorine at the anode (Mg²⁺ + 2e⁻ → Mg).

Magnesium in daily life

  • Light alloys. Most magnesium is mixed into aluminium to make it stronger and easier to shape: the aluminium of drink cans and window frames, and duralumin for aircraft, hold a little magnesium Grade 8: Alloys. Alloys that are mostly magnesium are used where every gram counts: laptops, cameras, power tools, car seats and steering wheels.
  • Making iron and steel. A little magnesium stirred into molten iron removes sulphur, which makes steel brittle.
  • Saving steel from rust. Many electric water heaters (geysers) have a rod of magnesium inside. Magnesium is more reactive than iron, so the water attacks the rod instead of the steel tank: the rod is eaten away slowly and is replaced every few years.
  • Light and heat. Flares, fireworks and sparklers, and food heaters for soldiers and mountaineers, which warm a meal with magnesium powder and salt water (A heater without fire).

Magnesium in living things

In every green leaf

Chlorophyll is a large molecule shaped like a flat ring of carbon and nitrogen atoms, with a long tail. Right in the middle of the ring, held by four nitrogen atoms, is one magnesium ion. Without magnesium, a plant can’t make chlorophyll, and can’t make its food by photosynthesis. Your blood’s hemoglobin has a very similar ring, but with iron in the middle instead.

NNNNMgNNNNFelong oily tailchlorophyllmagnesium in the middleheme (in hemoglobin)iron in the middleheld by 4 nitrogen atoms
Figure 5 Chlorophyll (left) and heme, the part of hemoglobin that carries oxygen (right), simplified: the same kind of ring of four nitrogen-containing rings, with magnesium in one and iron in the other.

Magnesium is one of the secondary nutrients that plants need from the soil Grade 9: Necessary nutrients for plants. A plant short of it moves the magnesium from its old leaves to its new ones, so the older leaves turn yellow between the veins, while the veins stay green. Farmers add dolomite or Epsom salt.

AnitrogenBpotassiumCphosphorusDmagnesium
Figure 6 How leaves show what the soil lacks. D, yellow between green veins, is a leaf short of magnesium.

Why do the leaves of a plant short of magnesium turn yellow?

Pick an answer to see why.

In your body

An adult’s body holds about 20 to 25 g of magnesium, more than half of it in the bones. The rest helps hundreds of enzymes do their work: releasing energy from food (every molecule of ATP, the cell’s energy carrier, works together with a magnesium ion), making proteins and DNA, and keeping nerves and muscles, including the heart, working.

You need about 300 to 400 milligrams a day. Green leafy vegetables such as saag (for the chlorophyll), dal and other beans, whole grains, nuts and seeds give plenty. Too little can cause muscle cramps and a weak heartbeat; too much, usually from medicines, causes diarrhea, which is why magnesium salts are laxatives.

Isotopes of magnesium

Natural magnesium is a mixture of three isotopes, none of them radioactive: about 79% magnesium-24, 10% magnesium-25 and 11% magnesium-26 Grade 9: Atomic mass.

Surprising facts and records

  • Ash that weighs more. Burn a magnesium ribbon and the white ash weighs more than the ribbon did: oxygen atoms from the air have joined it. Weighing the ash is a classic way to find the formula of magnesium oxide (Evidence from the laboratory).
  • Magnesium from the sea. The sea holds so much magnesium that every cubic kilometer of sea water has more than a million tonnes of it.
  • Magnesium at the start of a famous Nobel experiment. In 1978 David Wineland and his team trapped magnesium ions and cooled them with laser light, the first step to the experiments that won the Nobel Prize in Physics in 2012.

In your science books

More to explore

← Back to the Periodic Table