Ideal Gas

An ideal gas (also called a perfect gas) is a theoretical model of a gas whose behavior is completely described by the ideal gas law PV = nRT, where P is absolute pressure, V is volume, n is the number of moles of gas, R is the universal gas constant (8.314 joules per mole per kelvin, or 10.73 psia-ft3 per lb-mole per degree Rankine in petroleum engineering units), and T is absolute temperature, with the model assuming that gas molecules occupy no volume themselves (they are point masses), experience no intermolecular attractive or repulsive forces between molecules, and undergo only perfectly elastic collisions that conserve kinetic energy; real natural gases deviate from ideal behavior at the elevated pressures and temperatures found in petroleum reservoirs and processing facilities, with the deviation quantified by the gas compressibility factor (Z-factor), which modifies the ideal gas law to the real gas equation of state PV = ZnRT, where Z equals 1 for an ideal gas and deviates from 1 depending on pressure, temperature, and gas composition; despite not perfectly representing real gas behavior, the ideal gas law is the foundation for all natural gas material balance calculations, reservoir engineering, and facility design because it provides the simplest correct functional relationship between pressure, volume, temperature, and quantity of gas, and the Z-factor correction applied to real gases is small (typically within 5 to 15 percent of unity) at low to moderate pressures, making ideal gas calculations with Z-factor correction the standard approach for all petroleum engineering gas volume calculations.

Key Takeaways

  • The gas compressibility factor (Z-factor) quantifies the deviation of real natural gas from ideal behavior by expressing the ratio of the actual molar volume of the gas to the ideal molar volume predicted by the ideal gas law at the same temperature and pressure, with Z = Vactual / Videal: at low pressures (below approximately 500 psia for most natural gases), Z is close to 1 and the ideal gas law is an excellent approximation; at intermediate pressures (1,000 to 3,000 psia), attractive forces between gas molecules dominate and Z decreases below 1 (the gas occupies less volume than the ideal gas law predicts, meaning it is more compressible than ideal); at very high pressures (above approximately 5,000 to 8,000 psia), repulsive forces at close molecular separations dominate and Z increases above 1 (the gas is less compressible than ideal because the finite molecular volume reduces the available compressible space); the Standing-Katz Z-factor chart (developed from experimental data for natural gas mixtures in 1942 and still the most widely used industry reference) plots Z as a function of pseudo-reduced pressure and pseudo-reduced temperature for natural gas mixtures using the principle of corresponding states.
  • Standard conditions for natural gas measurement (the reference state at which gas volumes are reported and custody transfer occurs) are based on the ideal gas law framework: in the United States, standard conditions are typically 14.696 psia and 60 degrees Fahrenheit (519.67 degrees Rankine), at which one pound-mole of ideal gas occupies 379.4 standard cubic feet (scf); gas volumes measured at elevated reservoir pressure and temperature must be converted to standard conditions for reporting, surface facility sizing, and sales metering using the real gas equation P1V1/Z1T1 = P2V2/Z2T2 (where subscripts 1 and 2 refer to reservoir and standard conditions respectively); the concept of reservoir gas in place (GIP) in standard cubic feet (Mcf, MMscf, or Bcf) requires converting the physical volume of gas in the reservoir pore space (at reservoir pressure and temperature) to the equivalent volume at standard conditions, using the formation volume factor Bg = (T/Tsc)(Psc/P)(Zsc/Z) as the conversion factor between reservoir and standard volumes; different countries and contracts use different standard conditions (15 degrees Celsius and 101.325 kPa in SI and Canadian usage), requiring careful attention to which standard conditions are being used in international gas volume comparisons and contracts.
  • Material balance equations for gas reservoirs are derived directly from the ideal gas law and its real gas modification, using the PV = ZnRT framework to relate the decline in reservoir pressure over time to the volume of gas produced (the Havlena-Odeh material balance for gas): as gas is produced from a reservoir, the pressure declines proportionally to the fraction of original gas in place that has been removed (adjusted for Z-factor changes with pressure), providing the basis for the p/Z plot that plots (pressure divided by Z-factor) versus cumulative gas production on a graph where a straight-line plot indicates volumetric depletion behavior (no water influx) and the x-intercept of the straight line (at p/Z = 0) gives the original gas in place; the deviation of actual p/Z plots from a straight line indicates water influx or other pressure support mechanisms; this simple application of the ideal gas law framework (modified by Z) provides one of the most powerful tools in reservoir engineering for estimating gas reserve size and forecasting future pressure and production rate.
  • Gas processing and pipeline design calculations rely on the ideal gas law and Dalton's law of partial pressures (which states that the total pressure of a mixture of ideal gases equals the sum of the partial pressures each gas would exert alone in the same volume at the same temperature) for compressor sizing, separator design, and flow line hydraulics: a compressor that must move gas from 100 psia to 1,000 psia increases the pressure by a factor of 10, and if the gas were ideal, the volume would decrease by a factor of 10 at the same temperature; in practice the temperature rises during adiabatic compression (the isentropic compression path is calculated using the ideal gas adiabatic exponent gamma = Cp/Cv), and the real gas Z-factor changes with pressure, so the actual compression work differs from the ideal isothermal minimum by the adiabatic efficiency of the compressor; all multi-stage compression calculations in gas processing use the real gas law (with appropriate equation of state models for Z) rather than the ideal gas law directly, but the ideal gas law provides the conceptual framework and the limiting case that simplifies the analysis of the direction and magnitude of the pressure-volume-temperature changes during processing.
  • Equations of state (EOS) used in petroleum reservoir and process simulation are sophisticated extensions of the ideal gas law that incorporate molecular interaction terms to accurately represent real gas and liquid behavior over the full range of pressures and temperatures encountered in reservoirs and processing facilities: the van der Waals equation (the first modification of the ideal gas law, adding a molecular volume correction (b) and an intermolecular attraction correction (a)) provides the conceptual basis for all subsequent EOS development; the Peng-Robinson and Soave-Redlich-Kwong (SRK) cubic equations of state, which add temperature-dependent attraction terms to improve liquid property predictions, are the industry-standard EOS for natural gas and oil reservoir simulation and PVT (pressure-volume-temperature) analysis; these complex EOS models converge to ideal gas behavior (Z approaches 1) at low pressures and high temperatures, confirming that the ideal gas law is the correct asymptotic limit of all accurate gas behavior models and the appropriate simplification when pressures are low enough that molecular interaction effects are negligible.

