The magnesium element (Mg, atomic number 12) is a light, silvery Group 2 metal. You have probably met it as the dazzling white flame in a science lesson, but it is also at the centre of every chlorophyll molecule in a green leaf, it is stored in your bones, and its alloys are used in aeroplanes and cars.
This guide covers the properties of magnesium, its electron configuration, a balanced equation for each of its reactions, the burning-ribbon practical, how magnesium compares with its Group 2 neighbours, how it is extracted, what it is used for and what the NHS says about magnesium in food. There is a quiz and a full set of frequently asked questions at the end.
What is the magnesium element?
Magnesium has the chemical symbol Mg and 12 protons in its nucleus. It sits in Group 2 and Period 3 of the periodic table, in the s-block, and it belongs to the family called the alkaline earth metals. The Royal Society of Chemistry (RSC) describes it as a silvery-white metal that ignites easily in air and burns with a bright light. Its relative atomic mass is 24.305.

So is magnesium a metal or a mineral? In chemistry it is a metallic element. The word “mineral” in nutrition simply means a dietary element, which is why the NHS lists magnesium under “vitamins and minerals”. In geology a mineral is a naturally occurring solid such as dolomite, and magnesium is found inside several of those.
Magnesium never occurs uncombined in nature. The RSC lists it as the eighth most abundant element in Earth’s crust, at about 28,104 parts per million (the RSC figure counts atoms, not mass). The name comes from Magnesia, a district of Thessaly in Greece.
Atoms and isotopes of magnesium
Natural magnesium is a mixture of three stable isotopes: magnesium-24 (78.99%), magnesium-25 (10.00%) and magnesium-26 (11.01%). To count the particles in an atom, use the atomic number and mass number. For magnesium-24:
- Protons: 12 (the atomic number).
- Electrons: 12 in a neutral atom.
- Neutrons: 24 − 12 = 12.
Magnesium-26 has the same 12 protons and 12 electrons but 26 − 12 = 14 neutrons. Isotopes of one element always differ only in their neutron number.
Magnesium is a good example of an s-block metal. Compare it with another metal profile, vanadium, a transition metal with a range of colourful oxidation states from +2 to +5. Magnesium has just one: +2.
Properties of magnesium
These values come from the RSC Periodic Table. The right-hand column links each number to what it means.
| Property | Value | What it means |
|---|---|---|
| Appearance | Silvery-white metal | It looks like a typical shiny metal when freshly cleaned |
| State at room temperature | Solid | The metallic bonds hold the atoms in a rigid lattice |
| Melting point | 650 °C | The temperature at which the lattice breaks down into liquid |
| Boiling point | 1,090 °C | It needs a lot of energy to turn the metal into a gas |
| Density | 1.74 g/cm³ | Light: 1 cm³ has a mass of only 1.74 g |
| Electrical and thermal conduction | Good conductor | Delocalised electrons carry charge and energy through the metal |
| Reactivity | Fairly reactive | Burns brightly once lit, but reacts only very slowly with cold water |
Metallic bonding explains most of this. A piece of magnesium is a lattice of Mg²⁺ ions surrounded by a sea of delocalised electrons, two from each atom. The electrons are free to move, so the metal conducts electricity and heat. The layers of ions can slide over each other, so the metal can be bent and shaped.
In the lab, magnesium ribbon is often dull grey rather than silvery. The dull surface is a thin coating of magnesium oxide formed in air, which is why ribbon is cleaned with emery paper before experiments.
Magnesium electron configuration and valency
A magnesium atom has 12 electrons. They fill the shells in order, giving the full configuration 1s² 2s² 2p⁶ 3s², or [Ne] 3s² in short form. In the shell notation used at GCSE, that is 2,8,2. If you need a refresher, see the lesson on electronic configuration.

