Electron Configuration

Fill orbitals electron by electron with the Aufbau principle, Hund's rule and the Pauli exclusion principle

Beginner
View
26Fe

Iron

Transition metal, period 4, group 8, d-block

Full configuration

1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶

Orbital box diagram

↑↓
1s2
↑↓
2s2
↑↓↑↓↑↓
2p6
↑↓
3s2
↑↓↑↓↑↓
3p6
↑↓
4s2
↑↓↑ ↑ ↑ ↑
3d6

Ground state of Fe

Noble-gas shorthand
[Ar] 4s² 3d⁶
Valence electrons
8(4s + 3d electrons)
Unpaired electrons
4
Magnetism
Paramagnetic
Electrons per shell
2, 8, 14, 2
Highest occupied subshell
3d

Unpaired electrons by subshell

  • 1s: 0
  • 2s: 0
  • 2p: 0
  • 3s: 0
  • 3p: 0
  • 4s: 0
  • 3d: 4

Energy-level ladder (lowest at the bottom)

Energy (filling order)1s: n + l = 1, 2/2 electrons1s2s: n + l = 2, 2/2 electrons2s2p: n + l = 3, 6/6 electrons2p3s: n + l = 3, 2/2 electrons3s3p: n + l = 4, 6/6 electrons3p4s: n + l = 4, 2/2 electrons4s3d: n + l = 5, 6/10 electrons3d4p: n + l = 5, 0/6 electrons4p5s: n + l = 5, 0/2 electrons5s4d: n + l = 6, 0/10 electrons4d5p: n + l = 6, 0/6 electrons5p6s: n + l = 6, 0/2 electrons6s4f: n + l = 7, 0/14 electrons4f5d: n + l = 7, 0/10 electrons5d6p: n + l = 7, 0/6 electrons6p7s: n + l = 7, 0/2 electrons7s5f: n + l = 8, 0/14 electrons5f6d: n + l = 8, 0/10 electrons6d7p: n + l = 8, 0/6 electrons7p

How electrons fill an atom

An electron configuration lists how an atom's electrons are spread over its subshells. Oxygen, with eight electrons, is 1s² 2s² 2p⁴: two in 1s, two in 2s and four in 2p. The superscripts always add up to the number of electrons, which for a neutral atom equals the atomic number Z.

Three rules build the ground state. The Aufbau principle fills the lowest-energy subshell first, in the order 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p. The Pauli exclusion principle limits each orbital to two electrons of opposite spin. Hund's rule says electrons in a subshell first occupy separate orbitals with parallel spins, which is why nitrogen has three unpaired 2p electrons rather than one pair and one single.

Notice that 4s fills before 3d. In a many-electron atom, s electrons penetrate close to the nucleus and feel more of its charge, so 4s ends up lower in energy than 3d while it is being filled. The ladder on the right of the visualizer shows this zig-zag order. Writing out the inner shells gets long, so chemists use noble-gas shorthand: iron is [Ar] 4s² 3d⁶, where [Ar] stands for argon's 18 core electrons.

Aufbau principle

Electrons occupy the lowest-energy subshell available. The Madelung rule gives the order: lower n + l first, and for equal n + l, lower n first.

Pauli exclusion principle

No two electrons in an atom share all four quantum numbers, so one orbital holds at most two electrons, with opposite spins (↑↓).

Hund's rule

Within a subshell, electrons spread out into empty orbitals with parallel spins before any of them pair up. This keeps them apart and lowers repulsion.

Shells and subshells

Shell n contains n subshells (s, p, d, f for l = 0, 1, 2, 3). A subshell has 2l + 1 orbitals, so s, p, d and f hold 2, 6, 10 and 14 electrons.

Key formulas

Capacity of subshells and shells

orbitals per subshell = 2l + 1,   electrons per subshell = 2(2l + 1),   electrons per shell = 2n²

l
angular momentum quantum number (s = 0, p = 1, d = 2, f = 3)
n
principal quantum number (shell)

Madelung (n + l) rule

fill in order of increasing n + l;  if n + l is equal, the smaller n fills first

Unpaired electrons in a subshell

unpaired = k if k ≤ m,  otherwise 2m − k

k
electrons in the subshell
m
number of orbitals, 2l + 1

Exceptions to the Aufbau order

Measured ground states that differ from the Madelung prediction. The visualizer flags each one.

