Electronic Partition Function

Chlorine atoms are yellow-green as a gas, but that is not why their thermodynamics gets interesting. Deep in the electronic structure of atomic chlorine sits a spin-orbit excited state only 881 cm⁻¹ above the ground term. At room temperature this state is partly populated, and it measurably changes the atom's entropy and heat capacity. The electronic partition function, qelecq_{elec}, is the bookkeeping tool that captures this effect. Most textbook problems quietly set qelec=1q_{elec} = 1, and for closed-shell molecules like H₂O or CO₂ at 298 K that is an excellent approximation. But for open-shell species, radicals, and many transition-metal atoms, low-lying excited electronic states sit close enough in energy to matter. Getting qelecq_{elec} right is often the difference between a calculated entropy that matches experiment and one that is off by several J/mol·K. This article builds qelecq_{elec} from first principles: ground-state degeneracy, Boltzmann population of excited terms, and the practical truncation of an infinite sum. You will see the general formula. Then you will see when it collapses to a single number. Finally you will work through NO and atomic chlorine as concrete, checkable examples.

Key takeaways
  • qelecq_{elec} sums Boltzmann factors over electronic energy levels, each weighted by its degeneracy gig_i.
  • Electronic energy gaps are typically thousands of cm⁻¹, so qelec≈g0q_{elec} \approx g_0 (ground-state degeneracy) for most closed-shell molecules at 298 K.
  • Open-shell atoms and radicals (O, Cl, NO) often have low-lying spin-orbit states within a few hundred to a thousand cm⁻¹, giving qelec>g0q_{elec} > g_0.
  • The reference energy is always set at the ground state, so the ground term contributes exactly g0g_0 with no exponential suppression.
  • qelecq_{elec} feeds directly into electronic contributions to entropy, heat capacity, and free energy, and ultimately into equilibrium constants computed from partition functions.
  • Key idea: qelecq_{elec} is a finite, temperature-dependent sum over electronic states measured from the ground state, and it is essentially never an infinite or divergent series in practice because upper electronic states lie so high that they never contribute.
The core insight

The electronic partition function is the degeneracy-weighted Boltzmann sum over electronic energy levels measured from the ground state; because electronic spacings are usually huge compared to kBTk_BT it reduces to the ground-state degeneracy, except in the important minority of cases (open-shell atoms, some radicals) where a low-lying excited term contributes a calculable fractional population.

The physical picture

Recall that the total molecular partition function factorizes into translational, rotational, vibrational, and electronic pieces,

q=qtrans qrot qvib qelec,q = q_{trans}\, q_{rot}\, q_{vib}\, q_{elec},

because each degree of freedom has its own, independent set of energy levels (see Factorization of the Molecular Partition Function). The electronic partition function handles the population of electronic states — different arrangements of electrons around the nuclei, each with its own energy and degeneracy. Electronic energy differences are large. A typical electronic excitation energy is 20,000–50,000 cm⁻¹, corresponding to visible or ultraviolet light. Compare this to kBTk_BT at 298 K, which is about 207 cm⁻¹. The ratio Δε/kBT\Delta\varepsilon / k_BT is on the order of 100–200, so exp⁡(−Δε/kBT)\exp(-\Delta\varepsilon/k_BT) is astronomically small — the excited electronic state is essentially unpopulated. This is why chemists almost always write qelec≈g0q_{elec} \approx g_0, the degeneracy of the ground electronic state, and move on. The exception is open-shell species with low-lying states arising from spin-orbit coupling or near-degenerate orbital occupancies. Atomic oxygen's ³P ground term splits into J=2,1,0J = 2, 1, 0 sublevels spanning about 226 cm⁻¹. Atomic chlorine's ground term ²P splits into J=3/2J = 3/2 (ground) and J=1/2J = 1/2 (excited, 881 cm⁻¹ above). Nitric oxide, NO, has a low-lying spin-orbit doublet split by 121 cm⁻¹. In all these cases kBTk_BT is comparable to or larger than the gap, so the excited state is thermally accessible and must be included explicitly.

Figure
Energy-level ladder and Boltzmann population for a two-level electronic system
ground, g0 = 4, epsilon0 = 0 excited, g1 = 2, epsilon1 = 881 cm-1 Delta = 881 cm-1 Cl atom: 2P3/2 (ground) and 2P1/2 (excited) At T = 298 K: kT = 207 cm-1 exp(-881/207) = 0.0119 q_elec = 4 + 2(0.0119) q_elec = 4.024 fraction excited approx 0.6%
Figure
q_elec versus temperature for the chlorine atom two-level model
Temperature (K) q_elec 0 1000 4 6 298 K, q = 4.02 low-T limit: q to 4

