Entropy Change Calculator (Ideal Gas)

Entropy change (ΔS)14.41 J/K
Cv of the gas20.79 J/(mol·K)
How this was calculated
  1. Cv = R / (gamma - 1) = 8.314 / 0.40 = 20.79 J/(mol·K) for this gas.
  2. Temperature term: n x Cv x ln(T2 / T1) = 1.00 x 20.79 x ln(600 / 300) = 14.41 J/K.
  3. Volume term: n x R x ln(V2 / V1) = 1.00 x 8.314 x ln(10.00 / 10.00) = 0.00 J/K.
  4. ΔS = 14.41 + 0.00 = 14.41 J/K — entropy increases: the final state can be arranged in more ways.
  5. The formula assumes a reversible path between the two states; entropy is a state function, so the result holds for any real path between the same endpoints.

Our entropy change calculator finds the entropy change between two states for an ideal gas. You enter the number of moles, the initial and final temperatures, the initial and final volumes, and the heat capacity ratio (gamma). The calculator then applies the formula ΔS = n Cv ln(T2 / T1) + n R ln(V2 / V1), where Cv = R / (gamma - 1) and R = 8.314 J/(mol·K). It returns the entropy change in J/K. For air (gamma 1.40), Cv = 20.79 J/(mol·K); for a monatomic gas (gamma 1.67), Cv = 12.41 J/(mol·K). For instance, 1 mol heated from 300 K to 600 K at constant volume gains 14.41 J/K from the temperature term alone, while 2 mol expanding isothermally from 5 L to 20 L gains 23.05 J/K from the volume term alone. A combined case — 0.50 mol of a monatomic gas cooled from 400 K to 300 K and compressed from 10 L to 5 L — loses 4.67 J/K, with the missing entropy left as heat to the surroundings.

This method is the accepted standard because entropy is a state function: the formula follows a reversible path between the endpoints, but the result holds for any real path between the same two states. That means once you know the start and end conditions, the entropy change is fixed regardless of how the gas actually got there. This page shows the full formula, step-by-step workings, worked examples, and sources so you can verify every result yourself.

Worked examples

Heated at constant volume

Primary result: 14.41 J/K — doubling the absolute temperature adds entropy through the temperature term alone. (1 mol · 300 K · 600 K · 10 L · 10 L · 1.4)

Entropy change (ΔS)14.41 J/K
Cv of the gas20.79 J/(mol·K)

Isothermal expansion

Primary result: 23.05 J/K — four times the volume at the same temperature. (2 mol · 300 K · 300 K · 5 L · 20 L · 1.4)

Entropy change (ΔS)23.05 J/K
Cv of the gas20.79 J/(mol·K)

Cooled and compressed

Primary result: -4.67 J/K — both terms pull entropy down, so heat must leave the gas. (0.5 mol · 400 K · 300 K · 10 L · 5 L · 1.67)

Entropy change (ΔS)-4.67 J/K
Cv of the gas12.41 J/(mol·K)

The entropy change formula

For an ideal gas, the entropy change between two states is ΔS = n Cv ln(T2 / T1) + n R ln(V2 / V1), where n is the number of moles, Cv is the molar heat capacity at constant volume, R is the universal gas constant at 8.314 J/(mol·K), T1 and T2 are the initial and final temperatures, and V1 and V2 are the initial and final volumes. The formula splits entropy change into two independent pieces: a temperature term and a volume term. Each piece uses the natural logarithm of a ratio, which keeps the units consistent — the kelvins or liters cancel — and makes the result depend only on the relative change, not the absolute starting values.

The heat capacity Cv comes from the relation Cv = R / (gamma - 1), where gamma is the heat capacity ratio (Cp / Cv). This expression follows from the ideal-gas identity Cp - Cv = R combined with the definition gamma = Cp / Cv. Because gamma depends on the gas, Cv does too. For air, gamma is 1.40, which gives Cv = 20.79 J/(mol·K). For a monatomic gas, gamma is 1.67, which gives Cv = 12.41 J/(mol·K). Our entropy change calculator lets you select common gases or enter a custom gamma, and it computes Cv for you.

