Filling orbitals…
An electron configuration lists which subshells hold an atom’s electrons. The diagram above draws each subshell as a row of orbital boxes, raised by energy. Press Play and electrons drop in one element at a time, from hydrogen to oganesson. Each arrow is one electron; up and down are the two spin states.
The filling order
Subshells fill in order of increasing n + ℓ, and on a tie the lower n goes first. That is the Madelung rule, and the staircase in the diagram is that rule drawn in 3D:
1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p → 5s → 4d → 5p → 6s → 4f → 5d → 6p → 7s → 5f → 6d → 7p
Three rules decide where each electron goes. Aufbau: lowest energy first. Pauli exclusion: at most two electrons per orbital, with opposite spins. Hund’s rule: inside a subshell, spread out with parallel spins before pairing. Step through carbon, nitrogen, and oxygen and watch 2p go ↑, ↑ ↑, ↑ ↑ ↑, then ↑↓ ↑ ↑.
Exceptions to the Aufbau principle
The rule is a prediction; the ground state is a measurement. For 20 elements in this dataset they disagree, mostly where (n−1)d and ns, or 4f/5f and 5d/6d, are nearly the same energy. Switch to “Madelung rule only” above to see what the rule alone would give.
| Element | Measured | Madelung predicts |
|---|---|---|
| Chromium (Cr) | 4s¹ 3d⁵ | 4s² 3d⁴ |
| Copper (Cu) | 4s¹ 3d¹⁰ | 4s² 3d⁹ |
| Niobium (Nb) | 5s¹ 4d⁴ | 5s² 4d³ |
| Molybdenum (Mo) | 5s¹ 4d⁵ | 5s² 4d⁴ |
| Ruthenium (Ru) | 5s¹ 4d⁷ | 5s² 4d⁶ |
| Rhodium (Rh) | 5s¹ 4d⁸ | 5s² 4d⁷ |
| Palladium (Pd) | 5s⁰ 4d¹⁰ | 5s² 4d⁸ |
| Silver (Ag) | 5s¹ 4d¹⁰ | 5s² 4d⁹ |
| Lanthanum (La) | 4f⁰ 5d¹ | 4f¹ 5d⁰ |
| Cerium (Ce) | 4f¹ 5d¹ | 4f² 5d⁰ |
| Gadolinium (Gd) | 4f⁷ 5d¹ | 4f⁸ 5d⁰ |
| Platinum (Pt) | 6s¹ 5d⁹ | 6s² 5d⁸ |
| Gold (Au) | 6s¹ 5d¹⁰ | 6s² 5d⁹ |
| Actinium (Ac) | 5f⁰ 6d¹ | 5f¹ 6d⁰ |
| Thorium (Th) | 5f⁰ 6d² | 5f² 6d⁰ |
| Protactinium (Pa) | 5f² 6d¹ | 5f³ 6d⁰ |
| Uranium (U) | 5f³ 6d¹ | 5f⁴ 6d⁰ |
| Neptunium (Np) | 5f⁴ 6d¹ | 5f⁵ 6d⁰ |
| Curium (Cm) | 5f⁷ 6d¹ | 5f⁸ 6d⁰ |
| Lawrencium (Lr) | 6d⁰ 7p¹ | 6d¹ 7p⁰ |
Electron configuration chart for all 118 elements
Ground-state configurations in noble-gas shorthand, from the same dataset as the interactive periodic table. Each name links to the full element profile. For the shapes of the s, p, d, and f orbitals themselves, see hydrogen orbitals in 3D and why the table is four blocks.
| Z | Element | Electron configuration |
|---|---|---|
| 1 | Hydrogen (H) | 1s¹ |
| 2 | Helium (He) | 1s² |
| 3 | Lithium (Li) | [He] 2s¹ |
| 4 | Beryllium (Be) | [He] 2s² |
| 5 | Boron (B) | [He] 2s² 2p¹ |
| 6 | Carbon (C) | [He] 2s² 2p² |
| 7 | Nitrogen (N) | [He] 2s² 2p³ |
| 8 | Oxygen (O) | [He] 2s² 2p⁴ |
| 9 | Fluorine (F) | [He] 2s² 2p⁵ |
| 10 | Neon (Ne) | [He] 2s² 2p⁶ |
| 11 | Sodium (Na) | [Ne] 3s¹ |
| 12 | Magnesium (Mg) | [Ne] 3s² |
| 13 | Aluminium (Al) | [Ne] 3s² 3p¹ |
| 14 | Silicon (Si) | [Ne] 3s² 3p² |
| 15 | Phosphorus (P) | [Ne] 3s² 3p³ |
| 16 | Sulfur (S) | [Ne] 3s² 3p⁴ |
| 17 | Chlorine (Cl) | [Ne] 3s² 3p⁵ |
| 18 | Argon (Ar) | [Ne] 3s² 3p⁶ |
| 19 | Potassium (K) | [Ar] 4s¹ |
| 20 | Calcium (Ca) | [Ar] 4s² |
| 21 | Scandium (Sc) | [Ar] 3d¹ 4s² |
| 22 | Titanium (Ti) | [Ar] 3d² 4s² |
| 23 | Vanadium (V) | [Ar] 3d³ 4s² |
| 24 | Chromium (Cr) | [Ar] 3d⁵ 4s¹ |
| 25 | Manganese (Mn) | [Ar] 3d⁵ 4s² |
| 26 | Iron (Fe) | [Ar] 3d⁶ 4s² |
| 27 | Cobalt (Co) | [Ar] 3d⁷ 4s² |
| 28 | Nickel (Ni) | [Ar] 3d⁸ 4s² |
| 29 | Copper (Cu) | [Ar] 3d¹⁰ 4s¹ |
| 30 | Zinc (Zn) | [Ar] 3d¹⁰ 4s² |
| 31 | Gallium (Ga) | [Ar] 3d¹⁰ 4s² 4p¹ |
| 32 | Germanium (Ge) | [Ar] 3d¹⁰ 4s² 4p² |
| 33 | Arsenic (As) | [Ar] 3d¹⁰ 4s² 4p³ |
| 34 | Selenium (Se) | [Ar] 3d¹⁰ 4s² 4p⁴ |
| 35 | Bromine (Br) | [Ar] 3d¹⁰ 4s² 4p⁵ |
| 36 | Krypton (Kr) | [Ar] 3d¹⁰ 4s² 4p⁶ |
| 37 | Rubidium (Rb) | [Kr] 5s¹ |
| 38 | Strontium (Sr) | [Kr] 5s² |
| 39 | Yttrium (Y) | [Kr] 4d¹ 5s² |
| 40 | Zirconium (Zr) | [Kr] 4d² 5s² |
| 41 | Niobium (Nb) | [Kr] 4d⁴ 5s¹ |
| 42 | Molybdenum (Mo) | [Kr] 4d⁵ 5s¹ |
| 43 | Technetium (Tc) | [Kr] 4d⁵ 5s² |
| 44 | Ruthenium (Ru) | [Kr] 4d⁷ 5s¹ |
| 45 | Rhodium (Rh) | [Kr] 4d⁸ 5s¹ |
| 46 | Palladium (Pd) | [Kr] 4d¹⁰ |
| 47 | Silver (Ag) | [Kr] 4d¹⁰ 5s¹ |
| 48 | Cadmium (Cd) | [Kr] 4d¹⁰ 5s² |
| 49 | Indium (In) | [Kr] 4d¹⁰ 5s² 5p¹ |
| 50 | Tin (Sn) | [Kr] 4d¹⁰ 5s² 5p² |
| 51 | Antimony (Sb) | [Kr] 4d¹⁰ 5s² 5p³ |
| 52 | Tellurium (Te) | [Kr] 4d¹⁰ 5s² 5p⁴ |
| 53 | Iodine (I) | [Kr] 4d¹⁰ 5s² 5p⁵ |
| 54 | Xenon (Xe) | [Kr] 4d¹⁰ 5s² 5p⁶ |
| 55 | Caesium (Cs) | [Xe] 6s¹ |
| 56 | Barium (Ba) | [Xe] 6s² |
| 57 | Lanthanum (La) | [Xe] 5d¹ 6s² |
| 58 | Cerium (Ce) | [Xe] 4f¹ 5d¹ 6s² |
| 59 | Praseodymium (Pr) | [Xe] 4f³ 6s² |
| 60 | Neodymium (Nd) | [Xe] 4f⁴ 6s² |
| 61 | Promethium (Pm) | [Xe] 4f⁵ 6s² |
| 62 | Samarium (Sm) | [Xe] 4f⁶ 6s² |
| 63 | Europium (Eu) | [Xe] 4f⁷ 6s² |
| 64 | Gadolinium (Gd) | [Xe] 4f⁷ 5d¹ 6s² |
| 65 | Terbium (Tb) | [Xe] 4f⁹ 6s² |
| 66 | Dysprosium (Dy) | [Xe] 4f¹⁰ 6s² |
| 67 | Holmium (Ho) | [Xe] 4f¹¹ 6s² |
| 68 | Erbium (Er) | [Xe] 4f¹² 6s² |
| 69 | Thulium (Tm) | [Xe] 4f¹³ 6s² |
| 70 | Ytterbium (Yb) | [Xe] 4f¹⁴ 6s² |
| 71 | Lutetium (Lu) | [Xe] 4f¹⁴ 5d¹ 6s² |
| 72 | Hafnium (Hf) | [Xe] 4f¹⁴ 5d² 6s² |
| 73 | Tantalum (Ta) | [Xe] 4f¹⁴ 5d³ 6s² |
| 74 | Tungsten (W) | [Xe] 4f¹⁴ 5d⁴ 6s² |
| 75 | Rhenium (Re) | [Xe] 4f¹⁴ 5d⁵ 6s² |
| 76 | Osmium (Os) | [Xe] 4f¹⁴ 5d⁶ 6s² |
| 77 | Iridium (Ir) | [Xe] 4f¹⁴ 5d⁷ 6s² |
| 78 | Platinum (Pt) | [Xe] 4f¹⁴ 5d⁹ 6s¹ |
| 79 | Gold (Au) | [Xe] 4f¹⁴ 5d¹⁰ 6s¹ |
| 80 | Mercury (Hg) | [Xe] 4f¹⁴ 5d¹⁰ 6s² |
| 81 | Thallium (Tl) | [Xe] 4f¹⁴ 5d¹⁰ 6s² 6p¹ |
| 82 | Lead (Pb) | [Xe] 4f¹⁴ 5d¹⁰ 6s² 6p² |
| 83 | Bismuth (Bi) | [Xe] 4f¹⁴ 5d¹⁰ 6s² 6p³ |
| 84 | Polonium (Po) | [Xe] 4f¹⁴ 5d¹⁰ 6s² 6p⁴ |
| 85 | Astatine (At) | [Xe] 4f¹⁴ 5d¹⁰ 6s² 6p⁵ |
| 86 | Radon (Rn) | [Xe] 4f¹⁴ 5d¹⁰ 6s² 6p⁶ |
| 87 | Francium (Fr) | [Rn] 7s¹ |
| 88 | Radium (Ra) | [Rn] 7s² |
| 89 | Actinium (Ac) | [Rn] 6d¹ 7s² |
| 90 | Thorium (Th) | [Rn] 6d² 7s² |
| 91 | Protactinium (Pa) | [Rn] 5f² 6d¹ 7s² |
| 92 | Uranium (U) | [Rn] 5f³ 6d¹ 7s² |
| 93 | Neptunium (Np) | [Rn] 5f⁴ 6d¹ 7s² |
| 94 | Plutonium (Pu) | [Rn] 5f⁶ 7s² |
| 95 | Americium (Am) | [Rn] 5f⁷ 7s² |
| 96 | Curium (Cm) | [Rn] 5f⁷ 6d¹ 7s² |
| 97 | Berkelium (Bk) | [Rn] 5f⁹ 7s² |
| 98 | Californium (Cf) | [Rn] 5f¹⁰ 7s² |
| 99 | Einsteinium (Es) | [Rn] 5f¹¹ 7s² |
| 100 | Fermium (Fm) | [Rn] 5f¹² 7s² |
| 101 | Mendelevium (Md) | [Rn] 5f¹³ 7s² |
| 102 | Nobelium (No) | [Rn] 5f¹⁴ 7s² |
| 103 | Lawrencium (Lr) | [Rn] 5f¹⁴ 7s² 7p¹ |
| 104 | Rutherfordium (Rf) | [Rn] 5f¹⁴ 6d² 7s² |
| 105 | Dubnium (Db) | [Rn] 5f¹⁴ 6d³ 7s² |
| 106 | Seaborgium (Sg) | [Rn] 5f¹⁴ 6d⁴ 7s² |
| 107 | Bohrium (Bh) | [Rn] 5f¹⁴ 6d⁵ 7s² |
| 108 | Hassium (Hs) | [Rn] 5f¹⁴ 6d⁶ 7s² |
| 109 | Meitnerium (Mt) | [Rn] 5f¹⁴ 6d⁷ 7s² |
| 110 | Darmstadtium (Ds) | [Rn] 5f¹⁴ 6d⁸ 7s² |
| 111 | Roentgenium (Rg) | [Rn] 5f¹⁴ 6d⁹ 7s² |
| 112 | Copernicium (Cn) | [Rn] 5f¹⁴ 6d¹⁰ 7s² |
| 113 | Nihonium (Nh) | [Rn] 5f¹⁴ 6d¹⁰ 7s² 7p¹ |
| 114 | Flerovium (Fl) | [Rn] 5f¹⁴ 6d¹⁰ 7s² 7p² |
| 115 | Moscovium (Mc) | [Rn] 5f¹⁴ 6d¹⁰ 7s² 7p³ |
| 116 | Livermorium (Lv) | [Rn] 5f¹⁴ 6d¹⁰ 7s² 7p⁴ |
| 117 | Tennessine (Ts) | [Rn] 5f¹⁴ 6d¹⁰ 7s² 7p⁵ |
| 118 | Oganesson (Og) | [Rn] 5f¹⁴ 6d¹⁰ 7s² 7p⁶ |
For the heaviest elements, roughly past Z = 100, configurations are calculated predictions rather than spectroscopic measurements — those atoms survive seconds or less, a few at a time.
Electron configuration questions
What is the Aufbau principle?
Aufbau is German for “building up.” Electrons fill the lowest-energy subshell available before moving higher. The order follows the Madelung (n + ℓ) rule: the subshell with the smaller n + ℓ fills first, and on a tie the one with the smaller n goes first. That gives 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
Why does 4s fill before 3d?
4s has n + ℓ = 4 while 3d has n + ℓ = 5, and the 4s electron penetrates closer to the nucleus, so for potassium and calcium 4s is lower in energy. Once the 3d orbitals start filling, however, they drop below 4s. That is why transition metals lose their 4s electrons first when they form ions: Fe²⁺ is [Ar] 3d⁶, not [Ar] 3d⁴ 4s².
Why is chromium 3d⁵ 4s¹ instead of 3d⁴ 4s²?
The 3d and 4s energies are almost equal at chromium. Moving one electron from 4s into 3d gives six unpaired electrons with parallel spins, which gains exchange energy and avoids pairing two electrons in the same 4s orbital. Copper does the same thing to complete a full 3d¹⁰. The measured ground state wins over the simple rule.
What are Hund’s rule and the Pauli exclusion principle?
Pauli: no two electrons in an atom share all four quantum numbers, so each orbital holds at most two electrons with opposite spins. Hund: within a subshell, electrons occupy separate orbitals with parallel spins before any of them pair up. Nitrogen’s 2p³ is therefore ↑ ↑ ↑, not ↑↓ ↑.
What does the noble-gas shorthand like [Ar] mean?
[Ar] stands for argon’s full configuration, 1s² 2s² 2p⁶ 3s² 3p⁶. Writing the core as the previous noble gas leaves only the valence electrons visible, which are the ones that decide chemistry. Iron’s 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶ becomes [Ar] 3d⁶ 4s².
