Water Density Calculator - Temperature, Salinity, and Pressure Inputs

Use this water density calculator to compute density in kg/m3, g/mL, and lb/ft3 from temperature, salinity, and pressure with the IAPWS polynomial.

Updated: July 1, 2026 • Free Tool

Water Density Calculator

Water temperature in the unit selected below. Valid range is 0-100°C (32-212°F or 273.15-373.15 K) for liquid water at 1 atm.

Pick Celsius, Fahrenheit, or Kelvin. The calculator converts to Celsius internally.

Dissolved salt content in parts per thousand (ppt). Use 0 for fresh water, 35 for typical seawater.

Ambient pressure in atmospheres. Use 1 for standard sea-level conditions.

Results

Water Density
0kg/m³
Density (g/mL) 0g/mL
Density (lb/ft³) 0lb/ft³
Distance from Max Density 0kg/m³

What Is Water Density Calculator?

A water density calculator computes the mass of water per unit volume from temperature, salinity, and pressure. Enter your values and the calculator returns density in kg/m³, g/mL, and lb/ft³ using the IAPWS polynomial for pure water and the Millero equation for salt water corrections. Pure water at 4°C reaches its maximum density of approximately 999.97 kg/m³, while typical seawater at 20°C and 35 ppt salinity comes out to about 1024.85 kg/m³.

  • Oceanography and marine science: Estimate seawater density at a given depth, temperature, and salinity to compute buoyancy forces, water mass, or stratification layers.
  • Aquarium and aquaculture management: Check whether the water in a tank or pond has the right density for the species you are keeping, especially when mixing salt water.
  • Engineering and fluid mechanics: Supply a defensible density value for Reynolds number, hydrostatic pressure, or pipe flow calculations involving water.
  • Classroom and lab exercises: Show students how water density changes with temperature and why ice floats, using real polynomial coefficients instead of a single fixed number.

Water density is not a single fixed value. It shifts with temperature, dissolved salts, and pressure. The calculator handles all three variables so you get a result that matches your actual conditions rather than a textbook approximation.

When you need the density of a gas rather than a liquid, the air density calculator uses the ideal gas law to return kg/m³, g/L, and lb/ft³ from temperature, pressure, and humidity.

How Water Density Calculator Works

The calculator applies a 5th-order polynomial to compute the density of pure water from temperature, then adds a salinity correction and a small pressure adjustment.

ρ(T) = 999.83311 + 0.0752·T − 0.0089·T² + 7.36413×10⁻⁵·T³ − 4.74639×10⁻⁷·T⁴ + 1.34888×10⁻⁹·T⁵
  • T: Temperature in °C. The calculator converts from °F or K before applying the polynomial.
  • ρ₀: Base density constant: 999.83311 kg/m³, the density at 0°C.
  • a₁ through a₅: Polynomial coefficients fitted to IAPWS reference data for the 0-100°C range.
  • S: Salinity in ppt. The salinity correction adds roughly 0.825 kg/m³ per ppt at 0°C, decreasing slightly with temperature.
  • P: Pressure in atm. Each atmosphere above 1 adds about 0.4 kg/m³ to account for water compressibility.

The polynomial coefficients come from the International Association for the Properties of Water and Steam (IAPWS) reference data. They reproduce laboratory measurements to within 0.01 kg/m³ across the full 0-100°C liquid range.

For salt water, the calculator uses a simplified form of the Millero equation. The salinity correction factor decreases slightly as temperature rises because warmer water holds less dissolved salt per unit volume.

Pure water at 20°C

T = 20°C, S = 0 ppt, P = 1 atm

ρ(20) = 999.83311 + 0.0752(20) − 0.0089(400) + 7.36413e-5(8000) − 4.74639e-7(160000) + 1.34888e-9(3200000)

ρ = 998.21 kg/m³ = 0.9982 g/mL = 62.32 lb/ft³

At room temperature, pure water is about 0.18% less dense than its maximum at 4°C.

Typical seawater at 20°C

