Why the Periodic Table Has Its Shape: Quantum Rules

The periodic table's shape is a picture of quantum mechanics. Here is how four quantum numbers and the Pauli principle force rows of 2, 8, 18 and 32.

Table of Contents

Count Across the Rows and the Numbers Get Strange

Pin a periodic table to the wall and ignore the colours. Count how many elements sit in each row. The first has two. The second has eight, lithium through neon. The third has eight again. The fourth jumps to eighteen, the fifth is eighteen as well, and the sixth and seventh each carry thirty-two once you fold the lanthanides and actinides back into the rows they were cut out of.

2, 8, 8, 18, 18, 32, 32.

That sequence is the most interesting thing on the chart, and hardly any classroom explains it. It is not a sequence anyone would invent. A filing cabinet for the elements would have tidy rows of ten or twelve, not two rows so long they get amputated into a footnote along the bottom.

The shape is not a design choice. It is a picture of quantum mechanics drawn at poster size. Every block, and every awkward gap between blocks, follows from two facts: how many solutions the Schrodinger equation has for an electron bound to a nucleus, and the rule that no two electrons may occupy the same one.

Four Numbers Label Every Electron in an Atom

Solve the Schrodinger equation for one electron in the electric field of a nucleus and you do not get an answer. You get a whole family of them, each tagged by a set of integers: the quantum numbers.

The principal quantum number n runs 1, 2, 3 upwards and largely sets the energy and the size of the orbital. The angular momentum quantum number l sets the shape, and here comes the first hard constraint: for a given n, l can only take the values 0, 1, 2, and so on up to n − 1. No further. The magnetic quantum number mₗ fixes the orientation in space, and it runs in whole-number steps from −l to +l, which means there are exactly 2l + 1 of them. Last comes the spin quantum number mₛ, either +1/2 or −1/2. Spin is not a solution of the Schrodinger equation at all but an extra two-valued property the electron carries with it.

Chemistry labels the l values with letters inherited from nineteenth-century spectroscopy: l = 0 is s, 1 is p, 2 is d, 3 is f.

Wolfgang Pauli then supplied the rule that turns bookkeeping into structure. In 1925 he proposed that no two electrons in an atom may share all four quantum numbers. That exclusion principle is why matter has volume: without it every electron in an atom would pile into the lowest state.

The Arithmetic That Produces Every Row Length

Now the payoff. It is pure counting. A subshell is a particular n and l. It holds 2l + 1 orbitals, one per value of mₗ, and Pauli allows two electrons in each, one of each spin. So the capacity of any subshell is

2(2l + 1)

Put the numbers in. An s subshell with l = 0 holds 2(1) = 2 electrons, p with l = 1 holds 2(3) = 6, d with l = 2 holds 2(5) = 10, f with l = 3 holds 2(7) = 14. Those four numbers are exactly the widths of the four blocks on the chart: two columns of s-block on the left, six of p-block on the right, the ten-column transition metal slab in the middle, the fourteen-column lanthanide strip underneath.

Add the subshells of a given n and you get the shell capacity 2n²: 2, 8, 18, 32 for the first four shells. Now the row lengths. A period runs from one noble gas to the next, and the subshells filled in between are not all from the same shell. Period 1 fills only 1s, so its length is 2. Period 2 fills 2s and 2p: 2 + 6 = 8. Period 3 fills 3s and 3p: 8 again. Period 4 fills 4s, then 3d, then 4p: 2 + 10 + 6 = 18. Period 5 repeats that pattern with 5s, 4d, 5p for another 18. Period 6 adds an f subshell, filling 6s, 4f, 5d, 6p: 2 + 14 + 10 + 6 = 32. Period 7 does the same with 7s, 5f, 6d, 7p for 32.

