Skip to content
Formulaxis

Hydraulics, pneumatics and pressure

Ideal gas law: calculating P, V, n or T

Calculate the absolute pressure, volume, amount of substance or temperature of an ideal gas by choosing the unknown. Enter the other three quantities; pressure must be referenced to vacuum and temperature is converted to kelvins before calculation.

Created on , Revised on v2.0

Method and validation

Ideal gas law: calculating P, V, n or T

Initial example : 24 L.

Initial example : 1 mol.

Initial example : 300 K.

J/(mol·K)

Fixed SI value of 8,31446261815324 J/(mol·K). Keep this constant.

Initial values are examples.

Results

Absolute pressure p
103,900Pa

Ideal gas model at equilibrium, with strictly positive p, V, n and T.

Applied formulas

p=n×R×TV
p=(1 mol)×(8.314 J(mol·K))×(300 K)(0.024 m3)=103,900 Pa

Values are substituted in SI units and results are shown in the selected units.

Estimated reading time : 4 min · 614 words

Calculation details

Check the pressure reference and temperature unit in particular. The details use converted values and the fixed molar constant R.

01 · Absolute pressure

FORMULA

p=n×R×TV

NUMERICAL SUBSTITUTION

p=(1 mol)×(8.314 J(mol·K))×(300 K)(24 L)

RESULT

p=103,900 Pa

Absolute pressure and temperature in the ideal gas model

The ideal gas model relates the macroscopic state of a gas to its amount of substance while neglecting molecular interactions and the molecules' own volume.

The number of moles measures the amount of substance, independently of molar mass. The molar constant R is 8,31446261815324 J/(mol·K) in SI. Gauge pressure must be corrected by the reference pressure before entry.

Formulas and symbols

The following relations correspond to the calculated results. Units are converted before calculation.

p=n×R×TVThe result is an absolute pressure, not a gauge overpressure.

V=n×R×TpVolume is calculated for the entered temperature, absolute pressure and amount of substance.

n=p×VR×TThe result is an amount in moles, distinct from mass in kilograms.

T=p×Vn×RThe calculated temperature is absolute; displaying it on another scale requires conversion with an offset.

  • p: absolute pressure, in Pa, referenced to vacuum.
  • V: volume occupied by the gas, initially displayed in L.
  • n: amount of substance, in mol.
  • T: absolute temperature, in K for the calculation relation.
  • R: molar gas constant, fixed at 8,31446261815324 J/(mol·K).

State variables

InputConvention
pAbsolute pressure, not gauge pressure
VVolume occupied by the gas
nAmount in mol, not mass in kg
TAbsolute temperature converted to K
RMolar constant ≈ 8.31446 J/(mol·K)

Ideal gas; the law becomes less accurate at high densities or near a phase transition. OpenStax — University Physics 2, 2.1 Molecular Model of an Ideal Gas ; NIST — CODATA 2022: molar gas constant.

Worked examples

Example 1: One mole in 24 liters at 300 K

p=1×R×300/0,024≈103 930,78 Pa absolute, or about 1,04 bar.

Example 2: Volume at 1 bar absolute

At 300 K and for 1 mol, V=R×300/100 000≈0,02494 m3, or 24,94 L.

Example 3: Amount in 10 liters at 2 bar

For p=200 000 Pa, V=0,010 m3 and T=300 K, n=2 000/(R×300)≈0,80 mol.

Example 4: Temperature derived from p and V

For 1 mol in 24 L at 100 000 Pa absolute, T=2 400/R≈288,65 K, or about 15,50 °C.

Assumptions and limitations

Ideal gas model at equilibrium, with strictly positive p, V, n and T. Molecular interactions and volume are neglected; the approximation may be inadequate for a dense gas or near a phase transition.

Common mistakes

Entering gauge pressure or Celsius temperature directly into pV = nRT.

Frequently asked questions

Can temperature be entered in Celsius?

Yes: the calculator adds the offset to kelvins before applying pV = nRT. Zero or negative absolute temperature is excluded from this model.

What does absolute pressure mean?

It is pressure measured relative to a vacuum. For a gauge-pressure reading, add the local reference pressure without automatically assuming one standard atmosphere.

Can mass in kg replace n?

No. You must know the molar mass M and convert using n=m/M in consistent units. This conversion is not automated here.

Does the law determine heat transfer?

No. It relates state properties without specifying the path. Heat also depends on the process, work and gas energy properties. Add an energy balance and appropriate process assumptions to analyse a change of state.