T = 20°C, S = 35 ppt, P = 1 atm

ρ = 998.21 + 35 × (0.825 − 0.0015 × 20) = 998.21 + 35 × 0.795 = 998.21 + 27.83

ρ ≈ 1024.85 kg/m³ = 1.0249 g/mL = 63.98 lb/ft³

Seawater is about 2.7% denser than fresh water at the same temperature, which is why objects float more easily in the ocean.

According to the International Association for the Properties of Water and Steam (IAPWS), the density of pure water follows a 5th-order polynomial in temperature with coefficients ρ₀ = 999.83311, a₁ = 0.0752, a₂ = 0.0089, a₃ = 7.36413×10⁻⁵, a₄ = 4.74639×10⁻⁷, and a₅ = 1.34888×10⁻⁹ kg/m³.

Once you have the water density, the buoyancy calculator computes the upward force on a submerged object from the displaced fluid volume and density.

Key Concepts Explained

Four ideas cover everything the water density calculator returns.

Thermal Expansion

Water expands as it warms above 4°C, so the same mass occupies more volume and density drops. Below 4°C, water expands again as it approaches freezing, which is why ice floats.

Maximum Density at 4°C

Pure water reaches its peak density of about 999.97 kg/m³ at 4°C. This anomaly comes from the hydrogen-bond network rearranging as temperature drops.

Salinity and Dissolved Solids

Each part per thousand of dissolved salt adds roughly 0.8 kg/m³ to water density. Ocean water at 35 ppt is about 2.7% denser than fresh water at the same temperature.

Pressure Compressibility

Water is nearly incompressible, but each additional atmosphere of pressure adds about 0.4 kg/m³. At 100 atm (roughly 1000 m depth), density increases by about 0.4%.

These four concepts explain why the calculator returns different values for a glass of tap water, a tropical ocean sample, and deep-sea water. The same physics applies whether you are working in a lab, on a boat, or in a classroom.

The same density principles apply to gases, and the gas density calculator uses the ideal gas law to compute gas density from temperature, pressure, and molar mass.

How to Use This Calculator

Five steps move you from raw inputs to a density value you can use in downstream calculations.

  1. 1 Enter the temperature: Type the water temperature and pick Celsius, Fahrenheit, or Kelvin from the unit dropdown.
  2. 2 Set the salinity: Enter 0 for fresh water, 35 for typical seawater, or the measured salinity of your sample in ppt.
  3. 3 Set the pressure: Enter 1 atm for surface conditions. Increase for underwater depth: each 10 m of depth adds roughly 1 atm.
  4. 4 Read the density: The result panel shows density in kg/m³, g/mL, and lb/ft³ simultaneously.
  5. 5 Check the distance from maximum density: The bottom row shows how far your result is from the 4°C maximum, useful for buoyancy estimates.

A marine biology student needs the density of seawater at 15°C and 35 ppt salinity for a buoyancy experiment. She enters 15°C, 35 ppt, and 1 atm. The calculator returns 1025.65 kg/m³, which she uses to compute the buoyant force on her sample.

If you know the volume of water and need its mass, the volume to mass calculator multiplies volume by density to give you the answer directly.

Benefits of Using This Calculator

A dedicated water density calculator removes the manual polynomial work and unit conversions that slow down fluid mechanics problems.

  • Three output units at once: The calculator returns kg/m³, g/mL, and lb/ft³ in one step, so you do not need a separate conversion after the density calculation.
  • Handles salt and fresh water: The salinity input covers everything from distilled water to Dead Sea brine without switching to a different tool.
  • Pressure correction for depth: The pressure input accounts for water compressibility at depth, which matters for oceanography and diving calculations.
  • Based on IAPWS reference data: The polynomial coefficients come from the International Association for the Properties of Water and Steam, not a simplified approximation.
  • Works across the full liquid range: The calculator is valid from 0°C to 100°C at 1 atm, covering the entire range where water is liquid under standard conditions.

