Relative humidity, dew point, vapour pressure and absolute humidity of moist air at a stated temperature, version 2.0.1
calc-humidity-dew-point@2.0.1: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference; over liquid water; no enhancement factor; the vapour an ideal gas. Reference kind: 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.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Every version of this method · Every method · What the levels mean
Version 2.0.1
Level: Checked against a reference; over liquid water; no enhancement factor; the vapour an ideal gas. Reference kind: 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. calc-humidity-dew-point@2.0.1
Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.
From any one of relative humidity over liquid water, dew point and water-vapour partial pressure at a stated air temperature, the others and the absolute humidity, by the IAPWS SR1-86 saturation pressure of pure water and the ideal-gas vapour density.
- How results are reported: Inputs as their shortest decimals, converted exactly and rounded once; bounds decided on that value, ends included unless stated as above or below; 1 hPa = 100 Pa exactly; the vapour pressure's working unit is Pa and the temperatures' K, the range and subnormal checks made there; full double precision; the dew point found by bisection on the SR1-86 line between the triple point and the air temperature, stopped when the bracket is no wider than 1e-13 of its upper end, its midpoint returned; a stated dew point is echoed; notes OVER_LIQUID_WATER then IDEAL_DRY_AIR on every computed reply
- Uncertainty: SR1-86's own saturation-pressure uncertainty (its §7, not read); the omitted enhancement factor's effect is not estimated.
- Iterates: bisection, at most 200 iterations, between the triple point, 273.16 K and the air temperature T
- Reference, as its record states it: 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
- Computes through:
water-saturation@1.0.1,calc-gas-law@1.0.1,formula-reading@1.0.2 - Level confirmed by this project's ruling of 25 November 2026
What this page can and cannot show
What was checked
45 cases in 1 file, linked by this exact version.
Run through the tool at build 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: 32 agree within the tolerance the file states, 13 refuse as the case expects, 0 differ, 0 were not run.
- File 1, 45 cases
- Where the expected values came from: an outside program, second implementation (Python 3.13) 2026-11-14
- Recorded on: 2026-11-14
- Reference: second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
- Tolerance as the file states it: every number relative 1e-12 (absolute 1e-15 below 1e-3, in each value's unit); strings, notes, statuses and codes exact
Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.
What was 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.
Definition or model
A model of nature: it describes how a system behaves, and can be wrong about it.
Prediction error: none available.
Equations
Equation 1
RH = 100 % × e/p_sat(T), over pure liquid water, no enhancement factor
T in K (t in °C + 273.15)
| Symbol | Meaning and unit |
|---|---|
| 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 |
Ruling of this project: 11 November 2026, section "5. `calc_humidity_dew_point`". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
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 and unit |
|---|---|
| T_d | dew-point temperature, K |
| e | water-vapour partial pressure, kPa |
Ruling of this project: 11 November 2026, section "5. `calc_humidity_dew_point`". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
Equation 3
ρ_v = e·M_w/(R·T), with e in Pa (kPa × 1000), giving g/m³
| Symbol | Meaning and unit |
|---|---|
| ρ_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: NIST, CODATA Internationally recommended 2022 values of the Fundamental Physical Constants: complete listing (allascii.txt), row molar volume of ideal gas: V_m = RT/p, the vapour taken as an ideal gas, 2022 CODATA adjustment; read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 77fb90e66c40. Free to read (NIST Standard Reference Data, a US government work; reproduction terms not yet reviewed), checked 2026-11-11. No erratum found (searched the listing's own header (2022 CODATA adjustment), physics.nist.gov constants pages), 2026-11-11.
Equation 4
p_sat(T) by IAPWS SR1-86 Eq. (1) (the shared routine water)
| Symbol | Meaning and unit |
|---|---|
| p_sat | saturation pressure of pure water, kPa |
| T | temperature, K |
Ruling of this project: 11 November 2026, section "5. `calc_humidity_dew_point`". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
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).
Constants
| Constant | Value and unit | Source | Date read |
|---|---|---|---|
| SR1-86 reference constants and coefficients (a, b, Tc, pc, ρc) | a table of values, part of the method | IAPWS SR1-86(1992), Revised Supplementary Release on Saturation Properties of Ordinary Water Substance, St Petersburg, September 1992, equation §2 reference constants; §3 Eq. (1); §4.1 Eq. (2) | 2026-11-11 |
| standard atomic weights (CIAAW abridged), through formula-mass 1.1.0 (A_r) | a table of values, part of the method | IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW), Abridged Standard Atomic Weights, table Abridged Standard Atomic Weights | 2026-11-10 |
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 kPadewPointTemperature= 289.85185 KwaterVapourMassConcentration= 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).
Who worked this case: not recorded.
What it refuses, and its input ranges
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 Next: Check the temperature, the humidity and their units; air cannot hold more vapour than saturation.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 Next: No change of input makes this computable here: the frost point over ice is not offered.FORM_COUNT(invalid input): not exactly one of relative humidity, dew point and vapour partial pressure is given
Flags and notes a reply may carry
A note a reply may carry:
OVER_LIQUID_WATER: Relative humidity is over liquid water, against the saturation pressure of pure water with no enhancement factor; the meteorological definition includes one, so values differ slightly.IDEAL_DRY_AIR: The vapour is taken as an ideal gas in the air; no compressibility correction is made.
Changes
No correction is logged for calc-humidity-dew-point@2.0.1.
Tools that use it
Cite this version
Relative humidity, dew point, vapour pressure and absolute humidity of moist air at a stated temperature. Drybench; calc-humidity-dew-point@2.0.1; https://www.drybench.com/methods/m/calc-humidity-dew-point/2.0.1 (accessed [date]).