← All simulations

Free Energy of an A ⇌ B Mixture

One liter of solution contains A and B, which interconvert (A ⇌ B), at a fixed total concentration. The four plots show how the free energy depends on the mole fraction of B, X. The total free energy of the mixture has a minimum, and that minimum is the equilibrium: there the molar free energies of A and B are equal, the free energy change for converting A to B is zero, and [B]/[A] = K. All free energies are in units of RT: to convert a value in kJ/mol, divide it by RT = 0.008314 × T kJ/mol, and for kcal/mol divide by RT = 0.001987 × T kcal/mol, with T in kelvin. At 25 °C (298 K), RT = 2.479 kJ/mol = 0.593 kcal/mol, so ΔG° = −5 kJ/mol is −2.02 RT.

Start by changing the settings by hand, one at a time, and work out how each change shows up in all four plots and why; Play is more useful once you know what to look for. Then press Play to sweep G°B back and forth through a range (until you press Pause) and watch the minimum move. The axes stay fixed while G°B stays within the Play range. Move the pointer over any plot to read off values.

Settings
RT
RT
M
Sweep G°B from to RT

Total free energy of the A + B mixture

Lowest at equilibrium (gold point)

Molar free energies of A and B

Equal at equilibrium; each equals its standard value at 1 M

ΔG per mole of A converted to B

The slope of the top-left plot; zero at equilibrium

Total free energies of A and of B

Their sum is the top-left plot

How this is calculated

This page is the web version of the Matlab functions TotalG.m and TotalG_anim.m. The solution has a volume of 1 L, so moles and molar concentrations are the same numbers. X is the mole fraction of B and C the total concentration:

[A] = C(1 - X), [B] = C X, C = [A] + [B]

Throughout, activities are treated as equal to concentrations (an ideal solution), with a standard state of 1 M.

Molar free energies. The molar free energy (chemical potential) of each species is its standard free energy plus a term that depends on its concentration:

G_A = G0_A + RT ln([A]/1 M), G_B = G0_B + RT ln([B]/1 M)

Each molar free energy equals its standard value where that species is at 1 M (the circles in the top-right plot, shown when the total concentration is at least 1 M), and falls without limit as the species becomes scarce.

Total free energy. The free energy of the mixture is the number of moles of each species times its molar free energy (bottom-right plot), summed (top-left plot):

G = nA GA + nB GB = (1 L)([A] GA + [B] GB)

Written out, the first term below is a straight line between the pure-A and pure-B values, and the second (from the logarithms) bends the line down into a curve with a minimum, however different G°A and G°B are. That is why a reaction never goes completely to one side:

G = C[(1 - X)G0A + X G0B] + C RT[(1 - X) ln C(1 - X) + X ln CX]

Free energy change per mole converted. Converting a small amount of A into B changes the total free energy by the difference of the two molar free energies, the slope of the top-left plot (bottom-left plot):

Delta G = dG/dnB = GB - GA = Delta G0 + RT ln Q, Q = [B]/[A] = X/(1 - X)

At X = 0.5, Q = 1 and ΔG = ΔG°, whatever the total concentration. In the top-right plot the two curves are then separated by exactly ΔG°, the same as the gap between the standard values.

Equilibrium. At the minimum of the total free energy the slope is zero, so ΔG = 0, the two molar free energies are equal, and

Delta G = 0 so K = Qeq = exp(-Delta G0/RT), Xeq = K/(1 + K)

The page uses these exact expressions. The equilibrium mole fraction depends only on ΔG° = G°B − G°A, not on the total concentration (true for A ⇌ B, where both sides have one molecule) and not on the separate values of G°A and G°B: adding the same amount to both moves every curve up or down without moving the minimum. At equilibrium the molar free energy of each species equals the total free energy divided by the total moles (the red line in the top-right plot).

Free energies are in units of RT, so ΔG° = 1 means 1 × RT, which is 2.479 kJ/mol or 0.593 kcal/mol at 25 °C. The plots run from X = 0.0005 to 0.9995, as in the Matlab version; the molar free energies go to −∞ at the ends.

This page was checked by its author on desktop browsers in light mode. No human testing was done in dark mode or on phones.

Jason D. Kahn, Dept. of Chemistry and Biochemistry, University of Maryland College Park, using Claude

Complete table of values

To use these numbers elsewhere, click Download .csv: the file opens directly in Excel, Numbers or Google Sheets, and in Matlab T = readtable('filename.csv') reads it into a table. Or click Copy table and paste into a spreadsheet; each value lands in its own cell. The export has full precision.