Density Calculator

This calculator solves the density equation, rho = m / V, for any one of the three variables when you know the other two. Density is a measure of how much mass is packed into a given volume, and it is one of the most fundamental physical properties used to identify materials, design structures, and understand buoyancy. You choose what you want to find, enter the two known values, and the calculator returns the result with unit conversions. When solving for density, you enter mass in grams and volume in cubic centimetres, and the result is returned in g/cm cubed and kg/m cubed. When solving for mass, you enter density in g/cm cubed and volume in cm cubed. When solving for volume, you enter density in g/cm cubed and mass in grams. The calculator also shows density in kg per litre, which is numerically the same as g/cm cubed and convenient for liquids. A relative density (specific gravity) figure is shown relative to water at 1.0 g/cm cubed, indicating whether the object would sink or float. This tool is useful for chemistry students, materials engineers, geologists identifying rock or mineral samples, and anyone needing to convert between mass, volume, and density. Note that density varies with temperature and pressure; the results here are for a uniform material at constant conditions.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Advertise on this page
g
cm³
2.50 g/cm³
density
kg/m³2500
kg/L2.50
Specific gravity2.50
Floats in water?No (sinks)

How it works

The three rearrangements of the density equation are: ρ = m / V (density), m = ρ × V (mass), and V = m / ρ (volume). The default inputs are in grams and cubic centimetres, giving density in g/cm³. To convert to kg/m³, multiply g/cm³ by 1,000. kg/L is numerically identical to g/cm³. Specific gravity is density relative to water (1.0 g/cm³); values below 1.0 float in fresh water.

Worked example

A sample has a mass of 500 g and a volume of 200 cm³. Density = 500 / 200 = 2.50 g/cm³ = 2,500 kg/m³. Specific gravity is 2.50, so the material is 2.5 times denser than water and will sink. This is close to the density of aluminium (2.70 g/cm³). These match the defaults above.

Related calculators