{
  "id": "compressibility-factor",
  "title": "Compressibility Factor",
  "lang": "en",
  "source_lang": "en",
  "summary": "The compressibility factor is a dimensionless thermodynamic quantity that measures a fluid’s departure from ideal-gas behavior at a specified temperature, pressure, and composition.",
  "category": "science",
  "subcategory": "physics",
  "type": "concept",
  "aliases": [
    "Compression factor",
    "Gas deviation factor",
    "Real-gas factor",
    "Z-factor"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/compressibility-factor/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/compressibility-factor/",
      "json": "https://aiwiki.page/zh/compressibility-factor.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The compressibility factor, conventionally denoted by \\(Z\\), is a dimensionless quantity defined as the ratio \\(pV/(nRT)\\). It expresses how the pressure–volume–temperature relationship of a real fluid differs from that of an ideal gas. Although most commonly used for gases and supercritical fluids, it can also be defined for liquids. In thermodynamics, it provides a convenient way to express real-fluid properties, compare different substances, and calculate gas volumes, densities, and related properties."
    },
    {
      "heading": "Definition and interpretation",
      "text": "For a homogeneous fluid,\n\n\\[Z=\\frac{pV}{nRT}=\\frac{pV_{\\mathrm m}}{RT},\\]\n\nwhere:\n\n- \\(p\\) is the absolute pressure;\n- \\(V\\) is the volume;\n- \\(n\\) is the amount of substance;\n- \\(R\\) is the molar gas constant;\n- \\(T\\) is the absolute temperature;\n- \\(V_{\\mathrm m}=V/n\\) is the molar volume.\n\nThe corresponding real-fluid equation is\n\n\\[pV=nZRT.\\]\n\nThis expression becomes a predictive equation of state only when \\(Z\\) is supplied as a function of temperature, pressure or density, and composition.\n\nAt the same pressure, temperature, and amount of substance,\n\n\\[Z=\\frac{V_{\\text{real}}}{V_{\\text{ideal}}}.\\]\n\nThus:\n\n- \\(Z=1\\): the fluid satisfies the ideal-gas pressure–volume relation at that state.\n- \\(Z<1\\): its volume is smaller than the ideal-gas prediction.\n- \\(Z>1\\): its volume is larger than the ideal-gas prediction.\n\nA value of \\(Z=1\\) at a particular state does not establish that the fluid is ideal in every thermodynamic respect. Intermolecular effects may cancel in this ratio while other properties still differ from ideal-gas values.\n\nUsing mass density \\(\\rho\\) and molar mass \\(M\\),\n\n\\[Z=\\frac{pM}{\\rho RT}, \\qquad \\rho=\\frac{pM}{ZRT}.\\]\n\nFor a gas mixture, \\(M\\) is the mixture’s mean molar mass."
    },
    {
      "heading": "Molecular origin of deviations",
      "text": "The ideal-gas model neglects intermolecular interactions and treats particles as having negligible volume. Real molecules have finite spatial extent and exert attractive and repulsive forces.\n\nAt moderate densities, attractive interactions can lower the pressure relative to an ideal gas at the same temperature and molar volume, producing \\(Z<1\\). At sufficiently high densities, short-range repulsion and excluded-volume effects generally become dominant, producing \\(Z>1\\). Van der Waals forces are an important source of attraction in many molecular gases.\n\nThis interpretation is qualitative rather than a strict decomposition. The measured value of \\(Z\\) reflects the combined effects of interactions and molecular organization. Polar interactions, molecular association, and molecular shape can make behavior more complex than a simple competition between attraction and repulsion.\n\nFor an ordinary gas at fixed temperature, in the dilute limit,\n\n\\[\\lim_{p\\to 0}Z=1.\\]\n\nAt higher pressures, the behavior depends on the substance and temperature. An isotherm may initially fall below unity, pass through a minimum, and then rise. At sufficiently high temperatures, it may instead rise from unity without an initial decrease."
    },
    {
      "heading": "Virial expansion and Boyle temperature",
      "text": "A systematic description of dilute-gas nonideality is provided by the virial equation of state. In powers of molar density \\(\\rho_{\\mathrm m}=n/V=1/V_{\\mathrm m}\\),\n\n\\[Z=1+B(T)\\rho_{\\mathrm m} +C(T)\\rho_{\\mathrm m}^{2} +D(T)\\rho_{\\mathrm m}^{3}+\\cdots.\\]\n\nHere \\(B(T)\\), \\(C(T)\\), and subsequent terms are the second, third, and higher virial coefficients. The second coefficient has units of volume per mole; the third has units of volume squared per mole squared.\n\nIn statistical mechanics, these coefficients are related to intermolecular interactions. For pairwise-additive classical models, the second virial coefficient depends on the pair potential, while higher coefficients involve increasingly complex groups of particles.\n\nAn alternative expansion uses pressure:\n\n\\[Z=1+B_p(T)p+C_p(T)p^2+\\cdots.\\]\n\nThe coefficients in the pressure and density expansions are not interchangeable. In particular,\n\n\\[B_p(T)=\\frac{B(T)}{RT}.\\]\n\nThe Boyle temperature, \\(T_{\\mathrm B}\\), is defined by\n\n\\[B(T_{\\mathrm B})=0.\\]\n\nAt this temperature, the leading density correction vanishes. The gas therefore follows the ideal-gas pressure–volume relation more closely over a low-density range, but higher-order terms still produce deviations at finite density. For the usual case of a second virial coefficient that changes sign once, the initial deviation is negative below the Boyle temperature and positive above it.\n\nVirial expansions are especially useful for low-density gases and precision property calculations. A short truncated expansion is generally unsuitable near condensation or in dense-fluid regions."
    },
    {
      "heading": "Equations of state",
      "text": "Van der Waals model\n\nThe van der Waals equation illustrates the main contributions to nonideal behavior:\n\n\\[p=\\frac{RT}{V_{\\mathrm m}-b} -\\frac{a}{V_{\\mathrm m}^{2}},\\]\n\nwhere \\(a\\) represents attraction and \\(b\\) represents an excluded-volume parameter. It gives\n\n\\[Z=\\frac{V_{\\mathrm m}}{V_{\\mathrm m}-b} -\\frac{a}{RTV_{\\mathrm m}}.\\]\n\nThe first term raises \\(Z\\) above its ideal value, while the attractive term lowers it. Expanding at low density gives\n\n\\[B(T)=b-\\frac{a}{RT},\\]\n\nand therefore the model predicts\n\n\\[T_{\\mathrm B}=\\frac{a}{Rb}.\\]\n\nThese relationships explain qualitative trends, but the van der Waals equation is not sufficiently accurate for many engineering calculations.\n\nCubic and reference equations\n\nMore accurate cubic models, including the Peng–Robinson equation of state and the Soave–Redlich–Kwong equation, are widely used for gas processing and phase-equilibrium calculations. They can be rearranged into polynomial equations for \\(Z\\).\n\nUnder some subcritical conditions, a cubic equation has three real roots. The largest root is generally associated with a vapor-like state and the smallest with a liquid-like state; the intermediate root usually represents mechanical instability. The largest or smallest root is not automatically the stable equilibrium state: stability must be assessed using thermodynamic criteria, including Gibbs free energy or phase-equilibrium conditions.\n\nHigh-accuracy reference equations often express the Helmholtz free energy as a function of temperature and density. Pressure, and hence \\(Z\\), can then be obtained from derivatives. Such formulations can represent broad regions of a fluid’s phase diagram more accurately than simple cubic models."
    },
    {
      "heading": "Corresponding states and generalized charts",
      "text": "The principle of corresponding states motivates correlations of compressibility factors using reduced properties,\n\n\\[T_{\\mathrm r}=\\frac{T}{T_{\\mathrm c}}, \\qquad p_{\\mathrm r}=\\frac{p}{p_{\\mathrm c}},\\]\n\nwhere \\(T_{\\mathrm c}\\) and \\(p_{\\mathrm c}\\) are the critical temperature and pressure.\n\nFor fluids with sufficiently similar intermolecular interactions, \\(Z\\) can be approximated by a common function of \\(T_{\\mathrm r}\\) and \\(p_{\\mathrm r}\\). Generalized compressibility charts use this approximate similarity to estimate real-gas volumes without a separate detailed equation for every substance.\n\nMany correlations also include the acentric factor, a parameter based on vapor-pressure behavior that helps distinguish fluids whose behavior is not captured by two critical constants alone.\n\nGeneralized charts are approximate. Strongly polar, associating, and quantum fluids may require specialized treatment. Predictions are also particularly sensitive near the critical point, where density changes rapidly with pressure and temperature.\n\nThe critical compressibility factor is\n\n\\[Z_{\\mathrm c}=\\frac{p_{\\mathrm c}V_{\\mathrm m,c}}{RT_{\\mathrm c}}.\\]\n\nIt is not a universal constant. For example, the van der Waals model predicts \\(Z_{\\mathrm c}=3/8\\), whereas real substances have differing values."
    },
    {
      "heading": "Gas mixtures",
      "text": "For a homogeneous mixture,\n\n\\[Z=\\frac{pV}{nRT},\\]\n\nwith \\(n\\) equal to the total amount of all components. Its value depends on composition as well as pressure and temperature. In general,\n\n\\[Z_{\\text{mixture}}\\ne \\sum_i y_iZ_i,\\]\n\nwhere \\(y_i\\) is the mole fraction of component \\(i\\).\n\nMixture models must account for interactions between unlike molecules. At low density, the mixture second virial coefficient is\n\n\\[B_{\\text{mix}}(T) =\\sum_i\\sum_j y_i y_j B_{ij}(T),\\]\n\nwhere \\(B_{ij}\\) describes the contribution from interactions between species \\(i\\) and \\(j\\). Cubic equations instead commonly use mixing rules, sometimes with fitted binary interaction parameters.\n\nApproximate pseudocritical methods combine component properties to estimate mixture reduced variables. These can be useful for screening calculations, but detailed equations of state are generally required for accurate work with complex natural gases, refrigerant blends, or mixtures close to phase separation."
    },
    {
      "heading": "Relation to compressibility and fugacity",
      "text": "Despite its name, the compressibility factor is not the same quantity as isothermal compressibility,\n\n\\[\\kappa_T =-\\frac{1}{V_{\\mathrm m}} \\left(\\frac{\\partial V_{\\mathrm m}}{\\partial p}\\right)_T.\\]\n\nThe factor \\(Z\\) is dimensionless and describes a departure from the ideal-gas relation. By contrast, \\(\\kappa_T\\) measures the fractional volume response to pressure and has units of inverse pressure.\n\nFor a single phase of fixed composition,\n\n\\[\\kappa_T =\\frac{1}{p} -\\frac{1}{Z} \\left(\\frac{\\partial Z}{\\partial p}\\right)_T.\\]\n\nConsequently, knowing \\(Z\\) at one state does not determine the fluid’s compressibility; its pressure dependence is also required.\n\nThe factor is also related to fugacity, which expresses real-fluid effects on chemical potential. For a pure fluid along a suitable isothermal path from the dilute-gas limit,\n\n\\[\\ln\\phi =\\int_0^p \\frac{Z(T,p')-1}{p'}\\,\\mathrm dp',\\]\n\nwhere \\(\\phi=f/p\\) is the fugacity coefficient. Thus, chemical-equilibrium calculations depend on the variation of \\(Z\\) along a path, not simply on its value at the final pressure."
    },
    {
      "heading": "Applications, measurement, and limitations",
      "text": "Compressibility factors are used in:\n\n- Gas metering and volume conversion: converting measured volumes between operating and reference conditions.\n- Pipeline and reservoir calculations: determining gas density and stored gas quantities.\n- Process design: calculating real-fluid volumes and supporting phase-equilibrium models.\n- High-pressure experiments: interpreting pressure–volume–temperature measurements.\n- Thermodynamic property calculations: obtaining nonideal contributions to other properties through equations of state and their derivatives.\n\nFor the same quantity of gas at two states,\n\n\\[\\frac{V_2}{V_1} = \\frac{Z_2}{Z_1} \\frac{T_2}{T_1} \\frac{p_1}{p_2}.\\]\n\nBoth pressures must be absolute and both temperatures must be on an absolute scale.\n\nExperimentally, \\(Z\\) can be obtained from pressure, temperature, and molar-volume or density measurements. Accuracy depends on instrument calibration, sample purity, composition, and the measurement uncertainty of the measured quantities. Model-derived values also carry uncertainties associated with fitted data and extrapolation.\n\nA single \\(Z\\) value does not provide a complete thermodynamic description. Properties such as enthalpy and heat capacity require additional information, including suitable derivatives and an ideal-gas reference contribution. In a two-phase region, a bulk value computed from total volume also depends on the phase amounts and should not be treated as the compressibility factor of either homogeneous phase."
    }
  ],
  "links": [
    "ideal-gas",
    "thermodynamics",
    "pressure",
    "amount-of-substance",
    "gas-constant",
    "temperature",
    "equation-of-state",
    "density",
    "molar-mass",
    "molecule",
    "van-der-waals-forces",
    "statistical-mechanics",
    "van-der-waals-equation",
    "gibbs-free-energy",
    "helmholtz-free-energy",
    "critical-point",
    "fugacity",
    "chemical-potential",
    "measurement-uncertainty",
    "enthalpy",
    "heat-capacity"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}