The core relations

qelec=∑igi e−εi/kBTq_{elec} = \sum_i g_i \, e^{-\varepsilon_i / k_B T}

where: gig_i is the degeneracy of electronic level ii, εi\varepsilon_i its energy measured from the ground state (ε0≡0\varepsilon_0 \equiv 0), kBk_B Boltzmann's constant, TT absolute temperature.

qelec=g0+g1e−ε1/kBT+g2e−ε2/kBT+⋯q_{elec} = g_0 + g_1 e^{-\varepsilon_1/k_BT} + g_2 e^{-\varepsilon_2/k_BT} + \cdots

where: the ground term always contributes exactly g0g_0 because ε0=0\varepsilon_0 = 0 by convention.

qelec→  ε1≫kBT  g0q_{elec} \xrightarrow{\;\varepsilon_1 \gg k_BT\;} g_0

where: this is the ordinary closed-shell limit used almost universally for stable molecules at room temperature.

Pi=gi e−εi/kBTqelecP_i = \frac{g_i\, e^{-\varepsilon_i/k_BT}}{q_{elec}}

where: PiP_i is the fraction of molecules or atoms found in electronic level ii at temperature TT.

Uelec=NkBT2(∂ln⁡qelec∂T)V,Selec=NkBln⁡qelec+UelecTU_{elec} = N k_BT^2 \left(\frac{\partial \ln q_{elec}}{\partial T}\right)_V, \qquad S_{elec} = Nk_B \ln q_{elec} + \frac{U_{elec}}{T}

where: these give the electronic contributions to internal energy and entropy once qelec(T)q_{elec}(T) is known.

Derivation AFrom energy levels to the electronic partition function

Goal. Show how the general partition function definition reduces to a finite sum over electronic states, and why truncation after one or two excited terms is normally exact for chemical purposes.

Step 1 — start from the definition. For any set of energy levels accessible to a system, the partition function is

q=∑all statese−εstate/kBT.q = \sum_{\text{all states}} e^{-\varepsilon_{state}/k_BT}.

Electronic states often come in degenerate groups — for example, the MJ=−3/2,−1/2,+1/2,+3/2M_J = -3/2, -1/2, +1/2, +3/2 sublevels of Cl's ²P₃/₂ term are degenerate at zero field. Grouping states of equal energy into levels of degeneracy gig_i turns the sum over states into a sum over levels,

qelec=∑igi e−εi/kBT.q_{elec} = \sum_i g_i\, e^{-\varepsilon_i/k_BT}.

Step 2 — fix the energy zero at the ground state. Partition functions are only meaningful up to a choice of energy origin, and the conventional choice for qelecq_{elec} sets ε0=0\varepsilon_0 = 0 for the ground electronic level. This is different from, say, vibrational partition functions referenced to the bottom of the well versus the zero-point level — the choice must always be stated, and here it means the ground level's Boltzmann factor is exactly 1. Consequently

qelec=g0+∑i≥1gi e−εi/kBT.q_{elec} = g_0 + \sum_{i \geq 1} g_i\, e^{-\varepsilon_i/k_BT}.

Step 3 — estimate the size of the excited-state terms. For a typical stable closed-shell molecule, the first electronic excitation energy ε1\varepsilon_1 is of order 40,000 cm⁻¹ (a UV transition near 250 nm). At 298 K, kBT≈207k_BT \approx 207 cm⁻¹, so

ε1kBT≈40000207≈193,e−193≈10−84.\frac{\varepsilon_1}{k_BT} \approx \frac{40000}{207} \approx 193, \qquad e^{-193} \approx 10^{-84}.

This term is utterly negligible — no realistic measurement could detect its effect on qelecq_{elec}. Hence for the vast majority of stable molecules,

qelec≈g0.q_{elec} \approx g_0.

Step 4 — identify when the approximation fails. The approximation breaks down when ε1\varepsilon_1 is only a few hundred to a couple of thousand cm⁻¹ — the regime of spin-orbit splittings in open-shell atoms (O, Cl, F, Br, I) and some diatomic radicals (NO, OH in certain states). There ε1/kBT\varepsilon_1/k_BT is of order 1–5, and e−ε1/kBTe^{-\varepsilon_1/k_BT} is not negligible. The sum must then be kept to at least two terms:

qelec≈g0+g1 e−ε1/kBT.q_{elec} \approx g_0 + g_1\, e^{-\varepsilon_1/k_BT}.

Step 5 — check convergence and truncation validity. Because degeneracies gig_i do not grow without bound (they are set by angular momentum coupling and are typically 1–6), and because energies εi\varepsilon_i generally increase monotonically and steeply for successive electronic terms, the series converges rapidly. In practice, once the second excited state lies more than about 5,000 cm⁻¹ above the ground state, its Boltzmann factor is below 10−1010^{-10} at room temperature and can be dropped. This justifies truncating the infinite sum to one or two terms — never an approximation of convenience alone, but one that can be checked numerically term by term.