The two outer electrons are easy to remove. Magnesium loses them to form the ion Mg²⁺, which has the arrangement 2,8, the same as neon. The RSC gives the first ionisation energy as 737.75 kJ/mol and the second as 1450.68 kJ/mol. The third is far larger, because it would mean removing an electron from a full inner shell that is held much more tightly. That is why magnesium forms Mg²⁺ and never Mg³⁺.
Students often mix up three ideas that share the number 2:
| Term | For magnesium | Meaning |
|---|---|---|
| Valency | 2 | The number of bonds an atom forms, or electrons it gives away |
| Ion charge | 2+ (Mg²⁺) | The charge after losing two electrons |
| Oxidation state | +2 | The charge written with its sign, as in magnesium(II) |
Magnesium oxide is a typical ionic compound. In a dot-and-cross diagram, each magnesium atom transfers its two outer electrons to one oxygen atom. The result is Mg²⁺ and O²⁻ ions, which attract each other strongly, giving the formula MgO.
The same “swap and drop” method works for other magnesium compounds, such as MgCl₂, MgO and Mg₃N₂. Try it with the builder below, which starts on magnesium nitride.
Give the electron configuration of a magnesium ion, Mg²⁺. (1 mark)
2,8 (that is 1s² 2s² 2p⁶), the same as neon.
Explain why magnesium forms Mg²⁺ ions and not Mg³⁺ ions. (2 marks)
Magnesium has two electrons in its outer shell, and losing them leaves a full shell (2,8). Removing a third electron would mean taking it from the full inner shell, which needs far more energy.
Reactions of magnesium (with balanced equations)
Magnesium is fairly reactive. In the reactivity series used for AQA GCSE Chemistry, the order from most to least reactive is potassium, sodium, lithium, calcium, magnesium, zinc, iron, copper. That puts magnesium below calcium and above zinc, as explained in the guide to the reactivity of metals and chemical equations. Every equation below has state symbols, followed by what you would see.
Magnesium and oxygen
When magnesium ribbon is heated in air it ignites and burns with a brilliant white light. A white powder, magnesium oxide, is left behind.
2Mg(s) + O₂(g) → 2MgO(s)
This is an oxidation reaction, because each magnesium atom loses two electrons:
Mg → Mg²⁺ + 2e⁻
Burning magnesium is a clear example of a chemical change, because a new substance forms and a lot of energy is given out as heat and light (see what is a chemical reaction). The light contains ultraviolet, which is why it must never be looked at directly.


Magnesium oxide is a basic oxide. A little of it reacts with water to give a slightly alkaline solution, and it reacts with warm dilute hydrochloric acid:
MgO(s) + H₂O(l) → Mg(OH)₂(s)
MgO(s) + 2HCl(aq) → MgCl₂(aq) + H₂O(l)
Magnesium with nitrogen and carbon dioxide
Air is mostly nitrogen, so burning magnesium forms a little magnesium nitride alongside the oxide. The RSC notes that magnesium burns to form MgO and Mg₃N₂.
3Mg(s) + N₂(g) → Mg₃N₂(s)
Magnesium also keeps burning in carbon dioxide. White magnesium oxide forms, with black specks of carbon:
2Mg(s) + CO₂(g) → 2MgO(s) + C(s)
Many learners think that leftover oxygen is what keeps the metal burning, but magnesium is reactive enough to pull oxygen out of carbon dioxide gas itself.
Magnesium with cold water and steam
Magnesium reacts only very slightly with cold water. After several minutes, tiny hydrogen bubbles form on the ribbon and a coil often floats. The reaction soon stops, because almost insoluble magnesium hydroxide coats the metal.
Mg(s) + 2H₂O(l) → Mg(OH)₂(s) + H₂(g)
In steam the story is different. Magnesium burns, giving white magnesium oxide and hydrogen. This is a teacher demonstration only.
Mg(s) + H₂O(g) → MgO(s) + H₂(g)
Magnesium with dilute acids
Magnesium reacts quickly with dilute acids. You see fizzing, the metal gradually disappears, and the test tube warms up, so the reaction is exothermic.

