Electron Configurations

What is an Electron Configuration?

The quantum numbers define which orbitals exist; atomic orbitals describe their shapes and sizes. The question here: how do electrons actually fill these orbitals?

The electron configuration of an atom describes how its electrons are distributed among atomic orbitals. Every atom has a unique arrangement of electrons that determines:

  • Its chemical properties (how it reacts with other elements)
  • Its position in the periodic table (which group and period it belongs to)
  • Its bonding behavior (how many bonds it forms and what type)
  • Its magnetic properties (whether it’s attracted to or repelled by magnets)

spdf Notation

Electron configurations are written using spdf notation, where each occupied subshell is listed with a superscript indicating its electron count:

Sodium (Na, Z = 11)1s22 electrons in 1s2s22 electrons in 2s2p66 electrons in 2p3s11 electron in 3s

This example shows sodium (Z = 11) with 11 total electrons distributed across four subshells. Reading left to right, the configuration tells us: two electrons fill the 1s subshell, two more fill 2s, six fill 2p, and the final electron occupies 3s.

The Periodic Table and Orbital Blocks

The periodic table is organized into blocks based on which type of orbital receives the last electron. Know the blocks and you can predict most electron configurations.

H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe Cs Ba Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 57–71 89–103 Hydrogen Helium Lithium Beryllium Boron Carbon Nitrogen Oxygen Fluorine Neon Sodium Magnesium Aluminum Silicon Phosphorus Sulfur Chlorine Argon Potassium Calcium Scandium Titanium Vanadium Chromium Manganese Iron Cobalt Nickel Copper Zinc Gallium Germanium Arsenic Selenium Bromine Krypton Rubidium Strontium Yttrium Zirconium Niobium Molybdenum Technetium Ruthenium Rhodium Palladium Silver Cadmium Indium Tin Antimony Tellurium Iodine Xenon Cesium Barium Hafnium Tantalum Tungsten Rhenium Osmium Iridium Platinum Gold Mercury Thallium Lead Bismuth Polonium Astatine Radon Francium Radium Rutherfordium Dubnium Seaborgium Bohrium Hassium Meitnerium Darmstadtium Roentgenium Copernicium Nihonium Flerovium Moscovium Livermorium Tennessine Oganesson lanthanoids actinoids 1.0080 4.0026 6.94 9.0122 10.81 12.011 14.007 15.999 18.998 20.180 22.990 24.305 26.982 28.085 30.974 32.06 35.45 39.95 39.098 40.078 44.956 47.867 50.942 51.996 54.938 55.845 58.933 58.693 63.546 65.38 69.723 72.630 74.922 78.971 79.904 83.798 85.468 87.62 88.906 91.224 92.906 95.95 [97] 101.07 102.91 106.42 107.87 112.41 114.82 118.71 121.76 127.60 126.90 131.29 132.91 137.33 178.49 180.95 183.84 186.21 190.23 192.22 195.08 196.97 200.59 204.38 207.2 208.98 [209] [210] [222] [223] [226] [267] [268] [269] [270] [269] [277] [281] [282] [285] [286] [290] [290] [293] [294] [294] 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 6 7 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Ac Th Pa U Np Pu Am Cm Bk Cf Es Fm Md No Lr 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 Lanthanum Cerium Praseodymium Neodymium Promethium Samarium Europium Gadolinium Terbium Dysprosium Holmium Erbium Thulium Ytterbium Lutetium Actinium Thorium Protactinium Uranium Neptunium Plutonium Americium Curium Berkelium Californium Einsteinium Fermium Mendelevium Nobelium Lawrencium 138.91 140.12 140.91 144.24 [145] 150.36 151.96 157.25 158.93 162.50 164.93 167.26 168.93 173.05 174.97 [227] 232.04 231.04 238.03 [237] [244] [243] [247] [247] [251] [252] [257] [258] [259] [262] Block s p d f

The placement of lutetium (Lu) and lawrencium (Lr) is an ongoing debate in chemistry. Traditionally, they are shown at the end of the f-block (lanthanides and actinides), but some chemists argue they should be in the d-block as part of group 3.

Arguments for placing Lu and Lr in the d-block (group 3):

  • Electron configuration: Lu is [Xe]4f145d16s2 — the 4f subshell is complete, and the differentiating electron occupies a 5d orbital. By the logic that “the last electron determines the block,” Lu belongs in the d-block.
  • Chemical properties: Lu and Lr behave more like scandium and yttrium (the other group 3 elements) than like the lanthanides. Their ionic radii, oxidation states, and coordination chemistry align with Sc and Y.
  • Continuous atomic numbers: Placing Sc-Y-Lu-Lr in group 3 gives a smoothly increasing sequence of atomic numbers across the periodic table, which La-Ac does not.