qelec=g0+g1e−ε1/kBT+⋯  ≈  g0 (closed-shell)org0+g1e−ε1/kBT (low-lying excited term)\boxed{q_{elec} = g_0 + g_1 e^{-\varepsilon_1/k_BT} + \cdots \;\approx\; g_0 \text{ (closed-shell)} \quad\text{or}\quad g_0 + g_1 e^{-\varepsilon_1/k_BT} \text{ (low-lying excited term)}}

Worked examples

Example 1 — Ground-state degeneracy only: atomic sodium at 298 K. Atomic sodium in its ground state has electron configuration [Ne]3s¹, giving a ²S₁/₂ term. The degeneracy of a term with total angular momentum JJ is g=2J+1g = 2J+1, so here g0=2(1/2)+1=2g_0 = 2(1/2)+1 = 2. The first excited state (the famous sodium D-line transition, 3s → 3p) lies at about 16,978 cm⁻¹ (the D₂ line, 589.0 nm) above the ground state. Compute the Boltzmann factor at 298 K. First, kBTk_BT in cm⁻¹:

kBT=(0.695 cm−1K−1)(298 K)=207.1 cm−1.k_BT = (0.695\ \text{cm}^{-1}\text{K}^{-1})(298\ \text{K}) = 207.1\ \text{cm}^{-1}.

Then

ε1kBT=16978207.1=82.0,e−82.0≈2×10−36.\frac{\varepsilon_1}{k_BT} = \frac{16978}{207.1} = 82.0, \qquad e^{-82.0} \approx 2 \times 10^{-36}.

The excited-state contribution is

g1e−ε1/kBT=2×(2×10−36)≈4×10−36.g_1 e^{-\varepsilon_1/k_BT} = 2 \times (2\times10^{-36}) \approx 4\times10^{-36}.

So

qelec=2+4×10−36=2.000…q_{elec} = 2 + 4\times10^{-36} = 2.000\ldots

to any digit precision that matters chemically. Sanity check: the answer is simply g0=2g_0 = 2, exactly as the qualitative argument predicts for a species whose first excitation is a genuine electronic (not spin-orbit) transition tens of thousands of cm⁻¹ up. This is the "boring but correct" default outcome for the overwhelming majority of molecules and atoms.

Example 2 — Two-term sum: ground-state atomic chlorine at 298 K and 1000 K. Atomic chlorine's ground configuration is [Ne]3s²3p⁵, giving a ²P term split by spin-orbit coupling into J=3/2J = 3/2 (lower, ground) and J=1/2J = 1/2 (upper). Degeneracies:

g0=2(3/2)+1=4,g1=2(1/2)+1=2.g_0 = 2(3/2)+1 = 4, \qquad g_1 = 2(1/2)+1 = 2.

The spin-orbit splitting is ε1=881 cm−1\varepsilon_1 = 881\ \text{cm}^{-1} above the ground level. There are no other electronic states low enough to matter (the next excited terms of Cl lie tens of thousands of cm⁻¹ higher), so a two-term sum is appropriate. At T=298T = 298 K: kBT=207.1 cm−1k_BT = 207.1\ \text{cm}^{-1} as before.

ε1kBT=881207.1=4.254,e−4.254=0.01418.\frac{\varepsilon_1}{k_BT} = \frac{881}{207.1} = 4.254, \qquad e^{-4.254} = 0.01418.
qelec=4+2(0.01418)=4+0.0284=4.028.q_{elec} = 4 + 2(0.01418) = 4 + 0.0284 = 4.028.

The fraction of Cl atoms in the excited J=1/2J=1/2 state is

P1=2(0.01418)4.028=0.02844.028=0.00704,P_1 = \frac{2(0.01418)}{4.028} = \frac{0.0284}{4.028} = 0.00704,

about 0.7% — small, but not zero, and enough to shift the calculated entropy measurably from the naive Rln⁡4R\ln 4 value. At T=1000T = 1000 K (relevant to combustion or high-temperature chlorine chemistry):

kBT=(0.695)(1000)=695 cm−1,881695=1.268,e−1.268=0.2815.k_BT = (0.695)(1000) = 695\ \text{cm}^{-1}, \qquad \frac{881}{695} = 1.268, \qquad e^{-1.268} = 0.2815.
qelec=4+2(0.2815)=4+0.563=4.563.q_{elec} = 4 + 2(0.2815) = 4 + 0.563 = 4.563.

