# Gibbs free energy

Thermodynamics :
The classical Carnot heat engine :
Branches
Classical
Statistical
Chemical
Quantum thermodynamics
Equilibrium / Non-equilibrium :
Laws
Zeroth
First
Second
Third :
Systems
Closed system
Open system
Isolated system
State
Equation of state
Ideal gas
Real gas
State of matter
Phase (matter)
Equilibrium
Control volume
Instruments
Processes
Isobaric
Isochoric
Isothermal
Adiabatic
Isentropic
Isenthalpic
Quasistatic
Polytropic
Free expansion
Reversibility
Irreversibility
Endoreversibility
Cycles
Heat engines
Heat pumps
Thermal efficiency :
System propertiesNote: Conjugate variables in italics
Property diagrams
Intensive and extensive properties
Process functions
Work
Heat
Functions of state
Temperature / Entropy (introduction)
Pressure / Volume
Chemical potential / Particle number
Vapor quality
Reduced properties :
Material properties
Property databases
Specific heat capacity 
$c=$
$T$$\partial S$$N$$\partial T$
Compressibility 
$\beta =-$
$1$$\partial V$$V$$\partial p$
Thermal expansion 
$\alpha =$
$1$$\partial V$$V$$\partial T$ :
Equations
Carnot's theorem
Clausius theorem
Fundamental relation
Ideal gas law
Maxwell relations
Onsager reciprocal relations
Bridgman's equations
Table of thermodynamic equations :
Potentials
Free energy
Free entropy
Internal energy $U(S,V)$Enthalpy $H(S,p)=U+pV$Helmholtz free energy $A(T,V)=U-TS$Gibbs free energy $G(T,p)=H-TS$ :
HistoryCulture
History
General
Entropy
Gas laws
"Perpetual motion" machines
Philosophy
Entropy and time
Entropy and life
Brownian ratchet
Maxwell's demon
Heat death paradox
Loschmidt's paradox
Synergetics
Theories
Caloric theory
Vis viva ("living force")
Mechanical equivalent of heat
Motive power
Key publications
An Inquiry Concerning the Source ... Friction
On the Equilibrium of Heterogeneous Substances
Reflections on the Motive Power of Fire
Timelines
Thermodynamics
Heat engines
ArtEducation
Maxwell's thermodynamic surface
Entropy as energy dispersal :
Scientists
Bernoulli
Boltzmann
Bridgman
Carathéodory
Carnot
Clapeyron
Clausius
de Donder
Duhem
Gibbs
von Helmholtz
Joule
Kelvin
Lewis
Massieu
Maxwell
von Mayer
Nernst
Onsager
Planck
Rankine
Smeaton
Stahl
Tait
Thompson
van der Waals
Waterston :
Other
Nucleation
Self-assembly
Self-organization
Order and disorder :
Category :
vte :
In thermodynamics, the Gibbs free energy (or Gibbs energy as the recommended name; symbol $G$) is a thermodynamic potential that can be used to calculate the maximum amount of work, other than pressure–volume work, that may be performed by a thermodynamically closed system at constant temperature and pressure. It also provides a necessary condition for processes such as chemical reactions that may occur under these conditions. The Gibbs free energy is expressed as $G(p,T)=U+pV-TS=H-TS$ where:
* U{\textstyle U} is the internal energy of the system
* H{\textstyle H} is the enthalpy of the system
* S{\textstyle S} is the entropy of the system
* T{\textstyle T} is the temperature of the system
* V{\textstyle V} is the volume of the system
* p{\textstyle p} is the pressure of the system (which must be equal to that of the surroundings for mechanical equilibrium).
The Gibbs free energy change (⁠$\Delta G=\Delta H-T\Delta S$⁠, measured in joules in SI) is the maximum amount of non-volume expansion work that can be extracted from a closed system (one that can exchange heat and work with its surroundings, but not matter) at fixed temperature and pressure. This maximum can be attained only in a completely reversible process. When a system transforms reversibly from an initial state to a final state under these conditions, the decrease in Gibbs free energy equals the work done by the system to its surroundings, minus the work of the pressure forces.
The Gibbs energy is the thermodynamic potential that is minimized when a system reaches chemical equilibrium at constant pressure and temperature when not driven by an applied electrolytic voltage. Its derivative with respect to the reaction coordinate of the system then vanishes at the equilibrium point. As such, a reduction in $G$ is necessary for a reaction to be spontaneous under these conditions.
The concept of Gibbs free energy, originally called available energy, was developed in the 1870s by the American scientist Josiah Willard Gibbs. In 1873, Gibbs described this "available energy" as$^{:400}$
   the greatest amount of mechanical work which can be obtained from a given quantity of a certain substance in a given initial state, without increasing its total volume or allowing heat to pass to or from external bodies, except such as at the close of the processes are left in their initial condition.
