Ideal Gas Law Calculator

Solve for PV = nRT

Ideal Gas Law Calculator

The ideal gas law calculator solves pressure, volume, amount, or temperature from the other three values using PV = nRT. Enter each known value in its selected unit. Pressure is absolute; temperature may be entered in kelvins, Celsius, or Fahrenheit and is converted to kelvins.

Solve for

Example states

Solved volume

22.41397 L

Rearranged equation: V = nRT / P

Substitute SI values: 1 mol × 8.314463 J·mol⁻¹·K⁻¹ × 273.15 K ÷ 101325 Pa = 0.02241397 m³

Inputs used: P = 101325 Pa · n = 1 mol · T = 273.15 K

Model: PV = nRT, where P is absolute pressure, V is volume, n is amount in moles, and T is absolute temperature. R = 8.314462618 J·mol⁻¹·K⁻¹ (NIST CODATA 2022).

This is an ideal-gas estimate. Real gases may differ, especially at high pressure or low temperature. This calculator does not apply real-gas corrections.

How to use the ideal gas law calculator

  1. Choose pressure, volume, amount, or temperature as the unknown.
  2. Enter the other three quantities and select the units shown in your problem.
  3. Read the result and SI working, or copy the calculation for your notes.

Features

  • Four solve modes for P, V, n, and T.
  • Independent pressure, volume, amount, and temperature units, converted through SI.
  • Rearranged formula, substituted SI values, named examples, copy, and reset.
  • Field-specific validation and an explanation of ideal-gas assumptions.

Ideal gas law calculator FAQs

Can I enter Celsius or Fahrenheit?

Yes. Select °C or °F for temperature; this calculator converts it to kelvins before applying PV = nRT.

Does the ideal gas law use gauge or absolute pressure?

Use absolute pressure. Gauge pressure must first be converted using the local atmospheric pressure.

Is the result exact for every real gas?

No. PV = nRT is an ideal-gas model. Real gases can deviate, especially at high pressure or low temperature; this calculator does not apply real-gas corrections.

Related tools: molar mass calculator and density calculator.

Infinio Tools
© 2026 Infinio Labs