Compressibility Factor Calculator

Find the compressibility factor Z=PV/(nRT), a direct measure of how much a real gas deviates from ideal gas behavior.

📊 Compressibility Factor Calculator
bar
L/mol
K
Compressibility factor (Z)
Step-by-step working

📊 What is the Compressibility Factor Calculator?

This compressibility factor calculator finds Z=PVm/(RT), a direct measure of how far a real gas deviates from ideal gas behavior. Enter a pressure, molar volume, and temperature, and it returns Z along with a classification of the deviation.

Using standard temperature and pressure (1 atm, 22.414 L/mol, 273.15 K), this calculator gives exactly Z=1.0000, confirming the formula against its own defining reference point.

Z less than 1 means the gas is more compressible than ideal (attraction dominates), Z greater than 1 means less compressible (excluded volume dominates).

This calculator is useful for chemical engineering and physical chemistry students, and for natural gas and petroleum engineers correcting real-gas volume and flow calculations.

📐 Formula

Z  =  PVm / (RT)
Z = 1: ideal gas. Z < 1: more compressible. Z > 1: less compressible.
Example: STP (1 atm, 22.414 L/mol, 273.15 K): Z=1.0000 exactly.

📖 How to Use This Calculator

Steps

1
Enter the pressure.
2
Enter the molar volume.
3
Enter the temperature.
4
Read the compressibility factor.

💡 Example Calculations

Example 1 - Standard temperature and pressure

1
P=1.01325 bar (1 atm), Vm=22.414 L/mol, T=273.15 K
2
Z = PVm/(RT)
3
Z = 1.0000 exactly, confirming the formula at its defining reference point
Z = 1.0000
Try this example →

Example 2 - High-pressure real gas (Z > 1)

1
P=100 bar, Vm=0.3 L/mol, T=300 K
2
Z = PVm/(RT)
3
Z = 1.2027, less compressible than ideal at this high pressure
Z = 1.2027
Try this example →

Example 3 - Moderate-pressure real gas

1
P=50 bar, Vm=0.55 L/mol, T=320 K
2
Z = PVm/(RT)
3
Z = 1.0336, a modest deviation from ideal
Z = 1.0336
Try this example →

❓ Frequently Asked Questions

What is the compressibility factor?+
The compressibility factor (Z) is a dimensionless quantity that measures how much a real gas's behavior deviates from the ideal gas law, defined as Z=PVm/(RT). An ideal gas has Z=1 exactly at every condition.
What is the formula for compressibility factor?+
Z = PVm/(RT), where P is pressure, Vm is molar volume, R is the universal gas constant, and T is absolute temperature. This is simply the ratio of a real gas's actual PVm/(RT) to what the ideal gas law would predict (which is always 1).
What does Z less than 1 mean?+
Z<1 means the real gas is more compressible than an ideal gas at that state, its actual volume is smaller than the ideal gas law would predict, typically because attractive intermolecular forces pull the molecules closer together than expected.
What does Z greater than 1 mean?+
Z>1 means the real gas is less compressible than an ideal gas, its actual volume is larger than the ideal gas law would predict, typically because the finite size of the molecules (excluded volume, repulsive effects) becomes significant, common at high pressure.
Why does STP give exactly Z=1?+
Standard molar volume at STP (22.414 L/mol at 273.15 K and 1 atm) is itself derived directly from the ideal gas law, so plugging those standard values back into Z=PVm/(RT) necessarily gives exactly 1, confirming the calculator's formula against its own defining reference point.
How is compressibility factor used in the natural gas industry?+
Z factor corrections are essential for accurately converting between measured gas volumes at pipeline conditions and standard reference conditions, since natural gas at high pipeline pressures deviates meaningfully from ideal behavior, engineers use Z factor charts or equations of state to make these corrections.
How does compressibility factor relate to the Van der Waals equation?+
The Van der Waals equation (and other real-gas equations of state) can be used to predict Z at any given pressure, volume, and temperature, this calculator instead computes Z directly from measured or given P, Vm, and T without needing to know a gas's specific equation-of-state constants.
Does compressibility factor depend on which gas is used?+
Yes, different gases deviate from ideal behavior differently at the same conditions, though the generalized compressibility chart approach shows that most gases follow roughly similar Z-factor curves when plotted against reduced (critical-point-normalized) pressure and temperature.
At what conditions is Z closest to 1?+
Z is closest to 1 (most ideal behavior) at low pressure and high temperature, where gas molecules are far apart on average and both intermolecular attraction and excluded volume effects become negligible.
What units does this calculator use?+
Pressure is entered in bar, molar volume in litres per mole (L/mol), and temperature in Kelvin, the compressibility factor itself is dimensionless.

What is the compressibility factor?

The compressibility factor (Z) is a dimensionless quantity that measures how much a real gas's behavior deviates from the ideal gas law, defined as Z=PVm/(RT). An ideal gas has Z=1 exactly at every condition.

What is the formula for compressibility factor?

Z = PVm/(RT), where P is pressure, Vm is molar volume, R is the universal gas constant, and T is absolute temperature. This is simply the ratio of a real gas's actual PVm/(RT) to what the ideal gas law would predict (which is always 1).

What does Z less than 1 mean?

Z<1 means the real gas is more compressible than an ideal gas at that state, its actual volume is smaller than the ideal gas law would predict, typically because attractive intermolecular forces pull the molecules closer together than expected.

What does Z greater than 1 mean?

Z>1 means the real gas is less compressible than an ideal gas, its actual volume is larger than the ideal gas law would predict, typically because the finite size of the molecules (excluded volume, repulsive effects) becomes significant, common at high pressure.

Why does STP give exactly Z=1?

Standard molar volume at STP (22.414 L/mol at 273.15 K and 1 atm) is itself derived directly from the ideal gas law, so plugging those standard values back into Z=PVm/(RT) necessarily gives exactly 1, confirming the calculator's formula against its own defining reference point.

How is compressibility factor used in the natural gas industry?

Z factor corrections are essential for accurately converting between measured gas volumes at pipeline conditions and standard reference conditions, since natural gas at high pipeline pressures deviates meaningfully from ideal behavior, engineers use Z factor charts or equations of state to make these corrections.

How does compressibility factor relate to the Van der Waals equation?

The Van der Waals equation (and other real-gas equations of state) can be used to predict Z at any given pressure, volume, and temperature, this calculator instead computes Z directly from measured or given P, Vm, and T without needing to know a gas's specific equation-of-state constants.

Does compressibility factor depend on which gas is used?

Yes, different gases deviate from ideal behavior differently at the same conditions, though the generalized compressibility chart approach shows that most gases follow roughly similar Z-factor curves when plotted against reduced (critical-point-normalized) pressure and temperature.

At what conditions is Z closest to 1?

Z is closest to 1 (most ideal behavior) at low pressure and high temperature, where gas molecules are far apart on average and both intermolecular attraction and excluded volume effects become negligible.

What units does this calculator use?

Pressure is entered in bar, molar volume in litres per mole (L/mol), and temperature in Kelvin, the compressibility factor itself is dimensionless.