ThisCalculator

Physics

Density Calculator at Different Temperatures

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Density Calculator at Different Temperatures

This calculator works out the density of a liquid or solid at a different temperature from a reference density, using the coefficient of thermal expansion. You enter the reference density, the temperature change, and the material’s expansion coefficient, and you get the corrected density at the new temperature.

Formula

The calculator uses the standard volumetric thermal expansion formula:

�(T) = �₀ / (1 + α · ΔT)

Where:

  • Ï�(T) = density at the new temperature (kg/m³)
  • Ï�â‚€ = reference density at the reference temperature (kg/m³)
  • α = volumetric coefficient of thermal expansion (1/°C)
  • ΔT = temperature change (new temperature − reference temperature, in °C)

This formula assumes the mass stays constant and the volume changes linearly with temperature, which is a good approximation for most solids and liquids over modest temperature ranges. For gases, you would use the ideal gas law instead, because gases are compressible and their density depends strongly on pressure as well as temperature.

Worked Example

Using the default values: reference density �₀ = 1000 kg/m³ (water at 4°C), expansion coefficient α = 0.0002 1/°C, and temperature change ΔT = 10°C.

  1. Calculate the denominator: 1 + α·ΔT = 1 + (0.0002 × 10) = 1 + 0.002 = 1.002
  2. Divide the reference density by this: 1000 / 1.002 = 998.003992… kg/m³
  3. Rounded to two decimal places: 998.00 kg/m³

So water at 14°C has a density of about 998.00 kg/m³, which matches the known value closely (actual ≈ 999.1 kg/m³; the small difference is because water’s expansion coefficient is not perfectly constant). The density change shown is 1000 − 998.00 = 2.00 kg/m³.

Why Temperature Changes Density

Density is mass per unit volume. When you heat a material, its atoms or molecules vibrate more and take up more space, so the volume increases while the mass stays the same. That means density decreases. Cooling does the opposite: volume shrinks, density increases. This is why hot air rises, why warm water sits on top of colder water in a lake, and why you need to account for temperature when measuring fuel, oils, or chemical solutions.

Most materials expand when heated, but water is an exception between 0°C and 4°C: it contracts on warming from 0°C to 4°C, reaching its maximum density at about 4°C. That is why ice floats and why lakes freeze from the surface down. The simple linear formula does not capture this anomaly; for water near freezing you would need a more complex equation or a density table.

How to Choose the Expansion Coefficient

The coefficient α (alpha) is a material property. It is usually given in units of 1/°C (or 1/K, which is numerically the same for temperature differences). You can find it in engineering handbooks, material datasheets, or online databases. Here are typical values for common materials at room temperature:

  • Water (20°C): about 0.000207 1/°C
  • Ethanol: about 0.00109 1/°C
  • Glycerin: about 0.00050 1/°C
  • Aluminum (solid): about 0.000069 1/°C
  • Steel: about 0.000036 1/°C
  • Mercury: about 0.00018 1/°C

Note that the coefficient itself changes with temperature, so for large temperature swings (e.g., 100°C or more) you should use an average value over the range. The formula works best when ΔT is small (a few tens of degrees).

Common Mistakes and Limitations

  • Using the wrong sign for ΔT: If you heat the material, ΔT is positive, and density decreases. If you cool it, ΔT is negative, and density increases. Make sure you enter the change as (new temperature − reference temperature).
  • Confusing linear and volumetric expansion: The coefficient in this formula is the volumetric expansion coefficient. Some tables give the linear coefficient (for solids), which is about one-third of the volumetric value. If you only have the linear coefficient, multiply it by 3 to get the volumetric coefficient.
  • Assuming the formula works for gases: Gases expand much more with temperature and are compressible. Use the ideal gas law: Ï� = P·M / (R·T), where P is pressure, M is molar mass, R is the gas constant, and T is absolute temperature. The expansion coefficient approach is not accurate for gases unless pressure is held constant and the temperature range is small.
  • Ignoring pressure for liquids: For most liquids, pressure has a negligible effect on density over normal ranges, so this calculator ignores it. For deep-sea or high-pressure applications, you would need a compressibility correction.
  • Rounding too early: Keep extra digits during intermediate steps, then round at the end. In the example, if you round 1.002 to 1.00, you get 1000 kg/m³, which is wrong.

When to Use This Calculator

Use this calculator when you have a known density at one temperature and need to estimate it at another temperature. Common situations include:

  • Calculating fuel density for cargo or storage (fuels are often measured at 15°C, but ambient temperature may differ).
  • Adjusting density of a chemical solution for a lab experiment.
  • Estimating buoyancy changes in hot or cold water.
  • Designing pipes and tanks where thermal expansion affects the volume of liquid.

For precise work, especially with water or other substances with unusual behavior, consult a density table or a more sophisticated equation of state. This calculator gives a good engineering approximation, not a certified value.

How to Read the Result

The first output is the density at the new temperature. The second output is the absolute change in density (reference density minus new density). A positive change means the material became less dense (it expanded). A negative change would mean it became more dense (it contracted).

Remember that density is usually expressed in kg/m³ in scientific contexts, but you may also see g/cm³ (1 g/cm³ = 1000 kg/m³) or lb/ft³ (1 kg/m³ ≈ 0.0624 lb/ft³). If your reference density is in g/cm³, multiply by 1000 to get kg/m³ before entering it.

Frequently Asked Questions

Why does water have a maximum density at 4°C?

Water is unusual because its hydrogen bonding creates an open structure in ice. As ice melts, some of that structure collapses, making the liquid denser. Between 0°C and 4°C, warming breaks down more of the ice-like clusters, so density increases. Above 4°C, normal thermal expansion takes over and density decreases. That is why the formula gives a slight error for water near freezing.

Can I use this for gases?

No, not reliably. Gases are compressible, and their density depends on both temperature and pressure. For an ideal gas, density is � = P·M/(R·T), where P is absolute pressure, M is molar mass, R is the gas constant (8.314 J/(mol·K)), and T is absolute temperature in kelvin. The expansion coefficient formula ignores pressure changes.

What if I only have the linear expansion coefficient?

For isotropic solids, the volumetric expansion coefficient is approximately three times the linear coefficient. So if you see α_linear = 0.000023 1/°C for steel, use α_volumetric = 0.000069 1/°C in this calculator. For liquids, the coefficient given is usually already volumetric.

How accurate is this formula?

For most liquids and solids over a temperature range of a few tens of degrees, the error is typically less than 1%. Over larger ranges, the coefficient α changes with temperature, so the linear approximation breaks down. For water between 0°C and 4°C, the error is significant because the behavior is non-linear.

What units should I use for the expansion coefficient?

The coefficient must be in 1/°C. Since a change of 1°C equals a change of 1 K, you can also use 1/K. If you have a coefficient in 1/°F, convert it by dividing by 1.8 (because a 1°C change equals a 1.8°F change).

Related

Formula used
in rho0 | Reference density | kg/m³ | 1000 | 0
in alpha | Expansion coefficient | 1/°C | 0.0002 | 0
in dT | Temperature change | °C | 10 | 0
out rho | Density at new temp | kg/m³ | rho0 / (1 + alpha * dT) | 2
out change | Density change | kg/m³ | rho0 - rho0 / (1 + alpha * dT) | 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.