Ideal Gas Calculator

Enter any three of P, V, n, and T and instantly solve for the missing variable using the ideal gas law PV = nRT.

Ideal Gas Law Inputs

Enter three known values and select which variable to solve for.

P × V = n × R × T
R = 8.314 J mol-1 K-1
mol

Select a variable to solve for, fill in the other three, then click Calculate.

Summary

Enter any three of P, V, n, and T and instantly solve for the missing variable using the ideal gas law PV = nRT.

How it works

  1. Select which variable you want to solve for: Pressure (P), Volume (V), Moles (n), or Temperature (T).
  2. Enter values for the other three variables in any supported unit.
  3. Click Calculate — the tool applies PV = nRT with the universal gas constant R = 8.314 J/(mol·K).
  4. The solved value is displayed along with a full summary table of all four variables.
  5. A step-by-step solution shows the rearranged formula and substituted values.
  6. Click Reset to clear all fields and start a new calculation.

Use cases

  • Calculate the pressure of a gas in a sealed container given its volume, moles, and temperature.
  • Determine how many moles of gas are present from measured pressure, volume, and temperature.
  • Find the temperature needed to achieve a target pressure at a known volume and mole count.
  • Solve chemistry homework and exam problems involving the ideal gas law.
  • Verify laboratory measurements by cross-checking PVT relationships.
  • Convert between pressure, volume, and temperature units while solving gas law equations.
  • Model gas behavior in engineering and thermodynamics applications.
  • Prepare for AP Chemistry, university general chemistry, or standardized science exams.

Frequently Asked Questions

Last updated: 2026-06-18 · Reviewed by Nham Vu