Math · Every step shown

Ideal Gas Law Calculator

Solve PV = nRT for pressure, volume, moles, or temperature — give the other three.

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Chemistry
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

PV = nRT, where P is pressure (Pa), V is volume (m³), n is moles, R is the gas constant (8.314462618 J/(mol·K)), and T is temperature (K).

Example: 1 mole at 273.15 K in 0.022414 m³ gives a pressure of about 101,325 Pa — standard atmospheric pressure, as expected at STP.

What is the ideal gas law?
PV = nRT — pressure times volume equals moles times the gas constant times temperature (in Kelvin).

What value is R?
The universal gas constant, 8.314462618 J/(mol·K), already built into the calculator.

Why does temperature have to be in Kelvin?
The formula depends on temperature being measured from absolute zero; using Celsius or Fahrenheit would give a wrong answer. Convert first: K = °C + 273.15.

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.