Ideal Gas Law Calculator (PV = nRT)
Convert
The ideal gas law PV = nRT links the four state variables of a gas: pressure P, volume V, amount in moles n and absolute temperature T, tied together by the gas constant R = 8.314 J/(mol·K). Give this calculator any three and it solves for the fourth, converting every input to SI internally so you can mix units freely — pressure in Pa, kPa, bar, atm, mmHg (torr) or psi; volume in mL, L or m³; amount in mol or mmol; and temperature in kelvin, Celsius or Fahrenheit. For example, one mole at 1 atm and 273.15 K occupies 22.414 L, the molar volume at STP. The result comes back in whatever unit you selected for the unknown.
Result
22.41397 L
PV = nRT · R = 8.314 J/(mol·K)
PV = nRT with R = 8.314 J/(mol·K). Inputs are converted to SI (Pa, m³, mol, K) internally; temperature must be absolute.
How to use
- Choose which variable to solve for: P, V, n or T.
- Enter the other three with their units (temperature is converted to kelvin internally).
- Read the result in the unit you picked for the unknown.
Frequently asked questions
- What is the ideal gas law?
- PV = nRT, where P is pressure, V volume, n the amount in moles, T absolute temperature and R = 8.314 J/(mol·K) the universal gas constant. It models a gas whose particles have negligible volume and no interactions.
- Why must temperature be absolute?
- The law uses kelvin because pressure and volume scale with absolute temperature. This tool converts Celsius or Fahrenheit to kelvin for you before computing.
- What volume does one mole occupy?
- At STP (1 atm, 273.15 K) one mole of an ideal gas occupies 22.414 L; at 1 bar and 273.15 K it is 22.711 L. Enter those values to verify.
- When does the ideal gas law break down?
- It is least accurate at high pressure and low temperature, where molecular volume and attractions matter. Real-gas equations like van der Waals correct for that.
Related tools
BCD Converter (Binary-Coded Decimal)
Convert decimal to and from 8421 binary-coded decimal — per-digit 4-bit nibbles, packed BCD hex bytes, and BCD validity checking.
Gray Code Converter
Convert between decimal, binary and reflected-binary Gray code, both directions, with an optional fixed bit width and a 0-7 reference table.
Two's Complement Converter (8–64 bit)
Enter a decimal, hex, binary, or octal value and see its 8/16/32/64-bit two's complement bit pattern, plus its signed and unsigned readings, hex, octal, and one's complement — in your browser.
IEEE 754 Float Converter (32 & 64-bit)
See the exact IEEE 754 bit layout of any number in float32 and float64 — sign, exponent, and mantissa bits, hex, the stored value, and rounding — or decode hex bits back to a number, all in your browser.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
Unit Converter
Convert length, weight, temperature, area, volume, speed, and time.