Combined gas law calculator
This combined gas law calculator follows a fixed amount of gas from one state to another: enter five of P₁, V₁, T₁, P₂, V₂ and T₂ and it finds the sixth. It also solves Boyle’s, Charles’s, Gay-Lussac’s and Avogadro’s laws on their own and converts a measured gas volume to STP or back.
Combined gas law calculator: P₁V₁/T₁ = P₂V₂/T₂
Boyle’s, Charles’s, Gay-Lussac’s and Avogadro’s law calculator
STP calculator: correct a gas volume to standard conditions
How to use the combined gas law calculator
The first panel is the full combined gas law. Choose the quantity you want under “Solve for”, enter the other five values with any unit from the menus, and the combined gas law calculator returns the answer in several units, the pressure, volume and temperature ratios, and the amount of gas the data imply. The second panel handles the four simple gas laws: pick Boyle’s, Charles’s, Gay-Lussac’s or Avogadro’s law, type three values and leave the unknown field empty. The third panel is an STP calculator that converts a volume measured in the lab or plant to a standard reference condition (or back). Every panel has “Show the working”, which lists the rearranged formula with your numbers substituted, ready to copy into homework.
What is the combined gas law?
For a fixed amount of gas, the product of pressure and volume divided by the absolute temperature stays constant, whatever happens to the gas in between. That single statement merges three experimental laws discovered in the 17th to 19th centuries, and it follows directly from the ideal gas law PV = nRT when n does not change. OpenStax Chemistry 2e, section 9.2 derives each of the laws from experiments and is a good free companion to this page.
P is the absolute pressure, V the volume and T the absolute temperature (kelvin or rankine) in state 1 and state 2. Any consistent units work for P and V because they appear as ratios, which is why the combined gas law calculator accepts kPa, atm, psi or mmHg and liters, milliliters or cubic feet. Temperature is different: it must be absolute, because the law says volume is proportional to T, and 0 °C is not zero temperature. Rearranged for each unknown:
A practical way to set these up by hand is the “correction factor” method: start from the old value and multiply by a pressure ratio and a temperature ratio, each arranged so that the change goes in the right direction. If the pressure falls, the volume must grow, so the pressure ratio must be larger than 1; if the gas warms, the volume must grow, so the temperature ratio is T₂/T₁.
Simple gas laws inside the combined gas law calculator
Hold one more variable constant and the combined gas law collapses into one of the classic laws. Avogadro’s law adds the amount of gas, which the combined form keeps fixed. The second panel of the combined gas law calculator solves each of them.
| Law | Held constant | Relation | What it says |
|---|---|---|---|
| Boyle’s law (1662) | T and n | P₁V₁ = P₂V₂ | Pressure and volume are inversely proportional |
| Charles’s law (1787) | P and n | V₁/T₁ = V₂/T₂ | Volume is proportional to absolute temperature |
| Gay-Lussac’s (Amontons’s) law | V and n | P₁/T₁ = P₂/T₂ | Pressure is proportional to absolute temperature |
| Avogadro’s law (1811) | P and T | V₁/n₁ = V₂/n₂ | Volume is proportional to the amount of gas |
| Combined gas law | n | P₁V₁/T₁ = P₂V₂/T₂ | All three of P, V and T may change |
| Ideal gas law | nothing | PV = nRT | Links one state to the amount of gas |
Worked examples with the combined gas law calculator
Scuba tank (combined gas law, OpenStax Example 9.10). A 13.2 L tank holds air at 153 atm and 27 °C. How much air does it deliver at a depth where the pressure is 3.13 atm and the temperature 37 °C? Convert to kelvin: T₁ = 300.15 K and T₂ = 310.15 K. Then V₂ = 13.2 L × (153/3.13) × (310.15/300.15) = 13.2 × 48.88 × 1.0333 = 667 L. These are the default values of the first panel. The calculator adds a warning, because at 153 atm air is about 1 % less compressible than an ideal gas.
Boyle’s law. A gas sample occupies 15.0 mL at 13.0 psi and is squeezed to 7.5 mL at constant temperature: P₂ = 13.0 × 15.0 / 7.5 = 26 psi. Halving the volume doubles the pressure; choose Boyle’s law in the second panel of the combined gas law calculator to check it.
Charles’s law. 0.300 L of CO₂ at 10 °C is warmed to 30 °C at constant pressure: V₂ = 0.300 × 303.15 / 283.15 = 0.321 L. The volume rises only 7 %, not threefold, because the absolute temperature rises from 283 K to 303 K. The combined gas law calculator shows both ratios, 1.0706, so you can see that they match.
Gay-Lussac’s law. An aerosol can at 360 kPa and 24 °C is heated to 50 °C: P₂ = 360 × 323.15 / 297.15 = 391.5 kPa, about 390 kPa. That is why the cans carry a warning not to heat them.
Avogadro’s law. A balloon holding 0.200 mol of helium has a volume of 5.00 L. Adding gas to 0.350 mol at the same temperature and pressure gives V₂ = 5.00 × 0.350 / 0.200 = 8.75 L. These four examples are the defaults of the second panel, and the Boyle, Charles and Gay-Lussac numbers match the worked examples in the OpenStax textbook.
STP calculator: which “standard conditions”?
Gas volumes are often reported at a reference temperature and pressure so that they can be compared. The trouble is that several references are in use, and the molar volume of an ideal gas differs between them. IUPAC has defined standard temperature and pressure as 0 °C and 100 kPa since 1982 (IUPAC Gold Book), while many textbooks and exam boards still use 0 °C and 1 atm.
| Reference | Temperature | Pressure | Molar volume of an ideal gas |
|---|---|---|---|
| STP (IUPAC) | 0 °C (273.15 K) | 100 kPa (1 bar) | 22.711 L/mol |
| STP (older, 1 atm) | 0 °C (273.15 K) | 101.325 kPa (1 atm) | 22.414 L/mol |
| NTP | 20 °C (293.15 K) | 101.325 kPa | 24.055 L/mol |
| SATP | 25 °C (298.15 K) | 100 kPa | 24.790 L/mol |
| US gas industry | 60 °F (288.71 K) | 14.696 psia | 23.690 L/mol = 379.48 ft³/lbmol |
Example (third panel of the combined gas law calculator). 250 mL of a gas is collected at 745 mmHg and 25 °C. At IUPAC STP its volume is 250 × (99.325/100) × (273.15/298.15) = 227.5 mL, or 0.010017 mol. Switch the reference to 0 °C and 1 atm and the same gas occupies 224.5 mL; the amount of gas does not change. If the gas was collected over water, subtract the water vapor pressure first with the Partial Pressure Calculator (Dalton’s Law).
Combined gas law or ideal gas law?
Use the combined gas law calculator when the same sample of gas moves between two states and you do not need to know how many moles it contains: the gas constant cancels out. Use the Ideal Gas Law Calculator when you have a single state and need the amount of gas, its density or its molar volume. Both assume ideal behavior. At high pressure or close to condensation, correct with the Compressibility Factor Calculator: the combined law then becomes P₁V₁/(Z₁T₁) = P₂V₂/(Z₂T₂).
Common mistakes with the combined gas law calculator
Celsius in the ratio. Using 27 and 37 instead of 300.15 K and 310.15 K in the scuba example would give 13.2 × 48.88 × 37/27 = 884 L, a 33 % error; in other problems the error is far worse, and a negative Celsius value gives a negative volume. Gauge pressure. A tire at 32 psi gauge is at about 46.7 psi absolute; ratios of gauge pressures are wrong. Changing amount of gas. If gas leaks, is added or reacts, n is not constant and the combined gas law does not apply; use Avogadro’s law or the ideal gas law. Mixed standards. Converting “to STP” with 0 °C and 1 atm and then dividing by 22.711 L/mol (the IUPAC value) mixes two definitions. Wet gas. A gas collected over water contains water vapor; only the dry-gas partial pressure belongs in the combined gas law calculator.
Related calculators
For a single gas state use the ideal gas law calculator rather than the combined gas law calculator; for mixtures and gas collected over water use the partial pressure calculator. Convert temperature scales with the Temperature Converter.
- Ideal Gas Law Calculator
- Partial Pressure Calculator (Dalton’s Law)
- Compressibility Factor Calculator
- Real Gas Calculator
- Mole Calculator
- All chemistry calculators
Frequently asked questions
What is the combined gas law formula?
P₁V₁/T₁ = P₂V₂/T₂ for a fixed amount of gas, with absolute pressures and absolute temperatures. Solving for the final volume gives V₂ = V₁ · (P₁/P₂) · (T₂/T₁).
Why must temperature be in kelvin in the combined gas law?
Volume and pressure are proportional to absolute temperature. A ratio of Celsius temperatures has no physical meaning (and 0 °C would give a division by zero), so the combined gas law calculator converts every temperature to kelvin first.
How is the combined gas law derived?
Write PV = nRT for state 1 and state 2. With the same n and R on both sides, P₁V₁/T₁ = nR = P₂V₂/T₂. The combined gas law calculator uses exactly this form. It can also be built by applying Boyle’s law at constant temperature and then Charles’s law at constant pressure.
What volume does one mole of gas occupy at STP?
22.711 L at the IUPAC standard of 0 °C and 100 kPa, or 22.414 L at 0 °C and 1 atm. The STP calculator panel shows the molar volume for whichever reference you choose.
Can I use the combined gas law for a gas mixture?
Yes, as long as the mixture does not react or condense and its total amount is constant. Use the total pressure of the mixture in the combined gas law calculator; for one component, use its partial pressure.
Is this combined gas law calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.