Fermi-Dirac Distribution Calculator
Find the probability that a fermion state is occupied at a given energy and temperature, or the energy that gives a chosen occupation.
📊 What is the Fermi-Dirac Distribution?
The Fermi-Dirac distribution tells you how likely it is that a quantum state of a given energy is occupied by a fermion when a system is in thermal equilibrium. Fermions, such as electrons, protons and neutrons, obey the Pauli exclusion principle, so no two can share the same state. The distribution, written f(E) = 1/(exp((E - mu)/kT) + 1), captures this limit: it never exceeds one, it equals one half at the chemical potential, and it falls smoothly from nearly one to nearly zero across a window a few kT wide.
The function appears throughout physics and engineering. In a metal, it sets how many conduction electrons are thermally excited and why only electrons within a few kT of the Fermi level contribute to the specific heat. In a semiconductor, it gives the electron population of the conduction band and the hole population of the valence band, and from them the intrinsic carrier density and the effect of doping. In astrophysics, it describes the degenerate electron gas that supports white dwarfs, and in nuclear physics it is used for the nucleon occupation of a nucleus.
A few distinctions help. The distribution gives the occupation of a state, not the density of states, so the number of electrons at an energy is the product of f(E) and the density of states g(E). The chemical potential is not always the same as the Fermi energy: they coincide at zero temperature, but at finite temperature mu depends on T and on the material. And the classical Boltzmann factor is only a limit of the full expression, valid when E - mu is several kT. This page lets you see exactly where that approximation starts to fail.
This calculator offers two modes. The first returns f for a given energy, chemical potential and temperature, along with the hole probability, the thermal energy kT and the Boltzmann comparison. The second inverts the function to find the energy at which the occupation has a chosen value. Both draw f(E) at half, equal and double your temperature, so you can see the thermal smearing directly. Inputs in the examples are illustrative values rather than measured properties of a particular material.
📐 Formula
📖 How to Use This Calculator
Two modes
💡 Example Calculations
Example 1 - A state 0.1 eV above the chemical potential
E = 5.1 eV, mu = 5.0 eV, T = 300 K (illustrative values)
Example 2 - A conduction-band state in a semiconductor
E - mu = 0.56 eV at 300 K (illustrative, roughly mid-gap silicon)
Example 3 - Energy where the state is 10 percent filled
f = 0.1, mu = 5.0 eV, T = 300 K (illustrative)
Example 4 - The same state at ten times the temperature
E = 5.1 eV, mu = 5.0 eV, T = 3000 K (illustrative)
❓ Frequently Asked Questions
📚 Sources and Notes
The distribution follows the Wikipedia article on Fermi-Dirac statistics, and the classical limit follows the Wikipedia article on Maxwell-Boltzmann statistics. The energies and temperatures in the examples are illustrative choices, not measured properties of a specific material.
See also the Fermi energy calculator, the density of states calculator and the Bose-Einstein distribution calculator.
🔗 Related Calculators
What is the Fermi-Dirac distribution?
It gives the average occupation of a single-particle state of energy E for identical fermions in thermal equilibrium: f(E) = 1 / (exp((E - mu)/kT) + 1). Because of the Pauli exclusion principle each state holds at most one fermion, so f always lies between 0 and 1.
How do you calculate the Fermi-Dirac occupation?
Compute x = (E - mu)/(k T) with k = 8.617333e-5 eV/K, then f = 1/(e^x + 1). For E - mu = 0.1 eV at 300 K, x = 3.868 and f = 0.02047.
What is the value of f at E equal to mu?
It is exactly 1/2 at every temperature, since exp(0) = 1. This is why mu is often called the Fermi level when the temperature is low. The occupation then falls toward 0 above mu and rises toward 1 below it.
How does temperature change the Fermi function?
At absolute zero f is a sharp step: 1 below mu and 0 above. As T rises the step smears over an energy window of a few kT around mu. Electrons move up from states below mu to states above it, leaving holes behind.
What energy gives a chosen occupation?
Invert the function: E = mu + kT ln((1 - f)/f). For f = 0.1, mu = 5.0 eV and T = 300 K the energy is 5.0568 eV, which is 56.8 meV above mu.
How is this different from the Fermi energy calculator?
A Fermi energy calculator finds the energy of the highest filled state at zero temperature from the electron density. This calculator takes mu as an input and gives the occupation at finite temperature, so the two are complementary.
When can the Boltzmann factor replace Fermi-Dirac?
When E - mu is much larger than kT, the exponential is large, the +1 in the denominator is negligible, and f is approximately exp(-(E - mu)/kT). At 3 kT the error is about 5 percent, and at 5 kT it is under 1 percent.
What is the hole probability?
It is 1 - f, the probability that a state is empty. It equals 1/(exp(-(E - mu)/kT) + 1), so it follows a Fermi function with the sign of the energy reversed. In semiconductors it describes the density of holes in the valence band.
Is the chemical potential the same as the Fermi level?
At zero temperature they coincide. At finite temperature the chemical potential of a metal changes slightly with T, and in a semiconductor it can sit inside the band gap. Many texts use Fermi level for mu at any temperature.
Can the occupation be exactly 0 or 1?
Mathematically, only in the limit of infinite (E - mu)/kT. The calculator reports very small numbers in scientific notation, and it asks for an occupation strictly between 0 and 1 when solving for energy because the logarithm diverges at the endpoints.