About Density Calculator
Density compares mass with volume: ρ = m ÷ V. It is the reason a kilogram of feathers and a kilogram of lead look so different in size, and it is one of the most common laboratory calculations. The same equation rearranges to give mass from density and volume, or volume from mass and density, depending on what you already know.
Choose which quantity to solve for, enter the other two, and pick the units — kg/m³, g/cm³ or g/mL for density, kilograms or grams for mass, and cubic meters, liters or cubic centimeters for volume. Values are converted to SI before calculating and converted back for display, with the substituted formula shown.
What this tool does
Solve in three directions
Calculate density from mass and volume, mass from density and volume, or volume from mass and density.
Metric unit choices
kg/m³, g/cm³ and g/mL for density; kilograms or grams for mass; cubic meters, liters or cubic centimeters for volume.
SI conversion first
Every input is converted to kilograms, cubic meters or kilograms per cubic meter before the formula, so mixed units give the right answer.
Converted values shown
The result lists the same density, mass or volume in the other supported units for a quick cross-check.
Formula and substitution
ρ = m ÷ V and its rearrangements are printed with the converted values, so the arithmetic can be followed.
Zero checks
A zero volume or zero density is explained inline instead of producing an undefined result.
How to use Density Calculator
- 01
Choose what to calculate
Select density, mass or volume depending on which value is missing from your problem.
- 02
Enter the two known values
Type the numbers and pick the matching units; commas and decimals are accepted.
- 03
Pick the display units
Choose the density, mass or volume unit you want for the answer; the calculation itself always runs in SI units.
- 04
Read the result and conversions
The headline is in your chosen unit, and the cards show the same quantity in the other supported units.
- 05
Copy or reset
Copy the solved value, or press Reset to clear the fields for another sample.
How this tool works
- Works with
- Mass / volume → Density
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Density changes with temperature and pressure; the entered density is treated as an exact value.
- Assumes a uniform material, so porous, granular or layered objects may not have one true overall density.
- Only metric units are supported (kg/m³, g/cm³, g/mL, kg, g, m³, L, cm³); imperial volume units are not included.
Privacy and file handling
Mass, volume and density values are processed entirely in your browser. Nothing is uploaded, stored or logged, and the calculator makes no network request while you use it.
Read the full privacy policy