Ideal Gas Law Calculator

PV = nRT • Leave exactly one variable empty to solve it
Use SI for Pa + m³. Use L·atm for atm + L style solving.
Quick summary
Fill any 3 fields and leave exactly 1 empty, then click Calculate.
Leave empty if pressure is the unknown.
Leave empty if volume is the unknown.
Leave empty if amount is the unknown.
Temperature must be above absolute zero. Leave empty if temperature is the unknown.

Results

Solved variable
Value (selected units)
Consistency check
Shows PV/(nRT). A valid result is usually very close to 1.

Use this Ideal Gas Law Calculator to solve for pressure, volume, amount of gas, or temperature. Enter any three values and leave the variable you want to calculate empty.

Ideal Gas Law Formula

PV = nRT

  • P: absolute pressure
  • V: gas volume
  • n: amount of gas in moles
  • R: ideal gas constant
  • T: absolute temperature in kelvin

The equation can be rearranged depending on the unknown value:

  • Pressure: P = nRT ÷ V
  • Volume: V = nRT ÷ P
  • Amount: n = PV ÷ RT
  • Temperature: T = PV ÷ nR

Use R = 8.314462618 Pa·m³/(mol·K) for SI units or R = 0.082057366 L·atm/(mol·K) when pressure is in atmospheres and volume is in litres.

Worked Example

Suppose 0.5 mol of gas is at 2 atm and 300 K. Calculate its volume using the L·atm gas constant.

V = nRT ÷ P

V = (0.5 × 0.082057366 × 300) ÷ 2

V ≈ 6.15 L

The estimated gas volume is approximately 6.15 litres.

Important Notes

  • Temperature must be expressed as an absolute temperature. The calculator converts Celsius and Fahrenheit to kelvin when those units are selected.
  • Pressure must be absolute pressure, not gauge pressure.
  • The selected pressure and volume units must be compatible with the gas constant.
  • The ideal gas law is an approximation and may be less accurate at high pressures, very low temperatures, or near condensation.

Sources

More of our calculators...

Theoretical Yield Calculator

Theoretical Yield Calculator to find the maximum product yield from stoichiometry, limiting reagent, and molar relationships.

PPM to Molarity Calculator

PPM to Molarity Calculator to convert parts per million into molarity using molar mass and solution assumptions.

Molarity Calculator

Use our Molarity Calculator to find moles, mass concentration, and molarity from solute mass, molar mass, and solution volume.

pH Calculator

Free pH calculator that syncs [H+], [OH−], pOH, concentration, and mass/volume. Supports strong/weak acids and bases, unit options, steps, and PDF.

Avogadro’s number calculator

Use our Avogadro Number Calculator to find molar mass and number of particles from mass, moles, and Avogadro’s constant.

Percent Yield Calculator

Use our Percent Yield Calculator to calculate chemistry percent yield from actual yield and theoretical yield in mg, g, or kg.

Atom Calculator

Use our Atom Calculator to find protons, neutrons, electrons, atomic number, mass number, and ionic charge quickly from standard atomic relationships.

Half-Life Calculator

Use our Half-Life Calculator to find remaining quantity, half-life, total time, decay constant, and mean lifetime for exponential decay.