DOC

How calculators work

The Ideal Gas Law: How Pressure, Volume, Temperature, and Amount Stay in Balance

PV = nRT links an ideal gas’s state variables. Learn the molecular reasoning, units, inverse solves, worked examples, and the pressure, temperature, and real-gas limits that matter.

Put gas in a cylinder, move the piston, add heat, or add more molecules, and something else must respond. Pressure, volume, temperature, and amount are not four independent knobs. For an ideal gas at equilibrium, the ideal gas law records their balance:

Ideal-gas equation of statePV = nRT

The equation describes a state. It does not say how quickly the state changes, whether heat has flowed, or whether the gas is close enough to ideal for the answer to be reliable.

The formula is so familiar that it can look harmless. It is not. Using a gauge pressure where absolute pressure is needed, or Celsius where kelvin belongs, can create a neat but physically impossible result. And at high density, low temperature, or near condensation, an actual gas stops behaving like the imagined one behind the equation.

An engineer pushes a navy piston into a transparent cylinder where teal and terracotta gas particles become crowded, with a mustard heating coil attached at the far end
Compressing a fixed amount of gas at the same temperature forces more wall collisions into less volume. Heating or adding molecules changes the balance in a different way.

The five quantities in one line

PAbsolute pressurepascal, Pa

Force per unit area. This must be measured from vacuum, not from local atmosphere.

VVolumecubic metre, m³

The gas volume, not the container’s nominal capacity if a piston or liquid occupies part of it.

nAmount of gasmole, mol

For an ideal mixture, use total moles with total pressure.

RMolar gas constantJ mol⁻¹ K⁻¹

8.314 462 618 153 24…; exact in the current SI.

TThermodynamic temperaturekelvin, K

Absolute temperature; convert Celsius before calculating.

IUPAC defines an ideal gas through this equation of state. It is a model of a gas whose molecules are sufficiently separated that their own size and mutual attraction or repulsion do not alter the pressure–volume relation. “Ideal” does not mean exceptionally good gas. It means a deliberately simplified physical model.

Why molecules lead to PV = nRT

Kinetic theory supplies a useful chain of reasoning. Molecules in a container collide with the walls. Each collision transfers momentum; the combined rate of those transfers is pressure. For N identical particles,

Wall collisionsPV = ⅓Nm c̄²

Pressure comes from molecular momentum transfer to the container wall.

Temperature link½m c̄² = 3/2 kBT

For a classical monatomic ideal gas, mean translational kinetic energy follows absolute temperature.

Count particles as molesN = nNA

One mole contains the Avogadro number of specified entities.

Collect constantsR = NAkB

Substitution turns the particle expression into PV = nRT.

This is reasoning, not permission to apply the final line everywhere. The model assumes a well-defined equilibrium temperature, elastic wall collisions, and a low-enough density that intermolecular forces do not dominate the pressure. Real gases can be close to that limit; they are never made of points with no mutual interaction.

A clear rounded vessel shows calm teal particles with short paths below and energetic terracotta particles with long paths and bright wall impacts above while a technician turns a heat-control wheel
At a higher absolute temperature, molecules have greater average translational kinetic energy. At fixed volume and amount, the more frequent and forceful wall impacts raise pressure.

Dimensional consistency: both sides are energy

The equation is often taught as a proportion, but its units say something more revealing:

[PV] = Pa·m³ = (N m⁻²)(m³) = N·m = J[nRT] = mol · (J mol⁻¹ K⁻¹) · K = J

Pressure multiplied by volume has an energy dimension. If a calculation mixes litres, bars, and an SI value of R without conversion, it is no longer checking equal physical quantities.

Work in SI when possible: Pa, m³, mol, K, and R = 8.314462618… J mol⁻¹ K⁻¹. Two conversions routinely matter: 1 L = 10⁻³ m³ and 1 bar = 10⁵ Pa. Other unit systems can be valid, but only when R has been converted consistently.

Absolute pressure and kelvin are non-negotiable

PressurePabs = Pgauge + Patm

