Assume a single-phase ideal gas mixture in a closed parcel, with common temperature , total pressure , and molar species amounts . Define and volume mixing ratios , so . Ideal mixing makes partial pressure .
For a pure ideal species, , with molar volume . At fixed temperature, integration from standard pressure gives
The same logarithmic composition term follows from the ideal mixing entropy . Extensivity gives . Hence the Gibbs free energy of an ideal-gas mixture is
Equivalently, write each standard chemical term as , using molar enthalpy and entropy. For zero abundance the limit defines the extensive expression continuously.
The fractions alone do not specify the extensive Gibbs free energy: the total amount or an equivalent elemental inventory must also be fixed. Moreover, in a chemically closed reacting system need not remain constant; for example, hydrogenation of carbon monoxide changes the total molecular count while conserving atoms. Minimization is therefore over species amounts subject to elemental constraints, rather than over fractions with an artificially fixed molecular count. Nonideal gases require activities or fugacities; condensates contribute separate phase terms.