Filling Atomic Shells
Every electron in an atom is fully described by four quantum numbers: the principal quantum number , the orbital angular momentum quantum number , the magnetic quantum number , and the spin projection . The Pauli exclusion principle forbids two electrons from sharing the same set of all four. Counting how many distinct combinations are available for a given tells us the capacity of an atomic shell — the maximum number of electrons it can hold.
The quantum numbers in brief
For a given , the allowed values of are
For each , the magnetic quantum number takes the values
Finally, the spin projection takes exactly two values, and , regardless of the other quantum numbers. Together, each value defines a subshell of capacity
The factor counts the states; the factor of accounts for the two spin orientations.
Counting the capacity of a shell
The -th shell contains all subshells from to . Its total electron capacity is the sum
The inner sum is the sum of the first odd integers, which equals :
Therefore
This compact formula is a direct consequence of the quantum number rules and the Pauli exclusion principle. It governs the period lengths of the periodic table.
Subshell notation and the periodic table
Chemists label subshells by letter: is called s, is p, is d, and is f. The capacity of each subshell is:
| Subshell | | values | Capacity | |----------|--------|-----------------|----------------------| | s | 0 | | 2 | | p | 1 | | 6 | | d | 2 | | 10 | | f | 3 | | 14 |
The structure of the periodic table follows directly: the first period has elements (H and He), the second and third periods each accommodate elements (though the filling order for higher mixes shells due to electron-electron repulsion), and the fourth and fifth periods each span 18 elements when the and subshells are included.
Worked example: the shell
For , the allowed subshells are (the 2s) and (the 2p):
- 2s: electrons.
- 2p: electrons.
- Total: , consistent with the formula.
The eight elements in the second period of the periodic table (lithium through neon) correspond to filling these eight states.
Try it
This is a numerical exercise — your code should return a number. Compute the total number of
electrons that can fill the shell by summing the capacity of each subshell (,
, and ). Each subshell holds electrons.
Sign in on the full site to ask questions and join the discussion.