Works on this device
Gas Law Calculator
Work out how a gas changes from one state to another: its pressure, volume, temperature or amount. Choose the law, choose the value you want to find, and enter the others. For a mixture of gases, find each partial pressure.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose the law. Use the combined gas law when pressure, volume and temperature all change; use one of the simpler laws when one of them stays the same.
- In the Find menu, choose the value you are missing, for example the final volume V2.
- Enter the other values with their units. P1 and P2 may be in different units, and so may V1 and V2: the tool turns everything into SI units first.
- Choose Calculate. The answer comes in the unit of the matching initial or final value, and How it was worked out shows the law with your numbers.
The gas laws
- Boyle's law (fixed temperature and amount): P1 × V1 = P2 × V2.
- Charles's law (fixed pressure and amount): V1 ÷ T1 = V2 ÷ T2.
- Gay-Lussac's law (fixed volume and amount): P1 ÷ T1 = P2 ÷ T2.
- Avogadro's law (fixed temperature and pressure): V1 ÷ n1 = V2 ÷ n2.
- Combined gas law (fixed amount): P1 × V1 ÷ T1 = P2 × V2 ÷ T2.
- Dalton's law: each gas in a mixture has a partial pressure p = x × P, where x is its mole fraction and P the total pressure. The partial pressures add up to the total.
- All of these come from the ideal gas law P V = n R T, so they give the same answers as the Ideal Gas Law Calculator.
Worked examples
Boyle: 2 L of gas at 100 kPa is squeezed to 200 kPa at the same temperature. V2 = 100 × 2 ÷ 200 = 1 L.
Charles: 2 L of gas at 20 °C (293.15 K) is warmed to 80 °C (353.15 K) at the same pressure. V2 = 2 × 353.15 ÷ 293.15 = 2.40935 L.
Combined: 2 L at 100 kPa and 20 °C goes to 200 kPa and 80 °C. V2 = 100 × 2 × 353.15 ÷ (293.15 × 200) = 1.20467 L.
Dalton: dry air at 101.325 kPa has 20.95% oxygen by volume, so the partial pressure of oxygen is 0.2095 × 101.325 = 21.2276 kPa. With 0.04% carbon dioxide, its partial pressure is 0.04053 kPa.
Temperature and pressure
- Use absolute temperature. 20 °C is 293.15 K. Doubling 20 °C to 40 °C does not double the volume, because the absolute temperature goes only from 293.15 K to 313.15 K. A temperature at or below absolute zero (0 K, −273.15 °C, −459.67 °F) is refused.
- Use absolute pressure. A tyre gauge reads the pressure above the air around it; add about 101.325 kPa (14.7 psi) to get the absolute pressure.
Limits you should know
- The laws are for an ideal gas. Real gases follow them closely near room temperature and normal pressure, and less well at high pressure or near the point where they turn to liquid.
- Dalton's law here is for gases that do not react with each other. A share by volume (vol % or ppmv) is used as a share by moles, which is true for ideal gases.
- For a single state (P V = n R T) use the Ideal Gas Law Calculator. For a volume at standard conditions (STP) or the molar volume, use the Gas Volume Calculator.
- Results are for study and planning. They are not a safety check of a pressure vessel, a cylinder or a diving gas.