Chemical Engineering · Thermodynamics
Entropy calculator icon showing a T-s diagram with a ΔS arrow

Entropy calculator

This entropy calculator finds the entropy change ΔS for the processes met in thermodynamics courses and process work: heating or cooling a solid or liquid, melting or boiling, ideal-gas changes of temperature, pressure and volume, ideal mixing of up to four components, and the entropy generated when heat flows between two temperatures.

Entropy formulas use absolute temperature. You can type °C or °F; the calculator converts to kelvin before taking logarithms or dividing by T. The example values are explained step by step in the worked examples below.

Entropy calculator for solids and liquids: heating and phase change

Sensible: ΔS = m·cp·ln(T₂/T₁). Phase change at constant T: ΔS = m·λ/T.
Mean value over T₁ to T₂. Water 4.18, steel 0.49, aluminum 0.897 kJ/(kg·K).
Positive for melting or boiling, negative for freezing or condensing. Water: 2257 kJ/kg at 100 °C, 334 kJ/kg at 0 °C.

Ideal gas entropy calculator

Molar form: Δs = Cp·ln(T₂/T₁) − R·ln(P₂/P₁) = Cv·ln(T₂/T₁) + R·ln(V₂/V₁). Enter the amount in mol, or leave it empty and give the mass and molar mass.
If empty, n = m/M is used.
Air 28.97, N₂ 28.01, O₂ 32.00, CO₂ 44.01, CH₄ 16.04 g/mol. Needed for the per-kg result.
Air and N₂ about 29.1, CO₂ 37.1, CH₄ 35.7 J/(mol·K) near room temperature. Cv = Cp − R is computed.

Entropy of mixing calculator for ideal gases and solutions

ΔS_mix = −n·R·Σ xᵢ·ln xᵢ, for components at the same T and P. Leave unused rows empty.
Example: N₂ in air
Example: O₂ in air

Entropy generation calculator for heat transfer between two reservoirs

S_gen = Q/T_c − Q/T_h ≥ 0. The lost work (exergy destroyed) is T₀·S_gen.

How to use the entropy calculator

The entropy calculator has four panels, one per type of process. Use the solids and liquids panel for heating, cooling, melting or boiling a condensed phase. Use the ideal gas panel when temperature, pressure or volume of a gas change, including the isothermal expansion found in every Carnot-cycle problem. The mixing panel gives the entropy of mixing for up to four components, and the last panel works out how much entropy is generated, and how much work is lost, when heat flows from a hot to a cold body. The entropy calculator converts every unit (°F, psi, ft³, lb, BTU) before computing and lists the substitutions under “Show the working”.

What is entropy?

Entropy S is a state property defined through reversible heat transfer, dS = δQrev/T. Because it is a state function, the entropy change between two states is the same for any path, so an entropy calculator can always evaluate it along an imagined reversible path even when the real process is irreversible. Statistically, entropy measures the number of molecular arrangements consistent with a state (Boltzmann’s S = k·ln W); the OpenStax Chemistry 2e chapter on entropy explains both views. The second law states that the total entropy of a system plus its surroundings never decreases: ΔStotal = Sgen ≥ 0.

Entropy change formulas used by the entropy calculator

Solid or liquid: ΔS = m·cp·ln(T₂/T₁); Phase change: ΔS = m·λ/T
Ideal gas: ΔS = n·[Cp·ln(T₂/T₁) − R·ln(P₂/P₁)] = n·[Cv·ln(T₂/T₁) + R·ln(V₂/V₁)]
Ideal mixing: ΔS_mix = −n·R·Σ xᵢ·ln xᵢ; heat transfer: S_gen = Q/T_c − Q/T_h

All temperatures are absolute (K or °R). Here m is mass, cp the specific heat capacity, λ the latent heat, n the amount in moles, Cp and Cv the molar heat capacities (Cp − Cv = R for an ideal gas), R = 8.314 J/(mol·K), and xᵢ the mole fractions. These are the standard results derived from the Gibbs equation T·ds = dh − v·dP in texts such as Smith, Van Ness and Abbott, Çengel and Boles, and Felder and Rousseau.

Worked examples: the entropy calculator default values

Heating water. 2 kg of water (cp = 4.18 kJ/(kg·K)) heated from 20 °C (293.15 K) to 80 °C (353.15 K): ΔS = 2 × 4180 × ln(353.15/293.15) = 8360 × 0.18621 = 1556.7 J/K ≈ 1.557 kJ/K. The heat added is 501.6 kJ; dividing it by the log-mean temperature 322.2 K gives the same ΔS, which is a handy check.

Boiling water. 1 kg evaporating at 100 °C with λ = 2257 kJ/kg: ΔS = 2257/373.15 = 6.049 kJ/K. The steam tables give sfg = 6.047 kJ/(kg·K) at 100 °C; the small difference comes from rounding λ (IF97 gives 2256.5 kJ/kg). The Steam Table Calculator gives exact entropies of water and steam at any state.

Ideal gas compression. 1 kg of air (M = 28.97 g/mol, n = 34.52 mol, Cp = 29.1 J/(mol·K)) goes from 300 K and 1 bar to 600 K and 5 bar. Δs = 29.1 × ln 2 − 8.314 × ln 5 = 20.170 − 13.382 = 6.789 J/(mol·K), so ΔS = 34.52 × 6.789 = 234.3 J/K, or 0.2343 kJ/(kg·K). The same end state described by volumes (0.861 m³ to 0.3444 m³, a ratio of 0.4) gives the identical answer in the “temperature and volume” mode. An isentropic compression to 5 bar would end at 300 × 5^(8.314/29.1) = 475 K, as the entropy calculator reports, so reaching 600 K means the compressor was far from reversible.

