On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Physics · Fluids & Thermodynamics · Grade 9-12

Ideal Gas Law

The ideal gas law relates the pressure, volume, temperature, and amount of an ideal gas in one equation.

PV=nRT

Quick Answer

The ideal gas law relates the pressure, volume, temperature, and amount of an ideal gas in one equation. That equation is PV=nRT, with T in kelvin and R=8.314 J/(mol·K). Use it to find any one of P, V, n or T from the other three, or to predict how a sealed gas responds when you heat it, squeeze it or add more of it: tyres gain pressure on a hot day, balloons shrink in the cold. Real gases follow it closely at ordinary temperatures and pressures.

Why This Matters

With PV=nRT you can count the moles of air in a room, explain why an aerosol can must not be heated, predict how much a weather balloon swells as it rises, and see how hot gas in an engine pushes a piston. It links pressure and temperature to molecules hitting walls. It also shows why the kelvin scale is needed: in Celsius, a gas at 0 °C would seem to have zero pressure, which is plainly false.

Intuitive Explanation

Block the nozzle of a syringe holding 60 mL of air and push the plunger to 30 mL: the air pushes back about twice as hard. Halving the volume doubles the pressure. Now keep the volume fixed and warm the air from 300 K to 360 K: the pressure rises by the same factor as the temperature, 1.2. Pump in twice as many molecules at the same volume and temperature, and the pressure doubles again. The ideal gas law packs all three observations into one equation, PV=nRT.

Temperature must be in kelvin because pressure comes from molecules striking the walls, and their motion falls to its minimum at absolute zero, 0 K or −273 °C. The warming above, 300 K to 360 K, is 27 °C to 87 °C. The Celsius numbers would suggest the pressure more than triples, which is wrong; only the kelvin ratio, 1.2, matches what the gauge shows.

'Ideal' means the model treats molecules as points that never attract one another. That fits air at room conditions very well: 1.00 mol at 273 K and 101,325 Pa fills about 22.4 L, and real air is within a fraction of a percent of that. The model fails for a gas squeezed to very high pressure or cooled close to the point where it condenses, because the molecules' size and attraction start to matter. It never applies to liquids or solids, which barely change volume when heated or squeezed.

Think of it like this. A gas behaves like a handful of squash balls flying around a closed court, and pressure is how hard and how often they hit the walls. Add more balls, make them fly faster by heating, or shrink the court, and the walls take more pounding, just as PV=nRT says. Real molecules attract each other slightly, so the picture slips when a gas is close to turning liquid.

Core idea. A gas's pressure, volume, temperature and amount are tied together by PV=nRT: change one and at least one other must change, with temperature always measured in kelvin.


When to Use

Use the ideal gas law when the substance is a gas and the problem gives three of pressure, volume, temperature and moles, or asks how one changes when the others change in a sealed container. For before-and-after problems with a fixed amount of gas, use P1V1T1=P2V2T2. If the substance is a liquid or solid, or the gas is condensing, the law does not apply; if the question asks for heating energy, use specific heat capacity.

Tip. Ask: Is the substance a gas, with its pressure, volume, temperature or amount unknown or changing?

How to Recognize It

The ideal gas law applies only to gases, so first check the state of the substance, then see which of pressure, volume, temperature and amount are known.

  1. Is the substance a gas, such as air in a tyre, helium in a balloon or steam well above boiling?

    Yes allows PV=nRT. A liquid or solid being warmed, like water in a kettle, does not follow it; use Specific Heat Capacity for that.

  2. Are three of P, V, n and T known, or is a sealed gas changing from one state to another?

    Yes: solve PV=nRT for the missing one, or use P1V1/T1=P2V2/T2 when the amount is fixed. If only a force on an area is involved, use Pressure.

  3. Does the gas's pressure or volume respond to a temperature change, like a tyre warming in the sun?

    Yes is the gas law at work, with temperature in kelvin: warming from 27 °C (300 K) to 57 °C (330 K) at fixed volume raises the pressure by 10%. If the question asks for the energy the warming needs, use Specific Heat Capacity.

  4. Is the gas at ordinary pressure and well above the temperature at which it would turn liquid?

    Yes means the ideal model is accurate to within a few percent. Near condensation, or at hundreds of atmospheres, the size and attraction of molecules matter, and a real-gas model such as the van der Waals equation does better.

Ideal Gas Law vs Pressure vs Temperature vs Specific Heat Capacity

The gas law contains pressure and temperature, and heating problems contain temperature too, so students reach for PV=nRT too often. Ask whether the substance is a gas whose state is changing, or something else being warmed or pressed.

Ideal Gas Law

Meaning
The ideal gas law links the pressure, volume, absolute temperature and amount of a gas in one equation.
Key test
Needs a gas and a temperature in kelvin; links four state quantities.
Formula
PV=nRT
Example
Heating a sealed can's air from 300 K to 600 K doubles its pressure, which is why aerosol cans warn against heat.

