Skip to content
FiftyCalc Free calculators for all 50 states

Compressibility Factor Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

The compressibility factor shows how far a real gas departs from the ideal gas law: Z = 1 is ideal. Enter a measured state of the gas.

Result

Sample figures

Compressibility factor Z—

Ideal gas volume at the same P, n, T (liters) —

  • Departure from ideal (%)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Compressibility Factor Calculator

Pressure, in kPa: enter 0 or more. Prefilled example: 101.325.

Volume, in L: enter 0 or more. Prefilled example: 22.4.

Amount of gas, in mol: enter 0 or more. Prefilled example: 1.

Temperature, in °C: enter -273.15 or more. Prefilled example: 0.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Pressure, in kPa: enter 0 or more.
  2. Volume, in L: enter 0 or more.
  3. Amount of gas, in mol: enter 0 or more.
  4. Temperature, in °C: enter -273.15 or more.
  5. Read the result: Compressibility factor Z; the panel also shows Ideal gas volume at the same P, n, T (liters) and Departure from ideal (%).

How this calculator works

Z = P V ÷ (n R T). With P in kPa and V in liters, P × V is in joules; T in kelvins = °C + 273.15. R = 8.314462618 J/(mol·K), the molar gas constant (CODATA 2022 values published by NIST (physics.nist.gov/cuu/Constants, read 2026-10-27)).

Z below 1 means attractions between molecules dominate (the gas is easier to compress); Z above 1 means their own volume dominates.

The formula

  1. Z=p×vln×8.314462618×(t+273.15)
Symbols used in the formula
SymbolMeaningUnit
pPressurekPa
vlVolumeL
nAmount of gasmol
tTemperature°C
ZCompressibility factor Z

Worked example

Pressure101.325 kPa
Volume22.4 L
Amount of gas1 mol
Temperature0 °C
Ideal gas volume at the same P, n, T (liters)22.414
Departure from ideal (%)-0.06%
  1. Z=101.325×22.41×8.314462618×(0+273.15)=0.999377

Compressibility factor Z 0.9994

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What does Z = 1 mean?

The gas behaves exactly as the ideal gas law predicts at that pressure and temperature.

When is Z far from 1?

At high pressure or near the temperature where the gas condenses.

Related calculators