Ideal Gas Law Calculator

Enter pressure (kPa), volume (L), moles and temperature (K). Leave one at 0 to solve for it.

Inputs
Results
Pressure
101.325 kPa
Volume
22.4 L
Moles
1 mol
Temperature
273.15 K
Formula
PV = nRT (R = 8.314 J/mol·K, P in kPa, V in L).
Example

1 mol at 273.15 K and 101.325 kPa → V ≈ 22.4 L.

About the Ideal Gas Law Calculator

The Ideal Gas Law Calculator applies the standard physics, chemistry, or engineering formula for ideal gas law and returns a numeric answer with the correct units. It's aimed at students, teachers, and working engineers who need a quick, dependable calculation without opening a full CAS.

Constants are taken from CODATA / NIST reference values and rounded to the precision most useful for classroom and applied work. If you need higher precision, the formula shown below the Ideal Gas Law Calculator lets you verify by hand.

  • SI-first inputs with imperial options where they apply
  • Answers labeled with units and, where useful, scientific notation
  • Published formula visible on the page for verification
  • No hidden assumptions — every input is exposed

How to use the Ideal Gas Law Calculator

Enter every value in the units listed next to each field. The Ideal Gas Law Calculator does not silently convert between systems mid-calculation, so mixed units produce a warning rather than a wrong answer.

For teaching, work through the formula shown under the results by hand, then confirm your answer against the Ideal Gas Law Calculator. This is a fast way to catch algebra mistakes without waiting on a marker.

Precision and limitations

The Ideal Gas Law Calculator uses double-precision floating-point math, which is accurate to about 15 significant figures — more than enough for undergraduate coursework and most engineering calculations involving ideal gas law.

Edge cases (division by zero, negative logarithms, out-of-range temperatures) are guarded, so the Ideal Gas Law Calculator surfaces a clear message rather than silently returning ±Infinity or NaN.

Frequently asked questions