Rearranged for whichever value is unknown: V = nRT / P, P = nRT / V, n = PV / (RT), and T = PV / (nR). The calculator above picks the right
rearrangement automatically based on which field you leave blank, and runs a
consistency check instead if you fill in all four.
The gas constant R = 8.314462618 J/(mol·K) is what makes the
units work out, and it only does so when pressure is in pascals, volume is in cubic
metres, amount is in moles, and temperature is in kelvin. The calculator handles that
conversion internally no matter which units you pick from the dropdowns — pressure in
kilopascals, atmospheres, or pounds per square inch; volume in litres, millilitres,
cubic metres, or cubic feet; temperature in kelvin, Celsius, or Fahrenheit — and converts
the solved answer back into whichever unit you selected for that field.
This page solves a single state of one gas sample. If your problem instead compares two
different states of the same fixed amount of gas — say, a tank that's heated,
compressed, and moved to a new altitude all at once — the amount of gas cancels out of
the equation entirely, and the combined gas law calculator is the more direct tool, since it
skips moles altogether and works purely with the before-and-after ratios of pressure,
volume, and temperature.