keepcalculator

06 Numbers and Powers

Water Density vs Temperature Calculator

Card No. 06·1303 · Updated · Standard formula, shown below

Density 998.21 kg/m³
Density
0.9982 g/cm³
Result
Change vs 4°C
-0.1766 %
Result
Temperature
20 °C
You entered
You enter
Temperature
You get
Density, Density, Change vs 4°C
Rounding
2 dp · 4 dp

This calculator computes the density of pure water at a given temperature between 0 and 100 °C, using the standard IAPWS-97 formulation. Enter the temperature in degrees Celsius, and you get the density in kg/m³ (and g/cm³). It also shows how density changes relative to the maximum at 4 °C.

Formula

The calculator uses the empirical equation of state for water density from the International Association for the Properties of Water and Steam (IAPWS), simplified for the range 0–100 °C at 1 atm:

ρ(t) = ρ_max · [1 − (t + 288.9414) / (508929.2 · (t + 68.12963)) · (t − 3.9863)²]

  • ρ(t) = density at temperature t (kg/m³)
  • t = temperature (°C)
  • ρ_max = 999.97495 kg/m³ (density at 3.984 °C)

This is a polynomial fit that reproduces the density of air-free pure water within 1 part per million over the specified range. It is widely used in metrology and oceanography.

Worked Example

Using the default value of 20 °C:

  1. t = 20 °C
  2. t + 288.9414 = 308.9414
  3. t + 68.12963 = 88.12963
  4. t − 3.9863 = 16.0137; square = 256.438
  5. Numerator: 308.9414 × 256.438 = 79220.6
  6. Denominator: 508929.2 × 88.12963 = 44860000
  7. Fraction = 0.001766
  8. 1 − 0.001766 = 0.998234
  9. ρ = 999.97495 × 0.998234 = 998.21 kg/m³

The calculator shows 998.21 kg/m³, which matches the known density of water at 20 °C.

Why Water Density Changes with Temperature

Water is unusual because its density does not steadily decrease as temperature rises from 0 °C. Instead, it reaches a maximum at about 4 °C. This happens because of hydrogen bonding: as ice melts, some water molecules still form short-lived clusters that are less dense than individual molecules. Between 0 and 4 °C, the breaking of these clusters dominates, making the water more compact. Above 4 °C, the increased molecular motion wins, and the water expands.

This anomaly is why lakes freeze from the surface down. In winter, surface water cools and becomes denser, sinking until the whole lake reaches 4 °C. Further cooling makes the surface water less dense, so it stays on top and freezes. The bottom remains at 4 °C, allowing fish to survive.

How to Use the Calculator

Enter any temperature from 0 to 100 °C. The calculator returns:

  • Density in kg/m³ (the primary output)
  • Density in g/cm³ (same value divided by 1000)
  • Percentage change relative to the maximum density at 3.984 °C

For most engineering and lab work, the density at 20 °C (998.21 kg/m³) is used as a reference. For precise measurements, use the exact temperature of your sample.

Common Mistakes and Misconceptions

  • Assuming density decreases linearly: It does not, especially between 0 and 4 °C. Always use the formula or table.
  • Ignoring pressure: This calculator is for 1 atm (standard atmospheric pressure). At high pressures (e.g., deep ocean), density increases slightly.
  • Using the density of ice: Ice at 0 °C has a density of about 916.7 kg/m³, much lower than liquid water. The calculator is for liquid water only.
  • Mixing units: Always use °C. If you have °F, convert first: °C = (°F − 32) × 5/9.
  • Rounding too early: Keep at least 3 decimal places in intermediate steps to get accurate final density.

Practical Applications

Knowing water density vs temperature is essential in:

  • Aquaculture: Oxygen solubility and fish health depend on temperature and density stratification.
  • HVAC design: Chilled water systems rely on density differences for natural circulation.
  • Brewing: Specific gravity readings are temperature-dependent; brewers correct to 20 °C.
  • Oceanography: Density drives thermohaline circulation and affects sonar propagation.
  • Meteorology: Water vapor density affects air buoyancy and weather patterns.

Limitations and Alternatives

This formula is accurate for pure, air-free water at 1 atm. If you need density of seawater, salt solutions, or water under high pressure, you need a different equation (e.g., UNESCO EOS-80 for seawater). For temperatures above 100 °C, water becomes steam, and the density drops dramatically; this calculator does not apply.

If you need density at a specific pressure, use the full IAPWS-97 formulation or a steam table. For most everyday uses, the difference is negligible.

Frequently Asked Questions

Why does water have maximum density at 4 °C?

Because of hydrogen bonding. As ice melts, some cage-like clusters persist. Between 0 and 4 °C, these clusters break, allowing molecules to pack more tightly. Above 4 °C, thermal motion expands the liquid, so density decreases.

How much does water expand when heated from 20 °C to 80 °C?

Density drops from 998.21 to 971.80 kg/m³, a decrease of about 2.6%. That means 1 liter of water at 20 °C becomes about 1.026 liters at 80 °C.

Is the density of water exactly 1 g/cm³?

No. At 4 °C, pure water has a density of 0.99997 g/cm³. The old definition of the gram was based on 1 cm³ of water at 4 °C, but modern measurements show it is slightly less.

Does salt affect the density-temperature relationship?

Yes. Salt increases density and shifts the temperature of maximum density slightly. For seawater (3.5% salinity), maximum density occurs near −1 °C, not 4 °C.

Can I use this calculator for ice?

No. The formula is valid only for liquid water. Ice has a different crystal structure and density (about 916.7 kg/m³ at 0 °C).

Why do some tables show 1000 kg/m³ at 4 °C?

Many simplified tables round the maximum density to 1000 kg/m³ for convenience. The actual value is 999.97495 kg/m³, a difference of 0.025%. For precise work, use the unrounded value.

Related

Formula used
in t | Temperature | °C | 20 | 0 | 100
out rho | Density | kg/m³ | 999.97495 * (1 - (t + 288.9414) / (508929.2 * (t + 68.12963)) * (t - 3.9863)^2) | 2
out rho_g | Density | g/cm³ | (999.97495 * (1 - (t + 288.9414) / (508929.2 * (t + 68.12963)) * (t - 3.9863)^2)) / 1000 | 4
out pct | Change vs 4°C | % | ((999.97495 * (1 - (t + 288.9414) / (508929.2 * (t + 68.12963)) * (t - 3.9863)^2)) / 999.97495 - 1) * 100 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →