SciencePhysics

Thermodynamics
calculator.

Check if a reaction can run, add reaction enthalpies, or find a heat engine limit.

How it's worked out

Free energy. The sign of ΔG tells you which way a reaction leans at a fixed temperature and pressure. A negative value means favorable, a positive value means not, and zero means balance. ΔH is the heat taken in or given out, and ΔS is the change in entropy, a measure of how spread out the energy is.

ΔG\displaystyle \Delta G=ΔH−TΔS\displaystyle {}= \Delta H - T\Delta S

T must be in kelvins, and ΔH and ΔS must share an energy unit. Most tables list ΔH in kilojoules and ΔS in joules, so that factor of 1,000 is easy to miss. The sum converts both to joules first. Setting ΔG to zero gives the crossover temperature, where the leaning changes.

Tcrossover\displaystyle T_{\text{crossover}}=ΔHΔS\displaystyle {}= \frac{\Delta H}{\Delta S}

The standard value also gives the equilibrium constant K, with R, the molar gas constant, exactly 8.314462618 J/(mol K).

ln⁡K\displaystyle \ln K=−ΔG∘RT\displaystyle {}= -\frac{\Delta G^\circ}{R T}

Hess's law. The heat of a whole process equals the sum of the heat of its steps. Reverse a reaction and its ΔH changes sign. Multiply a reaction and its ΔH scales with it. A multiplier of −1 does the reversing here.

Carnot limits. No engine between two temperatures can beat this efficiency, and the same two temperatures cap a heat pump and a refrigerator.

η\displaystyle \eta=1−TcTh\displaystyle {}= 1 - \frac{T_c}{T_h}
COPpump\displaystyle \text{COP}_{\text{pump}}=ThTh−Tc\displaystyle {}= \frac{T_h}{T_h - T_c}
COPfridge\displaystyle \text{COP}_{\text{fridge}}=TcTh−Tc\displaystyle {}= \frac{T_c}{T_h - T_c}

Worked examples

Rosa asks if ammonia forms at room temperature

For N₂ + 3H₂ forming 2NH₃, Rosa has ΔH of −92.2 kJ/mol and ΔS of −198.7 J/(mol K). At 25 °C, ΔG is −32.96 kJ/mol, which is favorable. OpenStax quotes 33.0 kJ/mol for the reverse reaction, so the two agree after rounding.

K works out near 10 to the power 5.8, which leans strongly toward ammonia. The crossover is 464 K. Heat the mix to 450 °C and ΔG climbs to +51.5 kJ/mol, so it no longer leans that way. A faster rate at that heat is a separate matter, because ΔG says nothing about speed.

Open this example in the tool

Tomas finds the heat of forming methane

Carbon and hydrogen do not simply form methane in a flask, so Tomas uses combustion data. Burn one carbon and two hydrogens, then run methane's combustion in reverse. The running total goes −393.5, then −965.1, then −74.8 kJ/mol.

The answer, −74.8 kJ/mol, is a small difference between large numbers, so small changes matter. NIST lists measured values for methane's combustion from −890.16 to −891.8 kJ/mol, and OpenStax uses −890.8, which would give −74.3. NIST's value for forming methane from its elements is −74.87.

Open this example in the tool

Ines checks a heat pump against its limit

Ines wants 35 °C water when it is −5 °C outside. That is a lift of 40 K, so the ideal heat pump gives 7.7 units of heat per unit of work. A real unit will come in lower. Use this as a ceiling, not a forecast.

A milder day shows how much the lift counts. With 15 °C outside and the same water, the ceiling jumps to 15.4. For an engine, the same rule points the other way: a steam plant between 600 °C and 30 °C is capped at 65%.

Open this example in the tool

Reading your result

A negative ΔG is permission, not speed. The sign says a reaction can run on its own. It does not say how long it takes. Catalysts change the speed and leave ΔG alone.

ΔH and ΔS are held fixed. The line stays straight because the sum uses one value of each. Real values drift as temperature rises, so a result several hundred kelvins from the table temperature is a rough guide.

K is a ratio with a very wide range. A change of about 5.7 kJ/mol at 25 °C moves K by a factor of 10. Values above about 700 in ln K are too large to hold as plain numbers, so the tool switches to a power of ten. Standard values assume standard states of 1 bar and 1 mol per liter, so real mixtures need their own activities.

Common mistakes

  • Using Celsius in a ratio. Put 600 and 30 straight into the Carnot formula and you get 95%. The right figure in kelvins is 65%. Differences are the same on both scales, but ratios are not.
  • Mixing kilojoules and joules. ΔH in kJ with ΔS in J makes the entropy term 1,000 times too large. Check the unit beside each box.
  • Forgetting to flip the sign. A reversed reaction needs a multiplier of −1, or a sum like the one for methane goes badly wrong. Fractions work too, such as 0.5 for half a reaction.
  • Reading a heat pump COP as an efficiency. A COP of 4 does not mean 400% efficient. The pump moves heat that already exists, and the work only drives the move.

Questions people ask

Because ΔG covers where a reaction can end up, not how fast it gets there. Diamond is the usual case: graphite is more stable, yet a very large energy barrier keeps diamond as it is. A catalyst can lower a barrier like that without changing ΔG.

Sources