The four quantum numbers
In the orbital model, n identifies the principal shell; l, the subshell; mₗ, the projection of orbital angular momentum; and mₛ, the spin projection. Electron spin is s = ½: arrows represent mₛ, not the classical rotation of a sphere.
n = 1, 2, …; l = 0, …, n − 1; mₗ = −l, …, +l; mₛ = ±½. Subshells s, p, d and f correspond to l = 0, 1, 2 and 3, with 1, 3, 5 and 7 orbitals and capacities of 2, 6, 10 and 14 electrons. A complete shell holds 2n² electrons; this does not require one shell to fill completely before another begins.
A set such as (6, 3, 0, +½) is allowed, although no known element occupies the 6f subshell in its ground state. A subshell that goes unused is not a forbidden one.
Aufbau, Madelung and the diagonal rule
Aufbau describes building low-energy configurations while respecting Pauli exclusion. The empirical Madelung rule orders subshells by n + l, then by the smaller n. The Moeller diagram, also known as the diagonal rule, helps remember that sequence.
Filling order is not a fixed ranking of energies. Orbital energies change with the number of electrons, and their order is not the same in every atom and ion: that is why a cation can lose 4s electrons before 3d ones, even though 4s fills first.
Fe can be written [Ar] 4s² 3d⁶ or [Ar] 3d⁶ 4s². The first follows filling order; the second follows shell order. Both describe the same electron distribution. Noble-gas shorthand replaces a complete core with a bracketed noble-gas symbol; spectroscopic notation gives occupations as superscripts.
Pauli, Hund and the arrow convention
Pauli allows at most two electrons per orbital, with opposite spin projections. For degenerate orbitals within one subshell, Hund’s rule places one electron in each box with parallel spins before pairing them.
A common convention runs through the boxes from mₗ = −l to +l, first with ↑ = +½ and then with ↓ = −½. Others reverse the box order or the spin signs: the subshell occupation stays the same, but the quantum numbers assigned to each arrow change. To solve an inverse problem, you need to know which convention is in use.
Arrows are a way of counting electrons, not of identifying them: electrons are indistinguishable. In a many-electron atom, the diagram alone does not describe the total quantum state either.
Last electron and differentiating electron
By convention, the “last electron” is the last one placed when subshells are filled in Madelung order. Writing the configuration in shell order does not change it. For Fe it is (3, 2, −2, −½), in 3d⁶; for As, (4, 1, +1, +½), in 4p³. Numbering arrows in that order is just a way of counting: it does not say in what order electrons enter the atom.
The “differentiating electron” commonly means the one added when moving from one element to the next. In exceptions several electrons can rearrange at once, and that difference no longer corresponds to a single arrow in the diagram.
Exceptions: use reference data
Of the 118 elements, 20 do not follow Madelung’s rule in their ground state: Cr, Cu, Nb, Mo, Ru, Rh, Pd, Ag, La, Ce, Gd, Pt, Au, Ac, Th, Pa, U, Np, Cm, Lr.
Cr has [Ar] 4s¹ 3d⁵ rather than the prediction [Ar] 4s² 3d⁴. “Half-filled or filled is more stable” is a partial teaching aid, not a universal explanation. Nearby configurations compete, and electron repulsion, exchange, correlation and, for heavy elements, relativistic effects all play a part. That is why exceptions are looked up in data tables: they cannot be deduced from a simple rule.
From rutherfordium (Z = 104) on, elements are so unstable that their configuration has not been measured directly: the one marked ≈ is a theoretical prediction.
Ions and the limits of the classroom rule
To write a cation’s configuration, start from the neutral atom and remove electrons with the highest n first and, at equal n, those with the highest l, leaving the noble-gas core intact while electrons remain outside it. Fe³⁺ thus becomes [Ar] 3d⁵: it loses both 4s electrons and one 3d. Respecting the core matters in the f block: Eu³⁺ becomes [Xe] 4f⁶ because, although 5p has a higher n than 4f, its electrons belong to the xenon core.
The rule works for the vast majority of cations, but not all: when an ion forms, the remaining electrons rearrange. For example, the rule gives Co⁺ = [Ar] 4s¹ 3d⁷, but the gas-phase ground state of Co⁺ is [Ar] 3d⁸. Among cations with charges +1 to +4 up to lawrencium (Z = 103), the rule agrees with NIST in 381 of 402 cases; the table lists the other 21.
The 21 ions with a different ground state in NIST
Gas-phase ground states that differ from the rule| Ion | Ground state (NIST) |
|---|
| V⁺ | [Ar] 3d⁴ |
|---|
| Co⁺ | [Ar] 3d⁸ |
|---|
| Ni⁺ | [Ar] 3d⁹ |
|---|
| Y⁺ | [Kr] 5s² |
|---|
| La⁺ | [Xe] 5d² |
|---|
| Ce⁺ | [Xe] 4f¹ 5d² |
|---|
| Ce²⁺ | [Xe] 4f² |
|---|
| Lu⁺ | [Xe] 6s² 4f¹⁴ |
|---|
| Lu²⁺ | [Xe] 6s¹ 4f¹⁴ |
|---|
| Hf⁺ | [Xe] 6s² 4f¹⁴ 5d¹ |
|---|
| Ac⁺ | [Rn] 7s² |
|---|
| Ac²⁺ | [Rn] 7s¹ |
|---|
| Th⁺ | [Rn] 7s² 6d¹ |
|---|
| Th²⁺ | [Rn] 5f¹ 6d¹ |
|---|
| Th³⁺ | [Rn] 5f¹ |
|---|
| Pa⁺ | [Rn] 7s² 5f² |
|---|
| U⁺ | [Rn] 7s² 5f³ |
|---|
| U²⁺ | [Rn] 5f⁴ |
|---|
| Np²⁺ | [Rn] 5f⁵ |
|---|
| Cm⁺ | [Rn] 7s² 5f⁷ |
|---|
| Cm²⁺ | [Rn] 5f⁸ |
|---|
For an anion, electrons are added to the first vacancies in Madelung order: O²⁻ and N³⁻ end up with the neon configuration, and Cl⁻ with that of argon. Beyond the noble gas of the period, the extra electron would have to occupy a new shell, and such anions are not stable. Being able to write the configuration of Na⁻ or Au⁻ does not make them common ions: they exist, but only under unusual conditions. H⁺, He²⁺, Li³⁺ and Be⁴⁺ keep no electrons: only the nucleus remains.
The −2 and −3 anions found in chemistry complete a noble-gas configuration, as O²⁻, S²⁻, N³⁻ and P³⁻ do. Even so, they are not stable isolated in the gas phase: these configurations describe the ion inside an ionic compound, such as magnesium oxide or lithium nitride. Species such as Fe²⁻ or Na³⁻ do not form.
Capital letters matter in chemical notation: Co is cobalt and CO is carbon monoxide. Likewise, NH₄⁺ is the ammonium ion, not a nihonium (Nh) ion.
Explore Fe³⁺ and removal from 4s.
Shells, group and magnetism
K, L, M, N, O, P and Q label n = 1…7. Shell populations sum all subshells with equal n. The outermost occupied shell has the largest n: it need not contain the last subshell in filling order. Pd illustrates this with [Kr] 4d¹⁰ and no occupied 5s.
For main-group elements, outer-shell electrons help identify the group: ns¹ and ns² correspond to groups 1 and 2; ns²np¹…⁶ to 13…18, with He in group 18. Transition elements also involve d electrons; f-block valence requires more context. An ion keeps its element’s period, group and block: position in the table depends on Z, not on charge.
An atom or ion with unpaired electrons is paramagnetic: a magnetic field attracts it. If all its electrons are paired, it is diamagnetic: the field weakly repels it. This applies to the isolated atom or ion; in a solid or a complex, the surroundings can change how many electrons remain unpaired.
The inverse problem may not identify one atom
For (3, 2, +2, +½), Madelung’s rule gives Mn: 3d⁵. But Cr also ends in 3d⁵, with the same last electron, because it is an exception ([Ar] 4s¹ 3d⁵). One set of quantum numbers can correspond to more than one atom.
By contrast, (3, 2, +1, +½) corresponds to Cr by the rule, but real Cr ends in (3, 2, +2, +½), and no neutral atom ends in (3, 2, +1, +½).