Density, vapour pressure, pKw and neutral pH of pure liquid water
calc_water_properties
Gives pure liquid water's density, saturation vapour pressure, pKw on the molality basis and neutral pH.
- Runs
- On the server
- Level
- Checked against a reference: 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 (calc-water-properties-2.json) and a fresh one at 60 digits (calc-water-properties-4.json), relative 1e-12; CoolProp 8.0.0 HEOS::Water (relative 1e-9)
What it is
Returns pure liquid water's density, saturation vapour pressure, pKw on the molality basis and neutral pH. The temperature and absolute pressure are both stated, never assumed. Use when a buffer, a density correction or a vacuum step needs water's own properties at the bench. Accepted from the triple point to 100 °C and from 50 kPa to 1 MPa; outside that, or where the water would boil, it refuses. Not for viscosity: use `calc_water_viscosity`; not for moist air: use `calc_humidity_dew_point`.
Field: Solutions and bench arithmetic.
What it does
You give
temperature(required): Temperature of the water. Must be above 0 K.absolutePressure(required): Absolute pressure on the water (not gauge). Must be above 0 Pa.
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.
- Density, saturation vapour pressure, ionic product and neutral pH of pure liquid water at the temperature and absolute pressure you state, both required, by the IAPWS formulations for ordinary water.
- States from the triple point to 100 °C and from 50 kPa to 1 MPa are accepted; outside that window, or where the water would boil, the call is refused, never extrapolated.
- The ionic product is on the molality basis, and the neutral pH is half of it for pure water, not the pH of water open to air or of any solution.
- Solutions, ice and steam are not covered.
- 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 temperature or the pressure is outside the window the tool was measured and checked in; the releases are never extrapolated from here.
- 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).
Every input, with its units2 inputs
temperature(required): Temperature of the water. Must be above 0 K.absolutePressure(required): Absolute pressure on the water (not gauge). Must be above 0 Pa.
Every refusal, with its code3 refusals
| Code | When |
|---|---|
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. |
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). |
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. |
The calculation
4 methods, each with its equations, constants and worked example.
ρ(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 |
|---|---|
ρ | 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 1.
| Constant | Value | From |
|---|---|---|
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 | Source 1 |
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-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 kPa
waterPKwMolal = 13.933666
waterNeutralPhMolal = 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.
Saturation vapour pressure of pure water at a stated temperature (IAPWS SR1-86), inside the measured windowcalc-water-saturation-pressure@1.0.1
ln(p_sat/pc) = (Tc/T)·(a1·τ + a2·τ^1.5 + a3·τ³ + a4·τ^3.5 + a5·τ⁴ + a6·τ^7.5), τ = 1 − T/Tc (the shared routine water-saturation)
given in kPa, p_sat in Pa ÷ 1000
| Symbol | Meaning |
|---|---|
p_sat | saturation vapour pressure of pure water, Pa |
T | temperature (ITS-90), K |
τ | 1 − T/Tc |
pc | critical pressure, 22.064 MPa, MPa |
Tc | critical temperature, 647.096 K, K |
a1…a6 | SR1-86 Eq. (1) coefficients (the shared record's table SR1_86) |
Source 2.
| Constant | Value | From |
|---|---|---|
SR1-86 reference constants and coefficients a, b, Tc, pc, ρc | a table of values, part of the method | Source 3 |
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-water-saturation-pressure@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 a rule this method's record does not list as an equation; gives waterDensity.
- psat = 3.5367176 kPa, from temperature; by the equation above; 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 kPa
waterPKwMolal = 13.933666
waterNeutralPhMolal = 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.
Ionic product of pure liquid water, pKw on the molality basis (IAPWS R11-24), at a stated temperature and pressurecalc-water-pkw@1.0.1
Equation 1
pKw = −2n·[log10(1 + Q) − Q/(Q + 1)·ρw·(β0 + β1/T + β2·ρw)] + pKw^G + 2·log10(Mw/1000), Q = ρw·exp(α0 + α1/T + (α2/T²)·ρw^(2/3)), ρw in g/cm³ = ρ in kg/m³ ÷ 1000
| Symbol | Meaning |
|---|---|
pKw | −log10 of the ionic product on the molality basis |
ρw | density of the water (calc-water-density), g/mL |
T | temperature (ITS-90), K |
Q | the release's auxiliary quantity |
Source 4.
Equation 2
pKw^G = γ0 + γ1/T + γ2/T² + γ3/T³ (γ0…γ3 as printed in Eq. (4))
| Symbol | Meaning |
|---|---|
pKw^G | pKw of the ideal-gas state |
T | temperature (ITS-90), K |
Source 4.
| Constant | Value | From |
|---|---|---|
R11-24's Table 1 α and β, the γ printed in Eq. (4), n and the molar mass of water n, Mw, α, β, γ | a table of values, part of the method | Source 4 |
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-water-pkw@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 a rule this method's record does not list as an equation; 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 equation 1; 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 kPa
waterPKwMolal = 13.933666
waterNeutralPhMolal = 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.
Neutral pH of pure liquid water on the molality basis, half of pKwcalc-water-neutral-ph@1.0.1
pH_n = ½·pKw, halving the full-precision pKw
| Symbol | Meaning |
|---|---|
pH_n | neutral pH of pure water, molality basis |
pKw | ionic product, molality basis (calc-water-pkw) |
Source not recorded.
A definition, not a model: the equation states what the quantity means. A different convention gives a different number.
Worked example
Worked example: one case of calc-water-neutral-ph@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 a rule this method's record does not list as an equation; 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 the equation above; 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 kPa
waterPKwMolal = 13.933666
waterNeutralPhMolal = 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.
Sources
IAPWS R6-95(2018), Revised Release on the IAPWS Formulation 1995 for the Thermodynamic Properties of Ordinary Water Substance for General and Scientific Use
Used for: Density of pure liquid water at a stated temperature and pressure (IAPWS-95), inside the measured window. At: equation Table 3, the pressure row; Eq. (6) and Table 2; equation Eqs. (1)–(3); Table 2, all 56 terms of Eq. (6).
Read in full, 11 November 2026IAPWS SR1-86(1992), Revised Supplementary Release on Saturation Properties of Ordinary Water Substance
Used for: Saturation vapour pressure of pure water at a stated temperature (IAPWS SR1-86), inside the measured window. At: equation Eq. (1).
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: Saturation vapour pressure of pure water at a stated temperature (IAPWS SR1-86), inside the measured window. At: equation §2 reference constants; §3 Eq. (1); §4.1 Eq. (2).
Read in full, 11 November 2026IAPWS R11-24, Revised Release on the Ionization Constant of H2O (June 2024)
Used for: Ionic product of pure liquid water, pKw on the molality basis (IAPWS R11-24), at a stated temperature and pressure. At: equation Eqs. (2) and (3), Table 1, §3; equation Eq. (4); equation Table 1, α0–α2 and β0–β2; Eq. (4), γ0–γ3; §3, n = 6; the nomenclature, Mw = 18.015268 g/mol.
Read in full, 11 November 2026
How it is checked
- Level
Checked against a reference, the lowest of its 4 methods.
- Checked against
Density of pure liquid water at a stated temperature and pressure (IAPWS-95), inside the measured window: 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.
Saturation vapour pressure of pure water at a stated temperature (IAPWS SR1-86), inside the measured window: 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.
Ionic product of pure liquid water, pKw on the molality basis (IAPWS R11-24), at a stated temperature and pressure: 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.
Neutral pH of pure liquid water on the molality basis, half of pKw: 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.
- Cases
Density of pure liquid water at a stated temperature and pressure (IAPWS-95), inside the measured window: No case set is linked to this version.
Saturation vapour pressure of pure water at a stated temperature (IAPWS SR1-86), inside the measured window: No case set is linked to this version.
Ionic product of pure liquid water, pKw on the molality basis (IAPWS R11-24), at a stated temperature and pressure: No case set is linked to this version.
Neutral pH of pure liquid water on the molality basis, half of pKw: No case set is linked to this version.
- Not checked
Density of pure liquid water at a stated temperature and pressure (IAPWS-95), inside the measured window: 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).
Saturation vapour pressure of pure water at a stated temperature (IAPWS SR1-86), inside the measured window: The saturation pressure over ice; states outside the window.
Ionic product of pure liquid water, pKw on the molality basis (IAPWS R11-24), at a stated temperature and pressure: pKw on the molarity or mole-fraction basis; activity corrections for solutions; states outside the window.
Neutral pH of pure liquid water on the molality basis, half of pKw: The pH of air-exposed water (dissolved carbon dioxide) or of any solution; activity corrections.
What was not checked, in fullfrom the method records
- 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.
What this project's records still lack1 thing
- The source's location for each equation for calc-water-neutral-ph@1.0.1.
Changes to its methods0 changes
No change is logged for these method versions.