Bbiochemtools

Solving PV = nRT for moles

n = PV / RT

Start from PV = nRT and divide both sides by whatever is sitting next to n. Everything else stays where it is. Moles is the one people solve for most, because it is the bridge to grams.

Worked example

A 2.50 L flask holds a gas at 1.00 atm and 298 K. How many moles are in it?

n = PV / RT
n = (1.00 atm x 2.50 L) / (0.08206 L·atm/mol·K x 298 K)
n = 2.50 / 24.454
n = 0.102 mol

Why the rearrangement works

PV = nRT is one equation with four variables and a constant, so knowing any three gives you the fourth. To isolate n, divide both sides by everything that shares its side of the equals sign. Nothing else moves, and no term changes sign, because there is no addition anywhere in the equation. That is why all four rearrangements look so similar.

The same problem in different units

The same flask in SI units: 101325 Pa, 0.00250 m3, 298 K, using R = 8.314 J/mol·K.

n = PV / RT
n = (101325 Pa x 0.00250 m³) / (8.314 J/mol·K x 298 K)
n = 253.31 / 2477.6
n = 0.102 mol

Identical to the first answer, because the units and R changed together. That is the whole trick: match R to your units and the physics takes care of itself.

Which R to use

R only looks like several different constants because it carries units. Pick the one that matches the units you already have, and do not convert anything afterwards.

RUnitsUse when
0.08206L·atm / mol·Kpressure in atm, volume in litres
8.314J / mol·Kpressure in pascals, volume in cubic metres
62.36L·mmHg / mol·Kpressure in mmHg or torr

Where this goes wrong

Temperature must be in kelvin. Celsius is the single most common reason an ideal gas answer comes out wrong, and it is silent: the arithmetic still works, the number is just false. Add 273.15.

R has to match your units. Using 0.08206 with pressure in kilopascals gives an answer that is out by a factor of about a hundred.

Volume in litres, not millilitres, when you are using 0.08206. A 250 mL flask is 0.250 L.

Practice

Answers are underneath each one. Use R = 0.08206 and keep temperature in kelvin.

The other rearrangements

Or use the ideal gas law calculator, which solves for whichever one you leave blank and shows the working.