A gauge reads relative to local atmospheric pressure. Zero gauge does not mean zero pressure in the equation.

TemperatureT(K) = t(°C) + 273.15

A Celsius increment and a kelvin increment have equal size, but a Celsius reading is not an absolute temperature.

Amountn = mass / molar mass

Do not confuse moles with grams. The molar mass has to match the gas composition.

VolumeV = gas space only

A liquid level, a moving piston, or plumbing dead volume can change the relevant volume.

The most costly ambiguity is pressure reference. Suppose a vessel is at 0 kPa gauge in ordinary air. Its absolute pressure is roughly 101 kPa, not zero. Substituting zero into PV=nRT would force either zero moles, zero temperature, or a broken model.

Solve for the quantity you actually need

PressureP = nRT/V

Useful when amount, temperature, and free volume are known.

VolumeV = nRT/P

Use absolute pressure and remember that the result is gas volume.

Amountn = PV/RT

Turns a measured state into moles only if the ideal model is adequate.

TemperatureT = PV/nR

Returns kelvin, not Celsius.

Same gas, two statesP₁V₁/T₁ = P₂V₂/T₂

Allowed only when the amount and composition have not changed.

The last form is useful for a sealed sample that is compressed or heated. It is not a shortcut for a leaky tank, a reaction vessel, a condensing gas, or a flow process where moles cross the boundary.

Worked example 1: pressure of a known gas sample

A 10.0 L vessel holds n = 2.00 mol of gas at T = 300.0 K. Convert volume first: 10.0 L = 0.0100 m³. Then:

NumeratornRT = (2.00)(8.314462618)(300.0) = 4,988.6776 J
PressureP = 4,988.6776 / 0.0100 = 498,867.757 Pa
ReportP = 498.868 kPa absolute ≈ 499 kPa absolute

The back-check returns the starting energy dimension: PV = (498,867.757)(0.0100) = 4,988.6776 J, matching nRT. The answer is absolute pressure. If a pressure gauge outside the vessel is referenced to a 101 kPa atmosphere, its reading would be about 398 kPa gauge—not 499 kPa gauge.

Worked example 2: amount in a room-temperature sample

Now reverse the problem. A sample occupies V = 24.0 L = 0.0240 m³ at P = 101,325 Pa absolute and T = 298.15 K. Find its amount:

NumeratorPV = (101,325)(0.0240) = 2,431.8 J
DenominatorRT = (8.314462618)(298.15) = 2,478.948… J mol⁻¹
Amountn = 2,431.8 / 2,478.948… = 0.980977 mol

Rounded to three significant figures, the sample contains 0.981 mol. Substitute the result back: nRT/P = 0.0240000 m³, which recovers the stated 24.0 L. Calling 101,325 Pa a gauge pressure instead would describe a completely different state.

Where the equation stops being the right answer

Usually a good first model

Low-density gases at sufficiently high temperature, far from condensation, when the required accuracy tolerates the approximation.

Needs a real-gas correction

Higher pressures, lower temperatures, dense gases, critical-region states, and conditions near liquefaction make molecular volume and attraction important.

Use a stated departure factor

PV = ZnRT uses the compressibility factor Z. An ideal gas has Z = 1; a real value must match composition, pressure, and temperature.

Needs other physics

Flow rate, heating time, diffusion, chemical reaction, phase change, and pressure drop require additional conservation laws and property data.

A researcher holds a transparent boundary sheet through a laboratory bottle, separating freely moving teal particles from crowded terracotta particles with visible interactions
The ideal model treats molecules as sufficiently separated and noninteracting. Crowding and attraction are a warning that a real-gas equation of state or measured property data may be needed.

The ideal gas law can turn a well-defined equilibrium state into a missing pressure, volume, temperature, or amount. It cannot decide whether a pressure is gauge or absolute, estimate a real-gas departure without data, or calculate a process rate. Those are not footnotes to the equation. They are the conditions that tell you whether its elegant one-line answer belongs to the physical situation at all.

Sources and further reading