Skip to content
K Knidox Search…
Chemistry · Gases

Gas Laws Calculator

Boyle’s, Charles’s, and the combined gas law — solve for the missing variable.

Gas law
Solve for
atm
L
atm
Try an example — tap to load
Volume V₂
1L

Temperatures must be in kelvin (K = °C + 273.15).

Boyle’s law: pressure vs volume (inverse)
Boyle’s law inverse curve — pressure falls as volume rises at constant P₁ × V₁.P 3.33 atmP 0.5 atmV 0.6 LV 4 L

The combined gas law relates two states of a fixed amount of gas: P₁V₁ ÷ T₁ = P₂V₂ ÷ T₂, with temperature in kelvin. Boyle’s law is the constant-temperature case: 1 atm × 2 L = 2 atm × V₂, so V₂ = (1 × 2) ÷ 2 = 1 L. Pick a law, enter the knowns, and solve for the blank.

Boyle, Charles, and the combined gas law

For a fixed amount of gas, pressure, volume, and absolute temperature are linked. Hold temperature constant and pressure times volume stays constant (Boyle’s law). Hold pressure constant and volume is proportional to temperature (Charles’s law). The combined gas law merges both, letting you compare any two states by setting P₁V₁ ÷ T₁ equal to P₂V₂ ÷ T₂.

P₁V₁ ÷ T₁ = P₂V₂ ÷ T₂

Combined gas law — temperatures T₁ and T₂ must be in kelvin (K = °C + 273.15)

Worked example

A gas at 1 atm fills 2 L. The temperature is held constant while it is compressed to 2 atm. Find the new volume using Boyle’s law.

  1. 1
    Convert temperatures to kelvin. Add 273.15 to any Celsius reading: K = °C + 273.15. The law is invalid with Celsius or Fahrenheit.
  2. 2
    Pick the law that matches what is held constant. Constant temperature → Boyle (P₁V₁ = P₂V₂). Constant pressure → Charles (V₁ ÷ T₁ = V₂ ÷ T₂). Both changing → combined.
  3. 3
    Substitute and solve for the unknown. For Boyle: V₂ = (P₁ × V₁) ÷ P₂ = (1 × 2) ÷ 2 = 1 L. Halving the volume doubles the pressure.

The three gas laws

Each law fixes the quantities not shown; all temperatures are absolute (kelvin).

LawHeld constantFormula
Boyle’s lawTemperature, amountP₁V₁ = P₂V₂
Charles’s lawPressure, amountV₁ ÷ T₁ = V₂ ÷ T₂
Combined gas lawAmount onlyP₁V₁ ÷ T₁ = P₂V₂ ÷ T₂

Always use kelvin — and how this ties to PV = nRT

Temperature must be absolute. Charles’s and the combined law multiply and divide by T, so a Celsius value (which can be zero or negative) gives nonsense. Convert first with K = °C + 273.15; this tool guards against T = 0 or negative.

These are special cases of the ideal gas law. Starting from PV = nRT, the quantity PV ÷ T equals nR — a constant for a fixed amount of gas. So PV ÷ T is the same in both states, which is exactly P₁V₁ ÷ T₁ = P₂V₂ ÷ T₂. Boyle and Charles drop out by holding T or P fixed. Use the combined law to compare two states; use PV = nRT when you need an absolute value or the number of moles.

Why must temperature be in kelvin?
The gas laws use absolute temperature, where 0 K is true zero. Charles’s and the combined law divide by T, so a Celsius value — which can be zero or negative — breaks the math. Convert with K = °C + 273.15.
What is the difference between Boyle’s and Charles’s law?
Boyle’s law holds temperature constant: P₁V₁ = P₂V₂, so pressure and volume are inversely related. Charles’s law holds pressure constant: V₁ ÷ T₁ = V₂ ÷ T₂, so volume rises in proportion to absolute temperature.
What stays constant in each law?
All three assume a fixed amount of gas. Boyle’s also holds temperature constant; Charles’s holds pressure constant; the combined gas law lets pressure, volume, and temperature all change together.
How is the combined gas law related to the ideal gas law?
PV = nRT rearranges to PV ÷ T = nR, a constant for fixed moles. Setting that constant equal in two states gives P₁V₁ ÷ T₁ = P₂V₂ ÷ T₂. The combined law is the ideal gas law applied to a before-and-after comparison.
When should I use PV = nRT instead?
Use the combined gas law to compare two states of the same gas sample. Use PV = nRT when you need an absolute pressure, volume, or the number of moles from a single state.
What units should I use?
Pressure and volume can be any units as long as they match on both sides — this tool uses atm and litres. Temperature, however, must always be kelvin; mixing in Celsius gives a wrong answer.