State Variables and the Concept of an Equation of State
Fill a bicycle tire on a cold morning and the gauge reads low. Ride ten minutes and it reads higher. Nothing was added or removed. Only the temperature changed, and the pressure followed. This behavior is not an accident of rubber and air. It reflects a deep fact about matter in bulk. A fixed amount of gas confined to a fixed volume cannot have an arbitrary pressure at an arbitrary temperature. The three quantities are locked together by a functional relation called an equation of state. This article defines the state variables pressure, volume, temperature, and amount of substance. It explains why a small number of variables suffices to describe an equilibrium sample of matter. It introduces the abstract idea of an equation of state before any specific gas law is written down. Boyle's law, Charles's law, and the ideal gas equation all follow as special cases in later articles.
- A state variable is a measurable quantity that depends only on the current condition of a system, not on its history.
- Pressure , volume , temperature , and amount of substance are the four state variables needed to describe a simple fluid at equilibrium.
- For a fixed sample of matter at equilibrium, these four variables are not independent; fixing any three fixes the fourth.
- An equation of state is the mathematical function that encodes this constraint for a given substance.
- Different substances (ideal gas, real gas, liquid, solid) have different equations of state, but all obey the same logical structure.
- Key idea: at equilibrium, a sample's macroscopic condition is fully pinned down by a small set of state variables connected through a single functional relation, the equation of state.
A state variable characterizes the present condition of a system completely and reproducibly, and for any equilibrium sample of a pure substance the state variables pressure, volume, temperature, and amount are bound together by an equation of state, a function that means only three of the four can ever be chosen independently.
The physical picture
Consider a fixed mass of gas sealed inside a rigid metal cylinder fitted with a movable piston and a thermometer. At any instant you could, in principle, measure four things: how hard the gas pushes outward per unit area (pressure ), how much space it occupies (volume ), how hot it is (temperature ), and how much substance is inside (amount of substance , in moles). These four numbers are called state variables because each one is a property of the gas's current condition. Neither depends on the sequence of pistons pushes, heatings, or coolings that got the gas there. Two samples of the same gas with identical , , , and are in identical thermodynamic states, indistinguishable in every macroscopic respect, no matter how differently they arrived there. This is worth contrasting with quantities that are not state variables. The heat supplied to the gas and the work done on it during some process both depend on the path taken, not just on the starting and ending states. You can raise a gas's temperature by heating it slowly at constant volume, or by compressing it quickly and briefly, and and differ between these routes even though the final can be the same. Pressure, volume, temperature, and amount, by contrast, are properties you could read off a set of gauges at any single moment, with no reference to the past. A second key distinction is between extensive and intensive state variables. Volume and amount of substance are extensive: double the size of the system (at fixed density and temperature) and both double. Pressure and temperature are intensive: they do not depend on how much material is present, only on its condition. Splitting a container of gas in half with a partition leaves and unchanged in each half, while and are each halved. This distinction matters because it is the intensive variables that characterize "the state" in the sense of a point on a phase diagram, while the extensive variables set the "size" of the sample. The central experimental discovery underlying this whole subject is that for a pure substance at equilibrium, , , , and are not independent. If you fix the amount of gas in the cylinder, fix its volume by clamping the piston, and fix its temperature with a thermostat, the pressure is no longer something you can dial to any value you like. It settles to one particular value, determined by the substance itself. This experimental fact, that only three of the four variables can be chosen freely, is what an equation of state expresses in mathematical form.
A second useful picture is geometric. Because an equation of state constrains the four variables, the set of physically accessible states for one mole of a substance forms a two-dimensional surface when plotted against , , and (with fixed at 1 mol). Every equilibrium state of the substance is a point on this surface; no equilibrium state can lie off it. Different gases and liquids have differently shaped surfaces, but all are surfaces, not solid volumes, because of the single constraint .
The core relations
The general statement of an equation of state for a pure substance is written implicitly, since the exact functional form depends on the material:
where: = pressure, = volume, = thermodynamic temperature, = amount of substance, and is a substance-specific function determined by experiment or theory. Equivalently, because only three variables are independent, the equation of state can be solved for any one of them as a function of the other three, for instance:
where: this expresses pressure as the dependent variable once , , and are all fixed. For one mole of substance (), it is often convenient to use the molar volume , reducing the equation of state to a relation among just three intensive-like quantities:
where: is volume per mole, an intensive quantity, since it no longer depends on the total sample size. A generic infinitesimal change of state, moving along the equation-of-state surface, can be expressed with partial derivatives using the chain rule of multivariable calculus:
where: each partial derivative is the slope of the equation-of-state surface in one direction, holding the other two variables fixed.
Goal. Show, from the existence of a single equation of state, that specifying any three of , , , for a pure substance at equilibrium mathematically determines the fourth.
Step 1. Start from the empirical premise that established this whole subject: for a given pure substance at internal equilibrium, no combination of , , , is ever observed to violate some fixed relation. Write this relation abstractly as
This is not an assumption invented for convenience. It is a compact restatement of a huge body of nineteenth-century experimental work, in which gases held at fixed and were compressed and their always came out the same for the same , reproducibly, regardless of how they got there.
Step 2. Suppose an experimenter fixes three of the four variables, say , , and , by clamping the piston, thermostatting the cylinder, and sealing in a measured number of moles. Substitute these fixed values into the equation of state:
Step 3. This is now a single equation in a single unknown, . Provided is a well-behaved function (continuous and monotonic in over the relevant range, which is true for all real substances away from phase transitions), this equation has one and only one solution for . Call it :
Step 4. The same argument applies no matter which three variables are chosen as the fixed ones. Fixing , , determines a unique ; fixing , , determines a unique ; fixing , , determines a unique . In each case the equation of state collapses from a four-variable constraint to a one-variable equation once three inputs are supplied.
Step 5. Therefore, of the four quantities , , , , only three can be treated as independently adjustable "inputs" to an equilibrium state. The fourth is always the dependent "output," computed (in principle) from the equation of state. This is true regardless of the specific chemical identity of the substance, since the argument used only the existence and well-behavedness of , never its detailed form.
Worked examples
Example 1 — Counting independent variables in a laboratory gas cell. A chemistry student has a rigid glass bulb of fixed volume , connected to a pressure gauge and immersed in a thermostatted water bath. The bulb is charged with exactly mol of a gas. Question: how many of the four state variables , , , can the student independently set, and which ones? Reasoning. The bulb is rigid, so is fixed by the glassware at L; it cannot be adjusted once the bulb is sealed. The amount of gas, mol, is fixed the moment the bulb is sealed shut; no more gas can enter or leave. That leaves the water bath thermostat as the only adjustable control: the student can dial the bath to any temperature within the apparatus's operating range, say from K to K. Because and are pinned by the hardware, and is the one remaining freely adjustable input, the pressure is not a free choice. It is determined by the equation of state once is set:
Numeric check using the later ideal-gas relation (for context only). If this gas obeys (introduced fully in the next article), then at K,
Computing the numerator:
Dividing by the volume:
If the student instead raises the bath to K, holding and fixed, the equation of state forces a new, larger pressure:
The student never touched directly. It moved because moved, exactly as the equation-of-state logic predicts: with and locked, only one free variable remains, and everything else is a dependent consequence. Sanity check. Pressure increased when temperature increased at fixed volume and amount, consistent with everyday intuition (a sealed can gets more pressurized when heated). The units resolve cleanly to pascals, and the atm-equivalent values are physically reasonable for a dilute gas near room temperature.
Example 2 — Determining a fourth variable from three others without knowing explicitly. Two rigid, well-insulated tanks, A and B, hold the same unknown pure gas. Tank A: L, K, mol. Tank B: unknown , but K, mol, and the gauge reads (identical pressure to tank A). Question: can the student conclude without knowing the specific equation of state of this gas? Reasoning. This tests the logical content of Step 4 in the derivation above, not a specific formula. Tank A and Tank B share the same and the same . If they also share the same , then all three of , , agree between the two tanks. By the argument in Step 3–4, once , , are specified, the equation of state has a unique solution for (assuming is monotonic in at fixed , true away from phase transitions). Since both tanks satisfy the same triple , they must give the same .
Numeric illustration with the ideal-gas relation. Suppose the measured pressure common to both tanks is
For tank B, solve for using the same , , :
This confirms L exactly, as the equation-of-state argument required, without ever needing to look up a gas-specific constant beyond what was common to both tanks. Sanity check. The derivation predicted equality of and purely from equality of , using no information about which specific gas was in the tanks. The ideal-gas arithmetic reproduces this exactly, confirming the general principle is consistent with a concrete equation of state.
Limiting cases & common traps
| Situation | Correct view |
|---|---|
| "I can set , , , all independently." | False at equilibrium for a pure substance; only 3 of the 4 are free, the 4th follows from . |
| Comparing two open, unsealed containers | may not be fixed (gas can escape), so the usual 3-independent-variable counting needs re-examination. |
| Near a phase transition (e.g. boiling) | may not be single-valued in at fixed (liquid and vapor coexist at many volumes); the "unique fourth variable" argument in the derivation assumed monotonicity, which fails here. |
| Mixtures of several gases | Extra state variables (mole fractions of each component) are needed; alone is insufficient. |
| State variable vs. path quantity | depend only on the current state; heat and work depend on the path and are not state variables. |
The chemist behind it
The formal idea that , , and for a fixed amount of gas are bound by a single functional relation, rather than being freely adjustable, crystallized gradually through the seventeenth to nineteenth centuries. Robert Boyle's 1662 experiments on trapped air columns in a J-tube first demonstrated, quantitatively, that pressure and volume trade off against each other at fixed temperature and amount, an early and concrete instance of the more abstract equation-of-state concept formalized much later by clausius and others working on the thermodynamics of gases.
Origins · 1 minRobert Boyle and how this was discovered
Wait, correction below.
Ask the tutor: How does the ideal gas law emerge as the simplest possible equation of state, and where exactly does it break down for real gases?
What exactly makes something a "state variable" rather than just a measurable quantity?
A state variable's value depends only on the present equilibrium condition of the system, never on the sequence of steps used to reach it. Pressure, volume, temperature, and amount of substance all satisfy this: read them off gauges at any instant and you get the same numbers regardless of history. Heat and work fail this test because they are measures of energy transferred along a particular path between two states, and two different paths connecting the same initial and final states generally exchange different amounts of each.
Why can't I just pick p, V, T, and n all at once for my gas sample?
Because a pure substance at equilibrium obeys an equation of state, a built-in physical constraint of the form f(p,V,T,n)=0. This constraint is not a mathematical convenience; it reflects the fact that molecules of a real substance interact with each other and with container walls in a way that fixes their bulk pressure once the volume, temperature, and amount are set. Once you fix three of the four, the fourth is no longer under your control.
Is the equation of state the same for every gas?
No. The abstract statement f(p,V,T,n)=0 is universal in structure, but the actual function f differs for every substance. Helium, carbon dioxide, and water vapor each have their own equation of state, reflecting differences in molecular size, shape, and intermolecular forces. The ideal gas law, pV=nRT, is a single simplified equation of state that approximates the true behavior of any dilute gas reasonably well, but real gases deviate from it, especially at high pressure or low temperature.
Does the equation-of-state idea apply only to gases?
No, it applies to any pure substance at equilibrium, including liquids and solids, although the functional form of f is far more complicated for condensed phases because intermolecular forces dominate. Near a phase transition, such as boiling, the equation of state can become multivalued (liquid and vapor coexisting at the same p and T but different V), which is why the "unique fourth variable" argument requires the caveat that f behaves smoothly away from such transitions.