Skip to content

Free browser tools that respect your files: everything runs locally, nothing is uploaded.

Ideal Gas Law Calculator

Calculate pressure, volume, moles, or temperature using the Ideal Gas Law (PV = nRT). Includes combined gas law and density calculations.

Ideal Gas Law: PV = nRT

R = 8.314 J/(mol\u00B7K) = 0.0821 L\u00B7atm/(mol\u00B7K)

Container volume

Number of moles

mol

Gas temperature

Pressure

101.325

kPa

Pressure

1

atm

Volume

22.414

Liters

Molecules

6.02e+23

particles

Pressure Calculation (PV = nRT)

1

Start with the Ideal Gas Law

PV = nRT

2

Rearrange to solve for P

P = nRT/V

3

Convert inputs to SI units

n = 1 mol, T = 273.15 K, V = 0.0224 m³

4

Substitute values

P = (1 × 8.314 × 273.15) / 0.0224

5

Calculate

P = 101324.8623 Pa = 101.3249 kPa

Final Answer: 101.3249 kPa

Unit Conversions

Pressure

Pa101324.8623
kPa101.3249
atm1
bar1.0132
psi14.6959
mmHg760.0011
torr760.0011

Volume

m30.0224
L22.414
mL22414
cm322414
gal5.9212
ft30.7915

Your Results

Results are also pinned to the bottom of your screen.

Results

Pressure101.3249 kPa
Pressure101324.8623 Pa
Volume22.414 L
Moles1 mol
Temperature273.15 K
Density1.2925 kg/m³
Formula:

Quick Answer: What is the Ideal Gas Law?

The Ideal Gas Law PV=nRT relates pressure (P), volume (V), moles (n), and temperature (T) of an ideal gas. R is the gas constant: 8.314 J/(mol·K) or 0.0821 L·atm/(mol·K). At STP (0°C, 1 atm), one mole of gas occupies 22.4 L. The law assumes gas particles have no volume and no intermolecular forces.

Key Facts

  • PV = nRT where R = 8.314 J/(mol·K) = 0.0821 L·atm/(mol·K)
  • At STP (273.15 K, 1 atm), 1 mole of ideal gas = 22.414 L
  • Temperature must be in Kelvin: K = °C + 273.15
  • Combined gas law: P₁V₁/T₁ = P₂V₂/T₂ (constant n)
  • Boyle's Law: P₁V₁ = P₂V₂ (constant T, n)
  • Charles's Law: V₁/T₁ = V₂/T₂ (constant P, n)
  • Real gases deviate at high pressure and low temperature

Frequently Asked Questions

What is the Ideal Gas Law?

The Ideal Gas Law (PV = nRT) is a fundamental equation relating the pressure (P), volume (V), amount in moles (n), and absolute temperature (T) of an ideal gas. R is the universal gas constant. The law combines Boyle's Law (P∝V at constant T), Charles's Law (V∝T at constant P), and Avogadro's Law (V∝n at constant P,T) into one equation.

What is the gas constant R?

The gas constant R has different values depending on units: R = 8.314 J/(mol·K) = 8.314 kPa·L/(mol·K) for SI units, R = 0.08206 L·atm/(mol·K) for atmospheres and liters, R = 62.36 L·mmHg/(mol·K) for mmHg and liters. Always match R with your pressure and volume units.

What is STP?

STP (Standard Temperature and Pressure) is defined as 273.15 K (0°C) and exactly 1 atm (101.325 kPa). At STP, one mole of an ideal gas occupies 22.414 liters (the molar volume). Note: IUPAC now defines STP as 273.15 K and 1 bar (100 kPa), giving a molar volume of 22.711 L.

What is the Combined Gas Law?

The Combined Gas Law (P₁V₁/T₁ = P₂V₂/T₂) relates initial and final states of a gas when the amount (n) stays constant. It combines Boyle's and Charles's laws. You can solve for any one variable if you know the other five. Temperature must be in Kelvin.

How do I calculate gas density from the Ideal Gas Law?

Rearranging PV = nRT and using n = mass/molar mass (M): density = PM/(RT). This shows gas density increases with pressure and molar mass, but decreases with temperature. For air (M ≈ 29 g/mol) at STP: density = (101325 × 0.029)/(8.314 × 273.15) ≈ 1.29 kg/m³.

When does the Ideal Gas Law fail?

The Ideal Gas Law assumes gas particles have no volume and no intermolecular forces. It fails for: (1) High pressures - particle volume becomes significant, (2) Low temperatures - intermolecular forces become important, (3) Polar or large molecules - stronger intermolecular forces. Real gas behavior is better described by the van der Waals equation.

How do I convert temperature to Kelvin?

To convert Celsius to Kelvin: K = °C + 273.15. To convert Fahrenheit to Kelvin: K = (°F - 32) × 5/9 + 273.15. Kelvin is the absolute temperature scale where 0 K is absolute zero. The Ideal Gas Law requires temperature in Kelvin because volume is directly proportional to absolute temperature.

What is Avogadro's Law?

Avogadro's Law states that equal volumes of gases at the same temperature and pressure contain equal numbers of molecules (V ∝ n at constant P, T). One mole of any gas contains Avogadro's number (6.022 × 10²³) of molecules. At STP, one mole occupies 22.4 L regardless of the gas type.

By Joseph OrdunaHow this works
Joseph Orduna
Founder & Software Engineer

Full-stack software engineer specializing in embedded systems, web architecture, and AI/ML. Founder of Practical Web Tools. Built the gesture-controlled drone IP acquired by KD Interactive (Aura Drone, sold on Amazon).