Isothermal expansion. 1 kg of air at 300 K doubling its volume (0.861 to 1.722 m³): Δs = R·ln 2 = 5.763 J/(mol·K), ΔS = 198.9 J/K, and the reversible heat absorbed equals the work done, T·ΔS = 59.7 kJ.

Mixing. In the third panel of the entropy calculator, making 100 mol of “air” from 79 mol N₂ and 21 mol O₂: Σx·ln x = 0.79 ln 0.79 + 0.21 ln 0.21 = −0.5140, so ΔSmix = 100 × 8.314 × 0.5140 = 427.3 J/K (4.273 J/(mol·K)). At 25 °C the ideal Gibbs energy of mixing is −127.4 kJ, which is also the minimum work needed to separate that air back into pure N₂ and O₂.

Entropy generation. In the last panel of the entropy calculator, 1000 kJ flows from a reservoir at 500 K to one at 300 K. The hot side loses 2.000 kJ/K, the cold side gains 3.333 kJ/K, so Sgen = 1.333 kJ/K. With T₀ = 298.15 K the work lost is 397.5 kJ: a Carnot engine between the same reservoirs could have delivered 400 kJ from that heat. The entropy calculator lists both numbers so you can compare them.

Entropy of vaporization and Trouton’s rule

Dividing the enthalpy of vaporization by the normal boiling point gives the entropy of vaporization. For many nonpolar liquids it is close to 85–88 J/(mol·K) (Trouton’s rule); hydrogen-bonded liquids are higher and very light molecules lower. Values below use the enthalpy of vaporization at the normal boiling point; enter them in the phase-change panel of the entropy calculator on a mass basis by dividing by the molar mass.

SubstanceNormal boiling point (K)ΔHvap (kJ/mol)ΔSvap (J/(mol·K))
Water373.1540.65108.9
Ethanol351.4438.56109.7
Methanol337.8535.21104.2
Ammonia239.8223.3397.3
Benzene353.2430.7287.0
Methane111.678.1973.3
Nitrogen77.365.5772.0

Standard molar entropies at 25 °C

Absolute entropies from the third law (S = 0 for a perfect crystal at 0 K) let you compute reaction entropies, ΔS°rxn = Σν·S°(products) − Σν·S°(reactants). Values at 298.15 K and 1 bar from the NIST Chemistry WebBook:

SpeciesS° (J/(mol·K))SpeciesS° (J/(mol·K))
H₂O (liquid)69.95H₂O (gas)188.84
N₂ (gas)191.61O₂ (gas)205.15
H₂ (gas)130.68CO (gas)197.66
CO₂ (gas)213.79CH₄ (gas)186.25
NH₃ (gas)192.77C (graphite)5.74

For example, CH₄ + 2 O₂ → CO₂ + 2 H₂O(l) has ΔS° = 213.79 + 2 × 69.95 − 186.25 − 2 × 205.15 = −242.9 J/(mol·K): three moles of gas become one, so entropy falls.

Practical notes on using an entropy calculator

Is the process possible? Add the entropy change of the system and of every reservoir it exchanges heat with. A negative total means the process as described cannot happen; run each part through the entropy calculator and add the results. Isentropic efficiency. Compressors and turbines are compared with an ideal Δs = 0 process; the ideal-gas panel reports the isentropic outlet temperature for your pressure ratio. Exergy. Every J/K generated at ambient temperature T₀ destroys T₀ joules of work potential, which is why heat exchangers with large temperature differences and throttling valves are the usual targets of second-law analyses. For the limiting efficiency of a heat engine between two temperatures, use the Carnot Efficiency Calculator.

Common mistakes when calculating entropy change

Using °C in the logarithm or denominator. ln(80/20) instead of ln(353.15/293.15) is wrong by a factor of more than seven; the entropy calculator always converts to kelvin. Using the arithmetic mean temperature for Q/T over a large range: use m·cp·ln(T₂/T₁) instead. Forgetting the sign of the pressure term: compressing a gas at constant temperature lowers its entropy. Mixing identical gases: the mixing formula applies only to different species; “mixing” a gas with itself produces no entropy (the Gibbs paradox). Confusing ΔS of the system with Sgen: a cooled body can lose entropy; only the total including the surroundings must increase.

Related calculators

For heat quantities behind these entropy changes use the Enthalpy Calculator or the Specific Heat Calculator. Temperature-dependent Cp integrals are in the Heat Capacity Calculator, and real steam entropies in the steam table calculator.

Frequently asked questions

What is the formula for entropy change?

In general ΔS = ∫δQrev/T. For a solid or liquid with constant cp, ΔS = m·cp·ln(T₂/T₁); for a phase change, ΔS = m·λ/T; for an ideal gas, ΔS = n·[Cp·ln(T₂/T₁) − R·ln(P₂/P₁)].

Can the entropy calculator give a negative entropy change?

Yes, for a system that is cooled, condensed or compressed. The second law only requires the total entropy change of system plus surroundings (the entropy generation) to be zero or positive.

What units does the entropy calculator use?

Total entropy in J/K, kJ/K or BTU/°R, and specific entropy in kJ/(kg·K) or J/(mol·K). 1 BTU/(lb·°R) equals 4.1868 kJ/(kg·K).

Why do I need absolute temperature?

Entropy formulas divide by T or take ln(T₂/T₁). Both give wrong results with °C or °F because those scales have an arbitrary zero.

Is this entropy calculator free?

Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.