Picture a movie theater filling up. People grab the cheap, comfortable front seats first and only drift toward the back once the good seats are taken. Electrons behave the same way: they settle into the lowest-energy "seats" around the nucleus — called orbitals — before any of them sit higher up. That single habit is the whole Aufbau principle ("aufbau" is German for "building up").
Each orbital has a name and a strict capacity: an s orbital holds 2 electrons, a p set holds 6, a d set holds 10. The atomic number $Z$ tells you how many electrons there are to seat. Filling them roughly in energy order — 1s, 2s, 2p, 3s, 3p, 4s, 3d, … — reproduces every configuration. Carbon has $Z=6$, so six electrons go in as 1s² 2s² 2p²; sodium ($Z=11$) becomes 1s² 2s² 2p⁶ 3s¹. Two extra rules finish the job: Pauli allows at most two electrons per orbital and only with opposite spins, and Hund's rule says electrons spread out singly across equal-energy orbitals (parallel spins) before doubling up.
Why that strange order — why does 4s fill before 3d? An electron does not feel the full nuclear pull $Z$, because the inner electrons screen it. It feels a smaller effective nuclear charge $Z_\text{eff}=Z-\sigma$, where $\sigma$ is the shielding. Orbitals that "penetrate" closer to the nucleus (lower $l$) dodge more of the shielding, drop lower in energy, and fill first — so 4s sneaks below 3d for potassium and calcium. The same $Z_\text{eff}$ sets how tightly the outer electron is held: ionization energy scales roughly as $IE \propto Z_\text{eff}^2/n^2$, which is exactly what the sim reports as you change $Z$.
| Symbol | Meaning | Unit |
|---|---|---|
| \(Z\) | Actual nuclear charge (atomic number) | dimensionless |
| \(\sigma\) | Shielding constant (from Slater's rules) | dimensionless |
| \(Z_{\text{eff}}\) | Effective nuclear charge felt by electron | dimensionless |
| \(n^*\) | Effective principal quantum number | dimensionless |
| \(IE_n\) | nth ionization energy | eV or kJ/mol |
Expected: [Ar]4s²3d⁴ — but actual: [Ar]4s¹3d⁵
Half-filled 3d⁵ (all 5 d orbitals singly occupied) is extra stable due to exchange energy. Promoting one 4s electron to 3d gives lower total energy despite "violating" simple Aufbau.
Reference: Housecroft & Sharpe — Inorganic Chemistry, 5th Ed., §1.9 "Many-electron atoms" | Atkins & de Paula — Physical Chemistry, 11th Ed., §9B
Reference: LibreTexts Chemistry — Aufbau Principle https://chem.libretexts.org/Bookshelves/General_Chemistry/Map:_General_Chemistry_(Petrucci_et_al.)/08:_Electrons_in_Atoms | Khan Academy — Electron configurations https://www.khanacademy.org/science/chemistry/electronic-structure-of-atoms
Section 4 reference: Taber, K.S. — Chemical Misconceptions (RSC, 2002) | Tsaparlis, G. — J. Chem. Educ. 2001, 78, 1432 | Pilar, F.L. — "4s is always above 3d!" J. Chem. Educ. 1978, 55, 2