Fast Facts

The ideal gas law in its modern form PV = nRT is the combination of three earlier empirical gas laws: Boyle's law (1662, P inversely proportional to V at constant T), Charles's law (1787, V proportional to T at constant P), and Avogadro's law (1811, V proportional to n at constant P and T). The universal gas constant R (8.314 J/mol-K) was determined from these relationships and connects the macroscopic PVT properties of gases to the microscopic kinetic energy of molecules through the Boltzmann constant. In the petroleum industry, the gas compressibility factor Z is recalculated for every new gas composition and pressure-temperature condition using correlations like Standing-Katz charts or EOS models, making Z one of the most frequently computed numbers in reservoir and facilities engineering.

What Is an Ideal Gas?

An ideal gas is a theoretical gas model governed by the equation PV = nRT, assuming point-mass molecules with no intermolecular forces and no molecular volume, which provides the foundational framework for all natural gas engineering calculations. Real natural gases deviate from ideal behavior at reservoir pressures and temperatures, with the deviation captured by the Z-factor in the modified real gas equation PV = ZnRT. Despite this simplification, the ideal gas law is the basis for gas material balance, reservoir engineering, compressor design, and custody transfer volume calculations, with Z-factor corrections applied throughout petroleum engineering to account for real gas behavior.

Ideal gas is also called perfect gas in thermodynamics literature; the real gas equation incorporating the Z-factor is called the real gas law or van der Waals equation in its earliest form. Related terms include Z-factor (the gas compressibility factor, the dimensionless ratio of actual molar volume to ideal gas molar volume at the same pressure and temperature, which corrects the ideal gas law for real gas behavior and is correlated against pseudo-reduced pressure and temperature using the Standing-Katz chart or equations of state for petroleum engineering calculations), standard cubic foot (scf, the unit of natural gas volume at standard conditions of 14.696 psia and 60 degrees Fahrenheit at which the ideal gas law with Z = 1 defines the volume occupied by a known molar quantity of gas, providing the reference state for all gas production reporting, custody transfer metering, and reserve estimation calculations), formation volume factor (Bg for gas, the ratio of the volume of gas in the reservoir at reservoir pressure and temperature to the equivalent volume at standard conditions, derived directly from the real gas law as a function of Z, pressure, and temperature, and used to convert all reservoir gas volume calculations to surface-equivalent standard conditions), material balance (the reservoir engineering technique that applies conservation of mass to the produced volumes and reservoir pressure history of a gas or oil reservoir, using the ideal gas law framework (modified by Z) to relate cumulative production to original fluid in place and pressure decline, providing one of the fundamental methods for reserves estimation and reservoir drive mechanism identification), and equation of state (a mathematical model relating pressure, volume, temperature, and composition for a fluid system, ranging from the ideal gas law (the simplest EOS) through the van der Waals, SRK, and Peng-Robinson cubic equations of state (industry standard for petroleum reservoir and process simulation) to more complex multi-parameter EOS used for specialized fluid characterization).

Why Understanding the Ideal Gas Law Is Foundational to All of Natural Gas Engineering

Every volume of natural gas produced, transported, and sold is measured and reported in standard cubic feet or cubic meters derived from the ideal gas law framework. Every compressor in every gas processing plant is sized using the ideal gas relationships between pressure, temperature, and volume, corrected for real gas behavior through the Z-factor. Every reservoir engineer estimating gas reserves uses the p/Z plot that is a direct graphical application of the real gas law to production history. The ideal gas law is not a simplification that engineers reluctantly use for lack of something better; it is the correct and rigorous framework for gas behavior at low to moderate pressures, and it remains the conceptual foundation even when Z-factor corrections, equations of state, and complex compositional models are layered on top for high-pressure applications.