The initial state of the body, according to Gibbs, is supposed to be such that "the body can be made to pass from it to states of dissipated energy by reversible processes". In his 1876 magnum opus On the Equilibrium of Heterogeneous Substances, a graphical analysis of multi-phase chemical systems, he engaged his thoughts on chemical-free energy in full.
If the reactants and products are all in their thermodynamic standard states, then the defining equation is written as ⁠$\Delta G^{\circ }=\Delta H^{\circ }-T\Delta S^{\circ }$⁠, where $H$ is enthalpy, $T$ is absolute temperature, and $S$ is entropy.

## Overview

According to the second law of thermodynamics, for systems reacting at fixed temperature and pressure without input of non-Pressure Volume (pV) work, there is a general natural tendency to achieve a minimum of the Gibbs free energy.
A quantitative measure of the favorability of a given reaction under these conditions is the change ΔG (sometimes written "delta G" or "dG") in Gibbs free energy that is (or would be) caused by the reaction. As a necessary condition for the reaction to occur at constant temperature and pressure, ΔG must be smaller than the non-pressure-volume (non-pV, e.g. electrical) work, which is often equal to zero (then ΔG must be negative). ΔG equals the maximum amount of non-pV work that can be performed as a result of the chemical reaction for the case of a reversible process. If analysis indicates a positive ΔG for a reaction, then energy — in the form of electrical or other non-pV work — would have to be added to the reacting system for ΔG to be smaller than the non-pV work and make it possible for the reaction to occur.$^{:298–299}$
One can think of ∆G as the amount of "free" or "useful" energy available to do non-pV work at constant temperature and pressure. The equation can be also seen from the perspective of the system taken together with its surroundings (the rest of the universe). First, one assumes that the given reaction at constant temperature and pressure is the only one that is occurring. Then the entropy released or absorbed by the system equals the entropy that the environment must absorb or release, respectively. The reaction will only be allowed if the total entropy change of the universe is zero or positive. This is reflected in a negative ΔG, and the reaction is called an exergonic process.
If two chemical reactions are coupled, then an otherwise endergonic reaction (one with positive ΔG) can be made to happen. The input of heat into an inherently endergonic reaction, such as the elimination of cyclohexanol to cyclohexene, can be seen as coupling an unfavorable reaction (elimination) to a favorable one (burning of coal or other provision of heat) such that the total entropy change of the universe is greater than or equal to zero, making the total Gibbs free energy change of the coupled reactions negative.
In traditional use, the term "free" was included in "Gibbs free energy" to mean "available in the form of useful work". The characterization becomes more precise if we add the qualification that it is the energy available for non-pressure-volume work. (An analogous, but slightly different, meaning of "free" applies in conjunction with the Helmholtz free energy, for systems at constant temperature). However, an increasing number of books and journal articles do not include the attachment "free", referring to G as simply "Gibbs energy". This is the result of a 1988 IUPAC meeting to set unified terminologies for the international scientific community, in which the removal of the adjective "free" was recommended. This standard, however, has not yet been universally adopted.
The name "free enthalpy" was also used for G in the past.

## History