4s l = 0 2(2x0+1) = 2 electrons 4p l = 1 2(2x1+1) = 6 electrons 4d l = 2 2(2x2+1) = 10 electrons 4f l = 3 2(2x3+1) = 14 electrons n = 4: 4 subshells, 16 orbitals, 32 electrons = 2n squared
n = 4: 16 orbitals, 32 electrons
Madelung filling order, with capacity added and running total
1s
+2
2
period 1
length 2
2s
+2
4
2p
+6
10
period 2
length 6
3s
+2
12
3p
+6
18
period 3
length 6
4s
+2
20
3d
+10
30
4p
+6
36
period 4
length 6
5s
+2
38
4d
+10
48
5p
+6
54
period 5
length 6
6s
+2
56
4f
+14
70
5d
+10
80
6p
+6
86
period 6
length 6
7s
+2
88
5f
+14
102
6d
+10
112
7p
+6
118
period 7
length 6
Measured exceptions to this order, in neutral free atoms: chromium is 3d(5)4s(1) rather than 3d(4)4s(2); copper is 3d(10)4s(1) rather than 3d(9)4s(2); molybdenum repeats chromium as 4d(5)5s(1); palladium gives up its outer s entirely at 4d(10); lanthanum opens the f-block with 5d(1)6s(2) and no 4f electron at all.
Drag the slider through n = 1 to 7 to watch the subshells appear, then read the running totals along the filling sequence: the period lengths 2, 8, 8, 18, 18, 32, 32 are just the gaps between successive closed shells.

Why 4s Fills Before 3d, and Why Chromium Ignores It

The arithmetic above needed one extra ingredient: the order. Why does period 4 fill 4s before 3d, when 3d has the smaller n? In hydrogen it would not: energy there depends on n alone, as the Bohr model assumed. Add more electrons and they screen one another, and screening depends on shape. An s electron spends more time close in, where screening is weakest, so it is bound more tightly than its n suggests.

The regularity that captures this is the Madelung rule, or n + l rule: subshells fill in order of increasing n + l, and when two tie, the smaller n goes first. For 4s, n + l = 4. For 3d it is 5. So 4s first, which is why potassium and calcium add 4s electrons and scandium only then opens the 3d row.

This rule is an empirical regularity fitted to spectroscopic data, not a theorem derived from the Schrodinger equation, and around twenty of the 118 elements disobey it. Chromium is the first. The rule says 3d⁴4s², measurement says 3d⁵4s¹, with one electron promoted so the d subshell is exactly half full. Copper does it again at 3d¹⁰4s¹ instead of 3d⁹4s², with d completely full. Half-filled and filled subshells gain stability from exchange energy, a quantum effect between electrons of parallel spin, and here the 3d and 4s levels sit close enough that a small saving flips the outcome. The real ground state is whatever minimises the energy of the whole atom; the filling order only guesses at it.

The Shape Is Also an Explanation of Chemistry

Columns share an outer electron configuration, and chemistry is almost entirely a story about outer electrons. The noble gases are inert because their p subshell is exactly full: nothing available, nothing wanted. The alkali metals are alarmingly reactive because each has a single s electron outside a closed shell, loosely held and easily surrendered.

The lanthanides make the point better still. Cerium through lutetium are notoriously hard to tell apart chemically, and separating them was a nineteenth-century nightmare. The reason is geometric: the electrons that differ between them go into 4f orbitals, which sit underneath the already-occupied 5s and 5p subshells. The distinguishing electrons are buried, so the atoms present nearly identical outer surfaces.

Dmitri Mendeleev published his table in 1869 purely from chemical behaviour and atomic weights, leaving blanks where no element was yet known. He had no electrons; Thomson would not find them for another twenty-eight years. The quantum account arrived in the 1920s and reproduced his arrangement from first principles. Two independent routes converging on one chart is about as strong a hint as physics ever gives that the picture underneath is right.

Where Relativity Starts to Bend the Table

At the bottom of the table the tidy scheme strains, and the culprit is special relativity. In a heavy atom the innermost electrons move fast enough that relativistic mass increase matters, contracting the inner s orbitals and, through knock-on screening, shifting everything above. Doing this properly needs the Dirac equation rather than Schrodinger’s.

Two consequences are famous. Gold is yellow because the contraction pulls its 6s level down, narrowing the 5d-to-6s gap until it lands in the visible range near 2.4 eV, so gold absorbs blue light and reflects the rest. Mercury is liquid at room temperature for a related reason: its contracted 6s² pair barely bonds, leaving mercury atoms held together by little more than weak dispersion forces. Quantum molecular dynamics from Peter Schwerdtfeger’s group in 2013 reproduced mercury’s melting point of 234 K only with relativity switched on; without it the answer came out roughly 100 K too high.

