molecalculator

Moles & Molar Mass

Gas Pressure Formula: PV=nRT Explained

Calculator No. 01-11947 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The pressure of a gas is most directly given by the ideal gas law, P = nRT / V, where P is pressure, n is the amount of gas in moles, R is the gas constant, T is absolute temperature, and V is volume. Enter the number of moles, temperature, and volume to get pressure in pascals, atmospheres, or other units.

Formula

The ideal gas law is written as:

P = nRT / V

  • P – pressure of the gas (in atm or kPa)
  • n – amount of gas (in moles)
  • R – ideal gas constant (0.0820574 L·atm/(mol·K) or 8.31446 J/(mol·K))
  • T – absolute temperature (in kelvin, K)
  • V – volume of the container (in liters, L)

This equation assumes the gas behaves ideally: molecules have negligible volume and no intermolecular forces. It works well for most gases at low pressure and high temperature.

Worked Example

Using the default values from the calculator: n = 1.000 mol, T = 298.15 K, V = 22.414 L.

First, calculate pressure in atmospheres:

P = (1.000 mol × 0.0820574 L·atm/(mol·K) × 298.15 K) / 22.414 L

P = (1.000 × 0.0820574 × 298.15) / 22.414

P = 24.4654 / 22.414 ≈ 1.0916 atm

Now convert to kPa (1 atm = 101.325 kPa):

P = 1.0916 atm × 101.325 kPa/atm ≈ 110.6 kPa

The calculator shows 1.0916 atm and 110.61 kPa, matching our manual calculation.

Assumptions

  • The gas behaves ideally (no intermolecular forces, negligible molecular volume).
  • Temperature is in kelvin (absolute scale).
  • Volume is the total container volume, not the volume per mole.
  • Amount of gas is in moles, not grams (convert using molar mass if needed).

When to Use the Ideal Gas Law

Use the ideal gas law when you need to find one property (pressure, volume, temperature, or moles) given the other three. It is the standard equation for most chemistry and physics problems involving gases at moderate conditions (near room temperature and atmospheric pressure).

For example, to find the pressure of 2.5 moles of oxygen gas in a 10.0 L container at 300 K:

P = (2.5 × 0.0820574 × 300) / 10.0 = 6.154 atm

You can also rearrange the equation to solve for any variable:

  • Volume: V = nRT / P
  • Temperature: T = PV / (nR)
  • Moles: n = PV / (RT)

Common Mistakes and How to Avoid Them

  • Using Celsius instead of Kelvin: Always convert °C to K by adding 273.15. For example, 25 °C becomes 298.15 K.
  • Mixing up units for R: If you use pressure in atm, volume in L, then R = 0.0820574. If you use pressure in kPa and volume in L, use R = 8.31446 (but then volume must be in m³ for SI? Actually, for kPa·L, R = 8.31446 also works because 1 kPa·L = 1 J). Check that your units cancel.
  • Forgetting to convert grams to moles: If you have mass, divide by molar mass (e.g., 32.00 g/mol for O₂).
  • Rounding too early: Keep at least 4 significant figures until the final step.

When the Ideal Gas Law Fails

At high pressure (e.g., >10 atm) or low temperature (near liquefaction), real gases deviate from ideal behavior because molecules do occupy volume and attract each other. The van der Waals equation corrects for this:

(P + a(n/V)²)(V – nb) = nRT

where a and b are substance-specific constants. For example, for CO₂, a = 3.59 L²·atm/mol² and b = 0.0427 L/mol. At 10 atm and 300 K, the ideal gas law might overestimate pressure by a few percent, while the van der Waals equation gives a closer value.

Alternative Ways to Measure Pressure

In the lab, you don’t always calculate pressure from the ideal gas law; you measure it directly with instruments:

  • Manometer: A U-tube filled with mercury or oil, measures pressure difference from atmospheric.
  • Bourdon gauge: A coiled tube that straightens under pressure, common in gas cylinders.
  • Barometer: Measures atmospheric pressure, usually in mmHg or atm.

If you have a measured pressure and need moles or volume, you can use the ideal gas law in reverse.

Frequently Asked Questions

What is the value of R in different units?

The gas constant R has many values depending on units. Common ones: 0.0820574 L·atm/(mol·K), 8.31446 J/(mol·K), 62.364 L·mmHg/(mol·K), and 1.987 cal/(mol·K). Always match R to the units of P and V you are using.

Why do we add 273.15 to Celsius to get Kelvin?

Kelvin is an absolute temperature scale starting at absolute zero (-273.15 °C). Adding 273.15 converts a Celsius reading to kelvin. For example, 0 °C = 273.15 K, and 25 °C = 298.15 K.

Can I use the ideal gas law for mixtures of gases?

Yes. For a mixture, n is the total moles of all gases. The pressure calculated is the total pressure. Dalton’s law says each gas contributes a partial pressure proportional to its mole fraction.

What is the difference between gauge pressure and absolute pressure?

Gauge pressure is measured relative to atmospheric pressure (e.g., a tire gauge reads 0 when open to air). Absolute pressure = gauge pressure + atmospheric pressure. The ideal gas law requires absolute pressure, so add 1 atm (or 101.325 kPa) to gauge readings.

Why does a gas cylinder feel cold when it expands?

When a gas expands rapidly, it does work on the surroundings, losing internal energy. This is an adiabatic process (no heat exchange). The temperature drops, which is why the cylinder feels cold. The ideal gas law still applies, but T changes during the process.

Related

Formula used
in n | Amount of gas | mol | 1.000 | 0
in T | Temperature | K | 298.15 | 0
in V | Volume | L | 22.414 | 0.001
out P | Pressure (atm) | atm | n * 0.0820574 * T / V | 4
out PkPa | Pressure (kPa) | kPa | n * 8.31446 * T / V | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →