Ideal Gas Law Calculator
Solve PV = nRT for pressure, volume, moles, or temperature — with full unit conversion.
Runs entirely in your browser. No data is sent to a server.
Free Ideal Gas Law Calculator
Need to solve PV = nRT but the units keep tripping you up? Our free ideal gas law calculator handles the conversions for you. Enter any three of pressure, volume, moles, or temperature — in whichever units you have — and it solves for the missing value using the correct gas constant automatically.
All pressure, volume, and temperature units are converted internally before solving, and temperature is always checked against absolute zero to catch impossible inputs. Every step is shown, from unit conversion through to the final rearranged formula, so you can follow exactly how the answer was reached. A quick STP toggle is included for standard-condition problems.
Perfect for chemistry and physics coursework, it runs entirely in your browser. No sign-up, no downloads, no limits. See the About and FAQ sections below for more.
About the Ideal Gas Law Calculator
How It Works & Methodology
Enter any three of P, V, n, T in whichever units you have. Values are converted internally to atm, L, and K, solved with R = 0.0821 L·atm/(mol·K), then converted back to your chosen output unit.
Features
Solve for any variable
Pressure, volume, moles, or temperature.
Multi-unit support
Automatic conversion across common units for each quantity.
Absolute-zero validation
Temperatures below 0 K are rejected.
STP shortcut
One click sets 0°C and 1 atm.
Mathematical Basis & Practical Verification
The Ideal Gas Law Calculator is built on IUPAC atomic weights, stoichiometric mole-ratio conservation, ideal and non-ideal gas state equations, and aqueous equilibrium expressions (pH, pKa, Henderson-Hasselbalch, and Ksp). Free ideal gas law calculator that solves PV=nRT for pressure, volume, moles, or temperature, with full unit conversion and step-by-step working. Key capabilities built into this tool include solve for p, v, n, or t, unit conversion, absolute zero validation, and stp shortcut.
All computations for the Ideal Gas Law Calculator follow the definitions established in IUPAC Compendium of Chemical Terminology ( the "Gold Book" ) (International Union of Pure and Applied Chemistry (IUPAC)) and Standard Atomic Weights & Physical Reference Data (NIST Physical Measurement Laboratory / CIAAW). Because the solver evaluates inputs locally in IEEE 754 double-precision arithmetic (53-bit significand, ~15–17 significant decimal digits) and is regression-tested against deterministic reference fixtures in tests/ideal-gas-law.spec.ts, you can inspect boundary conditions, verify dimensional consistency across chemistry units, and cross-check each intermediate step against textbook solutions.
Related Calculators & Tools
Calculate the molar mass of any chemical formula with a per-element breakdown, percent composition, and mass-to-moles conversion.
Find the empirical and molecular formula of a compound from percent composition or mass data.
Find the limiting reactant, theoretical yield, and leftover excess reagent for any balanced chemical reaction.
Balance any chemical equation instantly using linear algebra, with an atom-count verification table.
Authoritative Sources & Standards
- IUPAC Compendium of Chemical Terminology ( the "Gold Book" ) — International Union of Pure and Applied Chemistry (IUPAC)
- Standard Atomic Weights & Physical Reference Data — NIST Physical Measurement Laboratory / CIAAW
Frequently Asked Questions
How does the ideal gas law calculator work?
Enter any 3 of pressure, volume, moles, or temperature; it solves PV=nRT for the missing value.
What units are supported?
Pressure in atm, kPa, mmHg, bar, or psi; volume in L, mL, m³, or ft³; temperature in °C, °F, or K.
Which value of R does it use?
The gas constant is automatically matched to your chosen units (e.g. 0.0821 L·atm/mol·K).
Does it convert Celsius to Kelvin automatically?
Yes, temperature is always converted to Kelvin internally before solving.
What happens if I enter a temperature below absolute zero?
It's rejected as physically impossible, with a clear message.
Is there a shortcut for STP problems?
Yes, a toggle sets standard conditions (0°C, 1 atm) automatically.
Does it show the steps?
Yes, unit conversions and the rearranged formula with substituted values are all shown.