Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Astronomy
  3. /Atomic & Molecular Physics Calculators
  4. /Ideal Gas Law Calculator

Ideal Gas Law Calculator

Calculator

Results

Pressure

0.999994

atm

Volume

22.414

L

Moles

1

mol

Temperature

273.15

K

Gas Density

1.292496

g/L

Molar Volume

22.414

L/mol

Molar Concentration

0.044615

mol/L

Results

Pressure

0.999994

atm

Volume

22.414

L

Moles

1

mol

Temperature

273.15

K

Gas Density

1.292496

g/L

Molar Volume

22.414

L/mol

Molar Concentration

0.044615

mol/L

The Ideal Gas Law Calculator solves for pressure, volume, moles, or temperature of an ideal gas using the fundamental relation PV = nRT. The ideal gas law, one of the most important equations in physical science, describes the behavior of a hypothetical gas in which molecules have negligible size and exert no intermolecular forces on each other.

The ideal gas law combines Boyle's law (PV = constant at fixed T, n), Charles's law (V/T = constant at fixed P, n), Avogadro's law (V/n = constant at fixed P, T), and Gay-Lussac's law (P/T = constant at fixed V, n) into a single equation. The gas constant R = 0.08206 L*atm/(mol*K) = 8.314 J/(mol*K) = 1.987 cal/(mol*K) appears in various unit systems.

At standard temperature and pressure (STP: 273.15 K, 1 atm), one mole of an ideal gas occupies exactly 22.414 L — the molar volume. At standard ambient temperature and pressure (SATP: 298.15 K, 1 bar), one mole occupies 24.790 L. These reference conditions are fundamental in chemistry calculations involving gas volumes.

The ideal gas law is an excellent approximation for real gases at pressures below about 10 atm and temperatures above about 200 K. Under these conditions, molecular volumes are negligible compared to the container volume and intermolecular interactions are weak. Gases like He, H2, N2, and O2 follow the ideal gas law very closely under normal conditions.

This calculator allows solving for any of the four variables (P, V, n, T) given the other three, making it versatile for stoichiometry problems, gas density calculations, molar mass determination, and chemical engineering applications.

Visual Analysis

How It Works

PV = nRT where R = 0.08206 L*atm/(mol*K). Solve for: P = nRT/V, V = nRT/P, n = PV/(RT), T = PV/(nR). Gas density = PM/(RT) where M is molar mass. The calculator also shows air density (M_air = 28.97 g/mol) at the calculated conditions.

Understanding Your Results

At STP (273.15 K, 1 atm): 1 mol = 22.4 L. At SATP (298.15 K, 1 bar = 0.987 atm): 1 mol = 24.5 L. Doubling T at constant P doubles V. Doubling P at constant T halves V. Air density at STP is ~1.29 g/L; at room temperature (298 K) it is ~1.18 g/L.

Worked Examples

Volume at STP

Inputs

solve forV
P atm1
V L22.4
n mol1
T K273.15

Results

P out1
V out22.414
n out1
T out273.15
density gL1.293

One mole of ideal gas at STP occupies 22.414 L. Air (molar mass 28.97 g/mol) has density 1.293 g/L at STP, consistent with the known value.

Pressure from 2 mol at 500 K in 10 L

Inputs

solve forP
P atm1
V L10
n mol2
T K500

Results

P out8.206
V out10
n out2
T out500
density gL2.366

Two moles of ideal gas in 10 L at 500 K: P = nRT/V = 2*0.08206*500/10 = 8.21 atm. Air at these conditions has density 2.37 g/L, denser than at room temperature due to higher pressure.

Frequently Asked Questions

PV = nRT, relating pressure P (atm), volume V (L), moles n, temperature T (K), and gas constant R = 0.08206 L*atm/(mol*K). It describes the limiting behavior of real gases at low pressure and high temperature.

R = 8.314 J/(mol*K) = 0.08206 L*atm/(mol*K) = 1.987 cal/(mol*K) = 62.36 L*mmHg/(mol*K). Choose units matching your other quantities. R = N_A * k_B where k_B = 1.381e-23 J/K is Boltzmann's constant.

Standard Temperature and Pressure: 0 degrees C (273.15 K) and 1 atm. One mole of ideal gas at STP occupies 22.414 L. Note: IUPAC changed STP to 0 degrees C and 1 bar (0.987 atm) in 1982, giving 22.711 L/mol.

At high pressures (>10 atm), low temperatures, and near condensation/liquefaction points. Real gases deviate due to finite molecular size (b correction) and intermolecular attractions (a correction) described by the van der Waals equation.

M = rho*RT/P, where rho is density in g/L. Measuring gas density at known T and P gives the molar mass. This is Dumas's method for determining molar masses of volatile liquids.

For a mixture of ideal gases, total pressure P_total = P_1 + P_2 + ... where each partial pressure P_i = n_i*R*T/V. Each gas behaves independently and exerts the pressure it would have if it alone occupied the full volume.

At constant T and P, equal volumes of all ideal gases contain equal numbers of molecules (or moles). This follows directly from the ideal gas law: V/n = RT/P = constant at constant T and P.

The kinetic molecular theory models gas molecules as point particles in random motion with elastic collisions. It derives PV = nRT from first principles: P = (1/3)*(n/V)*m*v_rms^2, giving the microscopic interpretation of temperature as proportional to mean kinetic energy.

v_rms = sqrt(3RT/M) where M is molar mass in kg/mol. For N2 at 298 K: v_rms ~ 515 m/s. Lighter molecules (H2, He) have much higher speeds, explaining why hydrogen and helium escape from Earth's atmosphere over geologic time.

Yes, using Dalton's law: P_total = (n_total * R * T) / V, where n_total is the sum of all moles of gas. Individual partial pressures are P_i = x_i * P_total, where x_i = n_i/n_total is the mole fraction.

Sources & Methodology

Atkins, P. & de Paula, J. Physical Chemistry, 10th ed. Zumdahl, S. S. & Zumdahl, S. A. Chemistry, 9th ed. NIST Chemistry WebBook. Cengel, Y. A. & Boles, M. A. Thermodynamics: An Engineering Approach.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Electron Configuration Calculator

Atomic & Molecular Physics Calculators

Ionization Energy Calculator

Atomic & Molecular Physics Calculators

Electron Affinity Calculator

Atomic & Molecular Physics Calculators

Electronegativity Calculator

Atomic & Molecular Physics Calculators

De Broglie Wavelength Calculator

Atomic & Molecular Physics Calculators

Heisenberg Uncertainty Calculator

Atomic & Molecular Physics Calculators