Now P1=0.563/4.563=0.123P_1 = 0.563/4.563 = 0.123, roughly 12% of atoms in the excited spin-orbit state — a genuinely significant population that must be included in any serious thermodynamic calculation of Cl atom entropy or heat capacity at combustion temperatures.

Sanity check: qelecq_{elec} increases monotonically with TT from a low-temperature limit of exactly g0=4g_0 = 4 (all population in the ground level as T→0T \to 0) toward a high-temperature limit of g0+g1=6g_0+g_1 = 6 (both levels equally accessible relative to their degeneracies as ε1/kBT→0\varepsilon_1/k_BT \to 0). Both computed values, 4.028 and 4.563, sit correctly between these bounds and increase with TT, as required by the physics.

Limiting cases & common traps

SituationBehavior of qelecq_{elec}Practical rule
Closed-shell molecule (H₂O, CO₂, CH₄)ε1∼104\varepsilon_1 \sim 10^4–10510^5 cm⁻¹qelec=g0=1q_{elec} = g_0 = 1 (singlet, nondegenerate)
Open-shell atom with spin-orbit splitting (O, Cl, F)ε1∼102\varepsilon_1 \sim 10^2–10310^3 cm⁻¹Keep two (or more) terms explicitly
T→0T \to 0All population in ground levelqelec→g0q_{elec} \to g_0
T→∞T \to \infty (or ε1≪kBT\varepsilon_1 \ll k_BT)Levels populated by degeneracy ratioqelec→∑igiq_{elec} \to \sum_i g_i
Radical with near-degenerate ground state (NO₂, some transition-metal atoms)Several low states possibleSum may need three or more terms

The chemist behind it

The modern treatment of qelecq_{elec} sits at the intersection of atomic spectroscopy and statistical mechanics, a synthesis most associated with Giuseppe Occhialini's contemporaries in early 20th-century spectroscopy — but the person most directly responsible for connecting electronic term structure to measurable thermodynamic quantities was Robert Mulliken, whose systematic work on electronic states of diatomic molecules gave spectroscopists the term symbols and degeneracies that feed directly into qelecq_{elec} sums used today.

Origins · 1 minRobert S. Mulliken and how this was discovered
RS
Robert S. Mulliken
1896-1986 · American physical chemist who developed molecular orbital theory and systematized electronic term symbols used to assign degeneracies and energies in q_elec

Ask the tutor: How does a nonzero q_elec change the calculated standard entropy of atomic chlorine gas compared to using q_elec = 1?

Why doesn't q_elec ever diverge, given that atoms and molecules have infinitely many electronic states?

In principle an atom has infinitely many bound electronic states approaching an ionization limit, plus a continuum above it. In practice, energies εi\varepsilon_i increase steeply enough, and kBTk_BT is small enough at chemically relevant temperatures, that terms beyond the first one or two excited states contribute a completely negligible Boltzmann factor. The infinite series converges rapidly in the regime chemists care about, so truncating after one or two terms introduces no meaningful error. Divergence becomes a real concern only near ionization or in exotic plasma conditions, well outside standard thermodynamic calculations.

How is q_elec different from q_vib or q_rot in terms of its energy reference?

Vibrational partition functions are commonly referenced either to the bottom of the potential well or to the zero-point vibrational level, and both conventions appear in textbooks with different resulting formulas. Rotational partition functions naturally start from J=0J=0 with zero energy. The electronic partition function follows the same logic as rotation: the ground electronic level is defined as the energy zero, so ε0=0\varepsilon_0 = 0 and its Boltzmann factor is always exactly 1, contributing g0g_0 to the sum with no ambiguity.

Does q_elec affect equilibrium constants?

Yes, directly. Equilibrium constants computed from partition functions involve ratios of qq values for reactants and products, each including its qelecq_{elec} factor. For reactions involving open-shell atoms or radicals — combustion intermediates like O, Cl, OH, or NO — the electronic partition function contributes a real, calculable correction to KK beyond the dominant translational and rotational terms. This becomes especially important at combustion or atmospheric temperatures where excited spin-orbit states are appreciably populated.

Can q_elec ever be less than the ground-state degeneracy g0?

No. Every term in the sum qelec=∑igiexp⁡(−εi/kBT)q_{elec} = \sum_i g_i \exp(-\varepsilon_i/k_BT) is positive, and the ground-state term always contributes exactly g0g_0 with ε0=0\varepsilon_0=0. Adding any further positive terms can only increase the total. So qelec≥g0q_{elec} \geq g_0 always, with equality only in the strict limit where excited states are completely inaccessible, either because T→0T \to 0 or because ε1\varepsilon_1 is enormous compared to kBTk_BT.

Before this

Where this leads