Gibbs free energy calculator
This Gibbs free energy calculator solves ΔG = ΔH − TΔS for any one of its variables, tells you whether a reaction is spontaneous and at which temperature that changes, converts between ΔG° and the equilibrium constant K, corrects ΔG for non-standard conditions with the reaction quotient Q, and adds up standard free energies of formation, with every step shown.
Gibbs free energy calculator: ΔG = ΔH − TΔS
Gibbs free energy calculator for K: ΔG° = −RT ln K
Gibbs free energy calculator for non-standard conditions: ΔG = ΔG° + RT ln Q
Gibbs free energy calculator from ΔG°f values (Hess’s law)
How to use the Gibbs free energy calculator
The first panel is the classic ΔG = ΔH − TΔS problem. Pick the unknown in “Solve for”, enter the other values with the units your data uses, and the Gibbs free energy calculator returns the answer, says whether the process is spontaneous at that temperature, names the sign case (one of four combinations of ΔH and ΔS) and gives the crossover temperature where ΔG changes sign. Choose “T” and leave ΔG at 0 to find that crossover temperature directly. The second panel converts between ΔG° and the equilibrium constant, the third adds the RT ln Q correction for non-standard concentrations or pressures, and the fourth builds ΔG° for a reaction from tabulated free energies of formation. Open “Show the working” under any result to see the method with your numbers in it.
What is Gibbs free energy?
Gibbs free energy combines the two driving forces of chemical change, the enthalpy H and the entropy S, into one quantity: G = H − TS. At constant temperature and pressure, which describes most reactions in an open beaker or a reactor, the change in G decides the direction of change:
Here ΔH is the enthalpy change (heat released or absorbed at constant pressure, kJ/mol), T the absolute temperature in kelvin and ΔS the entropy change (J/(mol·K)). If ΔG is negative, the process is spontaneous: it can happen without a continuous input of work. If ΔG is positive, the reverse process is the spontaneous one, and if ΔG = 0 the system is at equilibrium. ΔG also equals the maximum non-expansion work the process can deliver, which is why it sets the voltage of a battery through ΔG° = −nFE° (see the Cell Potential Calculator for that route). “Spontaneous” says nothing about speed: diamond turning into graphite has a negative ΔG but is immeasurably slow. Rates are a kinetics question, handled by the Arrhenius Equation Calculator.
Spontaneity: the four sign cases and the crossover temperature
Because T is always positive, the signs of ΔH and ΔS decide how temperature affects spontaneity. The Gibbs free energy calculator labels the case for you; the summary below follows OpenStax Chemistry 2e, section 16.4.
| ΔH | ΔS | ΔG = ΔH − TΔS | Example |
|---|---|---|---|
| − (exothermic) | + | Always negative: spontaneous at every temperature | Combustion of fuels, 2 C(s) + O₂ → 2 CO(g) |
| − (exothermic) | − | Negative below T = ΔH/ΔS: spontaneous at low temperature | N₂ + 3 H₂ → 2 NH₃, freezing of water |
| + (endothermic) | + | Negative above T = ΔH/ΔS: spontaneous at high temperature | Melting of ice, boiling, CaCO₃ → CaO + CO₂ |
| + (endothermic) | − | Always positive: never spontaneous as written | 3 O₂ → 2 O₃ (ozone needs UV or electrical energy) |
In the two mixed cases the crossover temperature T = ΔH/ΔS separates the spontaneous and nonspontaneous ranges. For a phase change it is the transition temperature: with ΔH°vap = 44.01 kJ/mol and ΔS°vap = 118.8 J/(mol·K) for water, T = 44,010 / 118.8 = 370 K, close to the real boiling point of 373 K. The small gap comes from using 25 °C values of ΔH and ΔS at 100 °C.
Worked example with the Gibbs free energy calculator: ammonia synthesis
For N₂(g) + 3 H₂(g) → 2 NH₃(g), standard data give ΔH° = −91.8 kJ/mol and ΔS° = 2(192.8) − 191.6 − 3(130.7) = −198.1 J/(mol·K). At 25 °C (298.15 K):
T·ΔS° = 298.15 × (−0.1981) = −59.06 kJ/mol, so ΔG° = −91.8 − (−59.06) = −32.74 kJ/mol. The reaction is spontaneous at room temperature. Both ΔH° and ΔS° are negative, so it is enthalpy-driven and stops being spontaneous above T = −91,800 / −198.1 = 463 K (about 190 °C). These are the default values of the Gibbs free energy calculator’s first panel. Industry still runs the Haber-Bosch process near 400–450 °C because the rate at 190 °C is far too slow; high pressure is then used to push the equilibrium back toward ammonia.
The fourth panel gives the same answer from free energies of formation: ΔG° = 2 × (−16.45) − (0 + 3 × 0) = −32.90 kJ/mol, and the second panel turns that into K = exp(32,900 / (8.314 × 298.15)) = 5.8 × 10⁵. The 0.16 kJ/mol difference from −32.74 is only rounding in the tabulated data.
Free energy and the equilibrium constant
ΔG° refers to every species in its standard state (1 bar for gases, 1 mol/L for solutes). Real mixtures are rarely standard, so ΔG depends on composition through the reaction quotient Q:
R = 8.314 J/(mol·K). At 25 °C, each 5.71 kJ/mol of ΔG° is one power of ten in K: ΔG° = −57 kJ/mol means K ≈ 10¹⁰, essentially complete reaction, while +57 kJ/mol means K ≈ 10⁻¹⁰. As a textbook check, the solubility of silver chloride has ΔG° = 77.1 + (−131.2) − (−109.8) = 55.7 kJ/mol; entering K = 1.74 × 10⁻¹⁰ in the second panel returns that same 55.7 kJ/mol in the Gibbs free energy calculator, the Ksp value used in many general chemistry examples. For redox reactions, ΔG° is also linked to the standard cell potential by ΔG° = −nFE°; to go from E° to ΔG° and K for a galvanic cell, use the Cell Potential Calculator.
The third panel of the Gibbs free energy calculator reproduces a standard non-standard-conditions example: for 2 NH₃(g) → 3 H₂(g) + N₂(g) with ΔG° = 33.0 kJ/mol at 298 K, P(N₂) = 0.870 atm, P(H₂) = 0.250 atm and P(NH₃) = 12.9 atm, Q = 8.17 × 10⁻⁵ and ΔG = 33.0 + 8.314 × 298 × ln(8.17 × 10⁻⁵) / 1000 = 33.0 − 23.3 = 9.68 kJ/mol. The decomposition is still not spontaneous, but much less unfavorable than under standard conditions. To build Q or K from concentrations, use the Equilibrium Constant Calculator; to find K at another temperature from ΔH°, use the Van’t Hoff Equation Calculator.
Standard free energies of formation
ΔG°f is the free energy change to form one mole of a compound from its elements in their standard states, so it is zero for elements such as O₂(g), H₂(g), N₂(g) and C(graphite). Values at 25 °C for the fourth panel of the Gibbs free energy calculator, from the OpenStax Chemistry 2e thermodynamic data appendix:
| Substance | ΔH°f (kJ/mol) | ΔG°f (kJ/mol) | S° (J/(mol·K)) |
|---|---|---|---|
| H₂O(l) | −285.8 | −237.1 | 69.91 |
| H₂O(g) | −241.82 | −228.57 | 188.8 |
| CO₂(g) | −393.51 | −394.36 | 213.8 |
| CO(g) | −110.52 | −137.15 | 197.7 |
| CH₄(g) | −74.6 | −50.5 | 186.3 |
| C₂H₆(g) | −84.0 | −32.0 | 229.2 |
| C₂H₄(g) | 52.4 | 68.4 | 219.3 |
| C₂H₂(g) | 227.4 | 209.2 | 200.9 |
| C₂H₅OH(l) | −277.6 | −174.8 | 160.7 |
| NH₃(g) | −45.9 | −16.45 | 192.8 |
| NO₂(g) | 33.2 | 51.3 | 240.1 |
| N₂O₄(g) | 9.16 | 97.89 | 304.3 |
| SO₂(g) | −296.83 | −300.13 | 248.2 |
| SO₃(g) | −395.72 | −371.06 | 256.8 |
| HCl(g) | −92.307 | −95.299 | 186.9 |
| NaCl(s) | −411.2 | −384.1 | 72.13 |
| H₂(g), N₂(g), O₂(g), C(graphite) | 0 | 0 | 130.7, 191.6, 205.2, 5.740 |
Unlike ΔH°f and ΔG°f, standard entropies S° are absolute values (zero only for a perfect crystal at 0 K), so elements have S° > 0. To get ΔH° for the first panel, use the Hess’s law panel of the Enthalpy Calculator; for ΔS° = ΣνS°(products) − ΣνS°(reactants), see the Entropy Calculator.
Common mistakes when using a Gibbs free energy calculator
Mixing kJ and J. ΔH in kJ/mol minus T times ΔS in J/(mol·K) gives nonsense; convert ΔS to kJ/(mol·K) first (the Gibbs free energy calculator does this automatically). Using °C. T must be absolute: 25 °C is 298.15 K. Confusing ΔG and ΔG°. Only ΔG° is linked to K; the actual ΔG depends on the mixture. Forgetting the coefficients. ΔG° is per mole of reaction as written, so multiply each ΔG°f by its coefficient. Treating “spontaneous” as “fast”. Thermodynamics gives the direction, not the rate. Wrong standard state for water. H₂O(l) and H₂O(g) differ by 8.5 kJ/mol in ΔG°f; pick the phase in your equation.
Related calculators
Feed the Gibbs free energy calculator with good data: get ΔH° from formation enthalpies with the enthalpy calculator, estimate it from bonds with the Bond Energy Calculator, and move K to other temperatures with the van ’t Hoff equation.
- Enthalpy Calculator
- Entropy Calculator
- Equilibrium Constant Calculator
- Van’t Hoff Equation Calculator
- Cell Potential Calculator
- Bond Energy Calculator
- All chemistry calculators
Frequently asked questions
What does a negative ΔG mean?
A negative ΔG means the process is spontaneous in the forward direction at that temperature and pressure: it can proceed without outside work. A positive ΔG means the reverse process is spontaneous; ΔG = 0 means equilibrium.
How do I find the temperature at which a reaction becomes spontaneous?
Set ΔG = 0 and solve T = ΔH/ΔS. This only has a physical answer when ΔH and ΔS have the same sign. In the Gibbs free energy calculator choose “T”, keep ΔG = 0, and enter ΔH and ΔS.
What is the difference between ΔG and ΔG°?
ΔG° is the free energy change when all reactants and products are in their standard states (1 bar, 1 mol/L, pure solids and liquids). ΔG is the value for the actual mixture: ΔG = ΔG° + RT ln Q.
Why do I get a huge or tiny K?
K depends exponentially on ΔG°. At 25 °C, every 5.71 kJ/mol shifts K by a factor of 10, so ΔG° = −100 kJ/mol already gives K ≈ 3 × 10¹⁷.
Can the Gibbs free energy calculator handle temperatures other than 25 °C?
Yes. Enter any temperature in the first three panels. The Gibbs free energy calculator then assumes ΔH and ΔS keep their 25 °C values, which is accurate to a few percent over a few hundred kelvin for most reactions without phase changes. The fourth panel is fixed at 25 °C because ΔG°f tables are.
Is this Gibbs free energy calculator free?
Yes. It runs entirely in your browser, needs no sign-up and does not store or send the values you enter.