12MgMagnesium24.305[Ne] 3s²
alkaline earth metal

Magnesium

Magnesium is a chemical element with symbol Mg and atomic number 12. It is a shiny gray solid which bears a close physical resemblance to the other five elements in the second column (Group 2, or alkaline earth metals) of the periodic table:they each have the same electron configuration in their outer electron shell producing a similar crystal structure. Magnesium is the ninth most abundant element in the universe.

Properties

At a glance

Atomic number
12
Atomic mass
24.305 u
Phase
Solid
Density
1.738 g/cm³
Melting point
923 K
Boiling point
1,363 K
First ionization energy
737.7 kJ/mol
Electronegativity
1.31
Electron affinity
-40 kJ/mol
Molar heat capacity
24.869 J/(mol·K)
Period
3
Appearance
shiny grey solid

Conditions and isotopes affect measured properties. Some properties of short-lived elements are predicted. Electronegativity uses the Pauling scale.

Electronic structure

Magnesium’s orbitals use a hydrogen-like approximation. Every orbital of each visible subshell is shown: in Shapes as the surface holding half its probability, with light and dark shades for opposite signs of the wavefunction; in Cloud as dots where its electrons are likely to be. Sizes are stepped by shell, like the Shell model.

Electrons by shell
Electron configuration

10 is the [Ne] core total across two shells.

Preparing the orbital view…

12 protons12 neutrons

Magnesium-24: its most common form in nature, or its longest-lived if it has none. The nucleus is drawn far too big: it’s about 100,000 times smaller than the atom.

States of matter

Turn up the heat

298 KK stands for kelvin, the temperature scale used in science. It starts at absolute zero (0 K), the coldest temperature possible, so it has no negative numbers and no degree sign.

A step of 1 K is the same size as 1 °C, so the two scales are always 273.15 apart. Fahrenheit is different: its degrees are smaller and it starts elsewhere, so water freezes at 273.15 K, 0 °C and 32 °F.
25 °C · 77 °F
Solid

At this temperature, magnesium is a solid.

At normal atmospheric pressure (1 atm). The temperature scale is logarithmic. The particle box is schematic: real samples hold vastly more atoms, and spacing and speeds are not to scale.

Ionization energy

Pull the electrons off

Mg

MgNeutral atom · no charge

A neutral magnesium atom. Removing its first electron takes 738 kJ/mol.

Magnesium’s outer shell holds 2 electrons. Electron 3 is the first from an inner shell: it sits closer to the nucleus with less shielding, so removing it takes 5.3× as much energy as the one before. That’s why magnesium forms Mg²⁺ ions. Each dashed line on the chart marks another jump, into a shell even closer to the nucleus.

Shell 1Shell 2Shell 3MeasuredEstimated or calculatedEnergy in kJ/molkJ/mol (kilojoules per mole) is the energy to remove that electron from every atom in a mole of them: about 602 sextillion (6.02 × 10²³) atoms. For a single atom, divide by 96.485 to get electronvolts (eV). Magnesium’s first electron takes about 7.6 eV.
1001,00010,000100,0001,000,000Shell 3Shell 2Shell 1×5.3×4.8123456789101112
Show the values as a table
ElectronShellEnergy (kJ/mol)× previousValue
13738–Measured
231,4512Measured
327,7335.3Measured
4210,5431.4Estimated
5213,6361.3Estimated
6218,0201.3Estimated
7221,7111.2Estimated
8225,6581.2Estimated
9231,6461.2Estimated
10235,4571.1Calculated
111169,9884.8Calculated
121189,3681.1Calculated

Successive ionization energies of gas-phase atoms and ions from the NIST Atomic Spectra Database. Solid bars are measured; hatched bars were estimated from nearby measurements or calculated from quantum theory, as is usual for highly charged ions. Electrons are taken from the outermost shell first, a simplification: electrons in different subshells of the same shell also differ in energy. On the log scale each gridline is 10 times the one below.

Burning metal

Set a ribbon of magnesium alight

Magnesium is a light, silvery metal, but hold a strip of it in a flame and it bursts into one of the brightest lights in a school lab: a blinding white glare, hot enough to melt steel.

On the scale0.24 gshiny magnesium ribbon

The ribbon weighs 0.24 g. Burn it and weigh what’s left.

Burning one gram of magnesium gives out about 25 kJ, roughly what it takes to bring a mug of water from cold to warm.

How would you put it out?

Pick one

Magnesium is burning in a heap. Which would you use to put it out?

Where you’ve seen it

  • The first camera flash

    Victorian photographers lit a puff of magnesium powder to get enough light indoors. Early flashbulbs used a twist of magnesium or aluminium foil inside glass.

  • Flares and fireworks

    Signal flares and the bright white sparkles in fireworks and sparklers owe their glare to burning magnesium.

  • Why it doesn’t burn in your laptop

    Solid magnesium alloys are used in laptops, cars and bikes: a thick piece carries heat away too fast to catch fire. Thin ribbon and powder are what burn so fiercely.

Masses from the element data’s atomic masses. Energy from magnesium oxide’s standard enthalpy of formation, 601.6 kJ/mol (NIST). The ribbon’s burn is sped up. Don’t try this without a teacher: the light can damage your eyes.

Compared with other elements

How does it compare?

MagnesiumGroup 2Other elements

Density

1.74 g/cm³17th lowest of 99

Mg

Melting point

923 K37th lowest of 96

Mg

Boiling point

1,363 K29th lowest of 97

Mg

Electronegativity

1.3136th lowest of 96

Mg

First ionization energy

738 kJ/mol40th highest of 99

Mg

Elements 1–99 from the reference data; heavier elements are left out because only a few atoms have ever been made, so their bulk properties are predictions. First ionization energies come from NIST. Density uses a logarithmic scale, because gases are around a thousand times less dense than solids; gas densities are at 0 °C and 1 atm. Melting and boiling points are at normal pressure. Everyday temperatures and light sources in the pictures are approximate. Hover over a dot to see the element, or click it to compare.

Keep exploring

Explore the stories, imagery, and reference data in more depth. Properties with no value in the reference are marked unavailable.