
At a Glance
The ideal gas law is PV = nRT, where P is absolute pressure in pascals, V is volume in cubic meters, n is the amount of gas in moles, R = 8.314 J/(mol·K) is the gas constant, and T is the temperature in kelvins. Knowing any three of P, V, n and T lets you calculate the fourth.
- Stated by
- Émile Clapeyron
- Year
- 1834, combining the earlier gas laws
- Formula
- PV = nRT, or PV = NkBT for N molecules
- Gas constant
- R = 8.314 462 618... J/(mol·K), exact
- Units
- P in Pa, V in m³, n in mol, T in K
- Applies to
- Gases at low to moderate pressure and well above their boiling point
On this page
- What Does the Ideal Gas Law Say?
- The Ideal Gas Law Explained Simply
- What Is the Formula for the Ideal Gas Law?
- Which Units and Which Value of R Should You Use?
- How Does It Combine Boyle's, Charles's and Avogadro's Laws?
- What Is the Molecular Form PV = NkT?
- Where Do You See the Ideal Gas Law in Everyday Life?
- Who Discovered the Ideal Gas Law?
- Going Deeper: When Does the Ideal Gas Law Fail?
- Practice Ideal Gas Law Problems
- Common Misconceptions
- Key Facts
- Quiz
- FAQ
What Does the Ideal Gas Law Say?
The ideal gas law ties together the four quantities that describe a sample of gas: pressure, volume, amount and temperature. Change one of them and at least one other must change to keep the equation balanced. Squeeze a gas into a smaller volume at the same temperature and its pressure climbs; heat it in a rigid container and its pressure climbs too.
The word "ideal" signals a model. An ideal gas is made of particles so small and so far apart that their own size and their pull on each other can be ignored. Real air, nitrogen, oxygen and helium come very close to this at ordinary conditions, which is why the law works so well in practice.
Two rules make or break every calculation. Temperature must be absolute, in kelvins, and pressure must be absolute, not the gauge reading on a tire pump. Our kelvin page explains why the scale has to start at absolute zero.
The Ideal Gas Law Explained Simply
Picture a gas as a swarm of tiny balls flying around a box and bouncing off the walls. Every bounce gives the wall a small push, and all those pushes together are the pressure.
Put more balls in the box and there are more bounces, so pressure goes up. Make the balls move faster by heating them and each bounce hits harder and more often, so pressure goes up again. Give the balls a bigger box and they reach the walls less often, so pressure goes down. The ideal gas law is simply the bookkeeping for all three effects at once.
What Is the Formula for the Ideal Gas Law?
The law is written
Because the equation has four variables, it can be solved for any one of them. Pressure is
Here is the ideal gas law with each variable and its SI unit, plus the four rearranged forms.
| Symbol | Quantity | SI unit |
|---|---|---|
| absolute pressure | pascal (Pa) | |
| volume | cubic meter (m³) | |
| amount of gas | mole (mol) | |
| ideal gas constant (8.314 J/(mol·K)) | joule per mole kelvin (J/(mol·K)) | |
| absolute temperature | kelvin (K) |
Rearranged to find another variable:
Valid for: ideal gas (low pressure, high temperature); T in kelvin, P absolute.
Example 1 How much air is in a scuba tank?
A 12-liter scuba tank (0.012 m³) is filled to an absolute pressure of 20,000,000 Pa at a temperature of 293 K. How many moles of air does it hold?
- Given:
- absolute pressure:
- volume:
- ideal gas constant:
- absolute temperature:
- absolute pressure:
- Formula:
- Substitute:
- Answer:
At such a high pressure real air deviates a little from ideal behavior, so a dive shop's figure would differ by a few percent.
Which Units and Which Value of R Should You Use?
In SI units, R is exactly 8.314 462 618... J/(mol·K), and the full value is on our gas constant page. With that value you must use pascals, cubic meters, moles and kelvins. Mixing liters with pascals is the most common source of answers that are off by a factor of 1,000.
Chemists often prefer liters and atmospheres. Dividing the SI value by 101.325 gives R = 0.08206 L·atm/(mol·K), and multiplying that by 760 gives 62.36 L·Torr/(mol·K) (both computed). Pick the version of R that matches your units and the rest of the calculation stays clean. Our units of pressure page lists the conversions.
The table shows how the volume of one mole changes with temperature at normal atmospheric pressure. At 0 °C it is about 22.4 liters, the familiar value used at standard temperature and pressure.
Example 2 Sizing a party balloon
A balloon is filled with 0.50 mol of helium at room temperature, 298 K, and at normal air pressure, 101,325 Pa. What volume does the helium take up?
- Given:
- amount of gas:
- ideal gas constant:
- absolute temperature:
- absolute pressure:
- amount of gas:
- Formula:
- Substitute:
- Answer:
Multiply cubic meters by 1,000 to get liters; this balloon holds a little over 12 liters of gas.
| Temperature (°C) | Temperature (K) | Molar volume (L) | Molar volume (m³) |
|---|---|---|---|
| −40 | 233.15 | 19.13 | 0.01913 |
| 0 | 273.15 | 22.41 | 0.02241 |
| 20 | 293.15 | 24.06 | 0.02406 |
| 37 | 310.15 | 25.45 | 0.02545 |
| 100 | 373.15 | 30.62 | 0.03062 |
| 300 | 573.15 | 47.03 | 0.04703 |
| Source: Computed with V = nRT/P, n = 1 mol, R = 8.314 462 618 J/(mol·K) and P = 101,325 Pa (NIST CODATA 2022) · Retrieved October 2026 | |||
How Does It Combine Boyle's, Charles's and Avogadro's Laws?
Before the ideal gas law, scientists found several simpler rules by holding two quantities fixed and varying the others. Each one drops straight out of
- Boyle's law: at fixed n and T, pressure and volume are inversely proportional.
- Charles's law: at fixed n and P, volume is proportional to absolute temperature.
- Gay-Lussac's law: at fixed n and V, pressure is proportional to absolute temperature.
- Avogadro's law: at fixed P and T, volume is proportional to the number of moles.
When only the amount of gas is fixed, the same idea gives the combined gas law,
The diagram shows a piston resting on a trapped gas. The gas pushes up hard enough to balance both the air above and the piston's weight, so the trapped gas sits at a pressure a little above the outside air.
| Law | Held constant | Relation | Example |
|---|---|---|---|
| Boyle's law | n and T | P₁V₁ = P₂V₂ | Pushing a syringe plunger raises the pressure inside |
| Charles's law | n and P | V₁/T₁ = V₂/T₂ | A balloon shrinks when taken outside on a cold day |
| Gay-Lussac's law | n and V | P₁/T₁ = P₂/T₂ | Tire pressure rises after a long drive |
| Avogadro's law | P and T | V₁/n₁ = V₂/n₂ | Blowing more air into a balloon makes it bigger |
| Combined gas law | n | P₁V₁/T₁ = P₂V₂/T₂ | A weather balloon rising into colder, thinner air |
| Source: Derived from PV = nRT; statements from our laws dataset · Retrieved October 2026 | |||

