Ideal Gas Law Calculator

Calculate using PV = nRT

PV = nRT

Enter any 3 values to calculate the 4th

Understanding the Ideal Gas Law

The ideal gas law PV = nRT describes the relationship between pressure (P), volume (V), amount of gas in moles (n), and temperature (T), where R is the universal gas constant (0.08206 L·atm/mol·K).

This calculator solves for any unknown variable when the other three are provided. It is widely used in chemistry, physics, and engineering for gas behavior calculations.

The Four Variables

When Does the Ideal Gas Law Apply?

The ideal gas law assumes gas molecules have negligible volume and no intermolecular forces. It works well at high temperatures and low pressures, where real gases behave most like ideal gases. At very high pressures or very low temperatures, real gas behavior deviates significantly, and equations like the van der Waals equation provide better accuracy.

Common applications include calculating the volume of a gas at standard temperature and pressure (STP), determining the number of moles in a gas sample, and predicting how changes in temperature or pressure affect gas volume.

Related Gas Laws

The ideal gas law combines several earlier laws: Boyle's law (P ∝ 1/V at constant T and n), Charles's law (V ∝ T at constant P and n), and Avogadro's law (V ∝ n at constant P and T). Understanding these individual relationships helps build intuition for gas behavior problems.