Arguments for keeping the traditional f-block placement:

  • Historical continuity: Lu and Lr have been taught as the final members of the lanthanide and actinide series for decades.
  • Complete f-shell as “core”: Some argue that the filled 4f14 shell in Lu is part of the core, not the valence shell, so Lu still “belongs” with the f-block elements it follows.
  • Computational studies: Recent (2024) computational work on cluster compounds found that La, Ac, Lu, and Lr all show f-block-like behavior in certain chemical environments, supporting a 15-element-wide f-block.

Current IUPAC position: IUPAC has not issued a final ruling. Their official periodic table shows two gaps below yttrium, effectively avoiding the choice. A 2021 provisional recommendation favored Lu/Lr in group 3, but this remains under discussion.

The Rules for Building Electron Configurations

Four principles govern how electrons fill orbitals. These rules allow you to predict the electron configuration of any element.

1. The Aufbau Principle

The Aufbau principle (German: Aufbauprinzip, “building-up principle”) states that electrons fill orbitals starting from the lowest energy and proceeding to higher energies. The term reflects how we conceptually “build up” an atom’s electron configuration one electron at a time.

2. The Madelung Rule (n + l Rule)

The Madelung rule provides the filling order:

NoteThe Madelung Rule
  1. Orbitals fill in order of increasing n + l value
  2. When two orbitals have the same n + l value, the one with lower n fills first

This produces the filling sequence: 1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p → 5s → 4d → …

3. The Pauli Exclusion Principle

The Pauli exclusion principle states that no two electrons in an atom can have the same set of four quantum numbers. Since each orbital is defined by three quantum numbers (n, l, ml), and electrons can only have ms = +½ or −½, each orbital can hold at most two electrons with opposite spins.

4. Hund’s Rule

Hund’s rule states that when filling degenerate orbitals (orbitals with the same energy), electrons occupy them singly with parallel spins before pairing up. This minimizes electron-electron repulsion and maximizes exchange energy (discussed below).

For example, carbon (1s22s22p2) has its two 2p electrons in separate orbitals with parallel spins, not paired in the same orbital.

Core and Valence Electrons

Electrons in an atom are classified as either core or valence electrons:

The noble gas notation abbreviates core electrons using the symbol of the preceding noble gas in brackets:

\[\text{Na: } 1s^2 2s^2 2p^6 3s^1 \longrightarrow [\text{Ne}]~3s^1\]

Here, [Ne] represents the 10 core electrons (1s22s22p6), and 3s1 is the single valence electron.

Counting Valence Electrons by Block

Hydrogen vs. Multi-Electron Energy Levels

Orbital energies behave very differently depending on whether an atom has one electron or many.

In hydrogen, the lone electron experiences only the attraction of the nucleus. With no other electrons present, the orbital energy depends solely on n. The 2s and 2p orbitals have identical energy; they are degenerate. The same holds for 3s, 3p, and 3d.

Add more electrons, and this degeneracy breaks. In multi-electron atoms, inner electrons partially shield outer electrons from the nuclear charge. But s orbitals have significant electron density near the nucleus. They penetrate through the inner electron cloud and “feel” more of the nuclear charge. A higher effective nuclear charge (Zeff) means stronger electrostatic attraction, which pulls the orbital to lower (more negative) energy. This makes s orbitals more stable than p orbitals of the same shell, and p more stable than d.

The result is energy splitting within each shell (s < p < d < f). This splitting determines the filling order we use to build electron configurations.

Interactive Electron Configuration Explorer

The widgets below let you explore electron configurations for all 118 elements. The first shows the orbital diagram with electrons filling according to the Aufbau principle. The second displays how orbital energies change across the periodic table.

Data source: NIST Atomic Reference Data for Electronic Structure Calculations (DFT LDA calculations)

Understanding the Orbital Energy Chart

The Madelung rule is an approximation that works for most elements. Orbital energies are not fixed; they change as atomic number increases. The chart above shows actual orbital energies calculated from quantum mechanical computations.

Why Orbital Energies Depend on l

In the hydrogen atom (one electron), orbital energy depends only on the principal quantum number n. The 2s and 2p orbitals are degenerate (identical in energy), as are 3s, 3p, and 3d. This is a unique property of the pure Coulomb potential with a single electron.

