Part of the Engineering & Mechanics suite · 123 calculators

Ideal Gas Law Calculator

The ideal gas law solved for pressure, volume, moles or temperature — with the mass of gas and the density that follows.

PV = nRT ties the four state variables together, so knowing three gives the fourth.

Results update as you type
Results
Result
101.32486
Unit
Temperature (K)
Pressure (Pa)
Volume (m³)
Mass of gas (g)
Density (kg/m³)
Molar volume (L/mol)
Reviewed September 2026. Physics is the same everywhere: SI units in, with imperial equivalents in the results.
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About ideal gas law

How the ideal gas law calculator works

PV = nRT ties the four state variables together, so knowing three gives the fourth. The gas constant R is 8.314 J/(mol·K) when pressure is in pascals and volume in cubic metres.

The near-universal mistake is degrees Celsius. Temperature must be absolute: at 0 °C the equation would say a gas has no volume at all, which is why every gas calculation converts to kelvin first.

Formula: PV = nRT

Worked examples

InputsResultNote
One mole at STP101.32486101.3 kPa in 22.414 L
Solving for volume22.41397the molar volume
Room temperature110.5986pressure rises with T

Frequently asked questions

What is the ideal gas law?

PV = nRT — pressure times volume equals moles times the gas constant times absolute temperature.

Why must temperature be in kelvin?

Because the law is proportional to absolute temperature. Using Celsius makes 0 °C mean zero volume, which is nonsense.

What is the molar volume?

22.414 L per mole at 0 °C and one atmosphere; 24.79 L at 25 °C. Both are quoted as "standard" by different bodies, which causes endless confusion.

When does the ideal gas law fail?

At high pressure and low temperature, where molecular volume and intermolecular forces matter. Real gases then need the van der Waals equation or a compressibility factor.

What is R?

8.314 J per mole per kelvin in SI units. It appears in other units too — 0.08206 L·atm/(mol·K) — which is a common source of arithmetic errors.

Where these figures come from

Last checked: September 2026. Constants are the CODATA 2018 values; formulas are the standard textbook forms.