The water density calculator is most useful when you need a quick, defensible density value for a specific set of conditions.

For shape-based density work, the cube density calculator computes density from mass and side length for a solid cube.

Factors That Affect Your Results

Three inputs drive the result, and two limitations tell you when the polynomial model starts to drift from real measurements.

Temperature

Temperature has the largest effect. Going from 4°C to 100°C drops pure water density by about 4.2%, from 999.97 to 958.37 kg/m³.

Salinity

Each ppt of dissolved salt adds roughly 0.8 kg/m³ at low temperatures and slightly less at high temperatures. Typical seawater at 35 ppt is about 2.7% denser than fresh water.

Pressure

Each atmosphere above 1 adds about 0.4 kg/m³. The effect is small at the surface but becomes measurable at ocean depths below 100 m.

Dissolved Gases

Dissolved air adds a small amount of mass. The calculator does not model dissolved gases because their contribution is below 0.01 kg/m³ under normal conditions.

  • The polynomial model is valid for 0-100°C at moderate pressures. Above 100°C or below 0°C, water is not liquid at 1 atm and the formula does not apply.
  • The salinity correction is a simplified form of the full Millero equation. For precise oceanographic work below about 0.01 kg/m³ accuracy, use the full UNESCO equation of state.

According to Millero, Chen, Bradshaw, and Schleicher in Deep-Sea Research Part A (April 1980), the full equation of state for seawater density requires a high-order polynomial in temperature, salinity, and pressure. The simplified form used here is accurate to about 0.1 kg/m³ for typical ocean conditions.

According to Millero et al. 1980, the density of seawater is a function of temperature, salinity, and pressure described by a high-order polynomial equation of state.

According to the NIST Chemistry WebBook, pure water reaches its maximum density of approximately 999.97 kg/m³ at about 4°C under standard atmospheric pressure.

For pressure calculations that depend on water density, the hydrostatic pressure calculator takes the density value and converts it to pressure at a given depth.

water density calculator showing temperature, salinity, and pressure inputs with density results in kg/m3, g/mL, and lb/ft3
water density calculator showing temperature, salinity, and pressure inputs with density results in kg/m3, g/mL, and lb/ft3

Frequently Asked Questions

Q: What is the density of pure water at 4 degrees C?

A: Pure water reaches its maximum density of approximately 999.97 kg/m³ (0.99997 g/mL or 62.43 lb/ft³) at 4°C under standard atmospheric pressure. This is the temperature at which water is most compact before hydrogen bonding causes expansion toward freezing.

Q: How does temperature affect the density of water?

A: Water density decreases as temperature rises above 4°C due to thermal expansion. Between 4°C and 100°C, density drops from about 999.97 to 958.37 kg/m³, a decrease of roughly 4.2%. Below 4°C, density also decreases as water approaches the freezing point.

Q: Why does ice float on liquid water?

A: Ice floats because it is less dense than liquid water. Water expands about 9% when it freezes, dropping from roughly 999.97 kg/m³ at 4°C to about 917 kg/m³ for ice. This density anomaly comes from the hydrogen-bond network forming an open hexagonal crystal structure.

Q: What is the density of seawater compared to fresh water?

A: Typical seawater at 20°C and 35 ppt salinity has a density of about 1024.85 kg/m³, which is roughly 2.7% denser than fresh water at the same temperature (998.21 kg/m³). The dissolved salts add mass without significantly changing volume.

Q: Does pressure change the density of water?

A: Yes, but the effect is small. Each additional atmosphere of pressure increases water density by about 0.4 kg/m³. At 100 atm (roughly 1000 m ocean depth), density increases by about 0.4%. Water is nearly incompressible compared to gases.

Q: What units are used to measure water density?

A: Water density is commonly reported in kg/m³ (SI), g/mL or g/cm³ (chemistry), and lb/ft³ (US engineering). These units are related: 1000 kg/m³ equals 1.000 g/mL equals 62.43 lb/ft³. The calculator returns all three simultaneously.