The quantity called "free energy" is a more advanced and accurate replacement for the outdated term affinity, which was used by chemists in the earlier years of physical chemistry to describe the force that caused chemical reactions.
In 1873, Josiah Willard Gibbs published A Method of Geometrical Representation of the Thermodynamic Properties of Substances by Means of Surfaces, in which he sketched the principles of his new equation that was able to predict or estimate the tendencies of various natural processes to ensue when bodies or systems are brought into contact. By studying the interactions of homogeneous substances in contact, i.e., bodies composed of part solid, part liquid, and part vapor, and by using a three-dimensional volume-entropy-internal energy graph, Gibbs was able to determine three states of equilibrium, i.e., "necessarily stable", "neutral", and "unstable", and whether or not changes would ensue. Further, Gibbs stated:
   If we wish to express in a single equation the necessary and sufficient condition of thermodynamic equilibrium for a substance when surrounded by a medium of constant pressure p and temperature T, this equation may be written:
   when δ refers to the variation produced by any variations in the state of the parts of the body, and (when different parts of the body are in different states) in the proportion in which the body is divided between the different states. The condition of stable equilibrium is that the value of the expression in the parenthesis shall be a minimum.
In this description, as used by Gibbs, ε refers to the internal energy of the body, η refers to the entropy of the body, and ν is the volume of the body...
Thereafter, in 1882, the German scientist Hermann von Helmholtz characterized the affinity as the largest quantity of work which can be gained when the reaction is carried out in a reversible manner, e.g., electrical work in a reversible cell. The maximum work is thus regarded as the diminution of the free, or available, energy of the system (Gibbs free energy G at T = constant, P = constant or Helmholtz free energy F at T = constant, V = constant), whilst the heat given out is usually a measure of the diminution of the total energy of the system (internal energy). Thus, G or F is the amount of energy "free" for work under the given conditions.
Until this point, the general view had been such that: "all chemical reactions drive the system to a state of equilibrium in which the affinities of the reactions vanish". Over the next 60 years, the term affinity came to be replaced with the term free energy. According to chemistry historian Henry Leicester, the influential 1923 textbook Thermodynamics and the Free Energy of Chemical Substances by Gilbert N. Lewis and Merle Randall led to the replacement of the term "affinity" by the term "free energy" in much of the English-speaking world.$^{:206}$

## Definitions

