Density Calculator
Compute density in kg/m³ and g/cm³ from a mass and a volume with unit selection.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
1000 g in 1 l has a density of 1000 kg/m³ (1 g/cm³).
How it works
- Converted the mass to kilograms and the volume to cubic metres using exact SI factors.
- Divided the mass by the volume to get the density.
- Converted kg/m³ to g/cm³ by dividing by 1000 (1 g/cm³ = 1000 kg/m³).
ρ = m / V = 1000 g / 1 l = 1000 kg/m³- Density is an intensive property of the material at the measured conditions.
Methodology
- Convert the mass to kilograms using the exact factor for its unit (kg 1, g 0.001, mg 0.000001, lb 0.45359237).
- Convert the volume to cubic metres (m³ 1, L 0.001, cm³ 0.000001, mL 0.000001).
- Divide the mass in kg by the volume in m³ to obtain the density in kg/m³, then divide by 1000 for g/cm³.
- Round the result to 12 significant digits.
Usage
- Enter the mass and choose its unit.
- Enter the volume and choose its unit.
- Read the density in kg/m³ and g/cm³ and the division that produced it.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Water at 4 °C
{
"mass": 1000,
"massUnit": "g",
"volume": 1,
"volumeUnit": "l"
}Aluminium block
{
"mass": 2700,
"massUnit": "kg",
"volume": 1,
"volumeUnit": "m3"
}Small sample
{
"mass": 7.8,
"massUnit": "g",
"volume": 1,
"volumeUnit": "cm3"
}Limitations
Exact unit factors
Mass and volume factors are the exact SI/definition values: 1 g = 0.001 kg, 1 mL = 1 cm³ = 0.000001 m³ and 1 L = 0.001 m³. The international pound is exactly 0.45359237 kg. Because the factors are exact, the only approximation is the final rounding.
Frequently asked questions
- Is a density of 1000 kg/m³ the same as 1 g/cm³?
- Yes. 1 g/cm³ equals 1000 kg/m³ exactly, because 1 g = 0.001 kg and 1 cm³ = 0.000001 m³.
- How many pounds make a kilogram?
- One kilogram is exactly 0.45359237 lb inverse, i.e. 1 lb = 0.45359237 kg by the international avoirdupois definition.
Sources
- The International System of Units (SI Brochure), 9th edition — BIPM (accessed 2026-10-11)
- NIST Special Publication 811: Guide for the Use of the International System of Units (SI) — NIST (accessed 2026-10-11)
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.