Mg(s) + 2HCl(aq) → MgCl₂(aq) + H₂(g)
Mg(s) + H₂SO₄(aq) → MgSO₄(aq) + H₂(g)
The ionic equation is the same for either acid, because only the hydrogen ions and the metal take part:
Mg(s) + 2H⁺(aq) → Mg²⁺(aq) + H₂(g)
To test the gas, hold a lit splint at the mouth of the tube. Hydrogen burns with a squeaky pop (see hydrogen gas).
The equation shows that 1 mole of magnesium makes 1 mole of hydrogen, and 1 mole of gas occupies about 24 dm³ at room temperature and pressure. Use the calculator below to see how much hydrogen a small piece of ribbon of mass 0.12 g would give, then switch the metal to compare.
Displacement reactions
Because magnesium is above zinc, iron and copper in the reactivity series, it displaces them from solutions of their salts. In copper(II) sulfate solution, brown copper forms on the magnesium and the blue colour fades:
Mg(s) + CuSO₄(aq) → MgSO₄(aq) + Cu(s)
Practical: burning magnesium ribbon in a crucible
This is a classic RSC/Nuffield practical. The aim is to find the mass gained when magnesium burns, and so work out the formula of magnesium oxide. Equipment: crucible with lid, pipe-clay triangle, tripod, Bunsen burner, heatproof mat, tongs, a balance, magnesium ribbon, emery paper and eye protection.
Tick off each step as you go. Your progress is remembered in this browser.
- Put on eye protection and clean a length of magnesium ribbon with emery paper to remove the dull oxide layer. Coil it loosely.
- Weigh the empty crucible with its lid and record the mass.
- Add the coiled ribbon, then reweigh the crucible, lid and magnesium.
- Set the crucible on the pipe-clay triangle on the tripod and heat it strongly with the lid on.
- Every so often, use tongs to lift the lid slightly and let air in. Replace it quickly so that no white smoke escapes.
- Stop heating when the magnesium no longer glows.
- Let everything cool on the heatproof mat, then reweigh.
- Heat again, cool and reweigh. Repeat until the mass stops changing (constant mass).
Results and working out the formula
The increase in mass is the mass of oxygen that combined with the magnesium. Here is a sample set of results:
| Measurement | Mass (g) |
|---|---|
| Magnesium ribbon | 0.24 |
| Magnesium oxide produced | 0.40 |
| Oxygen gained (0.40 − 0.24) | 0.16 |
Now convert to moles. Magnesium: 0.24 ÷ 24 = 0.010 mol. Oxygen atoms: 0.16 ÷ 16 = 0.010 mol. The ratio is 1 : 1, so the formula is MgO. The calculator below does the same sum for any starting mass; leave “Burning magnesium” selected.
Learners often get results that are too low, because magnesium oxide escapes as white smoke when the lid is lifted. Other sources of error are some magnesium not reacting, and a little magnesium nitride forming, which changes the mass slightly.
Why does the mass increase when magnesium burns in a crucible? (2 marks)
The magnesium combines with oxygen from the air. The oxygen atoms add mass, so the magnesium oxide is heavier than the magnesium. Mass is conserved overall: the mass of the product equals the mass of magnesium plus the mass of oxygen.
Magnesium in Group 2: how it compares
Magnesium sits between beryllium and calcium in Group 2. All three have two electrons in their outer shell and form 2+ ions, but their properties change as you move down the group. Values are from the RSC Periodic Table, and the water reactions are from chemguide.
| Beryllium | Magnesium | Calcium | |
|---|---|---|---|
| Atomic number | 4 | 12 | 20 |
| 1st ionisation energy (kJ/mol) | 899.5 | 737.7 | 589.8 |
| Atomic radius (Å) | 1.53 | 1.73 | 2.31 |
| Melting point (°C) | 1,287 | 650 | 842 |
| Density (g/cm³) | 1.85 | 1.74 | 1.54 |
| With water | Reacts only with steam at high temperature (about 700 °C or more); protective oxide layer | Very slow with cold water; burns in steam | Reacts steadily with cold water |
Chemguide sums up the trend: the Group 2 metals become more reactive towards water as you go down the group. Calcium, strontium and barium all react with cold water, with increasing vigour.
Ca(s) + 2H₂O(l) → Ca(OH)₂(aq) + H₂(g)
The explanation comes from the atoms. Going down the group, atoms get bigger, so the outer electrons are further from the nucleus and are shielded by more inner shells. The table shows the first ionisation energy falling from 899.5 to 737.7 to 589.8 kJ/mol. With less energy needed to form M²⁺ ions, the reactions have a lower activation energy and go faster.
Notice that melting point does not follow a smooth trend: magnesium melts at a lower temperature than both beryllium and calcium.
Calcium reacts with cold water but magnesium barely does. Explain why. (3 marks)
Calcium’s outer electrons are further from the nucleus. There is more shielding from the inner shells, so the attraction to the nucleus is weaker. The outer electrons are lost more easily (lower ionisation energy), so calcium reacts faster.
Where is magnesium found?
As noted earlier, magnesium is the eighth most abundant element in Earth’s crust, but it is always combined with other elements. The main sources are the minerals dolomite, CaMg(CO₃)₂, and magnesite, MgCO₃, together with seawater and well and lake brines.


