Density / Mass / Volume Calculator
ρ = m/V — pick the unknown, enter the rest, get the answer in your units.
1 mL = 1 cm³ exactly, and 1 g/cm³ = 1000 kg/m³. The result also names the familiar material your density is closest to.
How to use the density calculator
- Choose what to solve for — density, mass, or volume. That field greys out and becomes the answer.
- Enter the two known values and set each unit picker.
- Press Calculate. The answer appears with the substituted equation shown.
- Read the comparison — the closest familiar material makes the number tangible.
Frequently asked questions
What is density?
Density is how much mass is packed into a given volume: ρ = mass ÷ volume. A 100 g object taking up 50 cm³ has a density of 2 g/cm³ — twice as dense as water.
How do you calculate density, mass, or volume?
All three come from ρ = m / V. Density is m ÷ V, mass is ρ × V, and volume is m ÷ ρ. This calculator solves whichever one you pick from the other two.
What is the difference between density and weight?
Density is a property of the material (mass per volume) and doesn't change with amount or location. Weight is a force — mass times gravity — so the same object weighs less on the Moon while its density stays the same.
Is 1 mL the same as 1 cm³?
Yes, exactly. 1 milliliter is defined as 1 cubic centimeter, so 1 g/mL and 1 g/cm³ are the same density. This calculator treats them as identical.
Why do some things float and others sink?
An object floats when it is less dense than the fluid around it: it sinks only until the weight of the displaced fluid equals its own weight (Archimedes' principle). Ice floats because at 0.92 g/cm³ it is less dense than liquid water at 1 g/cm³.
What are the common units for density?
Lab work usually uses g/cm³ (or g/mL), while the SI unit is kg/m³ — water is 1 g/cm³ = 1000 kg/m³. This calculator converts between g/cm³, g/mL, kg/L, and kg/m³ automatically.
More from the codex
Density / Mass / Volume Calculator
ρ = m/V — solve for any variable.
Chemical Equation Balancer
Balance any reaction with exact integer coefficients.
Open tool → LiveMolecular Weight Calculator
Molar mass with a per-element breakdown.
Open tool → LiveMolarity / Dilution Calculator
M = n/V and M₁V₁ = M₂V₂, solved any way.
Open tool → LivePeriodic Table
All 118 elements, one click away.
Open tool → LiveProjectile Motion Calculator
Range, height, and flight time for any launch.
Open tool → LiveHalf-Life Calculator
Decay math plus a decay chart.
Open tool → LivePercent Error Calculator
Percent error vs. the true value, plus percent difference.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you some time, consider supporting the indie dev behind it.