In multi-electron atoms, this degeneracy breaks. The 2s orbital becomes lower in energy than 2p, and 3s < 3p < 3d. The cause is electron-electron repulsion and its interplay with orbital shape.

Consider lithium (Z = 3) with configuration 1s22s1. The two 1s electrons form a cloud of negative charge that partially shields the nucleus from the outer electron. But the effectiveness of this shielding depends on where the outer electron spends its time:

  • The 2s orbital has a radial node and significant electron density very close to the nucleus. It “penetrates” through the 1s shielding and experiences a higher effective nuclear charge.
  • The 2p orbital has zero electron density at the nucleus (a node there). It stays farther out on average and is more completely shielded.

The result: 2s is stabilized relative to 2p. This penetration effect grows stronger for orbitals with lower l values, establishing the energy ordering s < p < d < f within any shell.

This l-dependent splitting explains why we need the Madelung rule. If orbitals depended only on n, we would simply fill 1, 2, 3, 4… in order. Instead, the penetration-driven stabilization of low-l orbitals can push them below higher-n orbitals with larger l values. The 4s orbital, despite having n = 4, penetrates so effectively that it drops below 3d for neutral atoms at low Z.

The 3d/4s Crossover

The orbital energy plot shows that orbital energies are not constant across the periodic table. Look at the 3d/4s crossover region (Z = 18–36):

  1. At potassium (Z = 19): The 4s orbital is lower in energy than 3d, so the 19th electron enters 4s
  2. By scandium (Z = 21): The 3d orbital has dropped below 4s in energy
  3. For all transition metals: The 3d electrons are actually lower in energy than 4s

This explains why transition metal cations lose their s electrons first. In the ionized atom, the d orbitals are unambiguously lower in energy.

Why Do These Crossovers Occur?

Two competing effects determine orbital energies:

Shielding (Screening): Inner electrons partially block the nuclear charge from outer electrons. An electron in a 4s orbital, being more diffuse, “sees” a reduced effective nuclear charge Zeff.

Penetration: s orbitals have significant electron density near the nucleus, allowing them to “penetrate” through inner electron shells and experience more nuclear charge. This is why 4s fills before 3d in neutral atoms at low Z. The 4s orbital penetrates better.

As Z increases, the nuclear charge grows faster than shielding can compensate. The 3d orbital, being more compact and experiencing less shielding from the 4s electrons, benefits more from this increased nuclear attraction, causing it to drop in energy relative to 4s.

TipAdvanced Topic

The following section explains why some electron configurations deviate from Madelung predictions. This material is more advanced than typical General Chemistry coverage.

For your first pass, focus on:

  • The Madelung rule correctly predicts ~80% of electron configurations
  • Chromium and copper are common exceptions (memorize: Cr is [Ar]4s13d5, Cu is [Ar]4s13d10)
  • Exchange energy explains why: more unpaired parallel-spin electrons = more stable

Return to this section after mastering the Aufbau principle, Madelung rule, Pauli exclusion, and Hund’s rule.

The Physics Behind Exceptional Configurations

About 20 elements have ground-state electron configurations that deviate from Madelung predictions. The short explanation: total energy, not just orbital energy, determines the actual configuration.

Three factors compete:

  • Orbital energies favor filling lower orbitals first (the Madelung rule)
  • Exchange energy stabilizes configurations with more unpaired, parallel-spin electrons
  • Pairing energy penalizes putting two electrons in the same orbital

When orbital energies are close (as they are for 3d/4s near the transition metals), exchange effects can tip the balance. Chromium ([Ar]4s13d5) and copper ([Ar]4s13d10) are the classic examples where both gain stability by moving one electron from 4s to 3d.

The Three Energy Terms

The total electronic energy of an atom can be approximated as:

\[E_{\text{total}} = \sum_i \varepsilon_i + E_{\text{exchange}} + P\]

where:

  • \(\sum_i \varepsilon_i\) is the sum of one-electron orbital energies
  • \(E_{\text{exchange}}\) is the stabilization from exchange interactions (negative, lowering energy)
  • \(P\) is the destabilization from electron pairing (positive, raising energy)

Exchange Energy: Quantum Mechanical Stabilization

Exchange energy (Eexchange) arises from the Pauli exclusion principle. When two electrons have parallel spins (both “up” or both “down”) and occupy different orbitals, their wavefunctions must be antisymmetric under exchange. This antisymmetry causes electrons to avoid each other more effectively, reducing their Coulombic repulsion.

The exchange stabilization between a set of parallel-spin electrons is:

