Air humidity calculation: all the psychrometric formulas explained
A full reference of psychrometric equations: saturation vapor pressure (Buck, Magnus), humidity ratio, enthalpy, dew point and density. With examples.
All the quantities of moist air — relative humidity, humidity ratio, enthalpy, dew point — are linked by a single system of thermodynamic equations. Know any two independent quantities (for example the temperature and the relative humidity) and you can compute all the rest. This article lays out the complete set of psychrometric equations with numerical examples, so that you can verify every calculation or implement it in a spreadsheet or a program.
Step 1: saturation vapor pressure
Everything starts with the saturation vapor pressure [Pa] — the maximum partial pressure of water vapor at temperature . It rises exponentially with temperature and is the physical foundation of all psychrometrics.
Buck equation (recommended for practice, over liquid water):
For : . The error against the exact IAPWS-95 tables is < 0.02% over the range 0–50 °C.
Magnus approximation (a quick estimate):
For : . The error against the Buck equation is < 0.1% for 0–40 °C — the two approximations practically coincide over this range.
Step 2: partial pressure of water vapor
where is the relative humidity as a decimal. For and : .
Step 3: humidity ratio x
where . For :
The constant 0.62198 is the ratio of the molar masses of water and dry air (18.015 / 28.966). At a high-altitude location, substitute the actual atmospheric pressure; how far it moves every psychrometric result is easy to underestimate.
Step 4: relative humidity φ from x and temperature
For and : — matching the input value.
Step 5: enthalpy of moist air h
with , and :
The value matches the ASHRAE Fundamentals tables for air at 20 °C / 60% RH. For the details, see Enthalpy of moist air.
Step 6: dew point
The inverse Magnus equation, for :
For : , so . See dew point.
The Buck equation cannot be inverted in this form — the Magnus approximation (17.625 / 243.04) is what you use to recover temperature from vapour pressure, as in the dew-point article.
Step 7: density of moist air ρ
with and the absolute temperature [K]. For 20 °C / 60% RH: . The density of moist air is always lower than that of dry air (1.205 kg/m³ at 20 °C) — moist air is lighter, which is the physical basis of convective motion in the atmosphere.
The term in the numerator matters: without it you get the reciprocal of specific volume per kilogram of dry air (1/v ≈ 1.188 kg/m³), not the density of moist air. The PsychroView calculation core uses this same relation.
Reference summary of equations
| Quantity | Relation |
|---|---|
| Saturation pressure | — Buck or Magnus equation |
| Partial pressure | |
| Humidity ratio | |
| Relative humidity | |
| Enthalpy | |
| Dew point | inverse Magnus from |
| Density |
The interactive h-x diagram in PsychroView performs these calculations instantly for any air state you enter.
Frequently asked questions
Which saturation-pressure equation should I choose? For technical documentation, the Buck equation (error < 0.02%). The Magnus equation is simpler and sufficient for most engineering calculations (error < 0.5%).
Why is the humidity ratio referenced to dry air? Because the mass of dry air does not change when moisture is added or removed, which simplifies balance calculations. The unit is g/kg of dry air (g/kg dry air).
Do I have to recompute the formulas for a different altitude? Yes — in the equations for humidity ratio, relative humidity and density, substitute the actual barometric pressure of the location for 101,325 Pa.
Try PsychroView for free
Interactive Mollier diagram directly in the browser. No registration required.
Open app →Or browse example projects to see real HVAC calculations.
Keywords: air humidity calculation, psychrometric formulas, saturation vapor pressure, humidity ratio formula, Buck equation