Ideal Gas Law Calculator

Enter three of the four variables — pressure (P), volume (V), moles (n), or temperature (T) — and this Ideal Gas Law Calculator solves for the missing one using PV = nRT. Choose your calculation type, pick your preferred units for each variable, and get the result with the universal gas constant R = 8.31446 J·mol⁻¹·K⁻¹ applied automatically.

Select which variable you want to calculate.

Leave blank or set to 0 if solving for P.

Leave blank or set to 0 if solving for V.

Amount of gas in moles. Leave blank or set to 0 if solving for n.

Leave blank or set to 0 if solving for T.

Results

Calculated Result

--

Variable Solved

--

Pressure in Pa

--

Volume in m³

--

Temperature in K

--

Ideal Gas Variables (Normalized)

Frequently Asked Questions

What is the Ideal Gas Law formula?

The Ideal Gas Law is expressed as PV = nRT, where P is pressure, V is volume, n is the number of moles of gas, R is the universal gas constant, and T is absolute temperature. It combines Boyle's Law, Charles's Law, and Avogadro's Law into one equation.

What is the value of the gas constant R?

The universal gas constant R = 8.31446261815324 J·mol⁻¹·K⁻¹ (or equivalently m³·Pa·K⁻¹·mol⁻¹). Its numerical value changes depending on the unit system used — for example, R = 0.082057 L·atm·mol⁻¹·K⁻¹ when using liters and atmospheres.

Why must temperature be in Kelvin for the Ideal Gas Law?

The Ideal Gas Law requires an absolute temperature scale because it is based on the average kinetic energy of gas molecules, which is proportional to absolute temperature. Kelvin starts at absolute zero (0 K = −273.15 °C), ensuring no negative or zero temperature values that would break the proportionality. This calculator automatically converts °C, °F, and °R to Kelvin internally.

What assumptions does the Ideal Gas Law make?

The Ideal Gas Law assumes that gas molecules have negligible volume, experience no intermolecular forces, and undergo perfectly elastic collisions. These assumptions hold well at low pressures and high temperatures. Real gases deviate from ideal behavior at high pressures or low temperatures, where the van der Waals equation is more accurate.

How do I convert between pressure units like atm, Pa, and kPa?

1 atm = 101,325 Pa = 101.325 kPa = 760 mmHg = 760 torr. This calculator handles all unit conversions automatically — just select your preferred unit from the dropdown, and the conversion to SI base units (Pa) is performed before applying PV = nRT.

How do I convert between volume units like liters, m³, and cm³?

1 m³ = 1,000 L = 1,000 dm³ = 1,000,000 cm³ = 1,000,000 mL. The calculator converts your selected volume unit to m³ internally before computing. For reference, 1 mole of an ideal gas at 0°C and 1 atm occupies 22.414 liters (Standard Temperature and Pressure, STP).

What does 'number of moles' mean in the Ideal Gas Law?

The number of moles (n) represents the quantity of gas, where 1 mole contains approximately 6.022 × 10²³ molecules (Avogadro's number). You can calculate moles from mass using n = mass / molar mass. For example, 2 grams of hydrogen gas (H₂, molar mass = 2 g/mol) equals 1 mole.

Can the Ideal Gas Law be used for real gases?

The Ideal Gas Law is an approximation that works best for real gases at low pressures (below a few atmospheres) and high temperatures (well above the gas's boiling point). For more accurate results with real gases under extreme conditions, use the van der Waals equation, which accounts for molecular volume and intermolecular attractions.

More Physics Tools