Calculators
Ideal Gas Law Calculator
Solve for ideal gas pressure, volume, amount of gas, or temperature using consistent SI units locally in your browser.
Choose what to solve for, then enter the other three values using consistent SI units (pascals, cubic metres, moles, and kelvin) with the gas constant R = 8.314. Calculations run locally in your browser; your values are not uploaded or stored.
Solve the ideal gas law without uploading your values.
Enter amount, temperature, and volume to calculate pressure, amount, temperature, and pressure to calculate volume, pressure, volume, and temperature to calculate amount, or pressure, volume, and amount to calculate temperature, using consistent SI units, such as pascals with cubic metres, moles, and kelvin. The calculator applies the gas constant R = 8.314 and shows the matching result locally without being uploaded or stored.
Frequently Asked Questions
Everything you need to know about this tool, how it works, and privacy.
Which formulas does the ideal gas law calculator use?
It uses pressure = amount x gas constant x temperature / volume, volume = amount x gas constant x temperature / pressure, amount = pressure x volume / (gas constant x temperature), and temperature = pressure x volume / (amount x gas constant). For example, 1 mole of gas at 273 kelvin in 0.0224 cubic metres gives a pressure of about 101,300 pascals.
Which units should I use?
Use SI units on every input: pascals for pressure, cubic metres for volume, moles for amount of gas, and kelvin for temperature, with the gas constant R = 8.314. The answer is reported in the matching combined pressure, volume, amount, or temperature unit.
Which inputs are accepted?
Enter values of zero or greater up to 1,000,000,000,000. Volume must be greater than zero when solving for pressure, pressure must be greater than zero when solving for volume, temperature must be greater than zero when solving for amount, and amount must be greater than zero when solving for temperature. Missing or non-numeric entries show a clear error instead of a result.
Does this model a real gas?
No. It models an ideal gas with point particles and no intermolecular forces, so real gases deviate from these results at high pressures and low temperatures.
Do my values stay private?
Yes. The calculation and copy action run locally in your browser. CodeASystem does not upload or store the values you enter.