Does the Shape Have an Edge?

Oganesson, element 118, completes period 7 and the 7p subshell. Push past it and the blocks lose their meaning. Glenn Seaborg’s 1969 extrapolation of the Madelung rule has period 8 open with 8s, then add a new eighteen-column g-block from 5g, since l = 4 gives 2(9) = 18. Relativistic calculations by Burkhard Fricke, Pekka Pyykko and others spoil that picture: levels crowd together, spin and orbital motion couple so strongly that a single l stops being a meaningful label, and several elements are displaced from where the rule would put them. Configurations out here are predicted, not measured, and there is no consensus layout beyond element 120 — nor any settled answer to how heavy an element can get at all.

So the familiar shape is not permanent furniture. It is the visible part of a quantum pattern that holds beautifully for the atoms we can make, and blurs exactly where atoms stop lasting long enough to ask.

Sources and Further Reading

Frequently Asked Questions

Why does the periodic table have the shape it does?

The shape comes straight out of quantum mechanics. Solving the Schrodinger equation for an electron bound to a nucleus gives solutions labelled by quantum numbers, and those labels are restricted: for a principal quantum number n, the angular momentum number l can only run from 0 to n minus 1, and for each l there are exactly 2l + 1 orientations. The Pauli exclusion principle then allows two electrons per orientation, one of each spin, so a subshell holds 2(2l + 1) electrons. That gives 2 for an s subshell, 6 for p, 10 for d and 14 for f, and those four numbers are the widths of the four blocks on the chart. The row lengths follow by addition: 2, then 2 + 6 = 8, then 2 + 10 + 6 = 18, then 2 + 14 + 10 + 6 = 32. Nobody chose the layout. It is the arithmetic of the allowed solutions.

How many electrons can each subshell hold and why?

A subshell holds 2(2l + 1) electrons, where l is the angular momentum quantum number. The factor 2l + 1 counts the magnetic quantum number m sub l, which runs in whole-number steps from minus l to plus l, so there are 2l + 1 distinct orbitals in the subshell. The factor of 2 comes from electron spin, which has only two possible values, plus or minus one half. Because the Pauli exclusion principle forbids two electrons in one atom from sharing all four quantum numbers, each orbital takes at most two electrons, and they must have opposite spins. Putting the numbers in gives 2 electrons for an s subshell with l = 0, 6 for p with l = 1, 10 for d with l = 2 and 14 for f with l = 3. Summing every subshell of a given n gives 2n squared for the whole shell: 2, 8, 18 and 32 for n = 1 to 4.

Why does the 4s orbital fill before 3d?

Because in a many-electron atom the energy of a subshell depends on both n and l, not on n alone. The empirical pattern is the Madelung rule, also called the n plus l rule: subshells fill in order of increasing n + l, and where two subshells tie, the one with the smaller n fills first. For 4s, n + l is 4 + 0 = 4. For 3d it is 3 + 2 = 5. So 4s comes first, which is why potassium and calcium add 4s electrons before scandium starts the 3d row. The physical reason is penetration and screening: an s electron spends more of its time close to the nucleus, where the other electrons screen the charge less effectively, so it is bound more tightly than its principal quantum number alone would suggest. The rule is a regularity rather than a theorem, and roughly twenty elements disobey it.

Why is chromium 3d5 4s1 instead of 3d4 4s2?

Chromium is the lightest element whose measured ground-state configuration disobeys the simple filling order. The n plus l rule predicts argon core plus 3d4 4s2, but spectroscopy shows argon core plus 3d5 4s1, with one electron promoted from 4s into 3d to leave the d subshell exactly half filled. Copper does the same thing one step further along, coming out as 3d10 4s1 rather than 3d9 4s2, with a completely filled d subshell. The usual explanation is that half-filled and filled subshells gain extra stability from exchange energy, a purely quantum effect between electrons of parallel spin, and that the 3d and 4s levels sit so close together in this part of the table that a small energy saving is enough to tip the balance. The honest version is that the real ground state is whichever total arrangement minimises the energy of the whole atom, and the filling order is only a rule of thumb for guessing it.

Read Next