The worked examples below show how each term behaves. Heating 1 mol from 300 K to 600 K at constant volume (V2 / V1 = 1, so the volume term is zero) gives a gain of 14.41 J/K from the temperature term alone. Expanding 2 mol isothermally from 5 L to 20 L (T2 / T1 = 1, so the temperature term is zero) gives a gain of 23.05 J/K from the volume term alone. When both terms act in the same direction, they add; when they oppose, they partially cancel. Cooling 0.50 mol of a monatomic gas from 400 K to 300 K and compressing it from 10 L to 5 L produces a net loss of 4.67 J/K — the missing entropy left as heat to the surroundings.

Entropy is a state function, which means the total ΔS depends only on the endpoints, not on the route taken. The formula follows a reversible path between the two states, but the result holds for any real path between those same states. That property is what makes a single equation valid across heating, cooling, expansion, compression, and any combination of those processes.

Worked examples

The entropy change calculator handles three verified cases that each isolate a different part of the ideal gas formula. The general expression is ΔS = n Cv ln(T2 / T1) + n R ln(V2 / V1), where the first term captures the effect of temperature change and the second captures the effect of volume change. Because entropy is a state function, the formula follows a reversible path between the endpoints, but the result holds for any real path between the same two states.

In the first worked example, 1 mol of air is heated from 300 K to 600 K at constant volume. Because the volume does not change, the volume term drops out and only the temperature term remains. Using Cv = 20.79 J/(mol·K) for air, the calculation is 1 × 20.79 × ln(600 / 300), which gives a gain of 14.41 J/K. This result is the temperature term alone, and the positive sign confirms that entropy increases when a gas is heated.

The second worked example involves 2 mol expanding isothermally from 5 L to 20 L. Because the temperature stays constant, the temperature term is zero and only the volume term contributes. The calculation is 2 × 8.314 × ln(20 / 5), which produces a gain of 23.05 J/K. This result is the volume term alone, and the positive sign reflects that entropy rises when a gas expands into a larger volume.

The third worked example combines both terms and demonstrates a net loss. Here, 0.50 mol of a monatomic gas is cooled from 400 K to 300 K and compressed from 10 L to 5 L. Using Cv = 12.41 J/(mol·K) for a monatomic gas, the temperature term is 0.50 × 12.41 × ln(300 / 400), which is negative because the gas is cooled. The volume term is 0.50 × 8.314 × ln(5 / 10), which is also negative because the gas is compressed. Together the two terms produce a net change of -4.67 J/K, meaning the gas loses 4.67 J/K of entropy. The missing entropy left as heat to the surroundings, so the total entropy of the gas plus surroundings still does not decrease.

CaseAmount (mol)Gas typeT1 (K)T2 (K)V1 (L)V2 (L)ΔS (J/K)
Heating at constant volume1Air300600——+14.41
Isothermal expansion2———520+23.05
Cooling with compression0.50Monatomic400300105-4.67
Entropy is a state function: the formula follows a reversible path between the endpoints, but the result holds for any real path between the same two states.

What a negative entropy change means

A negative entropy change simply means the system you are tracking has become more ordered or has lost some of its internal energy as heat. There is nothing wrong with this outcome, and it happens all the time. When heat flows out of a gas into its surroundings, the molecules carry less thermal energy, which often reduces the number of accessible microstates. The entropy change calculator will return a negative value in such cases, and that result is physically meaningful.

The second law of thermodynamics is sometimes summarized as 'entropy always increases,' but that statement applies to the universe as a whole, not to a single component. The combined entropy of a system plus its surroundings never falls. The system alone, however, can absolutely lose entropy if that entropy is transferred elsewhere as heat. Consider the worked example of 0.50 mol of a monatomic gas cooled from 400 K to 300 K and compressed from 10 L to 5 L. Using the formula ΔS = n Cv ln(T2 / T1) + n R ln(V2 / V1), with Cv = 12.41 J/(mol·K) for a monatomic gas and R = 8.314 J/(mol·K), the gas loses 4.67 J/K. That missing entropy left as heat to the surroundings.

Contrast that with cases where the system gains entropy. When 1 mol of gas is heated from 300 K to 600 K at constant volume, the temperature term alone produces a gain of 14.41 J/K. When 2 mol expand isothermally from 5 L to 20 L, the volume term alone produces a gain of 23.05 J/K. In both scenarios the gas absorbs energy or gains access to more space, so its entropy rises. The sign of the change tells you which way energy and disorder are moving.

