The compressibility factor is Z = PV/(nRT), where P is pressure, V is volume, n is the number of moles, R is the universal gas constant, and T is the absolute temperature. For one mole, Z = PV/RT. It measures deviation from ideal gas behavior (Z = 1 for an ideal gas).