Ideal Gas Law Calculator 2026 | PV=nRT Solver | OmniCalculator

Free ideal gas law calculator. Solve for pressure, volume, temperature, or moles using PV=nRT. Includes unit conversions, gas constant values, and step-by-step solutions.

⚗️ Ideal Gas Law Calculator

Solve PV = nRT for Any Variable

🌡️ Temperature
📏 Volume
⚡ Pressure
🔢 Moles

Chemistry & Physics Gas Calculations

Ideal Gas Law Calculator (PV=nRT)

⚗️ Calculate Ideal Gas Law

Solve for:

📊 Enter Known Values

Select based on your units
Pressure (P)
1.00 atm
At STP conditions
1.00
Pressure (atm)
📏
22.4
Volume (L)
🔢
1.00
Moles (mol)
🌡️
273.15
Temperature (K)

📊 Calculation Steps

Formula Used P = nRT/V
R Value 0.08206 L·atm/(mol·K)
Calculation P = (1)(0.08206)(273.15)/22.4
Result P = 1.00 atm
💡 STP Conditions: At Standard Temperature and Pressure (0°C = 273.15 K, 1 atm), 1 mole of an ideal gas occupies 22.4 L.

Gas Constant R Values

ValueUnitsUse When
8.314J/(mol·K)SI units (Pa, m³)
8.314L·kPa/(mol·K)Pressure in kPa, volume in L
0.08206L·atm/(mol·K)Pressure in atm, volume in L
62.36L·mmHg/(mol·K)Pressure in mmHg, volume in L
1.987cal/(mol·K)Energy in calories

Ideal Gas Law Formulas

The Ideal Gas Law

Standard Form

P = pressure, V = volume, n = moles, R = gas constant, T = temperature

Solving for Pressure

Pressure Formula

Solving for Volume

Volume Formula

Solving for Moles

Moles Formula

Solving for Temperature

Temperature Formula

Related Gas Laws

LawFormulaConstantRelationship
Boyle's LawP₁V₁ = P₂V₂n, TP ∝ 1/V
Charles's LawV₁/T₁ = V₂/T₂n, PV ∝ T
Gay-Lussac's LawP₁/T₁ = P₂/T₂n, VP ∝ T
Avogadro's LawV₁/n₁ = V₂/n₂P, TV ∝ n
Combined Gas LawP₁V₁/T₁ = P₂V₂/T₂nAll three

How to Use the Ideal Gas Law

  1. Identify what to solve for — Select P, V, n, or T from the buttons.
  2. Enter known values — Input the three known variables with correct units.
  3. Choose the gas constant — Select R that matches your pressure and volume units.
  4. Convert temperature to Kelvin — The calculator handles this automatically.
  5. Read the result — Get your answer with step-by-step breakdown.
⚠️ Important: Temperature must be in Kelvin for calculations. The calculator automatically converts °C and °F to K. Never use Celsius or Fahrenheit directly in PV=nRT!

Scientific Resources

Frequently Asked Questions

What is the ideal gas law?+

The ideal gas law (PV=nRT) relates pressure (P), volume (V), amount in moles (n), and temperature (T) for an ideal gas. It combines Boyle's, Charles's, and Avogadro's laws into one equation.

What is R in the ideal gas law?+

R is the universal gas constant. Its value depends on the units used: 8.314 J/(mol·K) for SI units, 0.08206 L·atm/(mol·K) for atm and liters. Match R to your pressure and volume units.

Why must temperature be in Kelvin?+

The ideal gas law requires absolute temperature. Kelvin starts at absolute zero (-273.15°C). Using Celsius or Fahrenheit would give wrong results because they have arbitrary zero points.

What is STP?+

STP (Standard Temperature and Pressure) is 273.15 K (0°C) and 1 atm. At STP, 1 mole of ideal gas occupies exactly 22.4 liters (molar volume).

When does the ideal gas law fail?+

The ideal gas law is less accurate at high pressures (molecules closer together), low temperatures (near condensation), and for polar gases. Real gases require the van der Waals equation.

How do I convert between pressure units?+

Common conversions: 1 atm = 101.325 kPa = 760 mmHg = 1.01325 bar = 14.696 psi. The calculator handles unit selection automatically.

What's the difference between ideal and real gases?+

Ideal gases are theoretical: molecules have no volume and no intermolecular forces. Real gases have molecular volume and attractions. Most gases behave ideally at low pressure and high temperature.

How do I convert Celsius to Kelvin?+

Simply add 273.15: K = °C + 273.15. For example, 25°C = 298.15 K. The calculator converts automatically when you select °C or °F.

Can I use this for gas mixtures?+

Yes! For gas mixtures, use Dalton's Law: total pressure = sum of partial pressures. The ideal gas law applies to each component and the mixture as a whole (using total moles).

Is this calculator free?+

100% free! No sign-up required. Solve ideal gas law problems unlimited times.

Created by OmniCalculator.space — Your trusted source for free online tools.

Last Updated: January 2026