Magnesium is the third most plentiful dissolved element in seawater. The US Geological Survey (USGS) says that magnesium resources range from large to virtually unlimited, and that magnesium could be recovered from seawater along world coastlines.
How magnesium is extracted
According to the RSC, there are two routes to the metal: reducing magnesium oxide with silicon, or electrolysis of molten magnesium chloride.
Electrolysis of molten magnesium chloride
The magnesium chloride must be molten so that its ions are free to move to the electrodes (see what is electrolysis). Positive Mg²⁺ ions go to the cathode and negative chloride ions go to the anode.
Cathode: Mg²⁺ + 2e⁻ → Mg
Anode: 2Cl⁻ → Cl₂ + 2e⁻
MgCl₂(l) → Mg(l) + Cl₂(g)
Magnesium from seawater: the Dow process
The Science History Institute describes how the Dow Chemical Company took magnesium from seawater. Its plant at Freeport, Texas, began production in January 1941. Seawater is a convenient starting point because of its dissolved Mg²⁺ ions (see desalination and the salinity of oceans). The process works in four steps:

- Heated oyster shells give calcium oxide (lime), which reacts with water: CaO(s) + H₂O(l) → Ca(OH)₂(aq)
- Mixed with seawater, the hydroxide ions precipitate magnesium hydroxide: Mg²⁺(aq) + 2OH⁻(aq) → Mg(OH)₂(s)
- The magnesium hydroxide is mixed with hydrochloric acid: Mg(OH)₂(s) + 2HCl(aq) → MgCl₂(aq) + 2H₂O(l)
- The solution is evaporated to a cake, dried and electrolysed to give chlorine and magnesium, as in the equations above.
During the Second World War, magnesium was used in aircraft engines, fuselages and landing wheels, and also in incendiary bombs.
The silicon route
The other method reduces magnesium oxide with silicon. The silicon route, known as the Pidgeon process and widely used in China, uses calcined dolomite and ferrosilicon (a silicon–iron alloy) as raw materials.
Who makes the world’s magnesium?
The USGS Mineral Commodity Summaries 2026 gives world primary (smelter) production, in thousand metric tons:
| Country | 2024 | 2025 (estimate) |
|---|---|---|
| China | 953 | 950 |
| Russia | 59 | 60 |
| Brazil | 20 | 20 |
| Israel | 17 | 20 |
| Turkey | 15 | 15 |
| Kazakhstan | 15 | 13 |
| Iran | 5 | 5 |
| United States | — | — |
| World (rounded) | 1,080 | 1,100 |
Dividing 950 by 1,100 shows that China made roughly 86% of the 2025 total. The only US primary smelter, in Utah, used brines from the Great Salt Lake. According to the USGS it stopped production in 2022, and its operator filed for Chapter 11 bankruptcy in September 2025. The United States still produced an estimated 110,000 tonnes of secondary (recycled) magnesium in 2025.
Who discovered magnesium?
Magnesium’s story runs from Epsom salts in 1618 to the first sizeable amount of metal in 1831:
- 1618: Epsom salts (magnesium sulfate) were discovered at Epsom Common.
- 1755: Joseph Black in Edinburgh showed that magnesia was different from lime and recognised magnesium as an element.
- 1792: Anton Rupprecht made an impure metal by heating magnesia with charcoal and called it “austrium”.
- 1808: Humphry Davy isolated a small sample of the pure metal by electrolysis of magnesia (magnesium oxide) and proposed the name “magnium”.
- 1831: a sizeable amount of the metal was first made.


What is magnesium used for?
The uses of magnesium come from three of its properties: it is light, it burns with a brilliant white light, and it is more reactive than many other metals. Swipe through the examples below, then read the details.




Light alloys
The RSC says magnesium is alloyed with aluminium in aeroplane and car construction. Lightweight magnesium alloys are used in car seats, luggage, laptops, cameras and power tools. For the partner metal, see the guide to aluminium.
The USGS gives the US split of primary magnesium consumption in 2025:
| Use (United States, 2025) | Share |
|---|---|
| Castings, principally automotive | 69% |
| Aluminium-base alloys (packaging, transport and more) | 15% |
| Desulfurisation of iron and steel | 9% |
| Other | 7% |
Aluminium and zinc can substitute for magnesium in castings. The USGS lists magnesium’s light weight as an advantage and its high cost as a disadvantage.
Flares, fireworks and bright light
Magnesium burns with a bright white light, so it is used in flares, fireworks and sparklers. Early photographers used burning magnesium for light too, as the Comstock Mine photograph in the carousel shows.
Protecting steel and making other metals
Magnesium is used to remove sulfur from iron and steel. It can also act as a sacrificial electrode: because magnesium is more reactive than iron, it corrodes instead of the iron or steel it is attached to. The same idea appears in the simple cell experiment: the more reactive metal is the one that wears away, and magnesium is more reactive than zinc. Magnesium is also used to reduce titanium compounds to the metal, which is covered in the guide to titanium.
Magnesium compounds
Magnesium oxide makes heat-resistant bricks for fireplaces and furnaces, and is also used in fertilisers and cattle feed. Magnesium hydroxide is used as a fire retardant in plastics. Magnesium sulfate crystals are known as Epsom salts.