The Gibbs free energy is defined as $G(p,T)=U+pV-TS,$ which is the same as $G(p,T)=H-TS,$ where:
* U is the internal energy (SI unit: joule),
* p is pressure (SI unit: pascal),
* V is volume (SI unit: m$^3$),
* T is the temperature (SI unit: kelvin),
* S is the entropy (SI unit: joule per kelvin),
* H is the enthalpy (SI unit: joule).
The expression for the infinitesimal reversible change in the Gibbs free energy as a function of its "natural variables" p and T, for an open system, subjected to the operation of external forces (for instance, electrical or magnetic) X$_i$, which cause the external parameters of the system a$_i$ to change by an amount da$_i$, can be derived as follows from the first law for reversible processes: ${\begin{aligned}T\,\mathrm {d} S&=\mathrm {d} U+p\,\mathrm {d} V-\sum _{i=1}^{k}\mu _{i}\,\mathrm {d} N_{i}+\sum _{i=1}^{n}X_{i}\,\mathrm {d} a_{i}+\cdots \\\mathrm {d} (TS)-S\,\mathrm {d} T&=\mathrm {d} U+\mathrm {d} (pV)-V\,\mathrm {d} p-\sum _{i=1}^{k}\mu _{i}\,\mathrm {d} N_{i}+\sum _{i=1}^{n}X_{i}\,\mathrm {d} a_{i}+\cdots \\\mathrm {d} (U-TS+pV)&=V\,\mathrm {d} p-S\,\mathrm {d} T+\sum _{i=1}^{k}\mu _{i}\,\mathrm {d} N_{i}-\sum _{i=1}^{n}X_{i}\,\mathrm {d} a_{i}+\cdots \\\mathrm {d} G&=V\,\mathrm {d} p-S\,\mathrm {d} T+\sum _{i=1}^{k}\mu _{i}\,\mathrm {d} N_{i}-\sum _{i=1}^{n}X_{i}\,\mathrm {d} a_{i}+\cdots \end{aligned}}$ where:
* μ$_i$ is the chemical potential of the ith chemical component. (SI unit: joules per particle or joules per mole)
* N$_i$ is the number of particles (or number of moles) composing the ith chemical component.
This is one form of the Gibbs fundamental equation. In the infinitesimal expression, the term involving the chemical potential accounts for changes in Gibbs free energy resulting from an influx or outflux of particles. In other words, it holds for an open system or for a closed, chemically reacting system where the N$_i$ are changing. For a closed, non-reacting system, this term may be dropped.
Any number of extra terms may be added, depending on the particular system being considered. Aside from mechanical work, a system may, in addition, perform numerous other types of work. For example, in the infinitesimal expression, the contractile work energy associated with a thermodynamic system that is a contractile fiber that shortens by an amount −dl under a force f would result in a term f dl being added. If a quantity of charge −de is acquired by a system at an electrical potential Ψ, the electrical work associated with this is −Ψ de, which would be included in the infinitesimal expression. Other work terms are added on per system requirements.
Each quantity in the equations above can be divided by the amount of substance, measured in moles, to form molar Gibbs free energy. The Gibbs free energy is one of the most important thermodynamic functions for the characterization of a system. It is a factor in determining outcomes such as the voltage of an electrochemical cell, and the equilibrium constant for a reversible reaction. In isothermal, isobaric systems, Gibbs free energy can be thought of as a "dynamic" quantity, in that it is a representative measure of the competing effects of the enthalpic and entropic driving forces involved in a thermodynamic process.
The temperature dependence of the Gibbs energy for an ideal gas is given by the Gibbs–Helmholtz equation, and its pressure dependence is given by ${\frac {G}{N}}={\frac {G^{\circ }}{N}}+kT\ln {\frac {p}{p^{\circ }}}.$ or more conveniently as its chemical potential: ${\frac {G}{N}}=\mu =\mu ^{\circ }+kT\ln {\frac {p}{p^{\circ }}}.$
In non-ideal systems, fugacity comes into play.

## Derivation

The Gibbs free energy total differential with respect to natural variables may be derived by Legendre transforms of the internal energy.
    $\mathrm {d} U=T\,\mathrm {d} S-p\,\mathrm {d} V+\sum _{i}\mu _{i}\,\mathrm {d} N_{i}.$
The definition of G from above is
    $G=U+pV-TS$.
Taking the total differential, we have
    $\mathrm {d} G=\mathrm {d} U+p\,\mathrm {d} V+V\,\mathrm {d} p-T\,\mathrm {d} S-S\,\mathrm {d} T.$
Replacing dU with the result from the first law gives
    ${\begin{aligned}\mathrm {d} G&=T\,\mathrm {d} S-p\,\mathrm {d} V+\sum _{i}\mu _{i}\,\mathrm {d} N_{i}+p\,\mathrm {d} V+V\,\mathrm {d} p-T\,\mathrm {d} S-S\,\mathrm {d} T\\&=V\,\mathrm {d} p-S\,\mathrm {d} T+\sum _{i}\mu _{i}\,\mathrm {d} N_{i}.\end{aligned}}$
The natural variables of G are then p, T, and {N$_i$}.

### Homogeneous systems

Because S, V, and N$_i$ are extensive variables, an Euler relation allows easy integration of dU:
    $U=TS-pV+\sum _{i}\mu _{i}N_{i}.$
Because some of the natural variables of G are intensive, dG may not be integrated using Euler relations as is the case with internal energy. However, simply substituting the above integrated result for U into the definition of G gives a standard expression for G:
    ${\begin{aligned}G&=U+pV-TS\\&=\left(TS-pV+\sum _{i}\mu _{i}N_{i}\right)+pV-TS\\&=\sum _{i}\mu _{i}N_{i}.\end{aligned}}$
This result shows that the chemical potential of a substance $i$ is its (partial) mol(ecul)ar Gibbs free energy. It applies to homogeneous, macroscopic systems, but not to all thermodynamic systems.

## Gibbs free energy of reactions

