Gibbs Energy of an Ideal Gas with Pressure

Squeeze a mole of gas into a smaller container and its Gibbs energy rises. This is not exotic chemistry — it is the thermodynamic reason gases expand, effuse through leaks, and drive turbines. Understanding how GG depends on pressure is the single most useful piece of bookkeeping in physical chemistry. The result matters because it is the direct ancestor of chemical potential, reaction quotients, and the equilibrium constant KpK_p. Every equilibrium calculation you will ever do with gases traces back to one integral. This article integrates dG=V dpdG = V\,dp at constant temperature for an ideal gas. You will see the derivation in full. Then two worked numerical examples. Finally the traps that catch students who forget the standard-state pressure.

Key takeaways
  • At constant TT, dG=V dpdG = V\,dp; for an ideal gas V=nRT/pV = nRT/p, so dG=nRT dp/pdG = nRT\,dp/p.
  • Integrating from p∘p^\circ to pp gives G(p)=G∘+nRTln⁡(p/p∘)G(p) = G^\circ + nRT\ln(p/p^\circ).
  • G∘G^\circ is the molar Gibbs energy at the standard pressure p∘=1 barp^\circ = 1\ \text{bar}, at the same temperature.
  • The logarithm means GG rises steeply at low pressure and only gently at high pressure.
  • This equation is the direct route to the chemical potential μ(p)=μ∘+RTln⁡(p/p∘)\mu(p) = \mu^\circ + RT\ln(p/p^\circ) of a pure ideal gas.
  • Key idea: because molar volume scales as 1/p1/p for an ideal gas, compressing it costs Gibbs energy logarithmically in pressure, not linearly.
The core insight

Because V=nRT/pV = nRT/p for an ideal gas, the exact differential dG=V dpdG = V\,dp integrates to a logarithm rather than a linear term, giving the universal form G=G∘+nRTln⁡(p/p∘)G = G^\circ + nRT\ln(p/p^\circ) that underlies every gas-phase equilibrium expression in chemistry.

The physical picture

Start from the general thermodynamic relation for a closed system at constant composition, dG=V dp−S dTdG = V\,dp - S\,dT. At constant temperature the S dTS\,dT term vanishes, leaving dG=V dpdG = V\,dp. This is exact for any substance — solid, liquid, or gas — and was established in the earlier discussion of the pressure dependence of the Gibbs energy. The only thing that changes from substance to substance is how VV depends on pp. For a solid or liquid, VV is nearly constant, so GG rises almost linearly with pressure and the effect is tiny (a few J mol⁻¹ for a pressure change of 1 bar). For an ideal gas, VV is inversely proportional to pp through V=nRT/pV = nRT/p. As pressure increases, the volume shrinks, so the "cost" in Gibbs energy per unit pressure increase — the slope dG/dp=VdG/dp = V — shrinks too. The result of integrating a 1/p1/p dependence is a natural logarithm, not a straight line. That single feature — logarithmic pressure dependence — is what makes gas equilibria behave the way they do: doubling a pressure never doubles GG, but multiplying it by ee adds a fixed increment RTRT. Because absolute Gibbs energies cannot be measured, we always report GG relative to a reference. Chemists chose a standard pressure p∘=1 barp^\circ = 1\ \text{bar} (exactly 10510^5 Pa) at which GG equals a reference value G∘G^\circ, the standard molar Gibbs energy, at the temperature of interest. Every real pressure is then compared to that fixed benchmark through the ratio p/p∘p/p^\circ, which is dimensionless — essential, since you cannot take the logarithm of a dimensional quantity.

Figure
Molar Gibbs energy of an ideal gas versus pressure at 298 K, showing the logarithmic rise relative to G° at 1 bar
p / p° G − G° (kJ mol⁻¹) 0 1 RT ln(p/p°), T = 298 K at p = 10 bar: ΔG = RT ln10 = +5.71 kJ/mol at p = 0.1 bar: ΔG = RT ln0.1 = −5.71 kJ/mol

The core relations

dG=V dp(constant T)dG = V\,dp \quad (\text{constant } T)

