Maxwell-Boltzmann Speed Distribution
Problem
Plot the distribution of molecular speeds in an ideal gas. Show how the distribution changes with temperature and with the mass of the gas molecules, and mark the three characteristic speeds: most probable, mean, and root-mean-square.
Explanation
If you could freeze time inside a container of nitrogen gas at room temperature and measure every single molecule's speed, you would not find them all moving at the same speed. Instead, you'd find a beautiful bell-shaped distribution: a few molecules crawling along at 100 m/s, many moving at a few hundred m/s, most clustered somewhere around 400–500 m/s, and a dwindling tail of extremely fast molecules at 1000+ m/s. The shape of this distribution is one of the most famous results in statistical physics. It's called the Maxwell-Boltzmann distribution, and it was derived by James Clerk Maxwell in 1860 (before anyone knew atoms were real, incidentally) and generalized by Ludwig Boltzmann in 1872.
The punchline: at any temperature above absolute zero, gas molecules have a distribution of speeds — not a single speed. And the distribution has a very specific mathematical shape that depends only on the temperature and the mass of the molecules. Nothing else.
Why molecules don't all have the same speed
Imagine shaking a box full of marbles. Some marbles bounce off each other, some ricochet off the walls, some gain energy in one collision and lose it in the next. At any given instant, a snapshot would show marbles at wildly different speeds. Only the average kinetic energy is constrained, and that's what we call temperature.
For gas molecules, the same picture applies, but with astronomical numbers of collisions. At room temperature and pressure, a single molecule collides about 7 billion times per second with other molecules. Each collision randomizes its speed and direction. Over many collisions, the speeds settle into a statistical equilibrium — the Maxwell-Boltzmann distribution — where some molecules happen to be fast, some slow, and the population distribution is stable even though individual molecules are constantly jumping around.
The distribution doesn't depend on what happened a second ago, or what the average pressure is, or how large the container is. It's a universal equilibrium distribution for any ideal gas, set by two things: the temperature and the mass of the particles.
The Maxwell-Boltzmann distribution formula
In three dimensions, the probability density that a molecule has speed is:
where:
- is the mass of a single molecule (in kg)
- is Boltzmann's constant (the gas constant divided by Avogadro's number)
- is the absolute temperature in kelvin
The function tells you the fraction of molecules whose speed falls in a tiny window around . To get the fraction of molecules with speed between and , you integrate: . The total integral from 0 to equals 1, which means the formula is correctly normalized (every molecule has some speed).
Let me unpack the formula piece by piece, because each part has a physical meaning.
The prefactor is just a normalization constant that makes . You don't have to memorize this; it falls out of the math. The factor of is a "3D area of a sphere of radius " in velocity space — it accounts for the fact that molecules with speed can be going in any direction.
The factor is what makes the distribution rise from zero at low speeds. In 3D velocity space, there are more ways to have a high speed than a low speed (a sphere of radius has surface area , growing with ). This geometric factor competes with the exponential drop and is what creates the characteristic bell shape.
The exponential is the Boltzmann factor. The exponent is exactly — the ratio of a molecule's kinetic energy to the typical thermal energy scale . It says that high-kinetic-energy molecules are exponentially unlikely, with the decay rate set by temperature. Hotter gas → slower exponential decay → more high-speed molecules in the tail.
Multiplying them: at very low , grows quadratically from zero. At very high , dies off exponentially. Somewhere in between is the peak — and that's the "most probable speed."
The three characteristic speeds
Because the distribution isn't a single number, we describe it using three different "typical speeds," each with a clear physical meaning. All three are proportional to — they differ only by constant factors.
Most probable speed — the peak of the curve, the speed at which the most molecules are found.
Mean speed — the arithmetic average speed across all molecules.
Root-mean-square speed — the square root of the average of . This one appears whenever you care about kinetic energy, because .
Their ratios are fixed and universal:
The order is always . The most probable speed is at the peak; the mean is slightly to the right of the peak (because the distribution has a longer tail on the right); the rms is slightly to the right of the mean (because squaring weights the high-speed tail even more).
Numerically, for (nitrogen, molar mass 28 g/mol, ) at 300 K:
All three are around 500 m/s — that's faster than the speed of sound (343 m/s in air). Which actually makes sense, because sound propagation in a gas depends on how fast molecular collisions can pass information along, which is tied to the molecular speed scale.
Method 1: Deriving from kinetic theory
The equipartition theorem says each quadratic degree of freedom has an average energy of . A gas molecule has three translational degrees of freedom (motion in , , ), so its average translational kinetic energy is:
Solving for :
And is defined as the square root of that:
Done. No integration required. Kinetic theory + equipartition directly gives you without even having to know the full shape of the distribution.
Method 2: Deriving from calculus
To find the peak of , take its derivative and set it to zero:
The derivative of the product (where ) is:
Setting this equal to zero: either (the boundary, not a maximum) or . Solving the second:
Method 3: Deriving from integration
The mean speed is . Plugging in the distribution:
The relevant integral is .
Plugging through:
The algebra is slightly tedious but the result is clean.
Temperature dependence
All three characteristic speeds scale as . Doubling the temperature (in kelvin!) increases every speed by a factor of . Quadrupling doubles the speeds.
Visually, the whole distribution shifts to the right and flattens as increases. Toggle Show comparison temperature and pick a second temperature to see two curves overlaid. At higher , the peak moves right (faster molecules) AND the peak height drops (the distribution spreads out more). The total area under each curve is always 1 — it's a probability distribution — so a wider curve has to be shorter.
Mass dependence and atmospheric escape
The speeds scale as . Lighter molecules are systematically faster at any given temperature.
This has a huge real-world consequence: light gases escape planetary atmospheres over long timescales. Earth's escape velocity is about 11.2 km/s (11,200 m/s). For a molecule to escape, it has to be moving faster than this at the top of the atmosphere where there's nothing above it to stop it.
Let's compute how many molecules have that escape speed at a typical upper-atmosphere temperature of 1000 K (exosphere is hot due to solar UV absorption):
For nitrogen ( kg): . Escape velocity is 11.2 km/s, which is about 12 standard deviations out in the Maxwell-Boltzmann tail. The fraction of N₂ molecules at that speed is roughly — essentially zero. Nitrogen stays.
For helium ( kg): . Escape velocity at 11,200 m/s is "only" about 4.5 standard deviations. A tiny but nonzero fraction of helium atoms exceed escape velocity — roughly — and over geological timescales, Earth's helium slowly leaks away into space. This is why helium is so rare in Earth's atmosphere (5 parts per million) despite being one of the most common elements in the universe.
For hydrogen ( kg, even lighter than helium atom because dissociates in the exosphere): Hydrogen escape is orders of magnitude faster than helium. Earth has lost virtually all its original H₂ atmosphere over 4.5 billion years.
Jupiter has an escape velocity of ~60 km/s and keeps even hydrogen. The Moon has an escape velocity of only 2.4 km/s and can't hold any gas atmosphere — every molecule eventually boils away.
This is a direct consequence of the Maxwell-Boltzmann tail and nothing else. Temperature + mass + escape velocity → long-term atmospheric composition.
Speed of sound
The speed of sound in a gas is closely related to the Maxwell-Boltzmann speeds. For a diatomic ideal gas:
where is the adiabatic index (= 7/5 for diatomic). Compare to:
The ratio for diatomic gases. So sound travels at roughly 68% of — a bit slower than the typical molecular speed because sound is a collective wave of density compression, not a single molecule flying across the room.
For air at 300 K: , (matches the measured speed of sound in air, ~343 m/s). The Maxwell-Boltzmann distribution directly predicts the speed of sound once you put in the right constants.
Real-world applications
- Atmospheric chemistry. Reaction rates between gas molecules depend on how often they collide with enough energy to react. The high-speed tail of the Maxwell-Boltzmann distribution determines reaction rates via the Arrhenius equation. This is why a small temperature increase can dramatically speed up chemistry — it's the exponential Boltzmann factor at work in the reactive tail.
- Effusion (gas leaking through a small hole). The rate of molecular effusion is proportional to , which means light gases effuse through a hole faster than heavy gases. This is called Graham's law of effusion and is the basis of uranium isotope separation via gas diffusion — U-235 and U-238 hexafluoride have slightly different masses, so they effuse at slightly different rates.
- Thermionic emission. Electrons in a hot metal also follow a Maxwell-Boltzmann-like distribution. Heat the metal enough and the high-energy tail of electrons can boil off the surface — the basis of vacuum tubes, old CRT TVs, and electron microscopes.
- Pressure broadening in spectroscopy. Atoms and molecules emit light at specific frequencies, but the Doppler shift of fast-moving molecules smears the emission lines into broader peaks. The line width is directly proportional to , and astronomers use it to measure the temperature of distant gas clouds.
- Rocket engine design. Exhaust velocity in a rocket nozzle is related to the thermal velocity of the gas at high temperature. Hotter combustion and lighter exhaust molecules both increase thrust, which is why hydrogen-oxygen rockets (light, hot exhaust) are more efficient than kerosene-oxygen rockets.
- Evaporation. Water evaporates because molecules in the high-speed tail of the distribution happen to be moving upward and have enough kinetic energy to escape the liquid's intermolecular bonds. The fraction of high-energy molecules grows exponentially with temperature — which is why hotter water evaporates faster.
Common mistakes
- Using Celsius for . The formula uses absolute temperature, always. Plugging in 25°C instead of 298 K gives completely wrong answers.
- Confusing mean and most probable. Different quantities. The mean is to the right of the peak because the distribution has a right-skewed tail. The most probable is at the peak. Don't call them the same thing.
- Using molar mass instead of molecular mass. The formula wants in kilograms per molecule, not grams per mole. For N₂ (molar mass 28 g/mol), . Forgetting the Avogadro division gives numbers off by 24 orders of magnitude.
- Forgetting the factor. Some formulations of Maxwell-Boltzmann look simpler because they give the distribution of velocity components (which doesn't have the factor), not the distribution of speeds (which does). These are different functions of different variables. Know which one you're looking at.
- Confusing the distribution with a single speed. Molecules in a gas never have a single speed — they always have a distribution. Asking "what's the speed of a nitrogen molecule at 300 K" is meaningless; the question is "what's or or at 300 K."
- Assuming the distribution is Gaussian. The Maxwell-Boltzmann is not a Gaussian/normal distribution — it starts at zero at (because of the factor), peaks, then decays. A Gaussian would extend symmetrically to negative values, which doesn't make sense for a speed (which is always positive). MB is often called "Gaussian-like" but it's a different function.
- Thinking heavier molecules can't have high speeds. They can, it's just rarer. Xenon atoms at 300 K mostly move around 200 m/s, but a tiny fraction of them move at 500+ m/s. The tail is just suppressed by the factor.
Try it
- Slide the temperature from 100 K to 1500 K. Watch the whole distribution shift right and flatten as increases. The three marked speeds all move together, maintaining their fixed ratio of .
- Switch gas types with the gas selector. Hydrogen's distribution is way out at high speeds (~2000 m/s peak at 300 K), while xenon's distribution is clustered near 200 m/s. The lighter the molecule, the faster it moves.
- Enable "Show comparison temperature" and pick a different for the overlay. Two bell curves appear on the same axes. The hotter one is lower and wider than the cooler one (because the total area under each is 1).
- Drag the and sliders to select a speed range. Enable "Show area" to shade the region between them — that shaded area is the probability that a random molecule has a speed in that range.
- Try temperatures up to 1500 K and see how the distribution tail extends. At 1500 K, a meaningful fraction of molecules have speeds above 1 km/s — which is why reaction rates at high temperature can be orders of magnitude faster than at room temperature.
- Compute yourself using the formula and check it against the HUD. At 300 K for you should get roughly 517 m/s.
- Try comparing the same gas at 300 K and 1200 K (4× higher). The should double — you can see it in the HUD readouts.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.