🧪 Chemistry & Thermodynamics

Ideal Gas Law Calculator (PV = nRT)

Solve for Pressure (P), Volume (V), Amount of Gas (n), or Temperature (T) with complete multi-unit conversions, constant substitutions, and step-by-step mathematical logic.

Solve For:

Gas Variables

Calculated Pressure
1.0006 atm
Using universal gas constant R = 0.082057338 L·atm/(mol·K)

📝 Step-by-Step Derivations & Unit Conversions

How to Use the Ideal Gas Law Calculator

  1. Pick what to solve for — Pressure (P), Volume (V), Moles (n), or Temperature (T). That variable's input is hidden and becomes the calculated answer.
  2. Fill in the other three gas variables. Each must be a positive number, and absolute temperature must be above 0 K after unit conversion.
  3. Choose units as needed: pressure in atm, kPa, bar, mmHg, or psi; volume in L, mL, or m³; temperature in K, °C, or °F. Conversions are applied automatically.
  4. Press Calculate Result (the answer also updates as you type) and read the result card plus the step-by-step derivation with the substituted values and gas constant.

The Ideal Gas Law Formula

PV = nRT

With the gas constant R = 0.082057338 L·atm/(mol·K) = 8.31446 J/(mol·K), pressure in atmospheres, volume in liters, amount of gas in moles, and absolute temperature in Kelvin. Rearranged, it solves any one variable from the other three: P = nRT/V, V = nRT/P, n = PV/(RT), and T = PV/(nR).

The ideal gas law combines Boyle's, Charles's, and Avogadro's laws into a single equation of state for an ideal gas whose particles have no volume and no intermolecular forces. Real gases follow it closely at low pressure and high temperature, which is why it remains the workhorse equation of general chemistry.

Worked Example: Pressure at STP

Take 1 mol of gas at 273.15 K occupying 22.4 L: P = (1 × 0.082057338 × 273.15) / 22.4 ≈ 1.00 atm — the defining pressure at standard temperature and pressure (STP). These are exactly the calculator's default inputs, so pressing Calculate reproduces the result along with the full substitution.

Common Questions & Answers

Frequently Asked Questions

What is the Ideal Gas Law equation?
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 (0.08206 L·atm/(mol·K) or 8.314 J/(mol·K)), and T is absolute temperature in Kelvin.
Why must temperature always be in Kelvin in the ideal gas law?
The ideal gas law relies on absolute thermodynamic temperature where 0 Kelvin represents absolute zero (the point of zero kinetic energy). Using Celsius or Fahrenheit would result in negative or zero temperatures, yielding physically impossible negative volumes or pressures.

🔗 Related Study Calculators

Browse the complete suite on the Study Calculators Hub.

Reviewed & updated: October 2026 Maintained by the OnlineResult Study Tools Team Report an issue
Sources & further reading:
⚡ Quick Academic Access

Essential Calculators & Student Solvers

Free, 100% client-side educational solvers, Sarkari image resizers, and academic converters

Explore All 385+ Solvers