Chemical element · Atomic number 12

Magnesium

Magnesium in the periodic table: atomic number 12, electron configuration, atomic mass, physical data, oxidation states, media credit and visible sources.

Mg

Alkaline earth metal

solid

24.305 u

Silvery, vapor-deposited magnesium crystalsDocumented element sample

Crystals of elemental magnesium produced by vapor deposition.

Image credit: Warut Roonguthai

Auto-oriented, limited to 1600 × 1200 pixels and re-encoded as WebP; the subject was not altered.

Commons fileLicence: CC BY-SA 3.0

Atomic classification

Magnesium in the Bohr shell modelThis shows the electron distribution of the neutral atom in a simplified shell model.: 2 · 8 · 2

Shell occupancy

Magnesium in the Bohr shell model

This shows the electron distribution of the neutral atom in a simplified shell model.

K · n=1
2 electrons
L · n=2
8 electrons
M · n=3
2 electrons
Shell occupancy is derived from the versioned PubChem electron configuration. Dot angles are schematic and do not represent orbitals.
Electron configuration
[Ne]3s2
Electrons per shell
2 · 8 · 2
Group
2
Period
3
Block
S
Element category
Alkaline earth metal

Physical and chemical properties

Atomic mass
24.305 u
Standard state
solid
Density
1.74 g/cm³
Melting point
923 K
Boiling point
1,363 K
Electronegativity
1.31 (Pauling)
First ionisation energy
7.646 eV
Oxidation states
+2
Discovery
1808

Safety and periodic classification

Safety

Safe handling cannot be inferred from Magnesium's position in the periodic table alone. Laboratory, classroom and disposal decisions must follow the documentation for the exact material and its safety data sheet.

Position and comparison

Magnesium is in period 3, group 2 and the S block. Its direct neighbours by atomic number are Sodium and Aluminum. The recorded Pauling electronegativity is 1.31. Periodic trends are compared only through the separately sourced neighbouring values.

Sources and scope

PubChem attributes element data to sources including IUPAC, NIST and IAEA. Quanta stores the referenced snapshot locally and leaves unknown values unavailable.

Where Magnesium sits among the 118 elements

The table compares the reported values for Magnesium with every other element that carries the same value in the snapshot. A rank is not a judgement, it is orientation: it says how unusual this value is across the periodic table.

ValueMagnesiumPosition in the data set
Melting point923 KRank 66 of 103 elements with a reported value. Highest: Carbon.
Boiling point1,363 KRank 67 of 93 elements with a reported value. Highest: Rhenium.
Density1.74 g/cm³Rank 80 of 96 elements with a reported value. Highest: Osmium.
Electronegativity (Pauling)1.31Rank 60 of 95 elements with a reported value. Highest: Fluorine.
Ionisation energy7.646 eVRank 41 of 102 elements with a reported value. Highest: Helium.

All values and ranks come from the PubChem Periodic Table snapshot, retrieved on 2026-07-15. Elements without a reported value are excluded, so the population differs per row.

The neighbours of Magnesium in the periodic table

Place in the table
Group 2, period 3, S block. Classified as alkaline earth metal, solid at standard conditions.
Direct neighbours
Atomic number 12. Preceded by Sodium, followed by Aluminum.
Same group
Same number of outer electrons, and therefore similar reactivity to Beryllium, Calcium, Strontium, Barium, Radium.
Discovery
Recorded in the snapshot as: 1808. Who, where and under what circumstances is not part of that record, so this page carries the sourced year and no discovery narrative.
Oxidation states
+2. They follow from the electron configuration [Ne]3s2 and indicate which compounds to expect.

Go from looking up chemistry to remembering it.

Turn your notes into source-backed study cards and review them at the right time.

Start for free

Starter stays free · no payment details