\[E_{\text{exchange}} = -K \times \binom{n}{2} = -K \times \frac{n(n-1)}{2}\]

where K is the exchange integral (a positive constant depending on orbital overlap) and n is the number of electrons with parallel spins.

Exchange pairs grow quadratically. Going from 4 to 5 parallel-spin electrons adds 4 new pairs; going from 5 to 6 adds 5 more. This is why maximizing unpaired electrons can overcome orbital energy costs.

Counting Exchange Pairs in Real Configurations

To apply this to actual electron configurations, we need to determine how many parallel-spin electrons exist. Two principles govern spin arrangements:

  1. Hund’s rule: Within a subshell, electrons occupy orbitals singly with parallel spins before pairing. So d4 has 4↑ electrons (one in each of four d orbitals), while d6 has 5↑ and 1↓ (the sixth electron must pair).

  2. Forced pairing in s orbitals: The s subshell has only one orbital, so s2 forces immediate pairing: one ↑ and one ↓. Only the spin-up electron can participate in exchange with other ↑ electrons.

Exchange occurs both within and between subshells. For a configuration like 4s23d4:

  • d-d exchange: The 4 parallel-spin d electrons form C(4,2) = 6 pairs among themselves
  • s-d exchange: The single ↑ electron in the 4s orbital can exchange with each of the 4↑ d electrons, adding 4 more pairs
  • Total: 6 + 4 = 10 exchange pairs

Compare this to 4s13d5:

  • d-d exchange: 5 parallel-spin d electrons form C(5,2) = 10 pairs
  • s-d exchange: The single ↑ s electron exchanges with 5↑ d electrons = 5 pairs
  • Total: 10 + 5 = 15 exchange pairs

The s1d5 configuration gains 5 additional exchange pairs compared to s2d4. Each pair contributes −K to the total energy, so these extra pairs significantly stabilize the atom.

Pairing Energy: The Cost of Double Occupancy

Pairing energy (P) is the energy penalty when two electrons occupy the same orbital. It has two components:

  1. Coulombic repulsion: Two electrons in the same orbital have substantial spatial overlap, increasing their average repulsion
  2. Loss of exchange: Paired electrons have opposite spins, so they contribute no exchange stabilization with each other

For transition metals, pairing energies are typically 15,000–25,000 cm−1 (about 180–300 kJ mol−1), while exchange integrals are roughly 5,000–8,000 cm−1 per pair. The balance between these determines the actual configuration.

To put these numbers in perspective: a typical C–C single bond has a bond energy of about 350 kJ mol−1. Pairing two electrons costs roughly half that much energy. This is why electron pairing isn’t trivial; it’s a significant energetic consideration that can override orbital energy predictions when the orbitals are close in energy.

Detailed Analysis: Chromium (Z = 24)

Chromium exhibits the classic d5s1 configuration instead of the Madelung-predicted d4s2.

Why chromium adopts s1d5:

At Z = 24, the 4s and 3d orbitals are very close in energy (see the orbital energy chart). The energy cost of promoting one electron from 4s to 3d is small. Meanwhile:

  • The configuration gains 5 additional exchange pairs (from 10 to 15)
  • The configuration avoids the pairing energy P in the 4s orbital
  • The net energy change: ΔE ≈ Δε − 5KP < 0

The exchange gain plus avoided pairing together outweigh the small orbital energy penalty.

Detailed Analysis: Copper (Z = 29)

Copper has [Ar]4s13d10 rather than [Ar]4s23d9. This case is more subtle.

Why copper adopts s1d10:

The total exchange is identical for both configurations (25 pairs each). The deciding factors are:

  1. Pairing energy: The s2d9 configuration pays P for pairing in 4s, while s1d10 does not
  2. Filled subshell stability: A completely filled d10 subshell has perfect spherical symmetry, which minimizes electron-electron repulsion in ways not captured by simple exchange counting
  3. Orbital energy gap: At Z = 29, the 3d orbitals have dropped significantly below 4s (see the chart), so the orbital energy cost is minimal

Avoiding the 4s pairing penalty combined with the stability of the filled d shell makes s1d10 lower in total energy.

The Niobium Counterexample (Z = 41)

A common misconception is that “half-filled subshells are always preferred.” Niobium disproves this.

Niobium has [Kr]5s14d4, not the half-filled [Kr]4d5.

Why doesn’t niobium adopt d5?

At Z = 41, the energy gap between 5s and 4d is larger than at chromium (Z = 24). Look at the orbital energy chart: the 5s/4d crossing happens at a different Z than the 4s/3d crossing, and the curves have different slopes.

