Chemistry · Thermochemistry
Gibbs free energy calculator icon showing a downhill energy curve labeled ΔG

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.

Watch the units: ΔH is usually given in kJ/mol but ΔS in J/(mol·K). Each field has its own unit menu, so you can enter them exactly as your textbook prints them. The examples in this Gibbs free energy calculator follow the ammonia synthesis N₂ + 3 H₂ → 2 NH₃.

Gibbs free energy calculator: ΔG = ΔH − TΔS

Choose the unknown. ΔH and ΔS are treated as constant with temperature, the usual general-chemistry approximation.
Negative = exothermic.
J/(mol·K): divide by 1000 before mixing with kJ, the calculator does it for you.
Enter 0 in “T” mode to get the crossover temperature where ΔG changes sign.

Gibbs free energy calculator for K: ΔG° = −RT ln K

Convert a standard free energy change into K, or a measured K into ΔG°.
Dimensionless thermodynamic K (Kp in bar for gases, Kc in mol/L for solutes, Ksp, Ka…).

Gibbs free energy calculator for non-standard conditions: ΔG = ΔG° + RT ln Q

Q has the same form as K but uses the current concentrations or pressures.
Example: 2 NH₃ → 3 H₂ + N₂ with P(N₂) = 0.870, P(H₂) = 0.250, P(NH₃) = 12.9 atm gives Q = 0.870 × 0.250³ / 12.9² = 8.17 × 10⁻⁵.

Gibbs free energy calculator from ΔG°f values (Hess’s law)

ΔG°rxn = Σν·ΔG°f(products) − Σν·ΔG°f(reactants), at 25 °C. Leave unused rows empty; an empty ΔG°f next to a coefficient counts as 0 (element in its standard state).
Example: N₂(g)
Example: H₂(g)
Example: NH₃(g), ΔG°f = −16.45 kJ/mol

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:

ΔG = ΔH − T·ΔS

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ΔSExample
− (exothermic)+Always negative: spontaneous at every temperatureCombustion of fuels, 2 C(s) + O₂ → 2 CO(g)
− (exothermic)−Negative below T = ΔH/ΔS: spontaneous at low temperatureN₂ + 3 H₂ → 2 NH₃, freezing of water
+ (endothermic)+Negative above T = ΔH/ΔS: spontaneous at high temperatureMelting of ice, boiling, CaCO₃ → CaO + CO₂
+ (endothermic)−Always positive: never spontaneous as written3 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:

ΔG = ΔG° + R·T·ln Q and at equilibrium (ΔG = 0, Q = K): ΔG° = −R·T·ln K

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.169.91
H₂O(g)−241.82−228.57188.8
CO₂(g)−393.51−394.36213.8
CO(g)−110.52−137.15197.7
CH₄(g)−74.6−50.5186.3
C₂H₆(g)−84.0−32.0229.2
C₂H₄(g)52.468.4219.3
C₂H₂(g)227.4209.2200.9
C₂H₅OH(l)−277.6−174.8160.7
NH₃(g)−45.9−16.45192.8
NO₂(g)33.251.3240.1
N₂O₄(g)9.1697.89304.3
SO₂(g)−296.83−300.13248.2
SO₃(g)−395.72−371.06256.8
HCl(g)−92.307−95.299186.9
NaCl(s)−411.2−384.172.13
H₂(g), N₂(g), O₂(g), C(graphite)00130.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.

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.

Results are for study, homework and lab preparation; check important results against your own data, and follow your lab’s safety rules. Back to chemistry calculators or CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: