Convert density, mass, and volume quickly Keep values when units change Reuse by formula, URL, TSV, or CSV

Density Calculator: Mass and Volume

Convert mass and volume using density, with optional coefficient-based temperature correction. Use one page for practical units such as kg/L, g/mL, and lb/gal(US).

A clear primary input

The large toggle separates mass-to-volume from volume-to-mass, so the user can see immediately which value is being solved for.

Formulas stay visible

The page shows both the formula and the substituted expression, making it easier to review, explain, or teach the calculation.

Batch work is built in

Paste TSV or CSV data to convert multiple rows at once, then copy the result as TSV or download it as CSV.

Calculator card

Conversion mode
Choose which value you want to solve for first.
Density units are ordered by common practical use.
Advanced settings
Temperature correction (optional)
This is a coefficient-based approximation, not a precise physical property model.
The coefficient depends on the material. Refer to property data when accuracy matters.

About temperature correction

The calculator treats the entered density as the density at the reference temperature Tref, then applies a simple correction with the volumetric expansion coefficient α. This shape generally matches the way many liquids become less dense as temperature rises.

This correction is only an approximation for relatively small temperature ranges. Materials with strong nonlinearity, such as water, or wide temperature ranges can produce noticeable error. For precise work, use manufacturer data or a physical property handbook.

ρ(T) = ρref / (1 + α × (T − Tref))

How to use

  1. Choose either mass-to-volume or volume-to-mass, then enter the primary value and density.
  2. Switch units as needed. Changing units does not erase the values you already entered.
  3. Open temperature correction only if you need it, then enter T, Tref, and α.
  4. Review the result, formula, and substituted expression, then use copy value, copy formula, or share URL.

Notes

  • If you need high-precision conversion for trade, regulation, quality assurance, or hazardous materials work, use official physical property data.
  • Temperature correction is coefficient-based and approximate. The error depends on material and temperature range.
  • The tool does not estimate density from the material name alone. Check specifications, SDS sheets, or manufacturer data.

FAQ

Density changes with temperature. How is that handled?

This tool uses a coefficient-based approximation, not a detailed physical property model. Refer to manufacturer data or handbooks when you need higher accuracy.

Which units are available?

Density supports kg/L, g/mL, kg/m3, g/cm3, lb/gal(US), and lb/ft3. For mass, choose kg, g, or lb. For volume, choose L, mL, m3, or gal(US).

Can I calculate many rows at once?

Yes. In the batch tab, paste TSV or CSV data for bulk conversion. You can export the result by copying TSV or downloading CSV.

What if I do not know the density?

The tool does not guess density from a material name. Because the risk of error can be high, use specifications, SDS sheets, or published manufacturer values.