Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Compressibility Factor (Z)
0.9994
dimensionless
Actual PV (P × V) 2,269.68 J
Ideal nRT 2,271.0955 J
Gas constant R 8.314462618 J/(mol·K)

What Is the Compressibility Factor?

The compressibility factor, denoted Z, measures how much a real gas deviates from ideal-gas behavior. For an ideal gas \(Z = 1\) exactly. When \(Z < 1\) the gas is more compressible than ideal (attractive forces dominate); when \(Z > 1\) it is less compressible than ideal (repulsive/finite-volume effects dominate). Z is dimensionless and is central to chemical and petroleum engineering, where accurate gas density and volume predictions matter.

Comparison of ideal gas and real gas behavior with compressibility factor Z
The compressibility factor Z measures how a real gas deviates from ideal behavior (\(Z = 1\)).

The Formula

Z is defined by rearranging the real-gas equation of state \(PV = ZnRT\):

$$Z = \frac{\text{P} \cdot \text{V}}{\text{n} \cdot R \cdot \text{T}}$$

where P is absolute pressure (Pa), V is volume (m³), n is amount of substance (mol), T is absolute temperature (K), and \(R = 8.314462618\ \text{J/(mol}\cdot\text{K)}\) is the universal gas constant. Be sure to use SI units and absolute (Kelvin) temperature.

Formula Z equals P times V over n R T shown as a labeled fraction diagram
Z is the ratio of measured PV to the ideal-gas value nRT.

How to Use This Calculator

Enter the measured pressure, volume, number of moles, and temperature of your gas sample. The calculator returns Z along with the actual PV product and the ideal nRT product so you can see exactly how the two compare.

Worked Example

Suppose 1 mol of gas occupies 0.0224 m³ at 101325 Pa and 273.15 K. Then $$nRT = 1 \times 8.314462618 \times 273.15 \approx 2271.10\ \text{J}$$ and $$PV = 101325 \times 0.0224 \approx 2269.68\ \text{J}.$$ So $$Z = \frac{2269.68}{2271.10} \approx 0.9994$$ — very close to ideal, as expected for a gas near standard conditions.

FAQ

What does \(Z = 1\) mean? The gas behaves ideally at those conditions.

Why must temperature be in Kelvin? The gas law requires absolute temperature; using Celsius or Fahrenheit gives wrong results.

Can Z be greater than 1? Yes — at high pressures repulsive forces and finite molecular volume make many gases less compressible than the ideal model predicts.

Last updated: