Skip to content
ScienceQuest

Magnesium

Atomic number
12
Atomic mass
24.305
Configuration
[Ne] 3s2
Group
2

Magnesium (Mg) is an alkaline earth metal with atomic number 12 and an atomic mass of 24.305. Its electron configuration is [Ne] 3s2, which gives it 2 valence electrons.

Interactive periodic tableOrbital shapesMolar mass calculator

Magnesium key data

Identity
Symbol Mg
Atomic number 12
Atomic mass (standard atomic weight) 24.305
Molar mass 24.305 g/mol
Particles
Protons 12
Neutrons (most abundant isotope, magnesium-24) 12
Abundance of magnesium-24 78.99%
Electrons (neutral atom) 12
Valence electrons 2
Placement
Category Alkaline earth metal
Period 3
Group 2
Block s-block
Electron configuration
Noble gas notation [Ne] 3s2
Full electron configuration 1s2 2s2 2p6 3s2
Electrons per shell 2, 8, 2

Atomic mass: IUPAC CIAAW abridged standard atomic weights, 2024. Most abundant isotope: NIST Atomic Weights and Isotopic Compositions.

The values are facts and free to use; this page’s selection and presentation are © 2026 ScienceQuest.

Updated

Measured properties of magnesium

From PubChem, the US National Institutes of Health. Public domain. PubChem’s periodic table gives no value for the rows not shown.

Melting point 923 K (649.85 °C), 66th of 103 by melting point
Boiling point 1363 K (1089.9 °C), 67th of 93 by boiling point
Density 1.74 g/cm³, 80th of 96 by density
State at room temperature Solid
Electronegativity 1.31 (Pauling), 60th of 95 by electronegativity
Van der Waals radius 173 pm, 85th of 99 by atomic radius
First ionisation energy 7.646 eV (737.7 kJ/mol), 40th of 102 by first ionisation energy
Common oxidation states +2
Discovered 1808

Each rank counts down from the highest value, among the elements PubChem’s table gives one for, and links to that property ranked across the whole table. All of them are collected under periodic trends.

Magnesium electron configuration

The full electron configuration of magnesium is 1s2 2s2 2p6 3s2. With the noble-gas core collapsed it is [Ne] 3s2, and the outermost subshell is 3s2.

Bohr model of magnesium (Mg): a nucleus and three shells holding 2, 8 and 2 electrons from the inside out.Bohr model of magnesium (Mg): a nucleus and three shells holding 2, 8 and 2 electrons from the inside out.
Bohr model of magnesium (Mg). Image © ScienceQuest, CC BY 4.0: free to reuse with credit to ScienceQuest and a link to this page, as the image licence explains.
Orbital box diagram of magnesium (Mg), 1s2 2s2 2p6 3s2: one box per orbital, filled by Hund’s rule, showing every orbital drawn holds a pair of electrons.Orbital box diagram of magnesium (Mg), 1s2 2s2 2p6 3s2: one box per orbital, filled by Hund’s rule, showing every orbital drawn holds a pair of electrons.
Orbital diagram of magnesium (Mg). Image © ScienceQuest, CC BY 4.0: free to reuse with credit to ScienceQuest and a link to this page, as the image licence explains.

Why group and block follow from this is set out in how the periodic table maps electron configuration, and the electron configuration of every element is listed on one page. To write the configuration of an ion of magnesium, use the electron configuration calculator.

Electron configurations of magnesium ions

The table gives the magnesium atom and the ion for the common oxidation state listed above, in its ground state as a free ion in the gas phase.

Atom or ion Electrons Configuration Unpaired electrons
Mg (neutral atom) 12 [Ne] 3s2 0
Mg²⁺ 10 [He] 2s2 2p6 0

The positive ion matches its ground state in the NIST Atomic Spectra Database. Unpaired electrons are counted by Hund’s rule.

Mg²⁺ has the same electron configuration as a neon atom.

Standard reduction potential of magnesium

The table gives the only half-reaction in the standard reduction potentials table with magnesium as the element on one side or as a monatomic ion on both, and its E° at 25 °C against the standard hydrogen electrode.

Half-reaction E°, volts
Mg²⁺ + 2e⁻ → Mg −2.37

Magnesium: isotopes, discovery and uses

Natural isotopes of magnesium
Isotope Atomic mass (Da) Share of atoms (amount fraction) Half-life
Magnesium-24 23.985 041 70(9) [0.7888, 0.7905] stable
Magnesium-25 24.985 8370(3) [0.09988, 0.10034] stable
Magnesium-26 25.982 5930(2) [0.1096, 0.1109] stable

Atomic masses and shares of atoms: IUPAC CIAAW. Half-lives: NUBASE2020 (Kondev et al., Chin. Phys. C 45, 030001 (2021)).

Standard atomic weight [24.304, 24.307], the CIAAW value since 2011 (CIAAW).

First isolated
Humphry Davy, 1808, impure metal, pure metal by Bussy in 1831 (CIAAW)
Name
From Magnesia, a district in the north-eastern region of Greece called Thessalia (CIAAW)
Uses
Magnesium oxide: used in some antacids, in making crucibles and insulating materials, in refining some metals from their ores and in some types of cements (Jefferson Lab via PubChem)
Isotopes in use
Biology: Natural magnesium enriched in the stable isotopes 25Mg and 26Mg has been used as tracers in human studies to assess absorption, excretion, distribution, and utilisation of magnesium in basic and applied research (IUPAC Periodic Table of the Elements and Isotopes via PubChem)
Estimated crustal abundance
23,300 mg/kg (Jefferson Lab via PubChem)

Read at the sources on 26 October 2026. “via PubChem” marks text PubChem republishes from the publisher named.

Mass of one magnesium atom

A molar mass is grams per mole, so dividing by the Avogadro constant gives the average mass of magnesium’s atoms across its natural isotopes, and the reciprocal gives how many atoms sit in a gram.

Mass of one atom

  1. one atom = 24.305 / (6.02214076 × 10²³)
  2. = 4.0359 × 10⁻²³ g

Atoms in one gram

  1. atoms per gram = 6.02214076 × 10²³ / 24.305
  2. = 2.4777 × 10²² atoms

Magnesium on the periodic table

Magnesium is in period 3, group 2, in the s-block.

The other elements of group 2 are beryllium, calcium, strontium, barium and radium.

Across period 3, magnesium has the smallest van der Waals radius.

Against the usual trend down a group, magnesium has a lower density (1.74 against 1.85 g/cm³) than beryllium above it.

The rest of period 3

Work with magnesium