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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Pressure, in kPa: enter 0 or more.
- Volume, in L: enter 0 or more.
- Amount of gas, in mol: enter 0 or more.
- Temperature, in °C: enter -273.15 or more.
- 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
| Symbol | Meaning | Unit |
|---|---|---|
| Pressure | kPa | |
| Volume | L | |
| Amount of gas | mol | |
| Temperature | °C | |
| Compressibility factor Z |
Worked example
| Pressure | 101.325 kPa |
|---|---|
| Volume | 22.4 L |
| Amount of gas | 1 mol |
| Temperature | 0 °C |
| Ideal gas volume at the same P, n, T (liters) | 22.414 |
|---|---|
| Departure from ideal (%) | -0.06% |
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.