Saved

Press the star next to a tool's name to save it.

All my tools

Ideal Gas Law Calculator

Choose what to solve for and enter the other values, and this ideal gas law calculator applies PV = nRT to find pressure, volume, moles or temperature in common units.

Restored your last values ·

Fill in the three values you know. The box for the value you're solving is ignored, but its unit sets the answer's unit.

–

Enter the three known values.

See full result

An ideal gas law calculator solves the equation PV = nRT in a moment, with no unit conversions to work through by hand. Choose whether you want pressure, volume, the amount of gas or temperature, then enter the other three values in whichever units you have. This ideal gas law calculator converts everything internally and returns the answer, along with the result in other common units. It's useful for chemistry and physics students, and for anyone who needs a quick estimate of how a gas will behave.

How to use the ideal gas law calculator

  1. Choose what to solve for.
  2. Enter the three values you know.
  3. Choose a unit for each one.
  4. Press Solve.

The ideal gas law

PV = nRT

  • P is the absolute pressure.
  • V is the volume.
  • n is the amount of gas in moles.
  • R is the ideal gas constant, 8.314 J/(mol·K).
  • T is the absolute temperature, in kelvins.

The ideal gas law, also called the general gas equation, is the equation of state of a hypothetical ideal gas. It's a good approximation of how many gases behave under many conditions, although it has limitations. The temperature in the equation must be absolute, which is why the calculator converts Celsius and Fahrenheit into kelvins for you.

Rearranging the equation

To findFormula
PressureP = nRT ÷ V
VolumeV = nRT ÷ P
Molesn = PV ÷ RT
TemperatureT = PV ÷ nR

A worked example

Find the volume of 1 mole of an ideal gas at 273.15 K and 1 atm. In SI units, the pressure is 101,325 Pa. So, V = nRT ÷ P = 1 × 8.314463 × 273.15 ÷ 101,325 = 0.0224140 cubic meters, which is 22.414 liters. If you then raise the temperature to 298.15 K at the same pressure, the volume becomes 24.4654 liters.

Why units matter

Most mistakes with the ideal gas law come from mixing units. The value of R depends on the units you use, and the temperature must be absolute. A pressure in atmospheres, a volume in liters and R in joules can't simply be multiplied together. The calculator avoids that trap by converting everything to SI units first: pascals, cubic meters, moles and kelvins. Then it converts the answer back into the unit you've selected.

Temperature conversions

  • Kelvin = Celsius + 273.15
  • Kelvin = (Fahrenheit − 32) × 5 ÷ 9 + 273.15

Zero kelvin, or −273.15 °C, is the lowest possible temperature. A temperature at or below this value isn't physically meaningful, so the calculator will reject it.

Gauge pressure and absolute pressure

The pressure in the equation is absolute pressure. A tire gauge reads the difference between the pressure inside and the air around it, so it's known as gauge pressure. To use a gauge reading, add the atmospheric pressure to it first. For example, a gauge reading of 32 psi at sea level is about 46.7 psi absolute. Using the gauge pressure directly would give a noticeably wrong answer.

What is an ideal gas?

An ideal gas is a theoretical model in which particles take up no space and don't attract or repel each other. Real gases follow this model closely at moderate temperatures and low pressures, because their molecules are far apart. Deviations become more significant at high pressures, where molecules are squeezed together, and at low temperatures, close to the point where a gas condenses. For those conditions, chemists use more detailed equations.

Several older laws are special cases of this equation. Boyle's law says that at a constant temperature, pressure and volume are inversely related. Charles's law says that at constant pressure, volume is proportional to absolute temperature. Avogadro's law says that at constant temperature and pressure, volume is proportional to the amount of gas. Holding some of the values fixed in this calculator lets you see these relationships at work.

More examples to try

Suppose that a 10-liter container holds 0.5 moles of gas at 300 K. Solving for pressure gives about 1.23 atm, or roughly 124.7 kPa. If you double the amount of gas while keeping the container and the temperature the same, the pressure doubles as well. Now try solving for temperature: a sealed container holding 2 moles of gas in 50 liters at 1 atm has a temperature of about 304.7 K, which is roughly 31.5 °C.

Where the ideal gas law is used

The equation appears in many practical settings. Engineers use it for first estimates of how much gas a tank or a cylinder can hold. Weather balloons expand as they rise because the outside pressure falls. Tires lose some pressure on cold mornings because the air inside has cooled. Chemists use it to work out how much gas a reaction has produced, and divers rely on the same basic relationships when they think about how air behaves at depth. In each case, it offers a quick estimate that's accurate enough for many purposes.

Common mistakes

  • Using Celsius directly. The temperature must be absolute.
  • Using gauge pressure. Add atmospheric pressure first.
  • Applying it near condensation. Real gases differ significantly there.

Find molar quantities with the molarity calculator, change pressure units with the pressure converter, and balance reactions with the chemical equation balancer.

What next

Use this often? Add Ideal Gas La to your Home screen.

Frequently asked questions

How does the ideal gas law calculator work?

It converts your values to SI units, rearranges PV = nRT and converts the answer back.

What is the value of R?

The ideal gas constant is about 8.314 J/(mol·K).

Why must temperature be in kelvins?

The equation needs absolute temperature, so the tool converts Celsius and Fahrenheit for you.

What is the volume of one mole of gas?

About 22.414 liters at 273.15 K and 1 atm.

Does it work for real gases?

It's a good approximation at moderate temperature and low pressure.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools