Entropy Calculator: ΔS for Reactions, Phase Changes, Heating and Gases
By FindMySum · Last reviewed
Entropy decides which way things go on their own. Ice melts in a warm room, gases spread to fill a container, and heat flows from hot to cold because each of these raises the total entropy of the universe. This entropy calculator works out the entropy change ΔS in seven common situations: a chemical reaction from tabulated standard molar entropies, a phase change, heating or cooling a substance, an ideal gas changing temperature and volume, mixing ideal gases, a reversible transfer of heat, and Boltzmann's statistical formula. Where the surroundings are part of the picture, it also adds their entropy change and tells you whether the second law allows the process.
The second law in one line
For any process, the entropy change of the universe is the sum of the system's change and the surroundings' change:
ΔS_universe = ΔS_system + ΔS_surroundings
If the total is positive the process is spontaneous; if it is zero the process is reversible, at equilibrium; if it is negative the process cannot happen on its own, though its reverse can. The surroundings usually behave as a large heat reservoir at constant temperature, so their entropy change is the heat they receive divided by their temperature. At constant pressure that heat is −ΔH of the system: ΔS_surroundings = −ΔH ÷ T.
Reaction entropy from standard molar entropies
Entropy has an absolute zero point (the third law), so tables give absolute standard molar entropies S° at 25 °C and 1 bar rather than entropies of formation. The reaction entropy is
ΔS°rxn = Σν·S°(products) − Σν·S°(reactants)
where ν is each species' coefficient. Elements in their standard states do not have S° = 0, unlike their enthalpies of formation. Type a balanced equation with states, such as N2(g) + 3H2(g) -> 2NH3(g). The calculator checks that it balances, looks up S° and ΔH°f for each species, and gives ΔS°, ΔH°, the entropy change of the surroundings at your temperature and ΔG° = ΔH° − TΔS°. For a species that is not in the table, add your own values after an @ sign: the formation enthalpy in kJ/mol, a comma, then S° in J/(mol·K).
Worked example: making ammonia
The calculator opens with the Haber process at 25 °C. With S° values of 191.6 J/(mol·K) for nitrogen, 130.7 for hydrogen and 192.8 for ammonia:
- ΔS° = 2(192.8) − [191.6 + 3(130.7)] = −198.1 J/K per mole of reaction
- ΔH° = 2(−45.9) = −91.8 kJ
- ΔS_surroundings = 91 800 ÷ 298.15 = +307.9 J/K
- ΔS_universe = −198.1 + 307.9 = +109.8 J/K, so the reaction is spontaneous
- ΔG° = −91.8 − 298.15 × (−0.1981) = −32.7 kJ
Four moles of gas become two, so the system loses entropy, but the heat released raises the surroundings' entropy by more. Because both ΔH° and ΔS° are negative, the balance tips the other way at high temperature: ΔG° changes sign near ΔH° ÷ ΔS° = 463 K. Industrial plants still run hotter than that, around 400 to 450 °C, because the reaction is too slow when cold; high pressure and recycling make up for the poorer equilibrium.
Phase changes
Melting and boiling at the transition temperature happen reversibly, so ΔS = ΔH_transition ÷ T_transition. For water, the enthalpy of fusion of 6.01 kJ/mol at 273.15 K gives 22.0 J/(mol·K), and the enthalpy of vaporisation of 40.65 kJ/mol at 373.15 K gives 108.9 J/(mol·K). Many liquids have entropies of vaporisation near 85 to 88 J/(mol·K) (Trouton's rule); water's is higher because hydrogen bonds order the liquid.
The surroundings temperature is what decides the direction. Ice at 0 °C in a 10 °C room gains 22.0 J/K while the room loses 6010 ÷ 283.15 = 21.2 J/K, a net gain of 0.78 J/K, so the ice melts. Put the same ice in a −10 °C freezer and the freezer would have to lose 22.8 J/K: the total is negative and the ice stays frozen.
Heating and cooling
When a substance with a constant specific heat c is heated from T₁ to T₂,
ΔS = m·c·ln(T₂ ÷ T₁)
Heating 1 kg of water from 20 °C to 80 °C raises its entropy by 4184 × ln(353.15 ÷ 293.15) = 779.1 J/K. The calculator assumes the heat comes from a reservoir at the final temperature, as when you put a pot on a burner held at that temperature. The reservoir gives up 251 kJ at 353.15 K, losing 710.9 J/K, so the universe gains 68.2 J/K: heating with a finite temperature difference is irreversible. Temperatures must be in kelvin inside the logarithm; the calculator converts from Celsius or Fahrenheit for you.
Ideal gases and mixing
For n moles of ideal gas, the entropy change splits into a temperature part and a volume part:
ΔS = n·Cv·ln(T₂ ÷ T₁) + n·R·ln(V₂ ÷ V₁)
with Cv = 3/2 R for a monatomic gas and about 5/2 R for a diatomic gas near room temperature. Doubling the volume of a mole of gas at constant temperature adds R ln 2 = 5.76 J/K. Since entropy is a state function, the answer is the same for a slow reversible expansion and for a sudden free expansion into a vacuum; only the surroundings' share differs.
When ideal gases at the same temperature and pressure mix, each spreads into the whole volume:
ΔS_mix = −n_total·R·Σ xᵢ ln xᵢ
Every mole fraction is below one, so the result is always positive. Mixing a mole each of two gases gives 11.53 J/K.
Reversible heat and Boltzmann's formula
The two remaining modes are the definitions themselves. Clausius defined ΔS = q_rev ÷ T: 1000 J absorbed reversibly at 25 °C is 3.354 J/K, with an equal and opposite change in the reservoir. Boltzmann's S = k ln W connects that to counting: a system with 10²⁴ equally likely microstates has k × ln(10²⁴) = 1.380649 × 10⁻²³ × 55.26 = 7.63 × 10⁻²² J/K, or 459 J/(mol·K) per mole of such systems.
Limits
The calculator treats ΔH°, ΔS° and heat capacities as constant, which is reasonable over tens of degrees but not over hundreds. Standard entropies refer to 1 bar for gases and 1 mol/L for solutes; real reaction mixtures have different entropies, which the reaction quotient accounts for in ΔG = ΔG° + RT ln Q. Gases are ideal and mixtures ideal. The S° values come from the OpenStax Chemistry 2e appendix, which compiles the NBS/NIST tables; they are being checked against the NIST Chemistry WebBook. This page is about thermodynamic entropy; the information (Shannon) entropy of a password is a different quantity.
More questions
Who first defined entropy?
Rudolf Clausius introduced the word in 1865, defining a change in entropy as the heat absorbed reversibly divided by the absolute temperature. Ludwig Boltzmann later connected it to the number of microscopic arrangements, S = k ln W, the formula engraved on his tombstone in Vienna.
Is entropy the same as disorder?
Disorder is a useful picture but not a definition. Entropy counts how many microstates fit the same large-scale state, which usually means how widely energy and particles are spread. Some ordered-looking systems, such as liquid crystals forming on cooling, still raise the total entropy because they release heat to the surroundings.
Can entropy ever decrease?
The entropy of a system can fall: water freezing in a freezer or a cell building proteins both lower their own entropy. What can't fall is the entropy of the universe. The heat those processes release raises the entropy of the surroundings by more than the system loses.
What does the third law of thermodynamics say?
The entropy of a perfect crystal at absolute zero is zero. That gives entropy an absolute scale, which is why tables list absolute standard entropies S° rather than entropies of formation, and why every S° for a pure substance is positive.
Why do some ions have negative standard entropies?
Ion entropies in water are measured relative to the hydrogen ion, which is set to zero by convention. Small, highly charged ions such as Al³⁺ or Mg²⁺ order the water molecules around them so strongly that their entropy comes out below that of H⁺, so the tabulated value is negative.
How is entropy related to Gibbs energy?
At constant temperature and pressure, ΔG = ΔH − TΔS, and ΔG = −T·ΔS_universe. A negative ΔG and a positive entropy change of the universe say the same thing: the process is spontaneous. The Gibbs free energy calculator works from ΔH and ΔS to ΔG and the equilibrium constant.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.