What Is the Molecular Form PV = NkT?
Physicists often count molecules instead of moles. Replacing n with the number of molecules N, and R with the Boltzmann constant kB, gives
This version links the law directly to individual molecules, and it is the starting point of the kinetic theory of gases. That theory shows that
Example 3 Counting the molecules in a cubic meter of air
A room holds air at 101,325 Pa and 293 K. Using the molecular form PV = NkBT with kB = 1.380649 × 10⁻²³ J/K, how many gas molecules are in 1 m³ of it?
- Given:
- absolute pressure:
- volume:
- Boltzmann constant:
- absolute temperature:
- absolute pressure:
- Formula:
- Substitute:
- Answer:
The count does not depend on which gas fills the room, a direct consequence of the ideal gas law.
Where Do You See the Ideal Gas Law in Everyday Life?
Car tires are a classic case. Their volume barely changes, so pressure follows temperature. A tire set to 220 kPa on the gauge on a 10 °C morning reads about 231 kPa after warming to 20 °C (computed, using absolute pressure). That is why drivers are told to check pressure when the tires are cold.
Hot air balloons use the law the other way around. Heating the air inside at constant pressure makes it expand, so fewer molecules fill the envelope and the inside air becomes lighter than the cooler air around it. The diagram below shows the forces on a balloon floating in balance.
Other examples include a sealed bag of chips puffing up on a mountain road as outside pressure drops, bread dough rising as yeast adds gas, and weather balloons that grow several times wider as they climb into thin air before they burst.