Because entropy is a state function, the formula follows a reversible path between the endpoints, but the result holds for any real path between the same two states. Whether the gas lost heat slowly and gently or through a fast, irreversible process, the entropy change between those two states is the same. What matters for the second law is that any real, irreversible process will generate additional entropy somewhere in the surroundings, ensuring the total never decreases.

Why entropy is a state function

Entropy is a state function, which means the change in entropy between two states depends only on the starting and ending points, not on how the gas got from one to the other. This property is what makes an entropy change calculator practical: you can compute the result along any convenient reversible path and trust that the answer applies to every real path between the same endpoints.

The reversible-path trick works because the formula ΔS = n Cv ln(T2 / T1) + n R ln(V2 / V1) follows an idealized reversible route. In that formula, Cv = R / (gamma - 1) and R = 8.314 J/(mol·K). For air (gamma 1.40), Cv = 20.79 J/(mol·K); for a monatomic gas (gamma 1.67), Cv = 12.41 J/(mol·K). You plug in the initial and final temperature and volume, and the equation does the rest. The actual process may be fast, messy, or irreversible — it does not matter. As long as the two endpoints are the same, the entropy change is the same.

Consider the worked examples. When 1 mol is heated from 300 K to 600 K at constant volume, it gains 14.41 J/K — the temperature term alone. When 2 mol expands isothermally from 5 L to 20 L, it gains 23.05 J/K — the volume term alone. When 0.50 mol of a monatomic gas is cooled from 400 K to 300 K and compressed from 10 L to 5 L, it loses 4.67 J/K, with the missing entropy left as heat to the surroundings. Each calculation traces a tidy reversible path, yet the result holds for any real path connecting the same states.

This matters because real processes are rarely reversible. A gas may rush through a valve, mix with another gas, or absorb heat from a hot surface in a way that is impossible to describe with a single clean equation. You do not need to model that complexity. You only need the endpoints. The state-function property guarantees that the reversible calculation gives the correct entropy change for the irreversible reality.

FAQs

How do you calculate the entropy change of an ideal gas?

Use the formula ΔS = n Cv ln(T2 / T1) + n R ln(V2 / V1), where Cv = R / (gamma - 1) and R = 8.314 J/(mol·K). Here n is moles, T is temperature, V is volume, and gamma is the heat capacity ratio. This expression combines the thermal and volume contributions to the total entropy change.

What is Cv for air?

For air, Cv is 20.79 J/(mol·K). This comes from the relation Cv = R / (gamma - 1) = 8.314 / 0.40 with gamma = 1.40. This molar heat capacity at constant volume is used directly in the entropy change formula when air is treated as an ideal gas.

Can entropy change be negative?

Yes, the entropy change of a system can be negative when the system is cooled or compressed and heat flows out. The worked example gives -4.67 J/K. However, the entropy of the system plus surroundings still rises overall, consistent with the second law of thermodynamics.

Why do logarithms of ratios appear?

Entropy accumulates as dQ/T along a path. When you integrate the ideal-gas relations for temperature and volume changes, the integration turns those changes into logarithms of their ratios. The ratios T2/T1 and V2/V1 appear naturally from this mathematical step, giving the familiar logarithmic terms in the entropy change formula.

Does the path between the states matter?

No, entropy is a state function, so only the initial and final states determine the change. The reversible-path formula gives the correct entropy change for any real process between the same endpoints. Whether the actual process is reversible or irreversible, the entropy change depends solely on the starting and ending conditions.

What are the units of entropy change?

The total amount entered gives entropy change in joules per kelvin (J/K). To get the molar entropy change, divide by moles, yielding units of J/(mol·K). Both forms are common depending on whether you need the total system entropy change or the value per mole of substance.

Sources

Related calculators

Adiabatic Process Calculator
Final pressure, temperature and work for an adiabatic change of an ideal gas — no heat exchanged, so compression heats and expansion cools.
Ideal Gas Law Calculator
PV = nRT solved for whichever variable is missing — pressure, volume, moles or temperature — in kPa, litres, moles and kelvin.
Carnot Efficiency Calculator
The maximum efficiency any heat engine can reach between two temperatures — and the matching best-possible COPs for a refrigerator and a heat pump on the same reservoirs.
Specific Heat Calculator
Q = mcΔT for water, ice, aluminium, iron, copper and glass — the heat energy a temperature change actually costs.