On this concept: Formula

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

Chemistry · Quantity & Proportion · Grade 9-12

Gas Laws

The gas laws are mathematical relationships that describe how the pressure, volume, temperature, and amount (moles) of a gas are interconnected.

PV=nRT (ideal gas law)

Quick Answer

The gas laws are mathematical relationships that describe how the pressure, volume, temperature, and amount (moles) of a gas are interconnected. Use them whenever a gas is squeezed, heated, cooled, pumped up or let out: tires on a cold morning, a sealed syringe, a weather balloon. The ideal gas law PV=nRT links all four quantities at once, and Boyle's, Charles's and Avogadro's laws are its special cases when the other variables are held fixed. Temperature must always be in kelvin.

Why This Matters

With the gas laws you can predict a tire's pressure on a frosty morning, how large a weather balloon grows at altitude, or how many moles a gas tank holds from its pressure gauge. Gases are hard to weigh, so measuring P, V and T is often the only practical way to count them. Use Celsius instead of kelvin and the predictions come out wrong, sometimes absurdly so.

Intuitive Explanation

A gas is a crowd of molecules flying in straight lines and bouncing off the walls of their container. Pressure is the push of all those collisions on each square metre of wall. Four quantities set how hard the walls get hit: how many molecules there are (n), how fast they move (temperature, T), how much room they have (volume, V), and the result, the pressure (P).

