ChemistryIntermediateExperiment simulation~15 min

Gas Laws and Pressure

Why does a bicycle pump get harder to push, a balloon shrink in the freezer, and a car tyre gain pressure on a hot day? A gas is billions of particles racing around and crashing into the walls. Squeeze it, heat it or pump more in, measure the pressure from the collisions, and uncover the simple laws that every gas follows.

Explore Click any part to inspect it
Investigate

Boyle: pressure and volume. Charles: volume and temperature. P–T: pressure and temperature.

2.5
300
0.2

Pump gas in or let it out through a valve.

Key

  • Gas particle (colour = speed: blue slow, red fast)
  • Collision with a wall
  • Collision with the piston
  • Gauge mark: pressure predicted by PV = nRT
Pressure
—
Predicted by PV = nRT
—
Volume
—
Gas temperature
—
Amount of gas
—
Average speed of N₂ molecules at this temperature
—

Pressure over time

Measured pressure and the value predicted by PV = nRT over the last 60 seconds.

    How to use this simulator

    1. Press Start. Particles race around the cylinder; each flash on a wall is a collision. The gauge adds up their pushes to measure the pressure.
    2. In Explore, change the volume, temperature or amount of gas and watch the gauge and the graph.
    3. Choose Boyle (pressure and volume), Charles (volume and temperature) or P–T (pressure and temperature). Sliders for the quantities held constant are locked and marked.
    4. Change the free variable, wait a few seconds for the gauge to settle, and press Record point. Collect several points and compare them with the dashed prediction on the graph.
    5. Click the gauge, thermometer, piston, heater or particles for explanations. Reset restores the starting conditions.

    What is gas pressure?

    The kinetic theory of gases pictures a gas as tiny particles moving quickly in straight lines, bouncing off each other and the walls. Every time a particle bounces off a wall, it gives the wall a small push.Pressure is the total force of all those pushes on each square metre of wall:

    pressure = force ÷ area (1 Pa = 1 N/m²)

    Pressure rises if the particles hit the walls more often or harder. Every gas law comes from those two ideas. Normal air pressure at sea level is about 101 kPa.

    Temperature in kelvin

    Temperature measures the average kinetic energy of the particles, and the gas laws only work if it is measured fromabsolute zero, the temperature at which particle motion would be at its minimum. The kelvin scale does this: 0 K = −273.15 °C, and a change of 1 K equals a change of 1 °C.

    T (K) = T (°C) + 273.15

    Boyle’s law

    At constant temperature and amount of gas, pressure is inversely proportional to volume. Halve the volume and the particles have half as far to travel between collisions, so each part of the wall is hit twice as often: the pressure doubles. A pressure–volume graph is a curve, and P × V stays the same.

    P₁V₁ = P₂V₂ (T and n constant)

    Charles’s law

    At constant pressure and amount of gas, volume is proportional to the kelvin temperature. Heating makes the particles faster, so they push harder on a free piston; it rises until the pressure inside again matches the pressure outside. Plotted against kelvin temperature, the volume is a straight line through the origin.

    V₁ ÷ T₁ = V₂ ÷ T₂ (P and n constant)

    The pressure–temperature law

    At constant volume and amount of gas, pressure is proportional to the kelvin temperature. This is often called Gay-Lussac’s law (or Amontons’s law). In a rigid container, faster particles hit the walls both more often and harder. Extending the straight line on the graph backwards to zero pressure points to absolute zero, which is how scientists first estimated it.

    P₁ ÷ T₁ = P₂ ÷ T₂ (V and n constant)

    The ideal gas law

    Adding more gas also raises the pressure (or the volume): more particles mean more collisions. This isAvogadro’s law: at the same temperature and pressure, equal volumes of gas contain equal numbers of particles. All four relationships combine into one equation:

    PV = nRT

    P is pressure in pascals, V is volume in m³, n is the amount in moles, T is temperature in kelvin and R is the gas constant, 8.314 J/(mol·K). For example, 0.20 mol at 300 K in 2.5 L gives P = 0.20 × 8.314 × 300 ÷ 0.0025 ≈ 200 kPa, which is the simulator’s starting state.

    Key terms and formulas

    Pressure (P)
    Force per unit area, measured in pascals (Pa) or kilopascals (kPa).
    Absolute zero
    0 K, −273.15 °C: the lowest possible temperature.
    Ideal gas
    A model gas whose particles take up no space and do not attract each other. Real gases behave almost ideally at ordinary temperatures and pressures.
    Combined gas law
    P₁V₁ ÷ T₁ = P₂V₂ ÷ T₂ for a fixed amount of gas.

    Real-world applications

    • Breathing: your diaphragm enlarges your chest, lowering the air pressure in your lungs so that air flows in (Boyle’s law).
    • Hot-air balloons: heated air expands, so the air inside is less dense than the cooler air outside (Charles’s law).
    • Tyres are checked when cold, because driving warms them and raises their pressure.
    • Aerosol cans carry warnings not to heat them: in a rigid can the pressure rises with temperature.
    • Divers must breathe out while rising, because the air in their lungs expands as the water pressure falls.

    Common misconceptions

    • “Heated gas particles get bigger.” They move faster; the gas takes up more space only because they push the walls further apart.
    • “Doubling the Celsius temperature doubles the pressure.” Only kelvin temperatures are proportional.
    • “Pressure comes from the gas’s weight.” It comes from collisions, and pushes equally in every direction.
    • “Gas particles stop at 0 °C.” At 0 °C (273 K), air molecules average about 450 m/s.

    What the model simplifies

    The simulator is two-dimensional and uses an ideal gas: each dot represents about 6 × 10²⁰ molecules (0.001 mol), the dots take up no space, do not attract each other and, as in the simplest kinetic theory, bounce only off the walls and not off each other. The bottom and side walls exchange heat with the gas; the piston is insulated. The gauge really is measured from the simulated collisions, averaged over three seconds, and then converted to kilopascals with a fixed calibration factor so that it can be compared with PV = nRT. Because there are only a few hundred dots, measured values fluctuate by a few percent, just as real measurements have random error. The molecular speed readout is the real average speed of nitrogen molecules at the gas temperature; the dots on screen move far more slowly so that you can follow them. Real gases deviate from PV = nRT at high pressures, when the particles’ own size matters, and at low temperatures, when their attractions matter and they eventually condense.

    Key takeaways

    • Gas pressure is caused by particles colliding with the walls of their container.
    • Boyle’s law: at constant T and n, P × V is constant.
    • Charles’s law: at constant P and n, V ÷ T is constant (T in kelvin).
    • Pressure–temperature law: at constant V and n, P ÷ T is constant (T in kelvin).
    • All of them combine into the ideal gas law, PV = nRT.

    Knowledge check

    Gas Laws and Pressure: test your understanding

    Answer each question to get instant feedback and an explanation. Use the simulator to check your thinking.

    10 questions3 basic4 intermediate3 advanced

    0 of 10 answered

    1. Q1BasicAccording to the particle model, what causes gas pressure?
      Show answer

      Answer: B. Particles colliding with the walls of the container, each collision pushing on the wall

      Each bounce exerts a tiny force on the wall. Billions of collisions per second add up to a steady push per unit area: the pressure. The flashes on the cylinder walls show these collisions.

    2. Q2BasicIn the Boyle’s law investigation, which quantities are held constant?
      Show answer

      Answer: B. Temperature and the amount of gas

      Boyle’s law relates pressure and volume, so only those two may change. The heater keeps the temperature fixed and the cylinder is sealed, so the amount of gas cannot change.

    3. Q3IntermediateA sealed syringe holds 4.0 L of gas at 100 kPa. At constant temperature, it is squeezed to 2.0 L. What is the new pressure?
      Show answer

      Answer: C. 200 kPa

      Boyle’s law: P₁V₁ = P₂V₂, so P₂ = 100 × 4.0 ÷ 2.0 = 200 kPa. Halving the volume doubles how often particles hit each part of the wall.

    4. Q4IntermediateWhy must temperatures be in kelvin when using the gas laws?
      Show answer

      Answer: B. Because pressure and volume are proportional to the absolute temperature, which starts at absolute zero (0 K), not at the freezing point of water

      Doubling the temperature from 20 °C to 40 °C does not double the particles’ energy: in kelvin it goes from 293 K to 313 K, an increase of only about 7%. Only the kelvin scale is proportional to the particles’ average kinetic energy.

    5. Q5IntermediateIn the Charles’s law investigation, the gas is heated. Why does the piston rise?
      Show answer

      Answer: B. Faster particles push harder on the free piston, so it moves up until the pressure inside again matches the constant pressure outside

      The particles stay the same size and number. Faster particles hit the piston harder and more often; the piston rises until the larger volume brings the pressure back down to match the outside pressure.

    6. Q6IntermediateA gas at constant pressure occupies 3.0 L at 300 K. What volume does it occupy at 450 K?
      Show answer

      Answer: C. 4.5 L

      Charles’s law: V₁/T₁ = V₂/T₂, so V₂ = 3.0 × 450 ÷ 300 = 4.5 L.

    7. Q7BasicIn the pressure–temperature investigation, the piston is locked. The kelvin temperature is doubled. What happens to the pressure?
      Show answer

      Answer: C. It doubles

      At constant volume and amount, P/T is constant, so doubling the kelvin temperature doubles the pressure. The average particle speed rises by about √2, making each collision harder and collisions more frequent.

    8. Q8AdvancedIf the straight line on a pressure–temperature or volume–temperature graph is extended backwards, where does it reach zero?
      Show answer

      Answer: C. At about −273 °C (0 K, absolute zero)

      Extrapolating gas-law data led scientists to absolute zero, −273.15 °C. Real gases condense to liquids long before reaching it, so the line is an extrapolation, not a measurement.

    9. Q9AdvancedUsing PV = nRT, what is the pressure of 0.20 mol of gas in 2.5 L at 300 K? (R = 8.314 J/(mol·K); 1 L = 0.001 m³)
      Show answer

      Answer: B. About 200 kPa

      P = nRT/V = 0.20 × 8.314 × 300 ÷ 0.0025 ≈ 200,000 Pa = 200 kPa, about twice normal air pressure. This is the simulator’s starting state.

    10. Q10AdvancedWhich statement about the simulator’s gas is correct?
      Show answer

      Answer: B. It is an ideal gas: its particles take up no space and do not attract each other, so it obeys PV = nRT; real gases deviate at high pressure and low temperature

      The gauge really is measured from the simulated collisions; the ideal-gas assumptions are what make it agree with PV = nRT. Real particles have size and attract each other, which matters when they are squeezed close together or move slowly.

    References and further reading

    1. Flowers, P., et al. (2019). Chemistry 2e, Section 9.2: Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law. OpenStax. openstax.org (opens in a new tab)
    2. Flowers, P., et al. (2019). Chemistry 2e, Section 9.5: The Kinetic-Molecular Theory. OpenStax. openstax.org (opens in a new tab)
    3. Flowers, P., et al. (2019). Chemistry 2e, Section 9.6: Non-Ideal Gas Behavior. OpenStax. openstax.org (opens in a new tab)
    4. NIST (2019). CODATA value: molar gas constant R = 8.314 462 618 J mol⁻¹ K⁻¹. physics.nist.gov (opens in a new tab)

    This simulator is a simplified educational model. Found an error? Let us know. See our educational disclaimer.