The system under consideration is held at constant temperature and pressure, and is closed (no matter can come in or out). The Gibbs energy of any system is ⁠$G=U+pV-TS$⁠ and an infinitesimal change in G, at constant temperature and pressure, yields
    $dG=dU+pdV-TdS.$
By the first law of thermodynamics, a change in the internal energy U is given by
    $dU=\delta Q+\delta W$
where δQ is energy added as heat, and δW is energy added as work. The work done on the system may be written as δW = −pdV + δW$_x$, where −pdV is the mechanical work of compression/expansion done on or by the system and δW$_x$ is all other forms of work, which may include electrical, magnetic, etc. Then
    $dU=\delta Q-pdV+\delta W_{x}$
and the infinitesimal change in G is
    $dG=\delta Q-TdS+\delta W_{x}.$
The second law of thermodynamics states that for a closed system at constant temperature (in a heat bath), $TdS\geq \delta Q$, and so it follows that
    $dG\leq \delta W_{x}$
Assuming that only mechanical work is done, this simplifies to
    $dG\leq 0$
This means that for such a system when not in equilibrium, the Gibbs energy will always be decreasing, and in equilibrium, the infinitesimal change dG will be zero. In particular, this will be true if the system is experiencing any number of internal chemical reactions on its path to equilibrium.

### In electrochemical thermodynamics

When electric charge dQ$_{ele}$ is passed between the electrodes of an electrochemical cell generating an emf ${\mathcal {E}}$, an electrical work term appears in the expression for the change in Gibbs energy: $dG=-SdT+Vdp+{\mathcal {E}}dQ_{ele},$ where S is the entropy, V is the system volume, p is its pressure and T is its absolute temperature.
The combination (${\mathcal {E}}$, Q$_{ele}$) is an example of a conjugate pair of variables. At constant pressure the above equation produces a Maxwell relation that links the change in open cell voltage with temperature T (a measurable quantity) to the change in entropy S when charge is passed isothermally and isobarically. The latter is closely related to the reaction entropy of the electrochemical reaction that lends the battery its power. This Maxwell relation is:
    $\left({\frac {\partial {\mathcal {E}}}{\partial T}}\right)_{Q_{ele},p}=-\left({\frac {\partial S}{\partial Q_{ele}}}\right)_{T,p}$
If a mole of ions goes into solution (for example, in a Daniell cell, as discussed below) the charge through the external circuit is
    $\Delta Q_{ele}=-n_{0}F_{0}\,,$
where n$_0$ is the number of electrons/ion, and F$_0$ is the Faraday constant and the minus sign indicates discharge of the cell. Assuming constant pressure and volume, the thermodynamic properties of the cell are related strictly to the behavior of its emf by
    $\Delta H=-n_{0}F_{0}\left({\mathcal {E}}-T{\frac {d{\mathcal {E}}}{dT}}\right),$
where ΔH is the enthalpy of reaction. The quantities on the right are all directly measurable.

## Useful identities to derive the Nernst equation