where: VV is the molar volume and dpdp an infinitesimal pressure change at fixed temperature and composition.

V=nRTpV = \frac{nRT}{p}

where: nn = amount of gas (mol), R=8.314 J K−1mol−1R = 8.314\ \text{J K}^{-1}\text{mol}^{-1}, TT = temperature (K), pp = pressure.

G(p)=G∘+nRTln⁡ ⁣(pp∘)G(p) = G^\circ + nRT\ln\!\left(\frac{p}{p^\circ}\right)

where: G∘G^\circ is the Gibbs energy at the standard pressure p∘=1 barp^\circ = 1\ \text{bar}, same TT; the ratio p/p∘p/p^\circ is dimensionless.

Gm(p)=Gm∘+RTln⁡ ⁣(pp∘)G_\text{m}(p) = G_\text{m}^\circ + RT\ln\!\left(\frac{p}{p^\circ}\right)

where: molar form (per mole, n=1n=1); this is the version usually quoted and used directly for chemical potential.

Derivation AIntegrating dG = V dp for an ideal gas

Goal. Find G(p)G(p) for nn mol of ideal gas at fixed temperature TT, starting from the exact relation dG=V dpdG = V\,dp.

Step 1 — Write the differential at constant T. Because dG=V dp−S dTdG = V\,dp - S\,dT in general, holding TT fixed kills the entropy term:

dG=V dp(constant T, n).dG = V\,dp \qquad (\text{constant } T,\ n).

Step 2 — Insert the ideal-gas equation of state. For nn moles of ideal gas, pV=nRTpV = nRT, so

V=nRTp.V = \frac{nRT}{p}.

Substituting,

dG=nRTp dp.dG = \frac{nRT}{p}\,dp.

Step 3 — Integrate between two pressures. Choose the lower limit to be the standard pressure p∘p^\circ, where G=G∘G = G^\circ, and the upper limit to be the pressure of interest pp, where G=G(p)G = G(p). Since nn, RR, TT are constants at fixed temperature and amount, they leave the integral:

∫G∘G(p)dG=nRT∫p∘pdp′p′.\int_{G^\circ}^{G(p)} dG = nRT \int_{p^\circ}^{p} \frac{dp'}{p'}.

Step 4 — Evaluate both integrals. The left side is simply G(p)−G∘G(p) - G^\circ. The right side is a standard logarithmic integral:

∫p∘pdp′p′=ln⁡p−ln⁡p∘=ln⁡ ⁣(pp∘).\int_{p^\circ}^{p}\frac{dp'}{p'} = \ln p - \ln p^\circ = \ln\!\left(\frac{p}{p^\circ}\right).

So

G(p)−G∘=nRTln⁡ ⁣(pp∘).G(p) - G^\circ = nRT \ln\!\left(\frac{p}{p^\circ}\right).

Step 5 — Rearrange to the final form.

G(p)=G∘+nRTln⁡ ⁣(pp∘)\boxed{G(p) = G^\circ + nRT\ln\!\left(\frac{p}{p^\circ}\right)}

Dividing by nn gives the molar form Gm=Gm∘+RTln⁡(p/p∘)G_\text{m} = G_\text{m}^\circ + RT\ln(p/p^\circ), which is the version that feeds directly into the definition of chemical potential for a pure ideal gas.

Worked examples

Example 1 — Foundational: compressing nitrogen isothermally. One mole of N₂(g), treated as ideal, is compressed at 298 K298\ \text{K} from the standard pressure p∘=1 barp^\circ = 1\ \text{bar} to p=20 barp = 20\ \text{bar}. Find ΔG\Delta G. Step 1. Identify quantities: n=1 moln = 1\ \text{mol}, T=298 KT = 298\ \text{K}, R=8.314 J K−1mol−1R = 8.314\ \text{J K}^{-1}\text{mol}^{-1}, p/p∘=20p/p^\circ = 20. Step 2. Apply the boxed result directly, since the initial state is the standard state (Gi=G∘G_i = G^\circ):

