4 runs

Ideal Gas Law Calculator

Solve Pressure, Volume, Moles, or Temperature in PV = nRT alongside gas density, molar volume, and RMS molecular speed.

Instructions:
How to Use
  1. Select the unknown variable tab (P, V, n, or T).
  2. Enter known gas parameters using any pressure, volume, or temperature units.
  3. Optionally enter a gas formula (e.g., CO2, N2) to compute gas density and RMS speed.

Ideal Gas Law (PV = nRT) & Gas Density Solver

Multi-unit solver for Pressure, Volume, Moles, Temperature, plus Molar Mass & Density (PM = ρRT)

Ideal Gas Equation: PV = nRT  |  R = 0.082057 L·atm/(mol·K)
Gas Pressure (P)
—
—
Gas Density (g/L)
—
Gas Mass (g)
—
v_rms Speed
—
Molar Volume (V/n)
—

Step-by-Step Derivation

    How It Works & Quick Guide

    Gas problems rarely hand you neat atmospheres, liters, and Kelvin—usually you have psi, milliliters, and degrees Celsius. Plug in whatever units you measured for P, V, n, or T and get the missing variable along with gas density and molecular RMS speed.

    How to Use the Ideal Gas Law Calculator

    1. Select the unknown variable tab (P, V, n, or T).
    2. Enter known gas parameters using any pressure, volume, or temperature units.
    3. Optionally enter a gas formula (e.g., CO2, N2) to compute gas density and RMS speed.

    The Formula Behind It

    P V = n R T and gas density ρ = (P × MM) / (R × T).

    Worked Example

    1.0 mol of N₂ (MM = 28.014 g/mol) in 22.414 L at 273.15 K exerts 1.000 atm with density 1.250 g/L and v_rms = 493.2 m/s.

    Good to Keep in Mind

    Ideal gas assumptions hold best at low pressures and high temperatures where intermolecular forces and molecular volume are negligible.

    Ideal Gas Law Calculator - Frequently Asked Questions

    Why must temperature be converted to Kelvin?
    Zero °C is an arbitrary reference; gas kinetic energy and pressure extrapolate to zero only at 0 K (−273.15 °C).
    Which gas constant R is used?
    Our engine converts everything cleanly using exact CODATA R = 0.082057366 L·atm/(mol·K) and 8.3144626 J/(mol·K).
    How is gas density computed from PV = nRT?
    Substituting n = m/MM yields ρ = m/V = (P·MM)/(RT).
    When does the Ideal Gas Law break down?
    At very high pressures (>10–20 atm) or near a gas's liquefaction temperature, real-gas van der Waals interactions become significant.