During a reversible electrochemical reaction at constant temperature and pressure, the following equations involving the Gibbs free energy hold:
* $\Delta _{\text{r}}G=\Delta _{\text{r}}G^{\circ }+RT\ln Q_{\text{r}}$ (see chemical equilibrium),
* $\Delta _{\text{r}}G^{\circ }=-RT\ln K_{\text{eq}}$ (for a system at chemical equilibrium),
* $\Delta _{\text{r}}G=w_{\text{elec,rev}}=-nF{\mathcal {E}}$ (for a reversible electrochemical process at constant temperature and pressure),
* $\Delta _{\text{r}}G^{\circ }=-nF{\mathcal {E}}^{\circ }$ (definition of ${\mathcal {E}}^{\circ }$),
and rearranging gives ${\begin{aligned}nF{\mathcal {E}}^{\circ }&=RT\ln K_{\text{eq}},\\nF{\mathcal {E}}&=nF{\mathcal {E}}^{\circ }-RT\ln Q_{\text{r}},\\{\mathcal {E}}&={\mathcal {E}}^{\circ }-{\frac {RT}{nF}}\ln Q_{\text{r}},\end{aligned}}$ which relates the cell potential resulting from the reaction to the equilibrium constant and reaction quotient for that reaction (Nernst equation), where
* Δ$_r$G, Gibbs free energy change per mole of reaction,
* Δ$_r$G°, Gibbs free energy change per mole of reaction for unmixed reactants and products at standard conditions (i.e. 298 K, 100 kPa, 1 M of each reactant and product),
* R, gas constant,
* T, absolute temperature,
* ln, natural logarithm,
* Q$_r$, reaction quotient (unitless),
* K$_{eq}$, equilibrium constant (unitless),
* w$_{elec,rev}$, electrical work in a reversible process (chemistry sign convention),
* n, number of moles of electrons transferred in the reaction,
* F = N$_A$e ≈ 96485 C/mol, Faraday constant (charge per mole of electrons),
* ${\mathcal {E}}$, cell potential,
* ${\mathcal {E}}^{\circ }$, standard cell potential.
Moreover, we also have ${\begin{aligned}K_{\text{eq}}&=e^{-{\frac {\Delta _{\text{r}}G^{\circ }}{RT}}},\\\Delta _{\text{r}}G^{\circ }&=-RT\left(\ln K_{\text{eq}}\right)=-2.303\,RT\left(\log _{10}K_{\text{eq}}\right),\end{aligned}}$ which relates the equilibrium constant with Gibbs free energy. This implies that at equilibrium $Q_{\text{r}}=K_{\text{eq}}$ and $\Delta _{\text{r}}G=0.$

## Standard Gibbs energy change of formation

Table of selected substances :
| Substance (state) | Δ$_f$G° | Δ$_f$G° |
| Substance (state) | (kJ/mol) | (kcal/mol) |
| NO(g) | 87.6 | 20.9 |
| NO$_2$(g) | 51.3 | 12.3 |
| N$_2$O(g) | 103.7 | 24.78 |
| H$_2$O(g) | −228.6 | −54.64 |
| H$_2$O(l) | −237.1 | −56.67 |
| CO$_2$(g) | −394.4 | −94.26 |
| CO(g) | −137.2 | −32.79 |
| CH$_4$(g) | −50.5 | −12.1 |
| C$_2$H$_6$(g) | −32.0 | −7.65 |
| C$_3$H$_8$(g) | −23.4 | −5.59 |
| C$_6$H$_6$(g) | 129.7 | 29.76 |
| C$_6$H$_6$(l) | 124.5 | 31.00 |
The standard Gibbs free energy of formation of a compound is the change of Gibbs free energy that accompanies the formation of 1 mole of that substance from its component elements, in their standard states (the most stable form of the element at 25 °C and 100 kPa). Its symbol is Δ$_f$G˚.
All elements in their standard states (diatomic oxygen gas, graphite, etc.) have standard Gibbs free energy change of formation equal to zero, as there is no change involved.
    Δ$_f$G = Δ$_f$G˚ + RT ln Q$_f$,
where Q$_f$ is the reaction quotient.
At equilibrium, Δ$_f$G = 0, and Q$_f$ = K, so the equation becomes
    Δ$_f$G˚ = −RT ln K,
where K is the equilibrium constant of the formation reaction of the substance from the elements in their standard states.

## Graphical interpretation by Gibbs

Gibbs free energy was originally defined graphically. In 1873, American scientist Willard Gibbs published his first thermodynamics paper, "Graphical Methods in the Thermodynamics of Fluids", in which Gibbs used the two coordinates of the entropy and volume to represent the state of the body. In his second follow-up paper, "A Method of Geometrical Representation of the Thermodynamic Properties of Substances by Means of Surfaces", published later that year, Gibbs added in the third coordinate of the energy of the body, defined on three figures. In 1874, Scottish physicist James Clerk Maxwell used Gibbs' figures to make a 3D energy-entropy-volume thermodynamic surface of a fictitious water-like substance. Thus, in order to understand the concept of Gibbs free energy, it may help to understand its interpretation by Gibbs as section AB on his figure 3, and as Maxwell sculpted that section on his 3D surface figure.