Density Calculator Based on Temperature

Calculate density shifts from temperature changes in seconds. Pick units, enter constants, see clear outputs. Download CSV or PDF summaries for your work files.

Calculator

Switch modes to see relevant fields below.
Result will also show in kg/m³.
Quick Notes
Use accurate coefficients for best results.
Advanced
  • Liquid/solid uses volumetric expansion beta.
  • Linear alpha can be converted: beta = 3 alpha.
  • Gas mode supports compressibility factor Z.
Liquid/Solid Inputs
Formula uses a linear expansion approximation.
If you pick alpha, the calculator uses beta = 3 alpha.
Gas Inputs
Use absolute temperature; Z=1 is ideal behavior.
Set Z not equal to 1 for real-gas correction.
Reset
Tip: If you only need liquid/solid, keep gas fields blank. If you only need gas, select “Ideal Gas” and focus on the gas section.

Formula Used

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.

  • rho(T)=rho0 / (1+beta(T-T0)), where beta is volumetric expansion (1/degC).
  • If you only have linear expansion alpha for an isotropic solid, the calculator assumes beta=3alpha.

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.

How to Use This Calculator

  1. Select a calculation mode: liquid/solid or gas.
  2. Choose the density unit you want for the output.
  3. Enter known values and units for your mode.
  4. Provide a realistic coefficient or Z factor.
  5. Click Calculate to show results above the form.
  6. Use Download CSV or Download PDF for records.

Example Data Table

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³
Examples are for demonstration; real materials may need more detailed property data.

Density and Temperature: Practical Guide

1) Why density changes with temperature

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.

2) Liquid and solid model used here

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.

3) Linear alpha vs volumetric beta

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.

4) Typical coefficient ranges

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%.

5) Gas mode and temperature dependence

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%.

6) Real-gas correction with Z

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.

7) Worked mini examples

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.

FAQs

1) Is the liquid/solid formula exact?

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.

2) Why does the calculator convert alpha to beta?

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.

3) What if my material is anisotropic?

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.

4) Why does gas mode require Kelvin?

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.

5) When should I change Z from 1?

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.

6) Can density ever increase with temperature?

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.

7) How do CSV and PDF exports work?

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.

Built for quick checks, education, and documentation workflows.

Related Calculators

angle of repose online calculator3 angle calculator5 sided shape angle calculatorvickers to rockwell hardness conversion calculatorhardness test conversion calculatorvickers hardness conversion calculatortorsion angle of twist calculatorshaft angle of twist calculatorangle of convergence calculatorangle of descent calculator golf

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.