Boltzmann Factor Calculator - exp(-E/kT) and Population Ratios
Use this boltzmann factor calculator to evaluate exp(-E/(kB*T)) for a state at energy E and temperature T, plus the two-level population ratio N_i/N_0.
Boltzmann Factor Calculator
Results
What Is Boltzmann Factor Calculator?
A boltzmann factor calculator is a statistical-mechanics tool that evaluates exp(-E/(kB*T)) for a state at energy E and temperature T. It also reports the two-level population ratio N_i/N_0 = (g_i/g_0) * exp(-E/(kB*T)) for comparing populations at different energies.
- • Statistical mechanics homework and exam problems: Compute the excited-state population relative to the ground state, including degeneracy, given the energy gap and temperature.
- • Spectroscopy and atomic energy levels: Estimate how many hydrogen atoms are in the n=2 level at room temperature (essentially none) versus at the surface of a star (a meaningful fraction).
- • Semiconductor carrier density checks: Compare conduction-band and valence-band populations in intrinsic silicon or germanium using the band gap energy E and the device temperature T.
- • Thermal equilibrium between two states: Decide whether a thermal population difference will affect a measurement, an NMR experiment, or a chemical-reaction pre-equilibrium.
The factor sits between 0 and 1 by construction: it is exactly 1 when E is 0 and approaches 0 once E grows past a few kB*T. The result panel shows the bare factor and the kT-scaled ratio for comparison.
The same energy-level picture that justifies the n=2 / n=1 population calculation appears in atomic physics, and for hydrogen-like ions the Bohr Model Calculator returns orbital radii, photon wavelengths, and spectral series for the same NIST CODATA constants used here.
How Boltzmann Factor Calculator Works
The calculator converts the energy to joules using the exact SI electronvolt and Avogadro's number, then divides by kB*T to get x = E/(kB*T). The Boltzmann factor is exp(-x); the population ratio multiplies that by g_i/g_0.
- E: Energy of the excited state above the ground state, in the unit the user picks (J, eV, meV, or kJ/mol). The form converts to J internally so the math does not mix units.
- T: Absolute temperature in Kelvin. The form refuses values at or below 0 K because the Boltzmann factor comes from the absolute-temperature distribution.
- kB: Boltzmann constant. Fixed at the exact SI value 1.380649e-23 J/K since the 2019 redefinition; no measurement uncertainty.
- g_i / g_0: Ratio of the degeneracy of the upper state to the lower state. Defaults to 1, which gives the bare Boltzmann factor.
The dimensionless ratio E/(kB*T) is the only quantity that controls the factor; the unit of E does not matter once it is converted to joules. The form shows the ratio and kT in three units.
Room-temperature thermal energy
E = 0.02585 eV, T = 300 K, gRatio = 1
1. Convert E: 0.02585 * 1.602176634e-19 = 4.1419e-21 J. 2. kB*T = 1.380649e-23 * 300 = 4.1419e-21 J. 3. E/(kB*T) = 1. 4. f = exp(-1) = 0.3679. 5. kT in eV = 0.02585 eV.
f = 0.3679, kT = 0.02585 eV (also 4.1419e-21 J and 2.494 kJ/mol).
When the energy gap equals kT, the excited state is populated to about 36.8 percent of the ground state, the classic e^-1 result.
Hydrogen n=2 / n=1 population at 300 K
E = 10.2 eV, T = 300 K, gRatio = 4 (n=2 has four states: 2s, 2p_x, 2p_y, 2p_z; n=1 is non-degenerate)
1. kB*T in eV = 0.02585 eV. 2. E/(kB*T) = 10.2 / 0.02585 = 394.58. 3. f = exp(-394.58) = 1.78e-171. 4. N_2/N_1 = 4 * 1.78e-171 = 7.12e-171. 5. kT = 0.02585 eV.
f = 1.78e-171, N_2/N_1 = 7.12e-171 (underflow-clamped, essentially 0).
At room temperature the n=2 level of hydrogen is effectively empty even with the 4-fold degeneracy, which is why hydrogen gas is mostly atomic with almost no spontaneous Lyman-alpha emission.
According to NIST CODATA 2018, the Boltzmann constant is exactly 1.380649e-23 J/K since the 2019 SI redefinition, with no measurement uncertainty, which is why the form uses this value rather than a rounded alternative.
According to Wikipedia: Boltzmann factor, the factor is defined as exp(-E/(kB*T)) and gives the relative weight of a system state of energy E relative to the ground state at absolute temperature T.
The form converts the energy input to joules, but the activation energy Ea in the chemical-kinetics version of the same exponential is usually given in kJ/mol. Our Arrhenius Equation Calculator accepts Ea in kJ/mol and reports the chemical rate constant k that the Boltzmann factor generalizes for reactions with an energy barrier.
Key Concepts Explained
Four ideas explain every number on the result panel and connect the Boltzmann factor to neighbouring physics formulas.
Boltzmann factor exp(-E/kT)
The relative probability of a system occupying a state of energy E above the ground state, compared with the ground state, at thermal equilibrium. Always lies in [0, 1].
Boltzmann constant kB
Exact SI value 1.380649e-23 J/K since the 2019 redefinition. Links particle-scale energies (J) to thermal energies (kB*T) at temperature T.
Degeneracy ratio g_i/g_0
Counts the number of quantum-mechanically distinct states at each energy. A 4-fold degenerate upper state over a non-degenerate ground state contributes 4x the bare Boltzmann factor, and a 5-fold upper state over a non-degenerate ground state contributes 5x.
Thermal energy kB*T
The natural energy unit at temperature T. At 300 K, kB*T = 0.02585 eV = 4.14e-21 J = 2.479 kJ/mol. An energy gap E much larger than kB*T is effectively forbidden at temperature T.
The same exponential form appears in the Arrhenius equation and the Maxwell-Boltzmann distribution, which is why kT is reported in eV, J, and kJ/mol.
The Maxwell-Boltzmann distribution of molecular speeds in a gas uses the same kB and T, so the dimensionless ratio E/(kB*T) is also the natural variable for kinetic-theory problems. For PV = nRT pressures and concentrations that pair with this energy, our Ideal Gas Calculator returns the equilibrium values you can drop into a kinetic-theory argument.
How to Use This Calculator
Five short steps cover the energy, the temperature, the energy units, and the degeneracy ratio.
- 1 Enter the energy gap E: Type the energy of the excited state above the ground state, or the gap between the two states to compare. Use the unit dropdown to set J, eV, meV, or kJ/mol.
- 2 Set the absolute temperature T: Enter the temperature in Kelvin. Convert 25 °C to 298.15 K, or a stellar surface 5772 K directly, before clicking Calculate.
- 3 Set the degeneracy ratio g_i/g_0 if needed: Leave it at 1 for the bare Boltzmann factor. Use 5 for an s-to-d transition where the upper state is 5-fold degenerate and the lower is 1, or whatever your problem specifies.
- 4 Read the Boltzmann factor and population ratio: The result panel shows exp(-E/kT) and N_i/N_0, plus E/(kB*T) and kT in J, eV, and kJ/mol.
- 5 Sanity-check with kT: If E in eV is many times larger than kT in eV, the factor will be vanishingly small. If they are within a factor of 2 to 3, the population is significant.
For a hydrogen atom at T = 300 K with E = 10.2 eV (n=1 to n=2 gap) and gRatio = 4, the calculator returns f = 1.78e-171, N_2/N_1 = 7.12e-171, and a kT of 0.02585 eV. At T = 10000 K, f = exp(-10.2/0.862) = 7.2e-6, a small but non-zero population.
Benefits of Using This Calculator
A purpose-built boltzmann factor calculator removes the unit-conversion and underflow errors that come with hand-evaluating exp(-E/kT).
- • Four energy units in one form: J, eV, meV, and kJ/mol are converted to joules internally, so the user does not track electronvolts and joules side by side.
- • kT reported in three units: kB*T is shown in eV, J, and kJ/mol for atomic physics, gas kinetics, and physical chemistry.
- • Optional degeneracy ratio: g_i/g_0 multiplies the bare factor, so the form covers the full Boltzmann distribution N_i/N_0 = (g_i/g_0) * exp(-E/kT) without an extra step.
- • Underflow protection: When E/(kB*T) > 700 the displayed factor is clamped to 0 with a 'f ~ 0' label.
- • Pivots into related physics tools: The same E and T feed into the Arrhenius equation (E as Ea, T as bath temperature) and the ideal-gas law.
Because the Boltzmann factor is dimensionless, the result panel shows unitless fields for the factor and population ratio, with units reserved for kT.
Factors That Affect Your Results
Three variables drive the Boltzmann factor, and two limitations tell you when the exponential form is not the right model.
Energy gap E
E sits in the exponent. Doubling E (at fixed T) squares the suppression, so the factor is highly sensitive to the size of the energy gap.
Absolute temperature T
T enters in the denominator, so the factor grows as temperature rises. Going from 300 K to 3000 K adds a factor of 10 to kB*T and shrinks the suppression by the same factor of 10.
Degeneracy ratio g_i/g_0
Multiplies the bare factor linearly. A 4-fold degenerate upper state with a non-degenerate lower state gives 4x the population of the non-degenerate case, and a 5-fold upper state with a non-degenerate lower state gives 5x.
- • The Boltzmann factor assumes thermal equilibrium with a single heat bath at temperature T. Non-equilibrium populations (laser gain, magnetic resonance saturation, optically pumped media) do not follow the exponential form.
- • Very large E/(kB*T) values underflow to zero in floating point. The form clamps the displayed factor and adds a 'f ~ 0' label, but the exact underflow point depends on the runtime; users who need the asymptotic value can work with E/(kB*T) directly.
The same exponential suppression explains why the n=2 level of hydrogen is empty at room temperature and why reactions with large activation energies do not occur: the Boltzmann factor is the common origin.
According to HyperPhysics, the ratio of populations of two energy levels E_1 and E_2 follows N_2/N_1 = (g_2/g_1) * exp(-(E_2 - E_1)/(kB*T)), which is the Boltzmann distribution the form returns when the degeneracy ratio is not 1.
Because the Boltzmann factor is only valid in thermal equilibrium, the same T used in the exponent should also be the bath temperature of any gas whose partial pressure enters the calculation. Our Gas Laws Calculator resolves the combined gas law PV = nRT for the same absolute T, so the inputs to a Maxwell-Boltzmann problem and a gas-law problem stay consistent with each other.
Frequently Asked Questions
Q: What is the Boltzmann factor?
A: The Boltzmann factor is exp(-E/(kB*T)), the relative probability of a system occupying a state of energy E above the ground state at absolute temperature T. It is dimensionless, lies in [0, 1], and equals 1 when E is 0.
Q: How do you calculate the Boltzmann factor for a given energy?
A: Convert E to joules, multiply T by the exact SI Boltzmann constant 1.380649e-23 J/K to get kB*T, divide E by kB*T, then evaluate exp(-x). The calculator also reports the population ratio N_i/N_0 = (g_i/g_0) * exp(-x).
Q: What units does the Boltzmann factor use?
A: The factor itself is dimensionless, but E can be entered in J, eV, meV, or kJ/mol and the temperature must be in Kelvin. The form reports kB*T in eV, J, and kJ/mol.
Q: How does the Boltzmann factor depend on temperature?
A: T appears in the denominator of the exponent. Raising T shrinks E/(kB*T), which makes the exponential larger; the factor approaches 1 as T goes to infinity and approaches exp(-E) for T = 1 K (with E in units of kB).
Q: What is the relationship between the Boltzmann factor and the Boltzmann constant?
A: The Boltzmann constant kB is the proportionality constant that turns absolute temperature T into an energy, kB*T. The Boltzmann factor uses kB to make the exponent E/(kB*T) dimensionless.
Q: Why is the Boltzmann factor less than 1?
A: For E greater than 0 the exponent is negative, so exp of a negative number is in (0, 1). The ground state is the most probable single state at finite T, and the Boltzmann factor measures the relative probability of any higher-energy state compared with that ground state.