Pressure

Meaning
Pressure is the force on each square metre of a surface, which a gas produces by molecules striking the walls.
Key test
One quantity, force over area; it does not need a gas at all.
Formula
P=FA
Example
A 2,000 N push on a 0.01 m² piston gives 200,000 Pa.

Temperature

Meaning
Temperature measures how hot something is, and gas laws need it on the kelvin scale, which starts at absolute zero.
Key test
In the gas law it must be in kelvin: add 273 to the Celsius value.
Formula
T(K)=T(∘C)+273.15
Example
Going from 10 °C to 20 °C raises the kelvin temperature only from 283 K to 293 K, about 3.5%.

Specific Heat Capacity

Meaning
Specific heat capacity is the energy needed to warm 1 kg of a material by one degree.
Key test
Asks for the energy to change a temperature, often of a solid or liquid.
Formula
Q=mcΔT
Example
Heating 0.5 kg of water by 40 °C needs about 84 kJ, a job for the specific heat formula.

Formula & Notation

PV=nRT
For an ideal gas, PV=nRT, where R is the universal gas constant. The model assumes particles with negligible volume and no intermolecular forces.

How to read it: P is pressure, V is volume, n is amount in moles, R is the gas constant, and T is absolute temperature in kelvin.

Worked Examples

Example 1 — Moles of helium in a tank

Easy

A 0.050 m³ steel tank holds helium at a pressure of 2.0×106 Pa and a temperature of 27 °C. How many moles of helium are inside (R=8.314 J/(mol·K))?
Show the steps and the answer
  1. Convert the temperature: T=27+273=300 K.

    The law uses absolute temperature; 27 in Celsius would give an answer 11 times too large.

  2. Check the units: pascals and cubic metres go with R=8.314 J/(mol·K).

    A pascal times a cubic metre is a joule, which matches the joules inside R.

  3. Solve for n: n=PVRT=(2.0×106)(0.050)8.314×300=1.0×1052494≈40 mol.

    Rearranging PV=nRT isolates the amount of gas.

  4. Sense check: helium has a molar mass of 4.0 g/mol, so the tank holds about 160 g of gas.

    A small mass for a large tank is what you would expect from the lightest gas but one.

Answer: About 40 mol of helium (roughly 160 g).

Takeaway: Convert to kelvin, match the units to R, then rearrange PV=nRT for the unknown.

Example 2 — When the gas starts to condense

Hard

A sealed 1.0 L flask holds 0.010 mol of water vapour at 400 K. (a) Use PV=nRT to find the pressure. (b) The flask cools to 300 K. Find the pressure the ideal gas law predicts, then explain why the measured pressure is only about 3.5 kPa and droplets form on the glass.
Show the steps and the answer
  1. (a) P=nRTV=0.010×8.314×4001.0×10−3≈3.3×104 Pa.

    1.0 L is 1.0×10−3 m³. At 400 K all the water is vapour, spread thinly, so the ideal model fits.

  2. (b) With n and V fixed, P is proportional to T: P=3.33×104×300400≈2.5×104 Pa.

    This is the prediction if every molecule stayed in the gas.

  3. Compare: the measured 3.5 kPa is only about one seventh of the predicted 25 kPa.

    A gap that large is not measurement error; one of the law's assumptions has broken.

  4. Find the gas left: n=PVRT=3500×1.0×10−38.314×300≈0.0014 mol.

    At 300 K water molecules attract each other strongly enough to stick together, so about 86% of them have condensed into droplets and left the gas.

Answer: (a) About 33 kPa. (b) The law predicts about 25 kPa, but roughly 86% of the vapour condenses, leaving only about 3.5 kPa.

Takeaway: The ideal gas law describes gases well away from condensing; once a vapour turns to liquid, the amount of gas n changes and the prediction fails.

Example 3 — Find the mistake: Celsius ratios

Application

A sealed aerosol can holds gas at 2.0×105 Pa at 20 °C and is left in a hot car, where it reaches 60 °C. Zoe writes: "The temperature triples from 20 to 60, so the pressure triples to 6.0×105 Pa." Find the mistake and correct it.
Show the steps and the answer
  1. Note what stays fixed: the can is sealed and rigid, so n and V are constant and P is proportional to T.

    That proportion holds only for absolute temperature.

  2. Convert: T1=20+273=293 K and T2=60+273=333 K.

    0 °C is not where molecular motion stops, so 60 °C is not 'three times as hot' as 20 °C.

  3. P2=P1×T2T1=2.0×105×333293≈2.27×105 Pa.

    The ratio 333/293 is about 1.14.

  4. Interpret: the pressure rises by about 14%, not 200%.

    Still a real risk, which is why cans warn against heat, but far from Zoe's figure.

Answer: P2≈2.3×105 Pa, about 14% higher, not tripled.

