QuestionStates of matter
What Is the Ideal Gas Law? PV = nRT Explained With Examples

The ideal gas law is PV = nRT, an equation that links the pressure, volume, amount and temperature of a gas. Here P is pressure in pascals, V is volume in cubic meters, n is amount in moles, T is temperature in kelvin and R is the gas constant, 8.314 J/(mol·K). It combines Boyle’s, Charles’s and Avogadro’s laws into one relationship.
Contents
The full answer
The ideal gas law describes an idealized gas whose particles have no volume of their own and do not attract each other. Real gases such as nitrogen and oxygen at room temperature and normal pressure follow the law closely. The equation can be used to find any one of the four state variables when the other three are known.
PV = nRT
P is pressure (Pa), V is volume (m³), n is amount (mol), R is the gas constant, 8.314 J/(mol·K), and T is absolute temperature (K). The gas constant has the same value in every case, so the calculation works only when all quantities use SI units or a consistent set of units that match R.
The gas constant can also be written as 0.08206 L·atm/(mol·K), which is convenient when pressure is in atmospheres and volume is in liters. Students should check which form the problem uses, because mixing them is one of the most common errors in the subject.
The science behind it
The ideal gas law is built from three older laws, which are covered on the gas laws page. The amount n is counted in moles. Boyle’s law says PV is constant at constant temperature. Charles’s law says V divided by T is constant at constant pressure. Avogadro’s law says that equal volumes of gas hold equal numbers of molecules at the same temperature and pressure, so volume is proportional to amount. Combining these ratios gives PV/(nT) equal to a constant, which is R.
The constant R comes from measurement. The gas constant is the product of the Boltzmann constant and the Avogadro constant, 1.380649 × 10⁻²³ J/K and 6.02214076 × 10²³ mol⁻¹, and the CODATA value of R is 8.314462618 J/(mol·K). Rounding to 8.314 is sufficient for school work.
The law assumes that gas particles are very far apart, so their own volume is negligible, and that they do not attract each other. At high pressure or low temperature these assumptions fail, and the measured pressure differs from the value PV = nRT predicts.
Worked examples
Example 1: a tire holds 0.10 mol of air at 293 K and a volume of 0.0020 m³. Find the pressure. Rearranging gives P = nRT/V = 0.10 mol × 8.314 J/(mol·K) × 293 K ÷ 0.0020 m³ = 1.2 × 10⁵ Pa, about 120 kPa. This is close to the normal tire pressure of a car.
Example 2: the volume of one mole of ideal gas at 0 °C (273.15 K) and 1 atm (101,325 Pa). V = nRT/P = 1 mol × 8.314 J/(mol·K) × 273.15 K ÷ 101,325 Pa, which is 0.0224 m³, or 22.4 L. This is the molar volume used in the STP definition.
Example 3: at 25 °C (298 K) and 1 atm, the same mole of gas occupies about 24.5 L. The increase comes from the higher temperature, which matches Charles’s law.
Everyday examples
Compressed gas cylinders in hospitals, workshops and divers’ tanks contain a fixed volume of gas. The pressure gauge reads higher when the cylinder is warm and lower when it is cold, because the amount and volume are fixed and only the temperature changes.
Cooking uses the same relationship. A pressure cooker raises the temperature of the steam inside, and the pressure rises with it. The sealed container keeps the volume fixed, so the ideal gas law predicts the pressure well at normal cooking conditions.
Weather balloons carry a small amount of gas that expands as the balloon rises into thinner air. The outside pressure falls, the volume increases, and the gas stays in a balance set by the ideal gas law until the balloon bursts.
Ideal gases and real gases
The ideal gas law becomes less accurate as the gas is compressed or cooled. Real gas particles take up space and attract one another, so the pressure is different from the simple prediction. Water vapor deviates more than helium, because its molecules attract each other more strongly.
The van der Waals equation adds two constants, a and b, that correct for attraction and for the volume of the particles. It gives a better fit for real gases at high pressure. For most school calculations at ordinary conditions the ideal gas law is accurate enough.
Common mistakes and exam tips
The most common error is using degrees Celsius for T. Convert to kelvin by adding 273.15, so 25 °C becomes 298 K. Using 25 instead of 298 gives a result that is wrong by a factor of about 12.
A second error is mixing R values. If pressure is in atmospheres and volume in liters, use R = 0.08206 L·atm/(mol·K). If pressure is in pascals and volume in cubic meters, use R = 8.314 J/(mol·K). Check the units of the answer before writing it down.
Finally, convert the mass of gas to moles before using the equation. Divide the mass in grams by the molar mass, so n = m/M, and do not use the mass in place of n.
Frequently asked questions
What does PV = nRT mean?
PV = nRT says that pressure times volume equals amount of gas times the gas constant times absolute temperature. P is in pascals, V in cubic meters, n in moles and T in kelvin. Knowing any four of the quantities gives the fifth.
What is the value of R in the ideal gas law?
R is 8.314 J/(mol·K) in SI units. In liter and atmosphere units it is 0.08206 L·atm/(mol·K). Both values describe the same constant, and the unit system is chosen to match the pressure and volume units.
How do you calculate the volume of one mole of gas?
At 0 °C (273.15 K) and 1 atm, one mole of ideal gas occupies about 22.4 L. Rearranging PV = nRT gives V = nRT/P, which with these values gives 22.4 L. At 25 °C and 1 atm the volume is about 24.5 L.
When does the ideal gas law fail?
The ideal gas law fails most at high pressure and low temperature. Under those conditions the particles’ own volume and their attractions for one another affect the result. The van der Waals equation corrects for both effects.
Who developed the ideal gas law?
Benoît Paul Émile Clapeyron combined Boyle’s, Charles’s and Gay-Lussac’s laws into one equation in 1834. Avogadro’s law, which adds the amount of gas, was proposed in 1811 by Amedeo Avogadro. Together they give PV = nRT.
Sources and further reading
- OpenStax, "Chemistry 2e"
- NIST, "CODATA Fundamental Physical Constants"
- Encyclopaedia Britannica, "Ideal gas law"
Cite this page
“What Is the Ideal Gas Law? PV = nRT Explained With Examples.” Atoms & Forces, https://science.bigworldlist.com/questions/what-is-the-ideal-gas-law/.
More about Gas laws
- ChemistryGas Laws: Boyle's, Charles's and the Ideal Gas Law Explained
- QuestionWhat Is Avogadro's Law? Formula, Meaning and Examples
- QuestionWhat Is Boyle's Law? Formula, Graph and Examples
- QuestionWhat Is Charles's Law? Formula and Real-Life Examples
- QuestionWhat Is STP in Chemistry? Standard Temperature and Pressure