To achieve d5, niobium would need to completely empty the 5s orbital. But:

  • The orbital energy cost (promoting from lower 5s to higher 4d) is substantial
  • The exchange energy gain (from 6 to 10 d-d pairs) is the same as for chromium
  • At this Z, the orbital penalty outweighs the exchange benefit

The “half-filled stability” heuristic works only when orbital energies are nearly degenerate. This varies across the periodic table.

Classification of All Exceptions

ImportantThe Real Rule

Electron configurations are determined by minimizing total energy, which depends on:

  1. Orbital energies, which change with Z (see the chart)
  2. Exchange energy, which favors maximizing parallel-spin electrons
  3. Pairing energy, the penalty for doubly-occupied orbitals
  4. Filled subshell effects, additional stability from spherical symmetry

There is no single simple rule that correctly predicts all configurations. The Madelung rule works for about 80% of elements; the exceptions arise when exchange and pairing effects overcome the orbital energy ordering at that specific Z.

Magnetic Properties: Paramagnetism and Diamagnetism

The presence or absence of unpaired electrons determines an atom’s magnetic behavior:

The interactive widget above indicates whether each element is paramagnetic or diamagnetic based on its electron configuration.

Why This Matters: Everyday Magnetism

The connection between electron configuration and magnetism explains familiar phenomena:

Iron (Fe) with [Ar]4s23d6 has four unpaired 3d electrons, making it strongly paramagnetic. This is why iron is attracted to magnets and why iron-based materials are used in permanent magnets, hard drives, and electric motors.

Zinc (Zn) with [Ar]4s23d10 has a completely filled 3d subshell. All electrons are paired, making zinc diamagnetic and non-magnetic. Zinc isn’t attracted to magnets at all.

Oxygen (O2) is paramagnetic because molecular oxygen has two unpaired electrons. Liquid oxygen can be held between the poles of a strong magnet, a striking demonstration that puzzled chemists until molecular orbital theory explained it.

The difference between a magnetic material and a non-magnetic one often comes down to whether a few d-orbital electrons are paired or unpaired.

Complete Electron Configuration Table

Electron Configurations of Ions

When writing electron configurations of ions, electrons are added (to form anions) or removed (to form cations) from the shell of highest n, and within that shell, highest l.

Explore ion electron configurations interactively:

Some examples are presented below.

Fluorine(1−), Z = 9

The fluoride anion, F, has 10 electrons (2 core and 8 valence). The addition of an electron to a fluorine atom changes the electron configuration as shown below:

\[1s^22s^22p^5 ~\xrightarrow{+e^-}~ 1s^22s^22p^6\]

or

\[[\mathrm{He}]~2s^22p^5 ~\xrightarrow{+e^-}~ [\mathrm{He}]~2s^22p^6\]

The fluoride anion is isoelectronic with the neon atom (i.e. two particles with an equal number of electrons but a different number of protons).

This ion is diamagnetic.

Lithium(1+), Z = 3

The lithium cation, Li+, has 2 electrons (2 core). The removal of an electron from a lithium atom changes the electron configuration as shown below:

\[[\mathrm{He}]~2s^1 ~\xrightarrow{-e^-}~ 1s^2\]

The quantum numbers for each electron are

  1. (1s “spin-up” core electron) n = 1, l = 0, ml = 0, and ms = +1/2
  2. (1s “spin-down” core electron) n = 1, l = 0, ml = 0, and ms = −1/2

This ion is diamagnetic.

Iron(2+), Z = 26

The iron dication, Fe2+, has 24 electrons (18 core and 6 valence). The removal of two electrons from an iron atom changes the electron configuration as shown below:

\[[\mathrm{Ar}]~4s^23d^6 ~\xrightarrow{-2e^-}~ [\mathrm{Ar}]~3d^6\]

The 4s electrons are removed first, not the d electrons. In the cation, the 3d orbitals are unambiguously lower in energy than 4s (see the orbital energy chart discussion above).

This ion is paramagnetic (4 unpaired electrons).

Iron(3+), Z = 26

The iron trication, Fe3+, has 23 electrons (18 core and 5 valence). The removal of three electrons from an iron atom changes the electron configuration as shown below:

\[[\mathrm{Ar}]~4s^23d^6 ~\xrightarrow{-3e^-}~ [\mathrm{Ar}]~3d^5\]

The 4s electrons are removed first, then one 3d electron. The resulting d5 configuration is half-filled with maximum exchange stabilization.

This ion is paramagnetic (5 unpaired electrons).