Element (Z)Madelung predictionActual ground stateMain reason
Chromium (24)[Ar] 4s² 3d⁴[Ar] 4s¹ 3d⁵Half-filled 3d
Copper (29)[Ar] 4s² 3d⁹[Ar] 4s¹ 3d¹⁰Filled 3d
Niobium (41)[Kr] 5s² 4d³[Kr] 5s¹ 4d⁴Close 5s/4d energies
Molybdenum (42)[Kr] 5s² 4d⁴[Kr] 5s¹ 4d⁵Half-filled 4d
Ruthenium (44)[Kr] 5s² 4d⁶[Kr] 5s¹ 4d⁷Close 5s/4d energies
Rhodium (45)[Kr] 5s² 4d⁷[Kr] 5s¹ 4d⁸Close 5s/4d energies
Palladium (46)[Kr] 5s² 4d⁸[Kr] 4d¹⁰Filled 4d, empty 5s
Silver (47)[Kr] 5s² 4d⁹[Kr] 5s¹ 4d¹⁰Filled 4d
Platinum (78)[Xe] 6s² 4f¹⁴ 5d⁸[Xe] 6s¹ 4f¹⁴ 5d⁹Close 6s/5d energies
Gold (79)[Xe] 6s² 4f¹⁴ 5d⁹[Xe] 6s¹ 4f¹⁴ 5d¹⁰Filled 5d
La, Ce, Gd, Ac, Th, Pa, U, Np, Cmall electrons in fone or two electrons in df and d nearly degenerate
Lawrencium (103)[Rn] 7s² 5f¹⁴ 6d¹[Rn] 7s² 5f¹⁴ 7p¹Relativistic 7p stabilisation

How to use this visualizer

  1. 1
    Choose an element with the dropdown, the Z slider or the Prev and Next buttons. Elements marked "exception" break the Aufbau order.
  2. 2
    In Ground state view, read the full configuration, the orbital box diagram and the noble-gas shorthand, valence and unpaired-electron counts.
  3. 3
    Switch to Build up electron by electron and press Next electron (or Play). The newest electron is drawn in amber, and the message explains which rule placed it.
  4. 4
    Watch the energy-level ladder: the dashed path shows the filling order, and each rung fills from left to right with spin-up arrows before any spin-down arrows.
  5. 5
    Pick Cr, Cu, Pd or Au and build to the end. One extra step shows electrons moving from the Madelung prediction into the real ground state.

Common misconception: 4s is always below 3d

4s fills before 3d, but that does not mean 4s electrons are the innermost. Once 3d holds electrons it drops below 4s, which is why transition metals lose their 4s electrons first when they form ions: Fe is [Ar] 4s² 3d⁶, but Fe²⁺ is [Ar] 3d⁶, not [Ar] 4s² 3d⁴.

Practice problems

Problem 1: Iron and its ions

Write the noble-gas configuration of Fe (Z = 26) and of Fe³⁺. How many unpaired electrons does each have?
Show solution

Fe has 26 electrons. After [Ar] (18 electrons), 8 remain: 4s takes 2, then 3d takes 6. Fe = [Ar] 4s² 3d⁶.

3d⁶ in five orbitals: five electrons go in singly (Hund), the sixth pairs. Unpaired = 2 × 5 − 6 = 4.

Fe³⁺ loses three electrons, the two 4s electrons first and then one 3d electron: Fe³⁺ = [Ar] 3d⁵.

3d⁵ puts one electron in each orbital: unpaired = 5.

Fe: [Ar] 4s² 3d⁶ with 4 unpaired; Fe³⁺: [Ar] 3d⁵ with 5 unpaired

Problem 2: Identify the element

An atom has the ground state [Kr] 5s² 4d¹⁰ 5p³. Which element is it, how many valence electrons does it have, and how many are unpaired? Then compare chromium's Madelung prediction with its real configuration: how many unpaired electrons does each have?
Show solution

Electrons: 36 (Kr) + 2 + 10 + 3 = 51, so Z = 51, antimony (Sb).

Valence electrons are those in the outer shell n = 5: 5s² 5p³ gives 2 + 3 = 5 (the filled 4d¹⁰ is not counted for a p-block element).

5p³ puts one electron in each of the three 5p orbitals, so 3 unpaired.

Chromium: Madelung predicts [Ar] 4s² 3d⁴ with 4 unpaired (all in 3d). Actual [Ar] 4s¹ 3d⁵ has 1 + 5 = 6 unpaired.

Sb, 5 valence electrons, 3 unpaired; Cr: 4 unpaired predicted, 6 actual

Related visualizations

Discussion

Questions, ideas or a different approach? Join the conversation.