Electronic configuration of magnesium

12Mg
Magnesium
[Ne] 3s2
Full: 1s2 2s2 2p6 3s2

Electrons in each shell

2K shell8L shell2M shell

Magnesium has 12 electrons arranged as 2, 8, 2 across 3 shells, which is why it sits in period 3.

How to write it

Electrons fill orbitals in order of increasing energy: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p… Each s orbital holds 2 electrons, p holds 6 and d holds 10. Placing Magnesium's 12 electrons in that order gives 1s2 2s2 2p6 3s2.

Magnesium at a glance

Atomic number12
SymbolMg
Atomic mass24.305 u
Group2
Period3
Blocks-block
CategoryAlkaline earth metal
Valence electrons2
Could you find magnesium in 6 guesses?Play Tatva, the free daily periodic table game

Other elements in group 2

ElementConfiguration
Beryllium[He] 2s2
Calcium[Ar] 4s2
Strontium[Kr] 5s2
Barium[Xe] 6s2
Radium[Rn] 7s2

Elements in the same group have the same number of outer electrons, which is why they behave alike.