Three gas laws in one expression

Boyle's law links pressure and volume at constant temperature, Charles's law links volume and temperature at constant pressure, and Gay-Lussac's law links pressure and temperature at constant volume. The combined gas law merges them for a sealed sample whose pressure, volume and temperature all change. This page uses it to find the final pressure when the starting state and the final volume and temperature are known. The method follows the ideal gas law section of OpenStax College Physics. It suits tires warming up, a syringe being compressed, a sealed container being heated and many classroom problems with a fixed amount of gas.

Solving the combined gas law for final pressure

For a fixed amount of ideal gas, p1 × V1 / T1 equals p2 × V2 / T2. Solving for the final pressure gives p2 = p1 × V1 × T2 / (T1 × V2). Pressures must be absolute, measured from a perfect vacuum, and temperatures must be on an absolute scale such as kelvin. Volume units can be anything as long as they are the same for V1 and V2, but the page labels cubic meters. The ratios matter more than the units of volume. Any of the three variables can be left unchanged, in which case the corresponding ratio becomes 1 and the combined law reduces to one of the three simpler laws.

Compressing and heating gas from 300 K to 450 K

The page starts with p1 of 100,000 Pa, V1 of 2 m³, T1 of 300 K, V2 of 1 m³ and T2 of 450 K. The volume ratio V1 / V2 is 2, which doubles the pressure, and the temperature ratio T2 / T1 is 1.5, which raises it by half again. Together they make 100,000 × 2 × 1.5 = 300,000 Pa, a factor of three. This is a large compression and heating, chosen to make the two effects easy to see. A 300 kPa absolute pressure is about 2.96 atm, so a gauge on the container would read about 200 kPa above the surrounding air.

Absolute versus gauge pressure

Tire gauges, boiler gauges and many hand pumps read gauge pressure, which is the pressure above the surrounding atmosphere. The law needs absolute pressure, so add the local atmospheric pressure before entering a gauge value. Standard atmosphere is 101,325 Pa. A gauge reading of 220,000 Pa therefore corresponds to about 321,325 Pa absolute. Skipping this step is the most frequent error with tires and cylinders, and it makes the predicted pressure rise too small. After calculating, subtract the atmosphere again if you want to compare the answer with a gauge. Check whether your original reading was gauge or absolute before you begin.

Temperature must be in kelvin

The law is derived for absolute temperature. Convert Celsius to kelvin by adding 273.15, so 20 °C is 293.15 K and 60 °C is 333.15 K. Fahrenheit needs conversion to Celsius first. Using Celsius directly gives wrong and sometimes absurd results, such as a temperature of 0 °C appearing to give zero pressure. As an example, a rigid sealed container at 100,000 Pa and 20 °C heated to 60 °C, with no change in volume, reaches 100,000 × 333.15 / 293.15, or 113,645 Pa. The pressure rises by about 13.6 percent, not 200 percent, as a naive Celsius ratio would suggest.

Compressing a gas

A hand pump traps 0.0005 m³ of air at 101,325 Pa and 300 K. Compressed quickly to 0.0001 m³, it would heat up, but suppose it is allowed to cool back to 300 K. The final pressure is then 101,325 × 5 = 506,625 Pa absolute. If instead the temperature rises to 330 K during the squeeze, the same compression gives 101,325 × 5 × 1.1, or about 557,288 Pa. In real pumps, quick compression is closer to adiabatic and heats the gas, so entering the actual final temperature matters. This page needs that temperature as an input and does not predict it. When the compression is slow enough for the temperature to stay at 300 K, the expression reduces to Boyle's law, p2 = p1 × V1 / V2. A sealed syringe holding 100 mL of air at 101,325 Pa and pushed to 50 mL then reads 202,650 Pa absolute. Enter 0.0001 m³ and 0.00005 m³ for the volumes, and the same value for both temperatures.

Heating at constant volume

A sealed rigid container holding gas at 300,000 Pa absolute and 300 K is warmed to 330 K. With V1 equal to V2, the page gives 300,000 × 330 / 300 = 330,000 Pa. The pressure rises in proportion to absolute temperature, which is why sealed aerosol cans carry warnings about heat. A rise of 10 percent in kelvin gives a rise of 10 percent in pressure. The model assumes a rigid container and a fixed amount of gas, so a container that expands, leaks or has a liquid inside will behave differently. Real safety limits come from the container ratings and manufacturer instructions.

When the ideal gas model holds

The law works well for gases at moderate pressures and temperatures well above where the gas would liquefy, such as air at room conditions. Deviations grow at high pressure and low temperature, where molecular volume and attractions matter, and for vapors near their boiling point. Condensing water vapor and chemical reactions change the amount of gas and break the assumption. Humid air in a sealed container can behave differently as the temperature falls and water condenses. The page therefore suits dry gas samples with a fixed amount. A quick test of whether the model is reasonable is the pressure itself. Air at a few hundred kilopascals and near room temperature follows the ideal law to within a small fraction of a percent, while the same air at hundreds of atmospheres does not. When a result lands far above ordinary pressures, consult a real-gas equation of state or tabulated data from a source such as NIST instead of trusting the ideal estimate.

Scope and limits of the page

The calculator needs the same sample before and after, with no leaks, additions or chemical change. All outputs must be finite, so the initial temperature and final volume cannot be zero. It performs a scalar calculation and does not check the strength of any container, the heat transfer involved or the work done by the gas. Pressure vessels, gas cylinders and compressors fall under codes and manufacturer limits, and the result here must not stand in for them. Use it to understand relations and to make first estimates.