Relative humidity, dew point and absolute humidity of moist air
calc_humidity_dew_point
Works out moist air's relative humidity over water, dew point, vapour pressure and absolute humidity.
- Runs
- On the server
- Level
- Checked against a reference: SR1-86 Table 1 at two printed states, and a second implementation in Python at 50 digits by a separate agent of the same model family
What it is
Returns moist air's relative humidity over water, dew point, vapour pressure and absolute humidity. Any one of the first three is given. Use when setting an incubator, a stability chamber or a cold room, or checking for condensation, at a stated air temperature. Over liquid water only, with no enhancement factor; a frost point over ice is refused. Not for the gas law: use `calc_gas_law`.
Field: Solutions and bench arithmetic.
What it does
You give
temperature(required): Air (dry-bulb) temperature, at or above the triple point of water. Must be at least 273.16 K and at most 647.096 K.relativeHumidityOverWater: Relative humidity over liquid water. Must be at least 0 % and at most 100 %. Optional.dewPointTemperature: Dew-point temperature. Must be above 0 K. Optional.waterVapourPartialPressure: Water-vapour partial pressure. Must be at least 0 Pa. Optional.
No request is recorded for this tool.
Limits
- Bench arithmetic on solutions you describe.
- Research and education software: it does not look up densities, check that a label is right, or assess hazards.
- Relative humidity, dew point, water-vapour partial pressure and absolute humidity of moist air at the air temperature you state, from any one of the first three, over liquid water only, by the IAPWS saturation-pressure equation for pure water.
- Relative humidity is taken over pure liquid water with no enhancement factor, and the vapour is treated as an ideal gas, so results differ slightly from tables that include the enhancement factor.
- Supersaturated inputs are refused.
- A dew point below the triple point is also refused, because the frost point over ice is not computed.
- An air temperature below the triple point is invalid input.
- Mixing ratio, specific humidity and wet-bulb temperature are not given.
- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
It will not answer when
- the stated vapour pressure is above saturation at the air temperature, or the stated dew point is above the air temperature; a relative humidity above one hundred percent is outside the input's range and answered by the kit's range code.
- the vapour pressure is below the saturation pressure over liquid water at the triple point, zero included: the dew point would lie below the triple point, where a frost point over ice applies, or, for dry air, does not exist. The whole reply is refused, relative and absolute humidity included.
- not exactly one of relative humidity, dew point and vapour partial pressure is given.
Every input, with its units4 inputs
temperature(required): Air (dry-bulb) temperature, at or above the triple point of water. Must be at least 273.16 K and at most 647.096 K.relativeHumidityOverWater: Relative humidity over liquid water. Must be at least 0 % and at most 100 %. Optional.dewPointTemperature: Dew-point temperature. Must be above 0 K. Optional.waterVapourPartialPressure: Water-vapour partial pressure. Must be at least 0 Pa. Optional.
Every refusal, with its code3 refusals
| Code | When |
|---|---|
SUPERSATURATED | the stated vapour pressure is above saturation at the air temperature, or the stated dew point is above the air temperature; a relative humidity above one hundred percent is outside the input's range and answered by the kit's range code. |
DEW_POINT_OVER_ICE | the vapour pressure is below the saturation pressure over liquid water at the triple point, zero included: the dew point would lie below the triple point, where a frost point over ice applies, or, for dry air, does not exist. The whole reply is refused, relative and absolute humidity included. |
FORM_COUNT | not exactly one of relative humidity, dew point and vapour partial pressure is given. |
The calculation
The method's equations, constants and worked example.
Equation 1
over pure liquid water, no enhancement factor
T in K (t in °C + 273.15)
| Symbol | Meaning |
|---|---|
RH | relative humidity over liquid water, % |
e | water-vapour partial pressure, kPa |
p_sat | saturation pressure of pure water at the air temperature (water-saturation), kPa |
T | air (dry-bulb) temperature, K |
Source not recorded.
Equation 2
T_d such that p_sat(T_d) = e, on the saturation line over liquid water (SR1-86 Eq. (1) inverted by bracketed bisection)
| Symbol | Meaning |
|---|---|
T_d | dew-point temperature, K |
e | water-vapour partial pressure, kPa |
Source not recorded.
Equation 3
with e in Pa (kPa × 1000), giving g/m³
| Symbol | Meaning |
|---|---|
ρ_v | water-vapour mass concentration (absolute humidity), g/m^3 |
M_w | molar mass of water (CIAAW weights, through formula-reading), g/mol |
R | molar gas constant (calc-gas-law), J/(mol·K) |
T | air temperature, K |
Source 1.
Equation 4
p_sat(T) by IAPWS SR1-86 Eq. (1) (the shared routine water)
| Symbol | Meaning |
|---|---|
p_sat | saturation pressure of pure water, kPa |
T | temperature, K |
Source not recorded.
| Constant | Value | From |
|---|---|---|
SR1-86 reference constants and coefficients a, b, Tc, pc, ρc | a table of values, part of the method | Source 2 |
standard atomic weights (CIAAW abridged), through formula-mass 1.1.0 A_r | a table of values, part of the method | Source 3 |
Conventions
- RH_OVER_PURE_WATER = e/p_sat(T), no enhancement factor: Fixed by the method; not an argument. Relative humidity is the vapour pressure over the saturation pressure of pure liquid water at the air temperature (Drybench's ruling).
A model of nature: it predicts a measurement and can be wrong for your sample. No prediction error is available.
Worked example
Worked example: one case of calc-humidity-dew-point@2.0.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- temperature = 25 degC
- relativeHumidityOverWater = 60 %
Steps
- psat = 3.1698245 kPa, from temperature; by equation 4.
- e = 1.9018947 kPa, from relativeHumidityOverWater, psat; by equation 1; gives waterVapourPartialPressure.
- Td = 289.85185 K, from e; by equation 2; gives dewPointTemperature.
- rhov = 13.82139 g/m³, from e, temperature; by equation 3; gives waterVapourMassConcentration.
Answer
waterVapourPartialPressure = 1.9018947 kPa
dewPointTemperature = 289.85185 K
waterVapourMassConcentration = 13.82139 g/m³
Where these values came from: an outside program, second implementation (Python 3.13) 2026-11-14; the second implementation's run(arguments).
At build the tool returned this answer within the tolerance the file states: every number relative 1e-12 (absolute 1e-15 below 1e-3, in each value's unit); strings, notes, statuses and codes exact; where one path carries more than one unit, or a logarithmic unit, absolute at the relative value times the smallest nonzero magnitude under it (the largest, for a logarithm).
Sources
NIST, CODATA Internationally recommended 2022 values of the Fundamental Physical Constants: complete listing (allascii.txt)
Used for: Relative humidity, dew point, vapour pressure and absolute humidity of moist air at a stated temperature. At: row molar volume of ideal gas: V_m = RT/p, the vapour taken as an ideal gas.
Read in full, 11 November 2026IAPWS SR1-86(1992), Revised Supplementary Release on Saturation Properties of Ordinary Water Substance, St Petersburg, September 1992
Used for: Relative humidity, dew point, vapour pressure and absolute humidity of moist air at a stated temperature. At: equation §2 reference constants; §3 Eq. (1); §4.1 Eq. (2).
Read in full, 11 November 2026IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW), Abridged Standard Atomic Weights
Used for: Relative humidity, dew point, vapour pressure and absolute humidity of moist air at a stated temperature. At: table Abridged Standard Atomic Weights.
Read in full, 10 November 2026
How it is checked
- Level
Checked against a reference.
- Checked against
A reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath at 50 digits on the exact rationals of the input values, each output rounded once; not an outside program.
- Cases
No case set is linked to this version.
- Not checked
The frost point over ice; the enhancement factor (WMO-No. 8 Annex 4.B, not read); wet-bulb temperature; mixing ratio and specific humidity, which need the total pressure; non-ideal vapour.
What this project's records still lack1 thing
- The source's location for each equation for calc-humidity-dew-point@2.0.1.
Changes to its methods0 changes
No change is logged for these method versions.