The NHS says antacids containing magnesium carbonate, magnesium trisilicate or magnesium hydroxide neutralise stomach acid to relieve indigestion and heartburn. The chemistry is a simple acid–base neutralisation (see uses of acids, bases and salts):
Mg(OH)₂(s) + 2HCl(aq) → MgCl₂(aq) + 2H₂O(l)
Magnesium in plants and the human body
The RSC calls magnesium an essential element in both plant and animal life. In plants it sits at the centre of the chlorophyll molecule, the green pigment that captures light for photosynthesis.


In people, the RSC says magnesium is needed by hundreds of enzymes, and the body stores about 20 g of it, mostly in the bones. The NHS adds that magnesium helps turn the food we eat into energy and helps the parathyroid glands work normally.
The NHS gives the amount adults aged 19 to 64 need as 300 mg a day for men and 270 mg a day for women. Magnesium is found in a wide variety of foods, including spinach, nuts and wholemeal bread. The NHS says you should be able to get all the magnesium you need from a varied and balanced diet.


The NHS also says that taking high doses of magnesium (more than 400 mg) for a short time can cause diarrhoea, and that 400 mg or less a day from supplements is unlikely to cause any harm.
Test yourself: magnesium flip cards
Frequently asked questions about the magnesium element
Is magnesium a metal or a mineral?
Magnesium is a metallic element: a silvery-white Group 2 metal with atomic number 12. In nutrition, “mineral” just means a dietary element, which is why the NHS lists magnesium under vitamins and minerals. In geology, magnesium is found inside minerals such as dolomite and magnesite.
What is the electron configuration of magnesium?
A magnesium atom has 12 electrons arranged 2,8,2, which is 1s² 2s² 2p⁶ 3s² or [Ne] 3s² in full. It loses its two outer electrons to form the Mg²⁺ ion, which has the same electron arrangement as neon, 2,8. This is why magnesium sits in Group 2: its atoms all have two outer electrons.
What is the valency of magnesium?
The valency of magnesium is 2, because it loses two electrons when it bonds. Its ion is Mg²⁺ and its oxidation state is +2. That is why its compounds with chlorine and oxygen are MgCl₂ and MgO, and its compound with nitrogen is Mg₃N₂.
Why does magnesium burn with a bright white light?
Magnesium reacts very strongly with oxygen, 2Mg + O₂ → 2MgO, and the reaction gives out a large amount of energy as heat and an intense white light. The light contains ultraviolet, which can damage eyes, so the flame should never be looked at directly.
Does magnesium react with cold water?
Only very slightly. A few hydrogen bubbles form on the ribbon after several minutes, and then the reaction stops as insoluble magnesium hydroxide coats the metal: Mg + 2H₂O → Mg(OH)₂ + H₂. Magnesium burns in steam, giving magnesium oxide and hydrogen.
What happens when magnesium reacts with hydrochloric acid?
Magnesium fizzes and dissolves in dilute hydrochloric acid, and the tube warms up. It makes magnesium chloride solution and hydrogen gas: Mg + 2HCl → MgCl₂ + H₂. The hydrogen can be confirmed with a lit splint, which gives a squeaky pop.
Is magnesium more reactive than calcium?
No. Calcium is more reactive. In the AQA reactivity series calcium sits above magnesium, and in Group 2 reactivity increases down the group. Calcium reacts steadily with cold water, while magnesium reacts only very slowly with it, because calcium’s outer electrons are further from the nucleus and more easily lost.
How is magnesium extracted?
There are two main routes. One is electrolysis of molten magnesium chloride, which gives magnesium at the cathode and chlorine at the anode. The other reduces magnesium oxide with silicon. Magnesium chloride can be made from seawater, and the silicon route (the Pidgeon process, widely used in China) uses dolomite and ferrosilicon.
What is magnesium used for?
Magnesium is used in light alloys for aircraft, cars and power tools, in flares, fireworks and sparklers, and for removing sulfur from iron and steel. It can also act as a sacrificial metal that protects steel from rusting. Magnesium compounds are used in furnace bricks, fertilisers and indigestion remedies.
How much magnesium do adults need?
The NHS says adults aged 19 to 64 need 300 mg a day for men and 270 mg a day for women. Spinach, nuts and wholemeal bread contain magnesium, and a varied, balanced diet should provide enough. If you are thinking about supplements, talk to a pharmacist or GP first.



