Density tells you how much mass is packed into each cubic meter of a material. Enter a measured mass and the volume it occupies, and the calculator returns kilograms per cubic meter, the SI unit used in engineering tables. It is handy for identifying a sample, checking whether something will float, or estimating the weight of a known volume.
How to use the Density calculator
- Weigh the object and enter the result in Mass, in kilograms. 350 g is 0.35 kg.
- Find the volume in cubic meters and enter it in Volume. One liter is 0.001 m³, and 1 cm³ is 0.000001 m³.
- Read the result in kg/m³. Divide by 1,000 if you want g/cm³ or g/mL.
How the density calculation works
Getting the volume right
Most mistakes come from the volume field. For a box shape, multiply length × width × height in meters, not centimeters: a block 10 cm × 5 cm × 2 cm is 0.1 × 0.05 × 0.02 = 0.0001 m³. Entering 100 (the volume in cm³) would make the density a million times too small.
For an irregular solid, use water displacement. Lower it into a measuring jug, note how many milliliters the level rises, and convert: a 37 mL rise is 0.000037 m³. The Volume Converter handles liters, gallons and cubic feet if your measurement is in another unit.
The calculator requires Volume to be greater than zero and Mass to be zero or more. It does not correct for temperature, trapped air or porosity, so a sponge or a loaf of bread gives its bulk density, not the density of the solid material.
Reading the result
Compare your answer with water. USGS lists water at about 1.00 g/cm³ near 4 °C and 0.998 g/cm³ at 21 °C, which is roughly 998 kg/m³ at room temperature. A solid object denser than the liquid around it sinks; one less dense floats.
Because 1 g/cm³ equals exactly 1,000 kg/m³, moving between the two units is a shift of three decimal places. A result of 2,700 kg/m³ is 2.7 g/cm³.
Worked examples
Mass: 4.99 kg · Volume: 0.005 m³
- The water alone weighs 4.99 kg (container weight subtracted).
- 5 L = 5 × 0.001 = 0.005 m³
- Density = 4.99 ÷ 0.005 = 998 kg/m³
Result: 998 kg/m³
Mass: 0.27 kg · Volume: 0.0001 m³
- Block is 10 cm × 5 cm × 2 cm = 0.1 m × 0.05 m × 0.02 m
- Volume = 0.0001 m³
- Mass is 270 g = 0.27 kg
- Density = 0.27 ÷ 0.0001 = 2,700 kg/m³ (2.7 g/cm³)
Result: 2,700 kg/m³
Assumptions and limits
SI units; idealized classical equation. Not a safety assessment or certified engineering design.
Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.
Frequently asked questions
What is the density of water in kg/m³?
Close to 1,000 kg/m³. USGS gives about 0.99984 g/mL at 4 °C, where water is densest, and about 0.998 g/cm³ at 21 °C. Warm water is slightly less dense, which is why hot water sits on top of cold water in a tank.
How do I convert g/cm³ to kg/m³?
Multiply by 1,000. The factor is exact, so 0.92 g/cm³ is 920 kg/m³ and 7.8 g/cm³ is 7,800 kg/m³. Going the other way, divide kg/m³ by 1,000.
How do I find the density of an irregular object?
Weigh it, then submerge it in a graduated container and record the rise in water level. Each milliliter of rise is 0.000001 m³. Divide the mass in kg by that volume in m³ to get kg/m³.
Can I use density to find mass or volume instead?
Yes, by rearranging: mass = density × volume, and volume = mass ÷ density. This page solves only for density, so do the rearranged step with the Basic Calculator, or adjust one input until the result matches a known density.
Is specific gravity the same as density?
No. Specific gravity is density divided by the density of water, so it has no unit. A material at 2,700 kg/m³ has a specific gravity of about 2.7 when water is taken as 1,000 kg/m³.