Calculate density shifts from temperature changes in seconds. Pick units, enter constants, see clear outputs. Download CSV or PDF summaries for your work files.
For liquids and solids, this calculator uses a linear thermal expansion model. When volume increases with temperature, density decreases because the same mass occupies more volume.
For gases, density is computed using the real-gas form of the ideal gas law: rho=(P*M)/(Z*R*T), where Z adjusts for non-ideal behavior.
| Mode | Key Inputs | Assumptions | Output (approx.) |
|---|---|---|---|
| Liquid/Solid | rho0=7850 kg/m³, T0=20°C, T=200°C | alpha=12×10⁻⁶ 1/degC ⇒ beta=36×10⁻⁶ | rho(T) ≈ 7,800.7 kg/m³ |
| Liquid/Solid | rho0=1000 kg/m³, T0=20°C, T=60°C | beta=0.00050 1/degC | rho(T) ≈ 980.4 kg/m³ |
| Ideal Gas | P=101.325 kPa, M=28.97 g/mol, T=25°C | Z=1 (air-like mixture) | rho ≈ 1.184 kg/m³ |
| Ideal Gas | P=200 kPa, M=44.01 g/mol, T=40°C | Z=1 (CO2 approximation) | rho ≈ 3.38 kg/m³ |
| Ideal Gas | P=10 bar, M=2.016 g/mol, T=300 K | Z=1 (hydrogen approximation) | rho ≈ 0.81 kg/m³ |
Density is mass divided by volume. When most materials warm up, their volume expands while mass stays nearly constant, so density drops. Cooling usually increases density because the same mass packs into a smaller volume.
The calculator uses a linear thermal expansion approximation: rho(T)=rho0/(1+beta(T-T0)). It is a good first-pass method when the temperature range is moderate and the expansion coefficient is known.
Datasheets often publish a linear expansion coefficient alpha for isotropic solids. Volume change is roughly three times linear change, so the tool converts using beta=3alpha. If you already have volumetric beta, select it directly.
Coefficients vary widely. Many metals have alpha around 10–25×10−6 1/degC, so beta is about 30–75×10−6 1/degC. Aluminum alloys often sit near the higher end, while stainless steels are commonly lower. Some liquids can have beta near 0.0002–0.0010 1/degC, which produces larger density shifts. As a quick sense check, a liquid with beta=0.0005 warmed by 40 degC changes density by roughly 2%.
For gases, density strongly depends on absolute temperature. The calculator uses rho=(P*M)/(Z*R*T), where T is in Kelvin and R=8.314462618 J/(mol*K). At constant pressure, heating increases T and lowers density almost proportionally. For example, raising a gas from 300 K to 330 K at the same pressure reduces density by about 9.1%.
The compressibility factor Z adjusts for non-ideal behavior. For many everyday conditions, Z is close to 1 (often within a few percent). At high pressure, Z can be greater than 1, and near saturation it can drop below 1, both of which change density. If your process data provides Z (or you can read it from a chart), entering it improves the estimate without changing units or the workflow.
Example A (solid): rho0=7850 kg/m³ at 20°C, alpha=12×10−6 1/degC, T=200°C gives beta=36×10−6 and rho(T) ≈ 7800.7 kg/m³ (about −0.63%). Example B (liquid): rho0=1000 kg/m³ at 20°C, beta=0.00050, T=60°C gives rho(T) ≈ 980.4 kg/m³ (about −1.96%). Example C (gas): 101.325 kPa, 25°C, M=28.97 g/mol, Z=1 gives rho ≈ 1.184 kg/m³. The calculator uses SI internally and converts for display. Temperatures are checked above absolute zero. After you calculate, export CSV or PDF for records and reporting.
No. It is a linear approximation that works best for moderate temperature changes and fairly constant expansion coefficients. For wider ranges, use material property tables or polynomial density models.
Many solids list linear expansion alpha. If the material expands similarly in all directions, volumetric expansion is about three times alpha. The tool uses beta=3alpha to estimate volume change.
If expansion differs by direction, beta=3alpha may be inaccurate. Use a volumetric coefficient from a reliable source, or compute beta from directional coefficients if you have them.
Gas density depends on absolute temperature. Kelvin starts at absolute zero, so it correctly represents molecular energy scaling. Using Celsius or Fahrenheit directly would produce wrong results.
Set Z when pressure is high, temperature is near a phase boundary, or you have a known real-gas compressibility value. Z values come from gas property charts, equations of state, or process data.
Some materials show unusual behavior over limited ranges, but most solids and liquids decrease in density as temperature rises. Water is a common exception near 0–4°C.
After you calculate, the result is saved for the session. Download CSV for spreadsheets or PDF for quick sharing. If you refresh without calculating, exports may show a “no saved result” message.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.