Ch · Chemistry

What Is a State Function, and How Can You Identify One?

Updated 13 October 2026

At a glance

  1. 1. Define the state

    A state function assigns a value to each equilibrium state of the system.

  2. 2. Compare paths

    For the same initial and final states, its change must be identical for every allowed process.

  3. 3. Check exactness

    For a differential expression, test whether it is exact; in two variables, compare the relevant partial derivatives.

  4. 4. Use endpoints

    Calculate the change from the initial and final values, not from the route taken.

A state function is a property of a system whose value depends only on its current equilibrium state. It does not depend on the process or history that brought the system there. This article explains the definition, how to recognize state functions, and how exact differentials provide a mathematical test.

Definition of a state function

A thermodynamic state is described by enough state variables to specify the system’s condition—for example, pressure, volume, temperature, and composition. A state function assigns a definite value to each such state. Internal energy UU, enthalpy HH, entropy SS, pressure PP, and volume VV are familiar examples.

If a system moves from state 1 to state 2, the change in a state function XX is

ΔX=X2−X1.\Delta X = X_2-X_1.

Only the endpoint values matter. If two different processes take the system between the same states, both must give the same ΔX\Delta X. Equivalently, the total change in a state function around any closed cycle is zero:

∮dX=0.\oint dX=0.

The system must return to the same state for this statement to apply. That includes relevant details such as composition and phase, not merely matching one measurement such as temperature.

How to determine whether a quantity is a state function

There are three useful approaches.

  1. Use the definition or a thermodynamic model. If a quantity is specified as a property of the system’s equilibrium state, it is a state function. A formula such as X=f(P,V,T,…)X=f(P,V,T,\ldots) makes this explicit, provided the variables specify the state and the formula gives a unique value.
  2. Compare different paths. Consider processes with the same initial and final states. If the quantity’s change is the same for every allowed path, it is path-independent and behaves as a state function. A single pair of matching results does not prove path independence for all possible paths, but different results disprove it.
  3. Test the differential expression. If the proposed change is written in terms of state variables, check whether the differential is exact. This gives a mathematical test under stated regularity and domain conditions.

In thermodynamics, exact differentials are conventionally written with dd, as in dUdU or dSdS. Heat and work are transfers during a process, not properties stored in a state; their inexact differentials are often written δq\delta q and δw\delta w.

Exact-differential test

Suppose a proposed differential in two variables is

dX=M(x,y) dx+N(x,y) dy.dX=M(x,y)\,dx+N(x,y)\,dy.

If XX is a well-behaved state function, its mixed second partial derivatives must agree. Thus, on a suitable simply connected domain, a standard test is

∂M∂y=∂N∂x.\frac{\partial M}{\partial y}=\frac{\partial N}{\partial x}.

If the equality fails, the expression is not an exact differential on that domain, so it cannot be the differential of a state function there. If it holds and the coefficient functions are sufficiently smooth on a simply connected domain, the expression is exact. On domains with holes or other restrictions, the derivative test alone may not guarantee global path independence; the domain and possible closed-loop integrals also matter.

Worked example: checking exactness

Let xx and yy describe a state, and suppose a quantity XX has the proposed differential

dX=(2x+y) dx+(x+3y2) dy.dX=(2x+y)\,dx+(x+3y^2)\,dy.

Here M=2x+yM=2x+y and N=x+3y2N=x+3y^2. Their cross-partials are

∂M∂y=1,∂N∂x=1.\frac{\partial M}{\partial y}=1, \qquad \frac{\partial N}{\partial x}=1.

They agree. To find XX, integrate MM with respect to xx:

X=x2+xy+g(y),X=x^2+xy+g(y),

where g(y)g(y) is a function to be determined. Differentiating with respect to yy gives ∂X/∂y=x+g′(y)\partial X/\partial y=x+g'(y). Matching this to N=x+3y2N=x+3y^2 gives g′(y)=3y2g'(y)=3y^2, so g(y)=y3+Cg(y)=y^3+C. Therefore,

X=x2+xy+y3+C.X=x^2+xy+y^3+C.

For a change from (0,0)(0,0) to (1,2)(1,2), the state-function change is

ΔX=(12+1⋅2+23)−(0)=11.\Delta X=(1^2+1\cdot2+2^3)-(0)=11.

Any path between those endpoints gives the same change. For example, going first from (0,0)(0,0) to (1,0)(1,0) and then to (1,2)(1,2) gives 1+10=111+10=11. Reversing the order gives 8+3=118+3=11.

Thermodynamic example: internal energy

For a fixed composition of an ideal gas, internal energy is determined by temperature and amount of gas. If the heat capacity at constant volume is constant over the temperature range, then, at fixed nn and composition, U=nCVT+CU=nC_VT+C, where CC is an additive reference constant. At fixed nn,

ΔU=nCV(T2−T1).\Delta U=nC_V(T_2-T_1).

The gas may be heated at constant volume or taken through a process involving expansion and compression. If both processes start and end at the same temperatures, they produce the same change in internal energy. The heat supplied and work done can differ between paths; that does not make ΔU\Delta U path-dependent.

Common mistakes

  • Calling heat or work state functions: Heat and work describe energy transferred during a process. Their values generally depend on the path, even when the endpoints are fixed.
  • Confusing a state function with a constant: A state function can change as the system changes state. Path independence concerns its change between fixed endpoints, not whether its value stays the same.
  • Assuming one measurement decides the issue: A value measured at one state cannot establish path independence. Use the definition, a valid model, or a general path-independence or exactness argument.
  • Treating the derivative test as unconditional: The simple cross-partial test assumes suitable smoothness and a suitable domain. State-space restrictions can matter, and the equality is a test for an exact differential—not a rule that every expression involving state variables is exact.

References

  1. Thermodynamics and an Introduction to Thermostatistics, 2nd ed. — Herbert B. Callen

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.