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.

Use the Ideal Gas Calculator

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

The Ideal Gas Calculator solves the fundamental gas law PV = nRT, where P is pressure, V is volume, n is the amount of gas in moles, R is the universal gas constant, and T is absolute temperature. Enter any three of the four variables and the calculator instantly solves for the unknown. Unit conversions are handled automatically so you can mix pressure in atm, kPa, or mmHg with volume in liters or milliliters. All calculations run entirely in your browser with no data sent to any server.

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-09-30 · Reviewed by Nham Vu