Ideal Gas Law Calculator screenshot

Ideal Gas Law Calculator

Solve PV = nRT for pressure, volume, moles or temperature from the other three values.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

One gas law, four unknowns

Choose which value to solve for and fill in the other three. The page rearranges PV = nRT with R = 8.314 LkPa/(molK), so pressure is in kPa, volume in litres, amount in moles and temperature in kelvin. Only the fields the chosen unknown needs are read, which is why the others can stay as they are.

A temperature of 0 K or below is refused whenever the temperature is used, because the law divides by it. Solving for temperature with zero moles is refused too, since that would divide by zero. The page assumes an ideal gas and does not correct for molecular volume or attraction.

Each rearrangement is a single division, computed in the browser. Nothing is uploaded, and the same four numbers print the same answer on every reload.

The page solves PV = nRT for whichever of pressure, volume, amount or temperature you leave out, with R = 8.314 L·kPa/(mol·K). Pressure is in kPa, volume in litres, amount in moles and temperature in kelvin, so the four values are always in the same units.

Only the boxes the chosen unknown needs are read, so the box for the unknown may hold anything. The gas is ideal throughout: the page does not correct for molecular volume or attraction, which is why a real gas at high pressure departs from its answer.

How to use it

Choose which value to solve for, fill in the other three and press Run. Leave the unknown's box alone; it is ignored rather than required to be empty.

  • Pick pressure, volume, amount or temperature to solve for.
  • Enter the other three in kPa, litres, moles and kelvin.
  • Read the rearranged result and the value it was solved from.

The arithmetic, and where it stops

Each of the four rearrangements is one division: P = nRT/V, V = nRT/P, n = PV/(RT) and T = PV/(nR). Nothing is iterated and no equation of state is applied, so the answer is the ideal gas law exactly, with R taken as 8.314 L·kPa/(mol·K).

A temperature of 0 K or below is refused whenever the temperature is used, because the law divides by it, and solving for temperature with zero moles is refused as a division by zero. Pressure or volume of zero is refused in the rearrangements that divide by them.

What to Expect

Best for

  • One gas-law rearrangement at a time, with every value in SI-adjacent units.

What this tool keeps

  • Each rearrangement is a single division in this tab; nothing is uploaded, stored or remembered. The same figures give the same result after a reload.

Sample input

solve volume: 101.325 kPa, 1 mol, 273.15 K

Sample output

V = 22.413 L

Frequently asked questions

How do I use the Ideal Gas Law Calculator?

Choose which value to solve for, fill in the other three and press Run. Leave the unknown's box alone; it is ignored rather than required to be empty.

Does anything leave my browser?

No. Each rearrangement is a single division in this tab; nothing is uploaded, stored or remembered. Reloading the page discards every value you entered.

Which inputs does it refuse?

A temperature of 0 K or below is refused whenever the temperature is used, because the law divides by it, and solving for temperature with zero moles is refused as a division by zero. Pressure or volume of zero is refused in the rearrangements that divide by them.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.