Lesson 4 · 25 min

Electron configuration: filling the orbitals

Place electrons one at a time using three rules — lowest energy first, Pauli exclusion, and Hund’s rule — and watch the shape of the periodic table grow out of them.

In this lesson

  • State the three rules that decide how electrons fill orbitals
  • Write full and condensed configurations for any element
  • Explain why Cr and Cu are “exceptions” and why transition-metal ions lose 4s electrons first
  • Read unpaired electrons and magnetism off a configuration

Hydrogen has one electron, sitting in the lowest-energy 1s orbital. Iron has 26, spread across a whole sequence of orbitals. They are not placed at random: from the atomic number alone you can predict every electron’s “seat” — and the shape of that seating chart is exactly the shape of the periodic table.

Three rules

  1. Aufbau (lowest energy first): electrons occupy the lowest-energy empty orbital. In many-electron atoms orbital energy rises roughly with n+ln+l; for equal n+ln+l the smaller nn fills first.
  2. Pauli exclusion: an orbital holds at most two electrons, with opposite spins (↑↓).
  3. Hund’s rule: orbitals of one subshell have equal energy, so electrons first spread out singly with parallel spins before any pairing.
capacity(l)=2(2l+1)s: 2p: 6d: 10f: 14\text{capacity}(l) = 2(2l+1)\qquad s{:}\,2\quad p{:}\,6\quad d{:}\,10\quad f{:}\,14
Each subshell has 2l+12l+1 orbitals, two electrons per orbital.
nn
principal quantum number: the shell, sets size and most of the energy
ll
angular quantum number: subshell shape, s = 0, p = 1, d = 2, f = 3

Predict first

Potassium (K, Z = 19): which subshell receives the 19th electron?

Pick an answer and lock it in before you look. A wrong guess teaches more than no guess.

Build atoms on the explorer

Add electrons one at a time with the arrow buttons. Watch three things: the three p boxes each get one ↑ before any pairing (Hund’s rule); every completed p subshell lands on a noble gas; and the lit-up region of the periodic table grows block by block — s, p, d, f.

Aufbau · Hund · Pauli

Electron configuration explorer

8 O Oxygen · Nonmetal
Charge
Orbital ladder (ordered by the n + l rule; spacing schematic)
  1. 3s
  2. 2p ↑↓↑↑ 4
  3. 2s ↑↓ 2
  4. 1s ↑↓ 2
The periodic table is the filling order: s, p, d, f blocks
Condensed
[He] 2s² 2p⁴
Full
1s² 2s² 2p⁴
Electrons
8
Unpaired electrons
2 paramagnetic (drawn into a magnetic field)
Zeff
4.55 Effective nuclear charge on the outermost electron (Slater)

Matches the n + l (Madelung) prediction.

Configurations are filled one electron at a time by the n + l rule and compared with the measured ground states in the PubChem table; anomalies such as Cr and Cu are found by that comparison, not typed in. Ladder spacing shows order only, not true energies.
Try N (3 unpaired electrons), O (2), and Fe²⁺ (loses 4s first).

Condensed notation and valence electrons

Inner electrons barely take part in chemistry, so we abbreviate them with the preceding noble gas: iron is [Ar] 3d6 4s2[\mathrm{Ar}]\,3d^6\,4s^2. Whatever sits outside the brackets are the valence electrons that do the bonding. Elements in one group share a valence configuration — that is why they behave alike.

Worked example

Write the configuration of sulfur

Sulfur (S) has Z = 16. Write the full and condensed configurations and count its unpaired electrons.

The “exceptions”: Cr and Cu

Set the explorer to chromium (Z = 24). The n+ln+l rule predicts [Ar] 3d4 4s2[\mathrm{Ar}]\,3d^4\,4s^2, but spectroscopy finds the ground state [Ar] 3d5 4s1[\mathrm{Ar}]\,3d^5\,4s^1. Copper likewise is 3d10 4s13d^{10}\,4s^1, not 3d9 4s23d^9\,4s^2.

The reason: 3d and 4s are very close in energy, and electrons with parallel spins gain extra exchange stabilisation. A half-filled (d5d^5) or filled (d10d^{10}) subshell maximises it — enough to pay for moving one electron from 4s to 3d. The n+ln+l rule is an approximation; experiment is the referee.

Ions: the highest n leaves first

When a cation forms, electrons leave the subshell with the highest principal quantum number — not the one filled last. So Fe → Fe²⁺ removes the two 4s electrons: [Ar] 3d6[\mathrm{Ar}]\,3d^6. Once the atom carries a positive charge, 3d drops below 4s in energy. Anions simply keep filling by the aufbau order: Cl−\mathrm{Cl^-} is [Ne] 3s2 3p6[\mathrm{Ne}]\,3s^2\,3p^6, isoelectronic with argon.

Concept check

How many unpaired electrons does Fe³⁺ have?

Try the calculation

How many 3d electrons does Mn²⁺ (Mn, Z = 25) have?

Key takeaways

  • Electrons fill in order of increasing n+ln+l; at most two opposite-spin electrons per orbital; singly occupy a subshell before pairing.
  • The s, p, d, and f blocks mark the subshell being filled; period lengths equal the sums of subshell capacities.
  • Cr, Cu and others deviate because half-filled and filled subshells gain exchange stabilisation; the rule is approximate, measurement decides.
  • Cations lose the highest-n electrons first (4s before 3d in transition metals); unpaired electrons make a species paramagnetic.
Progress is stored only in this browser and never uploaded.

Data and references

  1. PubChem Periodic Table of Elements (ground-state configurations), National Center for Biotechnology Information, accessed 2026-09.
  2. J. C. Slater, “Atomic Shielding Constants”, Phys. Rev. 36, 57 (1930).
  3. P. Atkins, T. Overton, J. Rourke, M. Weller, F. Armstrong, Shriver & Atkins’ Inorganic Chemistry, 5th ed., Ch. 1.