Each law follows from that picture. Squeeze the same gas into half the space and each bit of wall is hit twice as often, so the pressure doubles (Boyle's law). Heat the gas and the molecules hit harder and more often; if a wall can move, the gas spreads out until the pressure balances again, so volume grows with temperature (Charles's law). Add more molecules and you need more room to keep the same pressure (Avogadro's law). The ideal gas law PV=nRT combines all three, with the gas constant R=0.0821 L·atm/(mol·K) matching the units.

Temperature has to be absolute. At 0 °C the molecules are still moving fast; only at 0 K, which is −273.15 °C, would they stop. So warming a gas from 10 °C to 20 °C does not double anything: in kelvin it goes from 283 K to 293 K, a 3.5% rise.

Not every pressure problem is a gas law problem. The pressure at the bottom of a pool depends on depth, and liquids hardly compress: double the pressure on a litre of water and it is still almost exactly a litre. The gas laws work only because gas molecules are far apart, with mostly empty space between them.

Think of it like this. A gas behaves like a room full of bouncing balls: pack them into a smaller room, add more balls, or make them bounce faster, and the walls get hit harder. The picture predicts all four variables. It ignores the slight pull real molecules have on each other, which starts to matter at high pressure and low temperature.

Core idea. Gas pressure comes from molecules hitting the walls, so it rises with more molecules, faster molecules (a higher kelvin temperature) or less room. The ideal gas law PV=nRT captures all of these effects in one equation.


When to Use

Use the gas laws when a problem describes a gas with some of pressure, volume, temperature and moles, and asks for another. For one state with one unknown, use PV=nRT. For a fixed amount of gas going from a before state to an after state, use P1V1T1=P2V2T2 and cancel whatever stays constant. Convert temperatures to kelvin first. For liquids and solids, which barely compress, the gas laws do not apply.

Tip. Ask: Does the gas problem need three or more of pressure, volume, temperature and moles, not just one pair?

How to Recognize It

Gas problems differ in which quantities move, so list pressure, volume, temperature and moles and mark each one as known, unknown or held fixed.

  1. Is the gas in a single state, with three of P, V, n and T known and one unknown?

    Then use PV=nRT once. If the gas moves from one state to another, compare the two states instead.

  2. Do only pressure and volume change, with temperature and amount fixed?

    That special case is Boyle's Law. If temperature changes as well, use the combined gas law, P1V1/T1=P2V2/T2.

  3. Do only volume and temperature change, at fixed pressure?

    That is Charles's Law. If only volume and moles change, it is Avogadro's Law.

  4. Is the substance actually a gas, well away from condensing into a liquid?

    Yes means the ideal gas law works well. Liquids and solids barely change volume under pressure, so the gas laws do not describe them.

Gas Laws vs Boyle's Law vs Charles's Law vs Avogadro's Law

Each named law is the ideal gas law with two quantities held fixed, so it is easy to grab a special case when the general law is needed. Ask which of P, V, T and n are actually changing.

Gas Laws

Meaning
The gas laws connect a gas's pressure, volume, temperature and moles, summed up in the ideal gas law.
Key test
Three or four of P, V, T, n involved, or one state solved alone.
Formula
PV=nRT
Example
0.800 mol of O₂ in a 10.0 L tank at 298 K is at 1.96 atm.

Boyle's Law

Meaning
Boyle's law says that at fixed temperature and amount, pressure and volume are inversely proportional.
Key test
Only P and V change.
Formula
P1V1=P2V2
Example
Halving a sealed syringe's volume at room temperature doubles the gas pressure.

Charles's Law

Meaning
Charles's law says that at fixed pressure and amount, volume is proportional to kelvin temperature.
Key test
Only V and T change, with T in kelvin.
Formula
V1/T1=V2/T2
Example
A balloon at 300 K that cools to 270 K shrinks by 10%.

Avogadro's Law

Meaning
Under Avogadro's law, adding gas at constant temperature and pressure makes the volume grow in step with the moles.
Key test
Only V and n change.
Formula
V∝n
Example
Pumping in twice the moles doubles a balloon's volume if T and P stay the same.

Formula & Notation

PV=nRT (ideal gas law)
The ideal gas law PV=nRT relates pressure P (in atm or Pa), volume V (in L or m³), amount n (in mol), temperature T (in K), and the gas constant R=0.0821 L⋅atm/(mol⋅K) or 8.314 J/(mol⋅K). It assumes no intermolecular forces and negligible particle volume.

How to read it: P is pressure (atm or kPa), V is volume (L), n is moles, R=0.0821 L·atm/(mol·K) is the gas constant, and T is temperature in kelvin (K).

Worked Examples

Example 1 — Pressure in a gas tank

Easy

A 10.0 L steel tank holds 2.00 mol of nitrogen gas at 27 °C. What is the pressure inside, in atmospheres?
Show the steps and the answer
  1. Convert the temperature: T=27+273=300 K.

    PV=nRT is built on absolute temperature; a Celsius value would give the wrong pressure.

  2. Choose R=0.0821 L·atm/(mol·K).

    The volume is in litres and the answer is wanted in atm, so this value of R makes the units cancel.

  3. Rearrange PV=nRT to P=nRTV.

    Pressure is the unknown; n, T and V are all given.

  4. Substitute: P=(2.00)(0.0821)(300)10.0=49.2610.0=4.93 atm.

    mol, L and K cancel, leaving atm.

Answer: P≈4.93 atm

Takeaway: For a single state, PV=nRT gives the missing variable once temperature is in kelvin and R matches the units.

Example 2 — Contrast: two variables change at once

Standard

A weather balloon holds 5.00 L of helium at 1.00 atm and 27 °C. It rises to where the pressure is 0.500 atm and the temperature is −33 °C. What is its new volume?
Show the steps and the answer
  1. List both states: P1=1.00 atm, V1=5.00 L, T1=300 K; P2=0.500 atm, T2=−33+273=240 K.

    No helium is added or lost, so n is constant and cancels; R is not needed.

  2. Use P1V1T1=P2V2T2, so V2=V1×P1P2×T2T1.

    Pressure and temperature both change, so Boyle's law or Charles's law alone would miss one of the two effects. That is the signal to use the combined form.

  3. Substitute: V2=5.00×1.000.500×240300=5.00×2×0.800=8.00 L.

    The pressure factor and the temperature factor are applied together.

  4. Sense check: the pressure drop alone would give 10.0 L; the cold shrinks that to 8.00 L.

    Lower pressure lets the gas expand and lower temperature makes it contract, so the answer must sit below 10.0 L.

Answer: V2=8.00 L

Takeaway: When more than one variable changes, put every change into P1V1T1=P2V2T2 instead of choosing a single law.

Example 3 — Find the mistake: Celsius in a ratio

Application

A sealed, rigid can of air is at 1.00 atm and 20 °C. It is warmed to 40 °C. Ravi writes: "The temperature doubles, so the pressure doubles: P2=2.00 atm." Find the mistake and correct it.
Show the steps and the answer
  1. Spot the error: Ravi divided 40 °C by 20 °C.

    Pressure is proportional to absolute temperature. The zero of the Celsius scale is only the freezing point of water, not zero motion, so a ratio of Celsius values is meaningless.

  2. Convert: T1=20+273=293 K and T2=40+273=313 K.

    Kelvin starts at true zero, so ratios of kelvin temperatures are physical.

  3. With V and n fixed, P1T1=P2T2: P2=1.00×313293=1.07 atm.

    The rigid can keeps the volume constant, so all of the heating shows up as pressure.

  4. Check the size: 313 K is about 7% more than 293 K, so the pressure rises about 7%.

    Really doubling the pressure would need 2×293=586 K, which is 313 °C.

Answer: P2≈1.07 atm

Takeaway: Convert to kelvin before taking any ratio of temperatures; Celsius ratios exaggerate the change.

Where You'll See It

  • Car tire pressure in winter

    On a cold morning the tire-pressure light comes on. By PV=nRT, the cold air (lower T) at fixed volume drops the pressure, even though no air leaked out.

  • Bag of chips on a flight

    A sealed chip bag puffs up in an airplane cabin. The outside pressure drops at altitude, so by the gas laws the trapped gas expands to a larger volume.

  • Inflating a basketball

    Adding more air with a pump increases n (moles of gas). By PV=nRT at fixed volume and temperature, more moles means higher pressure, so the ball gets firmer.

Common Mistakes

  1. The slip: Plugging temperature in degrees Celsius (or Fahrenheit) into a gas-law equation.

    Why it's tempting: Lab thermometers read Celsius, so students use the number they measured without converting.

    Instead: Gas-law temperature must be absolute (Kelvin): K=∘C+273.15. Using Celsius can even give a negative or zero T, which is physically impossible for a gas.

  2. The slip: Treating R as a single fixed number regardless of the pressure and volume units used.

    Why it's tempting: R is called a 'constant,' so it seems like one value should always work.

    Instead: R's value depends on units (e.g., 0.0821 L⋅atm⋅mol−1K−1 vs 8.314 J⋅mol−1K−1). Match R to the units of P and V in the problem.

  3. The slip: Using a gas law for a liquid or solid, such as expecting water in a sealed syringe to shrink to half its volume when the pressure doubles.

    Why it's tempting: Every substance has a pressure, a volume and a temperature, so the same equations seem like they should work for all of them.

    Instead: Gas laws work only for gases, whose molecules are far apart with mostly empty space between them. Double the pressure on a litre of water and it is still almost exactly a litre, because liquid molecules already touch.


Mini Practice

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

  1. What volume does 1.00 mol of an ideal gas occupy at 273 K and 1.00 atm? Use R=0.0821 L·atm/(mol·K).

    Hint: Rearrange PV=nRT to get V by itself.

  2. 2.00 mol of gas is held in a 10.0 L tank at 300 K. What is the pressure? Use R=0.0821 L·atm/(mol·K).

    Hint: Solve PV=nRT for P.

  3. A 5.00 L flask holds a gas at 2.00 atm and 25 °C. How many moles of gas are inside? Use R=0.0821 L·atm/(mol·K).

    Hint: Change the temperature to kelvin before using the equation.

  4. A gas sample takes up 4.0 L at 1.0 atm and 300 K. It is changed to 2.0 atm and 450 K. What is its new volume?

    Hint: Use P1V1T1=P2V2T2 with the amount of gas fixed.

  5. The air in a sealed syringe is squeezed slowly at room temperature from 60 mL to 20 mL. Do you need the full ideal gas law, or is Boyle's law enough?

    Hint: List which of P, V, n and T actually change.

  6. For a gas at 2.00 atm in 1.00 L at 25 °C, a student writes: "n=2.00×1.000.0821×25=0.974 mol." Find and fix the error.

    Hint: Which temperature scale do gas laws need?

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 must temperature be in kelvin when pressure can be in almost any unit?

The gas laws are proportions, and a proportion only works on a scale that starts at a true zero. Zero kelvin is the bottom of the temperature scale, so doubling the kelvin temperature really doubles the effect, while 0 °C is only the freezing point of water. Pressure and volume scales start at true zero in every unit, so any unit works in a ratio; in PV=nRTPV = nRT they must match the units of R.

What is STP, and why does a mole of gas fill 22.4 L there?

STP means standard temperature and pressure, traditionally 0 °C (273.15 K) and 1 atm. Putting n=1n = 1 mol into V=nRT/PV = nRT/P gives 1×0.08206×273.15÷1=22.41 \times 0.08206 \times 273.15 \div 1 = 22.4 L for any ideal gas, whatever it is made of. Some newer books define STP with 1 bar instead of 1 atm, which gives 22.7 L, so check which definition your course uses.

Why do weather balloons burst high in the sky?

As the balloon rises, the air pressure outside falls and the helium inside expands until its pressure matches. At about 30 km the pressure is roughly 1% of its sea-level value, so the gas tries to grow to dozens of times its launch volume, even though the cold air shrinks it a little. The rubber stretches to several metres across and finally bursts, and the instruments come down by parachute.

Learning Path

Gas Laws

You are here

You need Mole (counting particles in moles) and Particle Theory (matter as moving particles) first. The gas laws add equations that link pressure, volume, temperature and amount, with temperature in kelvin. Next, Boyle's Law, Charles's Law and Avogadro's Law each study one pair of variables while the others are held fixed.

See Also