---
title: "Ideal Gas Law Calculator (PV = nRT) + Combined, Boyle, Charles | MolDraw"
url: https://www.moldraw.com/tools/free-chem-tools/ideal-gas-law-calculator.html
description: "Free ideal gas law calculator: solve PV = nRT for pressure, volume, moles or temperature with unit conversions, plus combined, Boyle, Charles and Gay-Lussac gas laws, step by step."
lang: en
publisher: Scidart Academy
generated: 2026-11-25
---
[MolDraw](https://www.moldraw.com/) › [Chemistry tools](https://www.moldraw.com/tools/) › Ideal Gas Law Calculator

# Ideal Gas Law Calculator (PV = nRT)

**In short:** Ideal gas law calculator: solve PV = nRT for pressure, volume, moles or temperature with unit conversions, plus combined, Boyle, Charles and Gay-Lussac gas laws, step by step. It is free, works in your web browser and needs no download.

Solve PV = nRT for pressure, volume, moles or temperature in any units (atm, kPa, mmHg, psi, L, mL, °C, °F, K). Enter grams and a formula to convert to moles automatically. Switch to the combined, Boyle, Charles or Gay-Lussac law for before-and-after problems.

**Quick answer:** PV = nRT with R = 0.08206 L·atm mol⁻¹ K⁻¹. One mole of gas at 0 °C and 1 atm occupies **22.41 L**. Always convert temperature to kelvin (°C + 273.15).

**PV = nRT**. Leave the value you want to find **blank**.

Pressure unitVolume unitTemperature unit

Pressure PVolume V

Amount nn unit

Temperature T

## Gas law formulas

| Law | Equation | Held constant |
| --- | --- | --- |
| Ideal gas law | PV = nRT | — |
| Combined gas law | P₁V₁/T₁ = P₂V₂/T₂ | n |
| Boyle's law | P₁V₁ = P₂V₂ | T, n |
| Charles's law | V₁/T₁ = V₂/T₂ | P, n |
| Gay-Lussac's law | P₁/T₁ = P₂/T₂ | V, n |
| Avogadro's law | V₁/n₁ = V₂/n₂ | P, T |

### Values of the gas constant R

| 8.314 J mol⁻¹ K⁻¹ | (= 8.314 Pa·m³ mol⁻¹ K⁻¹ = 8.314 kPa·L mol⁻¹ K⁻¹) |
| --- | --- |
| 0.08206 L·atm mol⁻¹ K⁻¹ | use with atm and litres |
| 62.36 L·torr mol⁻¹ K⁻¹ | use with mmHg/torr and litres |

Source: P. J. Mohr, D. B. Newell, B. N. Taylor, E. Tiesinga, ["CODATA recommended values of the fundamental physical constants: 2022"](https://doi.org/10.1103/RevModPhys.97.025002), *Rev. Mod. Phys.* 2025, 97, 025002.

Always use **kelvin**: T(K) = T(°C) + 273.15. At STP (0 °C, 1 atm) one mole of an ideal gas takes up 22.414 L. At IUPAC STP (0 °C, 100 kPa) it takes up 22.711 L.

## Worked examples

### Pressure of CO₂

22 g CO₂ (0.500 mol) in 5.00 L at 25 °C: P = nRT/V = 0.500 × 0.08206 × 298.15 / 5.00

P = 2.45 atm

### Boyle's law

6.0 L of gas at 1.0 atm is compressed to 3.0 atm at constant T: V₂ = P₁V₁/P₂

V₂ = 2.0 L

### Charles's law

2.00 L at 25 °C heated to 100 °C: V₂ = 2.00 × 373.15/298.15

V₂ = 2.50 L

### Combined gas law

500 mL at 101.3 kPa, 20 °C goes to 85 kPa, 5 °C: V₂ = 500 × (101.3/85) × (278.15/293.15)

V₂ = 565 mL

**Drawing structures for your notes?** MolDraw is a free online chemical structure editor for molecules, reactions and lab diagrams.

[Open MolDraw editor](https://www.moldraw.com/)

## Frequently asked questions

### What is the ideal gas law?

PV = nRT links pressure P, volume V, amount n (mol) and temperature T (kelvin) of an ideal gas, where R = 8.314 J mol⁻¹ K⁻¹ = 0.08206 L·atm mol⁻¹ K⁻¹. If you know any three, you can find the fourth.

### Which value of R should I use?

Match R to your units: 0.08206 for atm and L, 8.314 for kPa and L (or Pa and m³), 62.36 for mmHg and L. This calculator converts units for you, so you can mix them.

### Why must temperature be in kelvin?

Gas laws are proportional to absolute temperature. Using °C gives wrong answers, and even division by zero at 0 °C. Add 273.15 to convert °C to K.

### What is the combined gas law?

P₁V₁/T₁ = P₂V₂/T₂ for a fixed amount of gas. Boyle's (constant T), Charles's (constant P) and Gay-Lussac's (constant V) laws are special cases.

### What is the molar volume of a gas at STP?

22.414 L/mol at 0 °C and 1 atm, or 22.711 L/mol at the IUPAC standard of 0 °C and 100 kPa. At 25 °C and 1 atm it is 24.47 L/mol.

### When does the ideal gas law fail?

At high pressure or low temperature, where the volume of the molecules and the attractions between them matter. Real gases then follow equations such as van der Waals.

## Related chemistry tools

[**Stoichiometry calculator**Grams, moles and gas volumes](https://www.moldraw.com/tools/free-chem-tools/stoichiometry-calculator.html)[**Theoretical yield calculator**Limiting reagent → grams of product](https://www.moldraw.com/tools/free-chem-tools/theoretical-yield-calculator.html)[**Molar mass calculator**g/mol from a formula](https://www.moldraw.com/tools/free-chem-tools/molar-mass-calculator.html)[**Grams to moles calculator**Mass ↔ moles](https://www.moldraw.com/tools/free-chem-tools/grams-to-moles-calculator.html)[**Half-life calculator**Decay and first-order kinetics](https://www.moldraw.com/tools/free-chem-tools/half-life-calculator.html)[**Molarity calculator**Solution concentration](https://www.moldraw.com/tools/free-chem-tools/molarity-calculator.html)[**Limiting reagent calculator**Find the limiting reactant](https://www.moldraw.com/tools/free-chem-tools/limiting-reagent-calculator.html)[**AP Chemistry score calculator**Estimate your exam score](https://www.moldraw.com/tools/free-chem-tools/ap-chemistry-score-calculator.html)[**Gibbs free energy calculator**ΔG = ΔH − TΔS and K](https://www.moldraw.com/tools/free-chem-tools/gibbs-free-energy-calculator.html)[**Colligative properties calculator**ΔTb, ΔTf, osmotic pressure](https://www.moldraw.com/tools/free-chem-tools/colligative-properties-calculator.html)

Last updated: October 11, 2026
