Density of pure liquid water at a stated temperature and pressure (IAPWS-95), inside the measured window, version 1.0.1
calc-water-density@1.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; Matches R6-95 Table 7 at 300 K; elsewhere agrees with a 50-digit second implementation and CoolProp 8.0.0 (1e-9). Reference kind: a reference program this project wrote itself, stored reference values: IAPWS-95, SR1-86, R11-24 and R12-08 in Python decimal at 50 digits, typed from the releases by a separate agent, CPython 3.13.18, Python decimal, 50 digits; ln and exp at 50 digits; the density solved to a relative change of 1e-40; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 50 digits on the exact rationals of the input doubles, the density solved to a relative 1e-45, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 50 digits on each state as W1 reads it, the density solved to a relative 1e-45, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath at 60 digits on the exact rationals of the input values, the density root rounded once; not an outside program.
Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.
Every version of this method · Every method · What the levels mean
Version 1.0.1
Level: Checked against a reference; Matches R6-95 Table 7 at 300 K; elsewhere agrees with a 50-digit second implementation and CoolProp 8.0.0 (1e-9). Reference kind: a reference program this project wrote itself, stored reference values: IAPWS-95, SR1-86, R11-24 and R12-08 in Python decimal at 50 digits, typed from the releases by a separate agent, CPython 3.13.18, Python decimal, 50 digits; ln and exp at 50 digits; the density solved to a relative change of 1e-40; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 50 digits on the exact rationals of the input doubles, the density solved to a relative 1e-45, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 50 digits on each state as W1 reads it, the density solved to a relative 1e-45, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath at 60 digits on the exact rationals of the input values, the density root rounded once; not an outside program. calc-water-density@1.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.
Verification statement: Matches R6-95 Table 7 at 300 K, the one printed in-window state; elsewhere agrees with second implementations at 50 and 60 digits and with CoolProp 8.0.0 within relative 1e-9.
The density of pure liquid water at a stated temperature and absolute pressure, by the shared routine water-density (IAPWS-95 on the liquid branch), inside the window Drybench set; refused outside it and where the water is not liquid.
- How results are reported: none: an unrounded double in the reply and the export; it agrees with a 50-digit solve of the same equations within relative 1e-12 on every fixture case (the stop at |Δρ|/ρ ≤ 1e-10 is followed by the accepted Newton step); an app that displays it shows seven significant figures (Drybench's ruling)
- Uncertainty: R6-95 §6 and Fig. 1 give IAPWS's estimated tolerance, judged rather than measured and without statistical significance.
- Reference, as its record states it: R6-95 Table 7 at 300 K as printed; a second implementation in Python by a separate agent of the same model family at 50 digits and a fresh one at 60 digits, relative 1e-12; CoolProp 8.0.0 HEOS::Water (relative 1e-9)
- Computes through:
water-density@1.0.1 - Level confirmed by this project's ruling of 14 November 2026
What this page can and cannot show
What was checked
167 cases in 4 files, linked by this exact version.
Run through the tool at build against a reference program this project wrote itself, stored reference values: IAPWS-95, SR1-86, R11-24 and R12-08 in Python decimal at 50 digits, typed from the releases by a separate agent, CPython 3.13.18, Python decimal, 50 digits; ln and exp at 50 digits; the density solved to a relative change of 1e-40; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 50 digits on the exact rationals of the input doubles, the density solved to a relative 1e-45, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 50 digits on each state as W1 reads it, the density solved to a relative 1e-45, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath at 60 digits on the exact rationals of the input values, the density root rounded once; not an outside program: 138 agree within the tolerance the file states, 29 refuse as the case expects, 0 differ, 0 were not run.
File 1, 20 cases
- Where the expected values came from: an outside program, stored reference values: IAPWS-95, SR1-86, R11-24 and R12-08 in Python decimal at 50 digits, typed from the releases by a separate agent CPython 3.13.18
- Recorded on: 2026-11-11
- Reference: stored reference values: IAPWS-95, SR1-86, R11-24 and R12-08 in Python decimal at 50 digits, typed from the releases by a separate agent, CPython 3.13.18; licence PSF-2.0
- Tolerance as the file states it: relative 1e-11 on every number (the density solve stops at a relative change of 1e-10, its error far smaller); statuses, codes and units exact
File 2, 44 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
File 3, 7 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
File 4, 96 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
Vapour, ice and supercritical water; states outside the window (the releases' wider ranges are not served); SMOW-corrected, heavy or air-saturated water. The phase call within 72 ppm of the boiling pressure: the test uses SR1-86's p_sat, which differs there from IAPWS-95's own saturation pressure (the builder's comparison with CoolProp 8.0.0, 14 November 2026: at most 72 ppm, at 284.7 K, on a grid of 10,001 temperatures from 273.16 K to 373.15 K). A state in that band may be served as liquid where IAPWS-95 alone calls it vapour, or refused where IAPWS-95 calls it liquid. A density served there is IAPWS-95's on the liquid branch, possibly metastable.
Definition or model
A model of nature: it describes how a system behaves, and can be wrong about it.
Prediction error: none available.
Equations
ρ(T, p) by the shared routine water-density: p = ρ·R·T·(1 + δ·φʳ_δ) solved for ρ on the liquid branch, R = 461.51805 J/(kg·K) (IAPWS-95's specific gas constant, not the molar R)
T in K (t in °C + 273.15). Not worked by hand: the figure a reader reaches is R6-95 Table 7, the row T = 300 K, ρ = 996.5560 kg/m³
bracketed Newton between 0.99 and 1.05 times SR1-86's saturated-liquid density (the shared record's iteration)
| Symbol | Meaning and unit |
|---|---|
| ρ | density of the liquid, kg/m^3 |
| T | temperature (ITS-90), K |
| p | absolute pressure, Pa |
| δ | ρ/ρc, ρc = 322 kg/m³ |
| τ | Tc/T, Tc = 647.096 K |
| φʳ_δ | ∂φʳ/∂δ, the residual Helmholtz energy's derivative (R6-95 Table 5 and Eq. (6)) |
Source: IAPWS R6-95(2018), Revised Release on the IAPWS Formulation 1995 for the Thermodynamic Properties of Ordinary Water Substance for General and Scientific Use, equation Table 3, the pressure row; Eq. (6) and Table 2, the 2018 revision, as published by IAPWS; 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 512879217b94. Free to read (Publication in whole or in part allowed in all countries with attribution to IAPWS (the release's own statement); reproduction terms held for the General Counsel), checked 2026-11-11. No erratum found (searched the release page on iapws.org, the IAPWS release index), 2026-11-11.
Constants
| Constant | Value and unit | Source | Date read |
|---|---|---|---|
| IAPWS-95 reference constants and the residual part's 56 terms (n, d, t, c, α, β, γ, ε, a, b, B, C, D, A; Tc, ρc, R) | a table of values, part of the method | IAPWS R6-95(2018), Revised Release on the IAPWS Formulation 1995 for the Thermodynamic Properties of Ordinary Water Substance for General and Scientific Use, equation Eqs. (1)–(3); Table 2, all 56 terms of Eq. (6) | 2026-11-11 |
Worked example
Worked example: one case of calc-water-density@1.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 = 300 K
- absolutePressure = 99241.8352 Pa
Steps
- rho = 996.556 kg/m³, from temperature, absolutePressure; by the equation above; gives waterDensity.
- psat = 3.5367176 kPa, from temperature; by a rule this method's record does not list as an equation; gives waterSaturationVapourPressure.
- pkw = 13.933666, from temperature, rho; by a rule this method's record does not list as an equation; gives waterPKwMolal.
- ph = 6.9668331, from pkw; by a rule this method's record does not list as an equation; gives waterNeutralPhMolal.
The working, as the case writes it:
T = 300 K, p = 99241.8352 Pa: IAPWS-95 solved for ρ = 996.556 kg/m³
SR1-86 Eq. (1) p_sat = 3.536717587 kPa
R11-24 with ρw = ρ/1000 g/cm³ gives pKw = 13.93366611, and the neutral pH is half of it, 6.966833054.
Answer
waterDensity= 996.556 kg/m³waterSaturationVapourPressure= 3.5367176 kPawaterPKwMolal= 13.933666waterNeutralPhMolal= 6.9668331
Where these values came from: an outside program, stored reference values: IAPWS-95, SR1-86, R11-24 and R12-08 in Python decimal at 50 digits, typed from the releases by a separate agent CPython 3.13.18; stored reference values in 50-digit decimals, against the release's printed value.
At build the tool returned this answer within the tolerance the file states: waterDensity at the release's printed figures (996.5560 kg/m^3, half a unit in the last place); relative 1e-11 on every other number; statuses, codes and units exact.
Who worked this case: not recorded.
What it refuses, and its input ranges
STATE_OUTSIDE_WINDOW: the temperature or the pressure is outside the window the tool was measured and checked in; the releases are never extrapolated from here Next: Give a state inside the window the limits line states; a wider window needs a new measurement and new cases.NOT_LIQUID: the pressure is at or below the saturation pressure at this temperature, so the water is not liquid (the phase test of the saturation line) Next: Raise the pressure above the saturation pressure, or lower the temperature; vapour is not served.
Input ranges: temperature: at least 273.16 K and at most 373.15 K; outside it, refused (STATE_OUTSIDE_WINDOW). absolutePressure: at least 50000 Pa and at most 1000000 Pa; outside it, refused (STATE_OUTSIDE_WINDOW).
Changes
No correction is logged for calc-water-density@1.0.1.
Tools that use it
Cite this version
Density of pure liquid water at a stated temperature and pressure (IAPWS-95), inside the measured window. Drybench; calc-water-density@1.0.1; https://www.drybench.com/methods/m/calc-water-density/1.0.1 (accessed [date]).