Valence Electrons Explained
By the Periodixy Editorial Team · Last reviewed July 10, 2026
Valence electrons are the electrons in an atom's outermost shell — the only ones that touch other atoms during bonding. Almost everything interesting about an element's chemistry is decided by this handful of electrons, usually between 1 and 8.

The shortcut: read the group number
For main-group elements, the periodic table hands you the answer:
| Group | Valence electrons | Example |
|---|---|---|
| 1 | 1 | Na: 2,8,1 |
| 2 | 2 | Mg: 2,8,2 |
| 13 | 3 | Al: 2,8,3 |
| 14 | 4 | C: 2,4 |
| 15 | 5 | N: 2,5 |
| 16 | 6 | O: 2,6 |
| 17 | 7 | Cl: 2,8,7 |
| 18 | 8 (He: 2) | Ne: 2,8 |
From the electron configuration
Count all electrons in the highest-numbered shell. For sulfur, [Ne] 3s² 3p⁴: shell 3 holds 2 + 4 = 6 valence electrons. The Electron Configuration Calculator shows this count for every element.
Why valence electrons rule chemistry
Atoms react in ways that reach a stable, full outer shell — usually 8 electrons (the octet rule). Three strategies exist:
- Lose the extras: sodium (1 valence electron) sheds it to become Na⁺ with a full shell underneath.
- Gain what's missing: chlorine (7) grabs one electron to become Cl⁻.
- Share: carbon (4) shares four pairs, building molecules like CH₄ and the entire world of organic chemistry.
Predicting an ionic formula
What compound forms between magnesium and nitrogen?
- Mg (group 2) loses 2 electrons → Mg²⁺.
- N (group 15) gains 3 electrons → N³⁻.
- Balance charges: 3 × (+2) = 2 × (−3) → three Mg per two N.
Answer: Mg₃N₂ — magnesium nitride.
Summary
- Valence electrons = electrons in the outermost shell.
- Main-group shortcut: group 1 → 1, group 2 → 2, groups 13–18 → group number minus 10.
- Atoms lose, gain or share valence electrons to reach a full outer shell (octet rule).
- Same group = same valence count = similar chemistry.