---
title: "Ideal gas pressure and molecular speeds | Sandbox Physics"
description: "Count momentum transfers at a wall to explain gas pressure. Use a speed histogram to compare the most probable, mean and rms speeds."
canonical_url: "https://sandboxphysics.com/learn/heat-and-statistics/molecular-motion-and-pressure/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/heat-and-statistics/molecular-motion-and-pressure/"
last_modified: "2026-11-24"
---

[Volume 5 · Heat, Probability and Matter](https://sandboxphysics.com/learn/heat-and-statistics/)

# How do molecular collisions create pressure?

Count momentum transfers at a wall to explain gas pressure. Use a speed histogram to compare the most probable, mean and rms speeds.

Before you start: [Volume 1 Chapter 11](https://sandboxphysics.com/learn/mechanics/momentum-and-collisions/) on momentum. [Chapter 1](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/) on absolute temperature.

After this chapter you can: Relate molecular impacts to pressure and read three different characteristic speeds from a gas distribution.

Pressure comes from momentum delivered to the walls. A faster molecule delivers more momentum in each bounce and returns to the wall more often. In a dilute gas, those two effects make pressure proportional to absolute temperature when the amount of gas and its volume stay fixed.

## 2.1 Average the impulses on a wall

Put one molecule of mass $m$ in a rectangular box. Two opposite walls are separated by $L_x$. An elastic collision reverses the normal component $v_x$ and preserves the other two velocity components. The wall receives an impulse of magnitude $2m|v_x|$. The time between hits on the same wall is $2L_x/|v_x|$.

Dividing impulse by time gives the average force from that molecule on one wall. Add the forces from $N$ molecules and divide by the wall area $A$. Since the box volume is $V=AL_x$, the pressure is

$$
\langle F_x\rangle=\frac{mv_x^2}{L_x},\qquad
p=\frac{Nm\langle v_x^2\rangle}{V}.
$$

This argument treats the molecules as points for wall spacing and neglects their interactions except for elastic collisions. In a gas at rest with no preferred direction, each of the three velocity components accounts for one third of the mean squared speed $\langle v^2\rangle$. Individual impulses still arrive at different times. The pressure describes their average effect.

## 2.2 Connect the mean kinetic energy to temperature

In a classical gas at thermal equilibrium, each translational direction contributes a mean kinetic energy of $k_BT/2$. Here $T$ is absolute temperature and $k_B$ is Boltzmann's constant. The mean translational energy of one molecule $\langle K\rangle$ and the ideal-gas pressure satisfy

$$
\langle K\rangle=\frac32k_BT,\qquad
pV=\frac23N\langle K\rangle=Nk_BT .
$$

At fixed volume, adding molecules increases the number of impulses. Raising the temperature increases the mean square normal speed and the momentum transferred per time. At fixed particle count and temperature, increasing the volume lowers pressure.

With amount of gas $n_{\mathrm{mol}}$ in moles, the same equation is $pV=n_{\mathrm{mol}}RT$, where $R=N_Ak_B$ and $N_A$ is Avogadro's constant. Use kelvin for $T$ and absolute pressure for $p$.

## 2.3 Describe a range of speeds

Temperature gives the mean translational energy. A gas at one temperature still contains molecules moving at many different speeds. A histogram estimates the fraction in each speed interval. The Maxwell–Boltzmann curve is the corresponding probability density for a classical ideal gas at equilibrium in three dimensions.

$$
f(v)=4\pi\left(\frac{m}{2\pi k_BT}\right)^{3/2}
v^2 e^{-mv^2/(2k_BT)},\qquad v\geq0.
$$

The factor $v^2$ counts the growth of a spherical shell in velocity space. Every velocity vector on the same shell has the same speed. The exponential suppresses large kinetic energies. The probability for a speed interval is the area under the curve over that interval.

Several averages describe different things. The peak of the curve gives the most probable speed. The mean speed averages $v$, while the root-mean-square speed takes the square root after averaging $v^2$.

$$
v_{\mathrm{mp}}=\sqrt{\frac{2k_BT}{m}},\qquad
\langle v\rangle=\sqrt{\frac{8k_BT}{\pi m}},\qquad
v_{\mathrm{rms}}=\sqrt{\frac{3k_BT}{m}} .
$$

The variance of speed is $\langle v^2\rangle-\langle v\rangle^2$. In a gas at rest the mean velocity vector is zero by symmetry, while the mean speed is positive. Raising temperature stretches all three characteristic speeds by the square root of the temperature ratio.

## 2.4 Compare two temperatures in the same box

Open [Kinetic Theory](https://sandboxphysics.com/labs/ideal-gas/) and turn on **Show speed distribution**. Set **Particle count** to 100 and compare **Warm** with **Hot**. The normalized temperatures are $1.00$ and $2.80$. Keep the particle count fixed and watch **Pressure** and **Mean speed**. The running pressure readout fluctuates because collisions arrive as separate events.

- Warm (1)
- Hot (2.8)

**Figure 2.1** The two three-dimensional Maxwell–Boltzmann reference curves used by the Lab at the Warm and Hot temperatures. Both use the same normalized speed axis. The warmer distribution spreads to higher speeds and its peak moves right.

**Table 2.1** Example averages from one simulated comparison with 100 particles. The pressure column uses total wall impulse over about $22.5$ units of simulated time after an initial settling window.

| Preset | Temperature | Ideal-gas pressure | Average from simulated wall impulses |
| --- | --- | --- | --- |
| Warm | $1.00$ | $100$ | $102$ |
| Hot | $2.80$ | $280$ | $287$ |

The simulated pressure rises by about the same factor as the temperature. Different runs fluctuate around their own averages. The model has finite-radius particles and a fixed box. It sums impulses from all six faces and divides by time and area. Its temperature control directly rescales velocities. Volume changes and the details of heat transfer from a physical thermostat lie outside this model.

## 2.5 Exercises

1. An elastically reflected molecule has outgoing normal speed twice the outgoing normal speed in a previous run. How does the impulse to the wall change for the same mass?
2. Double a molecule's normal speed while its mass and the wall separation stay fixed. By what factor does its time-averaged force on one wall change?
3. An ideal gas is at $300\,\mathrm K$. Keeping particle count and volume fixed, it is heated to $450\,\mathrm K$. Find the pressure ratio.
4. Keeping the temperature and particle count fixed, a gas expands to double its volume. Find its final pressure in terms of $p_i$.
5. In an equilibrium ideal gas, the absolute temperature increases by a factor of four. By what factor does the RMS speed increase?
6. Why can a gas have zero mean velocity and positive mean speed?
7. In two otherwise identical 3D ideal gases at the same temperature, molecule B has four times the mass of molecule A. Compare their RMS speeds and their mean translational kinetic energies.
8. A measured speed histogram from the Lab has a few particles in a fast bin while the model curve there is low. Why might this happen even when the gas is near equilibrium?

Exercise 1

It doubles. The impulse magnitude is $2m|v_x|$, so it is proportional to the normal speed.

Exercise 2

It increases by a factor of four. Each hit gives twice the impulse, and the molecule hits the same wall twice as often.

Exercise 3

The ratio is $450/300=1.50$. At fixed volume and particle count, pressure is proportional to absolute temperature.

Exercise 4

The pressure falls to $p_i/2$. The product $pV$ is fixed by the unchanged particle count and temperature.

Exercise 5

The RMS speed doubles, since $v_{\mathrm{rms}}$ is proportional to $\sqrt T$.

Exercise 6

Velocity has direction. In an isotropic gas, opposite velocity components cancel on average. Speed is the nonnegative magnitude and remains positive on average when the molecules move.

Exercise 7

B has half the RMS speed of A because $v_{\mathrm{rms}}$ is proportional to $1/\sqrt m$. Both have the same mean translational energy, $3k_BT/2$, because the temperature is the same.

Exercise 8

Even a small probability can produce observations in a finite sample. Collisions change which particles occupy a bin, so the empirical fraction fluctuates. The area under the curve over that bin gives the expected fraction.

## Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

[Kinetic Theory → Hard spheres bounce elastically off one another and off all six walls of the box. Each collision looks random, but the speeds settle toward the 3D Maxwell-Boltzmann distribution, which the live histogram follows.](https://sandboxphysics.com/labs/ideal-gas/)

## Sources and reading scope

1. [OpenStax, University Physics Volume 2, §2.1 Molecular Model of an Ideal Gas](https://openstax.org/books/university-physics-volume-2/pages/2-1-molecular-model-of-an-ideal-gas)

   The section models a dilute gas as moving molecules and relates pressure, volume, particle number and absolute temperature.

2. [OpenStax, University Physics Volume 2, §2.2 Pressure, Temperature, and RMS Speed](https://openstax.org/books/university-physics-volume-2/pages/2-2-pressure-temperature-and-rms-speed)

   The section sums momentum transfers at the walls to connect pressure with the mean square of molecular speeds.

3. [OpenStax, University Physics Volume 2, §2.4 Distribution of Molecular Speeds](https://openstax.org/books/university-physics-volume-2/pages/2-4-distribution-of-molecular-speeds)

   The distribution gives the most probable, mean and root-mean-square speeds and shows how they depend on temperature.

[← Chapter 1 · When does a thermometer represent the sample temperature?](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/) [Chapter 3 · How do heat and work change internal energy? →](https://sandboxphysics.com/learn/heat-and-statistics/first-law-of-thermodynamics/)

Chapters in this volume

- [1. When does a thermometer represent the sample temperature?](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/)
- [2. How do molecular collisions create pressure?](https://sandboxphysics.com/learn/heat-and-statistics/molecular-motion-and-pressure/)
- [3. How do heat and work change internal energy?](https://sandboxphysics.com/learn/heat-and-statistics/first-law-of-thermodynamics/)
- [4. Why does heat flow spontaneously from hot to cold?](https://sandboxphysics.com/learn/heat-and-statistics/entropy-and-irreversibility/)
- [5. How much work can a heat engine deliver in one cycle?](https://sandboxphysics.com/learn/heat-and-statistics/heat-engines-and-cycles/)
- [6. How do probabilities determine a system's thermal averages?](https://sandboxphysics.com/learn/heat-and-statistics/boltzmann-weights-and-fluctuations/)

## Keep reading

Interactive Physics Textbook · Reading path

### Heat, Probability and Matter

1. [Article **When does a thermometer represent the sample temperature?**](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/)
2. [You are here **How do molecular collisions create pressure?**](https://sandboxphysics.com/learn/heat-and-statistics/molecular-motion-and-pressure/)
3. [Article **How do heat and work change internal energy?**](https://sandboxphysics.com/learn/heat-and-statistics/first-law-of-thermodynamics/)
4. [Article **Why does heat flow spontaneously from hot to cold?**](https://sandboxphysics.com/learn/heat-and-statistics/entropy-and-irreversibility/)
5. [Article **How much work can a heat engine deliver in one cycle?**](https://sandboxphysics.com/learn/heat-and-statistics/heat-engines-and-cycles/)
6. [Article **How do probabilities determine a system's thermal averages?**](https://sandboxphysics.com/learn/heat-and-statistics/boltzmann-weights-and-fluctuations/)

1 more group

### Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

1. [Lab **Kinetic Theory**](https://sandboxphysics.com/labs/ideal-gas/)
2. [Article **The extra weight that revealed argon**](https://sandboxphysics.com/stories/thermal-complexity/rayleigh-argon-density/)
3. [Article **How a gas becomes a liquid and loses the boundary**](https://sandboxphysics.com/stories/thermal-complexity/van-der-waals-critical-point/)
