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.

📊 Fermi-Dirac Distribution Calculator
Energy (E)
eV
Chemical potential (mu)
eV
Temperature (T)
K
Target occupation (f)
Chemical potential (mu)
eV
Temperature (T)
K
Occupation f(E)
—
Hole probability 1 - f
—
(E - mu) / kT
—
Thermal energy kT
—
Boltzmann factor
—
Slope -df/dE
—

Energy E
—
E - mu
—
(E - mu) / kT
—
Thermal energy kT
—
Energy in joules
—
Hole probability 1 - f
—

📊 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

f(E)  =  1 / ( exp( (E − μ) / kBT ) + 1 )
E = energy of the single-particle state (eV)
μ = chemical potential, the energy where f = 1/2 (eV)
kB = 8.617333262 × 10−5 eV/K; T = absolute temperature (K)
Invert: E = μ + kBT ln((1 − f) / f)
Classical limit: f ≈ exp(−(E − μ)/kBT) when E − μ >> kBT
Example: E − μ = 0.1 eV at 300 K gives (E − μ)/kT = 3.868 and f = 0.02047
−df/dE  =  f (1 − f) / kBT
Meaning: the rate at which the occupation drops with energy, peaked at E = μ with value 1/(4 kBT)
Hole probability: 1 − f(E)

📖 How to Use This Calculator

Two modes

1
Choose a mode - Occupation at E returns the probability that a state is filled. Energy for f returns the energy where the occupation equals a value you pick.
2
Enter mu and T - Give the chemical potential in eV and the absolute temperature in kelvin. The energy and mu must share the same zero.
3
Enter the energy or occupation - Use eV for E, or a number strictly between 0 and 1 for f.
4
Read the result and chart - The primary box gives f or E. The chart shows f(E) at T/2, T and 2T with your point marked on the middle curve.

💡 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)

1
kT = 8.617333262e-5 × 300 = 25.852 meV, so (E − μ)/kT = 0.1 / 0.025852 = 3.8682.
2
f = 1 / (exp(3.8682) + 1) = 1 / (47.86 + 1) = 0.02047.
3
The Boltzmann factor exp(-3.8682) = 0.02090 is about 2.1 percent higher than the exact value.
f = 0.02047, hole probability = 0.9795
Try this example →

Example 2 - A conduction-band state in a semiconductor

E - mu = 0.56 eV at 300 K (illustrative, roughly mid-gap silicon)

1
Set mu = 0 and E = 0.56 eV. (E − μ)/kT = 0.56 / 0.025852 = 21.662.
2
f = 1 / (exp(21.662) + 1) = 3.912e-10.
3
With so large a ratio the Boltzmann factor is identical to four digits, which is why semiconductors use the classical form.
f = 3.912e-10
Try this example →

Example 3 - Energy where the state is 10 percent filled

f = 0.1, mu = 5.0 eV, T = 300 K (illustrative)

1
ln((1 − f)/f) = ln(9) = 2.1972.
2
E − μ = 0.025852 × 2.1972 = 0.05680 eV.
3
E = 5.0 + 0.05680 = 5.0568 eV, which equals 8.102e-19 J.
E = 5.0568 eV
Try this example →

Example 4 - The same state at ten times the temperature

E = 5.1 eV, mu = 5.0 eV, T = 3000 K (illustrative)

1
kT = 258.52 meV, so (E − μ)/kT = 0.1 / 0.25852 = 0.38682.
2
f = 1 / (exp(0.38682) + 1) = 0.4045.
3
Heating tenfold lifts the occupation from 0.02047 to 0.4045. The state is now within one kT of mu, far from the classical limit.
f = 0.4045
Try this example →

❓ Frequently Asked Questions

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.

📚 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.

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.