Magnesium
- Atomic number
- 12
- Atomic mass
- 24.305
- Configuration
- [Ne] 3s2
- Category
- Alkaline earth metal
- 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
| Symbol | Mg |
|---|---|
| Atomic number | 12 |
| Atomic mass (standard atomic weight) | 24.305 |
| Molar mass | 24.305 g/mol |
| Protons | 12 |
|---|---|
| Neutrons (most abundant isotope, magnesium-24) | 12 |
| Abundance of magnesium-24 | 78.99% |
| Electrons (neutral atom) | 12 |
| Valence electrons | 2 |
| Category | Alkaline earth metal |
|---|---|
| Period | 3 |
| Group | 2 |
| Block | s-block |
| 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.


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
| 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
- one atom = 24.305 / (6.02214076 × 10²³)
- = 4.0359 × 10⁻²³ g
Atoms in one gram
- atoms per gram = 6.02214076 × 10²³ / 24.305
- = 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
- 11 Na Sodium
- 12 Mg Magnesium
- 13 Al Aluminium
- 14 Si Silicon
- 15 P Phosphorus
- 16 S Sulfur
- 17 Cl Chlorine
- 18 Ar Argon
Work with magnesium
- The shapes of s and p orbitals, in the atomic orbitals visualizer
- Interactive periodic table
- Half-reactions involving magnesium in the standard reduction potentials table
- Polyatomic ion table
- Molar mass calculator, prefilled with Mg
- Protons, neutrons and electrons in magnesium-24
- Magnesium on Wikipedia