About this tool
The Gas Laws Calculator is a free, in-browser chemistry tool for both kinds of gas problem. For two states of a fixed amount of gas it relates the initial and final conditions through P₁V₁/T₁ = P₂V₂/T₂: choose Boyle's law (constant temperature), Charles's law (constant pressure), Gay-Lussac's law (constant volume) or the combined gas law. For a single state, the ideal gas mode solves PV = nRT. In every mode you leave exactly one box blank and the tool solves for it.
The ideal gas mode works in kilopascals, litres, moles and kelvin with R = 8.314462618 J/(mol·K), the exact SI value. Because kPa × L equals joules, no other conversion is needed: one mole at 101.325 kPa in 22.414 L comes out at 273.15 K.
Temperatures must be absolute, so enter them in kelvin, or switch the unit selector to °C and the tool adds 273.15 before solving and reports temperatures in kelvin. In the two-state laws, pressures and volumes may be in any units as long as each pair is consistent. Everything is computed locally in your browser, so your values never leave your device.
Frequently asked questions
How do I solve PV = nRT?
Choose the ideal gas (PV = nRT) mode, fill in three of pressure (kPa), volume (L), amount (mol) and temperature, and leave the fourth blank. It uses R = 8.314462618 J/(mol·K). Unlike the two-state laws, this mode describes a single state and needs the amount of gas in moles.
Why must temperatures be in kelvin?
The gas-law ratios are only valid with absolute temperature. Enter kelvin directly, or choose °C and the tool adds 273.15 before calculating; results are reported in kelvin. A temperature at or below 0 K is rejected.
What does each mode hold constant?
Boyle's law holds temperature constant (P₁V₁ = P₂V₂), Charles's law holds pressure constant (V₁/T₁ = V₂/T₂), Gay-Lussac's law holds volume constant (P₁/T₁ = P₂/T₂), and the combined law varies all three.
What units do pressure and volume use?
In the two-state laws, any consistent units (atm, kPa or mmHg for pressure; L, mL or m³ for volume) as long as P₁ and P₂ share one unit and V₁ and V₂ share one unit, because they appear as ratios that cancel. The PV = nRT mode needs kPa and litres, because R has fixed units.
More tools