Ideal Gas Law Calculator
Choose what you want to find, pressure, volume, moles of gas or temperature, and enter the other three with the units you have. The calculator converts everything to SI units, solves PV = nRT with the exact gas constant and gives the answer in the unit you pick. It also shows the volume of one mole of gas at the same temperature and pressure, and a table of the gas constant in the common units. Everything runs in your browser.
| Gas constant R | Units |
|---|---|
| 8.31446 | J / (mol K) |
| 8.31446 | L kPa / (mol K) |
| 0.0820574 | L atm / (mol K) |
| 0.0831446 | L bar / (mol K) |
| 62.3636 | L mmHg / (mol K) |
The ideal gas law says that pressure times volume equals the amount of gas times the gas constant times the absolute temperature: PV = nRT. Temperature must be in kelvins, so degrees Celsius add 273.15 and degrees Fahrenheit are converted first. The gas constant is the Avogadro constant times the Boltzmann constant, both exact since the 2019 redefinition of the SI, which gives 8.31446261815324 J/(mol K). A standard atmosphere is exactly 101,325 Pa, a millimeter of mercury is 1/760 of it and a bar is 100,000 Pa. A mole of ideal gas at 0 degrees C and 1 atm takes up about 22.414 L, and at 0 degrees C and 1 bar about 22.711 L. Real gases follow the law well at low pressure and high temperature and drift from it when they are squeezed or cold. Everything runs in your browser.
Related Tools
[5 suggestions]Molar Mass Calculator: Molecular Weight from a Chemical Formula
Find the molar mass of a chemical formula in g/mol, with a breakdown by element and mass percent. Brackets and hydrates work, and grams, moles and particles convert.
Student ToolsTemperature Converter
Convert Celsius, Fahrenheit, Kelvin and Rankine to each other at once, exactly, with the number of decimals you choose.
Format ConversionUnit Converter
Convert length, weight, volume, area, speed, data size and time between metric, US and UK units, with exact results and a table of every unit.
Format ConversionHalf-Life Calculator: Decay, Time Left and Starting Amount
Work out the amount left after a time, the time to reach an amount, the half-life from two measurements or the starting amount, with the decay constant.
Student ToolsDilution Calculator: C1V1 = C2V2 and Molarity from Mass
Solve the dilution equation c1 v1 = c2 v2 for any one of its four numbers, with the solvent to add and the dilution factor, and find the mass to weigh for a molarity.
Student ToolsAbout the Ideal Gas Law Calculator
The ideal gas law says that pressure times volume equals the amount of gas times the gas constant times the absolute temperature. The gas constant R is the Avogadro constant times the Boltzmann constant, both exact since the 2019 redefinition of the SI, which gives 8.31446261815324 J/(mol K), or about 0.082057 L atm/(mol K). The temperature must be in kelvins, so the calculator adds 273.15 to degrees Celsius and converts degrees Fahrenheit first, and it asks for a temperature above absolute zero. A standard atmosphere is exactly 101,325 Pa, a millimeter of mercury is 1/760 of that, a bar is 100,000 Pa and a psi comes from the pound and the inch. A worked example: 1 mole at 0 degrees Celsius and 1 atmosphere takes up about 22.414 L, and at 0 degrees Celsius and 1 bar about 22.711 L. Two moles in 10 L at 25 degrees Celsius is a pressure of about 4.89 atm. The law describes an ideal gas, and real gases follow it well at low pressure and high temperature and drift from it when they are squeezed or cold.
What is the ideal gas law?▾
It is PV = nRT: pressure times volume equals the moles of gas times the gas constant times the temperature in kelvins. If you know three of the four quantities, the law gives the fourth.
What value of the gas constant does it use?▾
The exact SI value, 8.31446261815324 J/(mol K), which is 0.082057 when pressure is in atmospheres and volume in liters. It is the Avogadro constant times the Boltzmann constant.
Why must the temperature be in kelvins?▾
Because the law is proportional to the absolute temperature, and a Celsius or Fahrenheit zero is not absolute zero. The calculator converts for you, adding 273.15 to Celsius, and refuses a temperature at or below absolute zero.
What is the volume of one mole of gas?▾
At 0 degrees Celsius and 1 atmosphere it is about 22.414 L, and at 0 degrees Celsius and 1 bar it is about 22.711 L. The calculator shows it for any temperature and pressure.
Is my data uploaded?▾
No. The law is solved in your browser and nothing you enter is sent anywhere.