Who Discovered the Ideal Gas Law?
The law grew out of nearly two centuries of experiments. Robert Boyle published the pressure and volume relation in 1662. Jacques Charles worked out the volume and temperature relation around 1787, and Gay-Lussac published it in 1802. Amedeo Avogadro proposed in 1811 that equal volumes of gas at the same conditions hold equal numbers of molecules.
In 1834 the French engineer Émile Clapeyron combined these results into a single equation, the form we now write as PV = nRT. Later, August Krönig in 1856 and Rudolf Clausius in 1857 derived it from a model of moving molecules, turning an experimental rule into a consequence of mechanics.
Going Deeper: When Does the Ideal Gas Law Fail?
The model assumes that molecules take up no space and do not attract each other. Both assumptions break down when a gas is squeezed hard or cooled close to its condensation point. At high pressure the molecules' own volume becomes a noticeable share of the container, and the gas is harder to compress than the law predicts.
Near condensation, attractions between molecules pull them slightly toward each other and away from the walls, so the measured pressure falls below the ideal value. Eventually the gas turns into a liquid, something the ideal gas law cannot describe at all. More detailed equations, such as the van der Waals equation, add correction terms for molecular size and attraction.
For air, nitrogen, oxygen and the noble gases near room temperature and at pressures up to a few atmospheres, the errors are usually below one percent. Steam near boiling, carbon dioxide under pressure and refrigerant gases call for more care.
Practice Ideal Gas Law Problems
Work through a few problems of your own using different units for pressure and volume, then check each answer with the ideal gas law calculator. When you are ready, try the quiz below to test the key ideas.
Common Misconceptions
Myth: You can plug degrees Celsius into PV = nRT.
Physics: Temperature must be absolute. Using 20 instead of 293 K gives an answer that is wrong by a factor of about 15.
Myth: The pressure on a tire gauge is the P in the ideal gas law.
Physics: A gauge reads pressure above the atmosphere. Add about 101 kPa to get the absolute pressure the law needs.
Myth: Heavier gases take up more space than light ones under the same conditions.
Physics: At the same pressure and temperature, equal numbers of molecules fill equal volumes, whatever the gas. Molar mass affects density, not volume per mole.
Myth: The ideal gas law is exact for every gas.
Physics: It is a model. Real gases deviate at high pressure and near condensation, where molecular size and attraction matter.
Key Facts
- The ideal gas law is PV = nRT, linking pressure, volume, amount of gas and absolute temperature.
- In SI units the gas constant is exactly R = 8.314 462 618... J/(mol·K).
- Temperature must be in kelvins and pressure must be absolute, not gauge pressure.
- Boyle's, Charles's, Gay-Lussac's and Avogadro's laws are all special cases of the ideal gas law.
- The molecular form PV = NkBT counts molecules instead of moles, and R = NAkB.
- One mole of an ideal gas at 0 °C and 101,325 Pa fills about 22.4 liters.
- The law works best at low pressure and high temperature and fails near condensation.
Quick Quiz: How Well Do You Know Ideal Gas Law (PV = nRT)?
6 questions. Tap an answer to check it.
In PV = nRT, what unit must temperature be in?
Gas laws need absolute temperature, which is measured in kelvins.
A fixed amount of gas is kept at constant temperature while its volume is halved. What happens to the pressure?
With n and T fixed, PV is constant, so halving V doubles P.
What is the value of R in SI units?
In SI units R is 8.314 462 618 J/(mol·K); 0.08206 is the value in L·atm/(mol·K).
Under which conditions does a real gas behave most like an ideal gas?
At low pressure and high temperature the molecules are far apart and fast, so their size and attraction matter least.
A sealed rigid container of gas is heated from 300 K to 600 K. What happens to its pressure?
With n and V fixed, pressure is proportional to absolute temperature, so doubling T doubles P.
Who first combined the gas laws into the single equation PV = nRT?
Émile Clapeyron stated the combined law in 1834.
Frequently Asked Questions
What is the ideal gas law in simple terms?
The ideal gas law says that for any gas, pressure times volume equals the amount of gas times a constant times the absolute temperature: PV = nRT. In plain words, a gas pushes harder when you add more of it, heat it, or squeeze it into less space. The equation lets you predict how one of those changes affects the others.
What is R in PV = nRT?
R is the ideal gas constant, also called the molar gas constant. In SI units it is exactly 8.314 462 618... J/(mol·K). With liters and atmospheres it becomes about 0.08206 L·atm/(mol·K). R equals Avogadro's number times the Boltzmann constant, so it is really the Boltzmann constant scaled up from one molecule to one mole.
What units do you use in the ideal gas law?
With R = 8.314 J/(mol·K), use pascals for pressure, cubic meters for volume, moles for amount and kelvins for temperature. If you prefer liters and atmospheres, switch to R = 0.08206 L·atm/(mol·K). The key is consistency: the units of R must match the units of every other quantity, and temperature must always be in kelvins.
Why must temperature be in kelvin for gas laws?
Gas pressure and volume are proportional to absolute temperature, which starts at absolute zero. The Celsius and Fahrenheit scales have their zeros at arbitrary points, so doubling a Celsius reading does not double the molecular energy. Only the kelvin scale makes the proportionality work. Using Celsius can even give negative volumes, which is a clear sign of the mistake.
What makes a gas ideal?
An ideal gas is a model in which molecules are treated as points with no volume that never attract or repel each other except during brief, perfectly elastic collisions. No real gas is exactly ideal, but most gases come close when they are at low pressure and far above the temperature where they would condense into a liquid.
When does the ideal gas law not work?
It loses accuracy at high pressures, where molecules are crowded and their own volume matters, and at low temperatures near condensation, where attractions between molecules become important. Gases with strong attractions, such as water vapor or ammonia, deviate sooner than helium or nitrogen. In those cases, equations with correction terms, such as the van der Waals equation, work better.
How is the ideal gas law related to Boyle's and Charles's laws?
Both are special cases. Hold the amount of gas and the temperature fixed and PV = nRT reduces to PV = constant, which is Boyle's law. Hold the amount and pressure fixed and it reduces to V/T = constant, which is Charles's law. The ideal gas law packs these and Avogadro's and Gay-Lussac's laws into one equation.
What is the difference between PV = nRT and PV = NkT?
They are the same law written for different counts. PV = nRT uses moles and the gas constant R, which suits chemistry and engineering. PV = NkBT uses the actual number of molecules and the Boltzmann constant, which suits molecular physics. Since one mole contains Avogadro's number of molecules, R equals Avogadro's number times kB.
Sources
Constants come from NIST CODATA 2022 (public domain) and unit definitions from the BIPM SI Brochure (CC BY 4.0). Text, diagrams and illustrations are original work by Physics Tribune.