Takeaway: Convert to kelvin before taking any ratio of temperatures; ratios of Celsius readings have no physical meaning.

Where You'll See It

  • A bag of chips puffs up on a mountain

    Carrying a sealed chip bag up a mountain makes it swell, because lower outside pressure lets the trapped gas expand its volume (PV=nRT).

  • Car tire pressure rises on a hot day

    Tires read higher pressure after driving or on a hot day because heating the trapped air raises T, and with fixed volume the pressure P must rise.

  • A balloon shrinking in the freezer

    Put an inflated balloon in the freezer and it shrinks, because lowering the temperature T of the gas reduces the volume it occupies at constant pressure.

Common Mistakes

  1. The slip: You can plug the temperature in degrees Celsius into PV=nRT.

    Why it's tempting: Celsius is the everyday temperature unit, so it feels like the natural choice.

    Instead: Temperature in the ideal gas law must be absolute (kelvin); using Celsius (which can even be negative or zero) gives wrong or nonsensical results.

  2. The slip: Any consistent-looking set of units works as long as you keep them the same.

    Why it's tempting: The 'use consistent units' rule is real, so students think any mix is fine.

    Instead: Pressure and volume units must match the value of R you choose (for example, R=8.314 J/(mol·K) needs pressure in pascals and volume in cubic meters).

  3. The slip: You put the mass of the gas in grams in for n in PV=nRT.

    Why it's tempting: Problems often give the gas as a mass, and n looks like it just means 'how much gas'.

    Instead: n is the amount in moles, so divide the mass by the molar mass first: 160 g of helium at 4.0 g/mol is 160/4.0=40 mol, not 160.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. 2.0 mol of gas is held in a 0.050 m³ container at 300 K. What is its pressure? Use R=8.31 J/(mol·K).

    Hint: Rearrange PV=nRT to get P alone, with volume in m³.

  2. A 0.024 m³ flask holds air at 101,000 Pa and 293 K. How many moles of gas are inside?

    Hint: Solve PV=nRT for n.

  3. A sealed rigid can holds gas at 200 kPa and 27°C. It is heated to 127°C. What is the new pressure?

    Hint: With fixed volume and amount, PT stays constant. Use kelvin.

  4. A balloon holds 2.0 L of air at 300 K. It is cooled to 250 K while the pressure stays the same. What is its new volume?

    Hint: At constant pressure, VT stays constant.

  5. A sealed steel tank of air at 100 kPa is warmed from 20°C to 60°C. The question asks for the new pressure. Ideal gas law or specific heat capacity?

    Hint: Is the question about the energy needed, or about how pressure follows temperature in a gas?

  6. Gas in a rigid container is at 150 kPa and 20°C. It is heated to 40°C. A student says: "The temperature doubled, so the pressure doubles to 300 kPa." Correct this.

    Hint: The gas law needs absolute temperatures. Convert both to kelvin.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why does the ideal gas law not care which gas it is?

At ordinary conditions gas molecules are far apart, about ten times their own size, so they hardly interact and their size barely matters. Pressure then depends on how many molecules hit the walls and how hard, which is set by the number of moles and the temperature, not by the type of molecule. One mole of any ideal gas fills about 22.4 litres at 0 °C and 1 atmosphere.

What is absolute zero, and does the gas law predict it?

If you cool a gas at constant volume, its pressure falls in a straight line with temperature. Extend that line and it reaches zero pressure at about -273 °C, which is why that point, 0 K, is called absolute zero. Real gases turn liquid long before reaching it, so the law cannot be followed all the way down, but that straight-line trend is how absolute zero was first estimated.

How is the ideal gas law related to Boyle's law and Charles's law?

They are special cases of it. Hold the amount and temperature fixed and PV=nRTPV = nRT becomes Boyle's law, PV=constantPV = \text{constant}: halve the volume of air in a sealed syringe and its pressure doubles. Hold the amount and pressure fixed and you get Charles's law, V/T=constantV/T = \text{constant}, which is why heated air expands. The combined law P1V1/T1=P2V2/T2P_1V_1/T_1 = P_2V_2/T_2 follows the same way.

Why is n counted in moles rather than in grams?

Pressure depends on how many particles hit the walls, not on how much each one weighs, so the law needs a count of particles. One mole is 6.02×10236.02 \times 10^{23} particles. Four grams of helium and 32 g of oxygen are both one mole, so in the same container at the same temperature they give the same pressure, even though the oxygen is eight times heavier.

Learning Path

Ideal Gas Law

You are here

Next →

Nothing after this yet
You need Pressure (force per area, in pascals) and Temperature, including the kelvin scale, first. The ideal gas law adds one equation linking P, V, n and T for any gas at ordinary conditions. With it you can solve gas-volume problems in chemistry, analyse how engines and refrigerators use gases, and later study the kinetic theory of gases, which derives the same law from the motion of molecules.

See Also