ΔG=G(p)−G∘=nRTln⁡ ⁣(pp∘).\Delta G = G(p) - G^\circ = nRT\ln\!\left(\frac{p}{p^\circ}\right).

Step 3. Compute the logarithm: ln⁡20=2.996\ln 20 = 2.996. Step 4. Compute RTRT: 8.314×298=2477.6 J mol−18.314 \times 298 = 2477.6\ \text{J mol}^{-1}. Step 5. Multiply:

ΔG=(1 mol)(2477.6 J mol−1)(2.996)=7423 J=7.42 kJ.\Delta G = (1\ \text{mol})(2477.6\ \text{J mol}^{-1})(2.996) = 7423\ \text{J} = 7.42\ \text{kJ}.

Sanity check: compression increases GG, and ΔG\Delta G came out positive — consistent with the sign of ln⁡(p/p∘)>0\ln(p/p^\circ) > 0 for p>p∘p > p^\circ. The magnitude, a few kJ per mole for a twenty-fold pressure change, is typical for gas-phase pressure effects (compare: a 1 bar change in a liquid's pressure moves GG by only ~10−510^{-5} kJ mol⁻¹, since Vm,liquid≪Vm,gasV_\text{m,liquid} \ll V_\text{m,gas}).

Example 2 — Applied: Gibbs energy change on mixing/expansion relevant to Kp. Consider 2.50 mol of an ideal gas at 350 K350\ \text{K} expanding isothermally from an initial pressure p1=12.0 barp_1 = 12.0\ \text{bar} to a final pressure p2=0.800 barp_2 = 0.800\ \text{bar} (e.g., a gas released from a cylinder into a larger reactor volume, relevant to later KpK_p calculations). Find ΔG\Delta G and comment on its sign. Step 1. Because GG depends on pressure through the same logarithmic law regardless of reference point, the difference between two arbitrary pressures is:

ΔG=G(p2)−G(p1)=nRTln⁡ ⁣(p2p∘)−nRTln⁡ ⁣(p1p∘)=nRTln⁡ ⁣(p2p1).\Delta G = G(p_2) - G(p_1) = nRT\ln\!\left(\frac{p_2}{p^\circ}\right) - nRT\ln\!\left(\frac{p_1}{p^\circ}\right) = nRT\ln\!\left(\frac{p_2}{p_1}\right).

Note the standard pressure cancels — it must, since ΔG\Delta G between two real states cannot depend on an arbitrary reference choice. Step 2. Compute the pressure ratio: p2/p1=0.800/12.0=0.06667p_2/p_1 = 0.800/12.0 = 0.06667. Step 3. Take the logarithm: ln⁡(0.06667)=−2.708\ln(0.06667) = -2.708. Step 4. Compute nRTnRT: 2.50 mol×8.314 J K−1mol−1×350 K=7274.75 J2.50\ \text{mol} \times 8.314\ \text{J K}^{-1}\text{mol}^{-1} \times 350\ \text{K} = 7274.75\ \text{J}. Step 5. Multiply:

ΔG=7274.75 J×(−2.708)=−19701 J=−19.7 kJ.\Delta G = 7274.75\ \text{J} \times (-2.708) = -19701\ \text{J} = -19.7\ \text{kJ}.

Sanity check: expansion to lower pressure should decrease GG (a gas expanding into vacuum-like conditions releases Gibbs energy at constant TT), and indeed ΔG<0\Delta G < 0. The size, about −20 kJ-20\ \text{kJ} for a fifteen-fold pressure drop with 2.5 mol, scales sensibly compared to Example 1's +7.4 kJ+7.4\ \text{kJ} for a twenty-fold increase with only 1 mol — same order of magnitude per mole once the ratio and mole number are accounted for.

Limiting cases & common traps

SituationBehaviorWhy
p=p∘p = p^\circG=G∘G = G^\circ exactlyln⁡(1)=0\ln(1) = 0
p→0p \to 0G→−∞G \to -\inftyideal-gas law breaks down physically first; log diverges mathematically
p≫p∘p \gg p^\circGG grows only logarithmicallyconsistent with V∝1/pV \propto 1/p shrinking the "cost" per unit dpdp
Solids/liquidsGG roughly linear in pp, tiny slopeVV nearly pressure-independent, so dG=V dpdG = V\,dp integrates to VΔpV\Delta p
Real gases at high ppFormula becomes approximatemust replace pp with fugacity ff

The chemist behind it

The modern formalism of chemical potential and standard states, built on exactly this pressure-logarithm relation, owes its systematic development to Gilbert N. Lewis, who in the early twentieth century unified activity, fugacity, and standard states into the coherent framework still taught today. Lewis's insight was to recognize that real gases and solutions could be handled with the same mathematical form as the ideal case, simply by replacing pp with an effective "fugacity," making the ideal-gas logarithmic law the template for all of chemical thermodynamics.

Origins · 1 minGilbert N. Lewis and how this was discovered
GN
Gilbert N. Lewis
1875–1946 · American physical chemist who introduced fugacity, activity, and the modern standard-state convention underlying G(p) = G° + RT ln(p/p°)

Ask the tutor: How does this pressure-dependence formula turn into the chemical potential of a gas mixture, and eventually into the equilibrium constant Kp?

Why does G increase with pressure for a gas but the everyday intuition says compressed gas has more "stored energy," not more Gibbs energy specifically

Compressed gas indeed stores more Gibbs energy at constant TT, and this is exactly what drives it to expand and do work when released. The rise in GG with pp reflects reduced entropy per mole (less accessible volume) at fixed enthalpy, so G=H−TSG = H - TS increases as SS decreases. That increase is a genuine thermodynamic potential difference, not just "energy" in the everyday sense — it quantifies the maximum non-expansion work extractable at constant T,pT,p.

Does this equation apply to gas mixtures, not just pure gases

The derivation as shown is for one pure ideal gas, but it generalizes directly to a component in an ideal gas mixture by replacing total pressure pp with the partial pressure pip_i of that component. This gives μi=μi∘+RTln⁡(pi/p∘)\mu_i = \mu_i^\circ + RT\ln(p_i/p^\circ), the chemical potential of a gas in a mixture, which is the direct next step toward the reaction quotient and KpK_p.

Why is the standard pressure defined as exactly 1 bar and not 1 atm

IUPAC redefined the standard pressure as 1 bar=105 Pa1\ \text{bar} = 10^5\ \text{Pa} in 1982, replacing the older convention of 1 atm=101,325 Pa1\ \text{atm} = 101{,}325\ \text{Pa}. The change was made for a rounder, SI-consistent reference value. The numerical difference between the two standards is small, changing G∘G^\circ by about 0.034 kJ mol−10.034\ \text{kJ mol}^{-1} at 298 K, but you should check which convention a data table uses.

What happens to this equation for a real, non-ideal gas

For real gases, V≠nRT/pV \neq nRT/p exactly, so the clean integration breaks down. The practical fix, due to G. N. Lewis, is to define a fugacity ff such that the same functional form holds, G=G∘+nRTln⁡(f/p∘)G = G^\circ + nRT\ln(f/p^\circ), with f→pf \to p in the low-pressure ideal limit. All the nonideality is absorbed into the fugacity coefficient γ=f/p\gamma = f/p, so the elegant logarithmic law survives even when the ideal gas law does not.

How does this connect to chemical potential and equilibrium constants

Dividing G(p)=G∘+nRTln⁡(p/p∘)G(p) = G^\circ + nRT\ln(p/p^\circ) by nn gives the molar Gibbs energy, which for a pure substance equals the chemical potential μ\mu. This μ(p)=μ∘+RTln⁡(p/p∘)\mu(p) = \mu^\circ + RT\ln(p/p^\circ) is the starting point for writing the Gibbs energy of a reacting mixture, from which ΔrG=ΔrG∘+RTln⁡Qp\Delta_rG = \Delta_rG^\circ + RT\ln Q_p and, at equilibrium, ΔrG∘=−RTln⁡Kp\Delta_rG^\circ = -RT\ln K_p are derived in the following topics.

Before this