Free tool

Ideal Gas Law Calculator

Pick the unknown, enter the other three values in whatever units the problem gives, and get pressure, volume, moles or temperature from PV = nRT with every conversion shown.

Built for General Chemistry I

The gas

The unit next to the unknown sets the unit of the answer. R = 0.082057 L·atm/(mol·K), usually rounded to 0.08206.

Result

Enter the three known values.

Gas law problems are mostly unit conversions done in the right order. Encodr keeps them on a spaced-repetition schedule so the setup is automatic by exam day.

Get started free

How PV = nRT works

The ideal gas law ties together pressure (P), volume (V), amount in moles (n) and absolute temperature (T): PV = nRT. With R = 0.08206 L·atm/(mol·K), P must be in atm, V in liters and T in kelvin. This calculator uses R = 0.082057 internally and converts for you: 1 atm = 101.325 kPa = 760 mmHg = 760 torr, 1 L = 1000 mL, and K = °C + 273.15. Temperatures at or below 0 K are rejected, since absolute zero is the floor.

Worked example: 0.500 mol of gas in a 10.0 L container at 25 °C. First T = 25 + 273.15 = 298.15 K. Then P = nRT ÷ V = (0.500)(0.08206)(298.15) ÷ 10.0 = 1.22 atm. Plugging in 25 instead of 298.15 gives 0.103 atm, the most common wrong answer.

At STP (273.15 K and 1 atm, the convention OpenStax uses), 1.00 mol of an ideal gas takes up about 22.4 L. Real gases drift from ideal behavior at high pressure and low temperature. More examples, including molar mass from gas data: the ideal gas law with worked examples. Practice: the free General Chemistry I flashcards.

From the blog

The ideal gas law (PV = nRT) with worked examples

How to use PV = nRT, which value of R to pick, the unit conversions that trip people up, and worked examples for P, V, n, T and molar mass.

Read →

What's in General Chemistry I: the 13 units in order

The 13 units of a first-semester general chemistry course, what each covers, how they map to OpenStax Chemistry 2e chapters 1-10, and the free Encodr deck.

Read →

How to study for a general chemistry exam

A general chemistry exam tests two things, facts you recall and problems you can set up. How to study each, a week-by-week plan, and the traps that cost points.

Read →

First-year biology, chemistry and physics, compared

What General Biology I and II, General Chemistry I and II, and College Physics I and II each cover, how they fit together, and free flashcards for each.

Read →

Related tools

C1V1 = C2V2 Dilution Calculator

Solve C1V1 = C2V2 for any one value in M or mM and L or mL, and see how much solvent to add to reach the final volume.

Open tool →

Half-Life Calculator

First-order decay: find the amount remaining, the time elapsed or the half-life, plus the rate constant k, with the working shown.

Open tool →

Henderson-Hasselbalch Calculator

Find a buffer's pH from pKa (or Ka) and the base-to-acid ratio, or the ratio you need for a target pH, with a buffer-range check.

Open tool →

Molar Mass Calculator

Molar mass of any formula, including parentheses and hydrates, with each element's count, mass contribution and mass percent.

Open tool →

pH Calculator

Convert between [H3O+], [OH-], pH and pOH, or find the pH of a strong acid, strong base or weak acid with the exact quadratic shown.

Open tool →

All free tools