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 pws(t)p_{ws}(t)

Everything starts with the saturation vapor pressure pws(t)p_{ws}(t) [Pa] — the maximum partial pressure of water vapor at temperature tt. It rises exponentially with temperature and is the physical foundation of all psychrometrics.

Buck equation (recommended for practice, over liquid water):

pws(t)=611.21exp ⁣[(18.678t234.5)t257.14+t][Pa]p_{ws}(t) = 611.21 \cdot \exp\!\left[\left(18.678 - \frac{t}{234.5}\right) \cdot \frac{t}{257.14 + t}\right] \quad \text{[Pa]}

For t=20 Ct = 20\ ^{\circ}\text{C}: pws=611.21exp(1.342)2338 Pap_{ws} = 611.21 \cdot \exp(1.342) \approx 2\,338\ \text{Pa}. The error against the exact IAPWS-95 tables is < 0.02% over the range 0–50 °C.

Magnus approximation (a quick estimate):

pws(t)610.78exp ⁣(17.269t237.29+t)[Pa]p_{ws}(t) \approx 610.78 \cdot \exp\!\left(\frac{17.269 \cdot t}{237.29 + t}\right) \quad \text{[Pa]}

For t=20 Ct = 20\ ^{\circ}\text{C}: pws2338 Pap_{ws} \approx 2\,338\ \text{Pa}. 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 pwp_w

pw=φpws(t)[Pa]p_w = \varphi \cdot p_{ws}(t) \quad \text{[Pa]}

where φ\varphi is the relative humidity as a decimal. For t=20 Ct = 20\ ^{\circ}\text{C} and φ=0.60\varphi = 0.60: pw=0.602338=1403 Pap_w = 0.60 \cdot 2\,338 = 1\,403\ \text{Pa}.

Step 3: humidity ratio x

x=0.62198pwpatmpw[kg/kg]x = 0.62198 \cdot \frac{p_w}{p_{\text{atm}} - p_w} \quad \text{[kg/kg]}

where patm=101325 Pap_{\text{atm}} = 101\,325\ \text{Pa}. For pw=1403 Pap_w = 1\,403\ \text{Pa}:

x=0.62198140310132514030.00873 kg/kg=8.73 g/kgx = 0.62198 \cdot \frac{1\,403}{101\,325 - 1\,403} \approx 0.00873\ \text{kg/kg} = 8.73\ \text{g/kg}

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

φ=xpatm(0.62198+x)pws(t)\varphi = \frac{x \cdot p_{\text{atm}}}{(0.62198 + x) \cdot p_{ws}(t)}

For x=0.00873 kg/kgx = 0.00873\ \text{kg/kg} and t=20 Ct = 20\ ^{\circ}\text{C}: φ=0.008731013250.6307123380.600=60.0%\varphi = \dfrac{0.00873 \cdot 101\,325}{0.63071 \cdot 2\,338} \approx 0.600 = 60.0\% — matching the input value.

Step 5: enthalpy of moist air h

h=cpat+x(r0+cpvt)[kJ/kg dry air]h = c_{pa} \cdot t + x \cdot (r_0 + c_{pv} \cdot t) \quad \text{[kJ/kg dry air]}

with cpa=1.006 kJ/(kg⋅K)c_{pa} = 1.006\ \text{kJ/(kg·K)}, cpv=1.860 kJ/(kg⋅K)c_{pv} = 1.860\ \text{kJ/(kg·K)} and r0=2501.0 kJ/kgr_0 = 2\,501.0\ \text{kJ/kg}:

h=1.00620+0.00873(2501+1.86020)=20.12+22.16=42.28 kJ/kgh = 1.006 \cdot 20 + 0.00873 \cdot (2\,501 + 1.860 \cdot 20) = 20.12 + 22.16 = 42.28\ \text{kJ/kg}

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 tdt_d

The inverse Magnus equation, for pw>611 Pap_w > 611\ \text{Pa}:

td=243.04γ17.625γ,γ=ln ⁣(pw610.94)[°C]t_d = \frac{243.04 \cdot \gamma}{17.625 - \gamma}, \qquad \gamma = \ln\!\left(\frac{p_w}{610.94}\right) \quad \text{[°C]}

For pw=1403 Pap_w = 1\,403\ \text{Pa}: γ=ln(1403/610.94)=0.8314\gamma = \ln(1\,403 / 610.94) = 0.8314, so td=243.040.831417.6250.831412.0 Ct_d = \dfrac{243.04 \cdot 0.8314}{17.625 - 0.8314} \approx 12.0\ ^{\circ}\text{C}. 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 ρ

ρ=(1+x)patmRaT(1+1.6078x)[kg/m3]\rho = \frac{(1 + x) \cdot p_{\text{atm}}}{R_a \cdot T \cdot (1 + 1.6078 \cdot x)} \quad \text{[kg/m}^3\text{]}

with Ra=287.058 J/(kg⋅K)R_a = 287.058\ \text{J/(kg·K)} and the absolute temperature TT [K]. For 20 °C / 60% RH: ρ1.198 kg/m3\rho \approx 1.198\ \text{kg/m}^3. 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 (1+x)(1 + x) 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

QuantityRelation
Saturation pressurepws(t)p_{ws}(t) — Buck or Magnus equation
Partial pressurepw=φpws(t)p_w = \varphi \cdot p_{ws}(t)
Humidity ratiox=0.62198pw/(patmpw)x = 0.62198\,p_w / (p_{\text{atm}} - p_w)
Relative humidityφ=xpatm/[(0.62198+x)pws(t)]\varphi = x\,p_{\text{atm}} / [(0.62198 + x)\,p_{ws}(t)]
Enthalpyh=1.006t+x(2501+1.860t)h = 1.006\,t + x\,(2\,501 + 1.860\,t)
Dew pointinverse Magnus from pwp_w
Densityρ=(1+x)patm/[287.058T(1+1.6078x)]\rho = (1 + x)\,p_{\text{atm}} / [287.058\,T\,(1 + 1.6078\,x)]

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