Guide · Science

How to Calculate Density From Mass and Volume

Updated 2026-08-10 · 4 min read

Density is mass per unit volume:

ρ = m / V

A small cube and a large brick of the same metal have the same ρ if they are the same material at the same temperature. That is the point of the number: it is intensive. Mass and volume are not.

The density calculator divides the mass you type by the volume you type. No account. If those two numbers are in mismatched units, the quotient is still “a number,” just not a density anyone else can use.

g/cm³ and kg/m³ are the same information

Lab balances read grams. Graduated cylinders read milliliters. For liquids and irregular solids, 1 mL = 1 cm³, so

ρ in g/cm³ = (grams) / (cm³)

SI density is kg/m³. The conversion is exact in the sense of the metric prefixes:

1 g/cm³ = 1000 kg/m³

Water at about 1.00 g/cm³ is 1.00 × 10³ kg/m³. Aluminum near 2.70 g/cm³ is 2.70 × 10³ kg/m³. If you convert mass to kg (divide by 1000) and volume to m³ (divide cm³ by 10⁶), you must do both. Converting only mass leaves you off by a million.

The density converter exists so you do not redo the experiment to change the unit on a correct ρ.

What volume means in a real measurement

Regular solid. V = length × width × height, all in the same length unit. A 2.0 cm cube is 8.0 cm³, not 8.0 m³. Caliper error cubes when you multiply three lengths.

Liquid in a flask. Volume is the meniscus reading of the liquid, not the flask’s labeled capacity, unless you filled it to that mark on purpose (volumetric flask).

Irregular solid. Displacement: note the water level, submerge the object, subtract. The object must be fully under and not sitting on a trapped air pocket. Porous samples soak; the “volume” then depends on whether you wanted bulk volume or grain volume.

Powder. Tapping changes the bulk density. Homework that gives “25.0 g occupies 20.0 cm³” is using the volume they stated, not a philosophical debate about voids.

Mass is the balance reading after you subtract the empty container. Weight in newtons is not m.

A metal slug: 47.2 g in 6.40 cm³

A dry slug has mass 47.2 g. In a 50 mL cylinder, water goes from 32.10 mL to 38.50 mL.

V = 38.50 − 32.10 = 6.40 mL = 6.40 cm³
ρ = 47.2 g / 6.40 cm³ = 7.375 g/cm³

With three significant figures on 6.40 and three on 47.2, report 7.38 g/cm³, or 7.38 × 10³ kg/m³.

That is in the steel / iron neighborhood. If you had used 38.50 mL as V, ρ = 1.23 g/cm³, which is a plastic, not a slug. The subtraction is the experiment.

A second check: 7.38 g/cm³ means 7.38 g per milliliter. 6.40 mL should weigh about 47.2 g. 7.38 × 6.40 = 47.2. If that product is not your mass, you divided upside down (V/m).

Temperature, mixtures, and when ρ = m/V misleads

Thermal expansion. Density tables specify a temperature. A brass mass at 80 °C is slightly larger than at 20 °C; ρ is slightly smaller. For a 1% lab, you will not see it. For a metrology problem, you will.

Solutions. “Density of 0.500 M NaCl” is the mass of the solution over the volume of the solution. It is not the molarity, and it is not 0.500 g/mL. Do not paste M into the density calculator.

Gases. ρ = m/V still holds, but V depends strongly on P and T. Ideal-gas students often want ρ = PM/RT (M = molar mass). That is the same definition plus PV = nRT. The density page will not invent P and T.

Buoyancy problems. Apparent mass in water is not m. Use the true mass in air (or vacuum-corrected, if you have that balance) for ρ.

Unit traps that look like bad data

Mixing g with m³: 47.2 / 6.40×10⁻⁶ gives millions. Mixing kg with cm³: 0.0472 / 6.40 is 0.0074, which people then compare to 7.38 and panic.

Using mL for a gas collected over water without correcting to the gas volume you think you have (water vapor, tube volume). That is a chemistry setup error, not a new formula.

Reporting ρ with more digits than the weakest measurement. A ruler to 0.1 cm on a 2 cm edge already limits V.

Divide, then convert if you must

The density calculator is ρ = m/V. Get m and V in a paired unit system first. Then, if the table or the report wants another label, use the density converter. For the broader unit cluster (area, volume, density), see how to convert area, volume, and density units. If you are still mixing mass with weight, fix that before you divide.

Frequently asked questions

What is the density formula?

ρ = m / V. Mass divided by volume. In SI, kilograms per cubic meter. In the lab, grams per cubic centimeter is common: 1 g/cm³ = 1000 kg/m³. Water is about 1.00 g/cm³ at 4 °C.

Do I use the volume of the flask or the volume of the sample?

The volume of the sample. For an irregular solid, that is usually the displaced water (overflow or difference in a graduated cylinder). Using the cylinder’s capacity instead of the displacement is the classic lab error.

How do I convert 7.38 g/cm³ to kg/m³?

Multiply by 1000: 7.38 × 10³ kg/m³. You can also convert m and V to kg and m³ first; both routes must agree. The density converter is for this step after ρ is correct.

Why did my metal come out less dense than water?

Either a bubble clung to the sample (V too large), mass was wet and you called it dry, or you mixed mL with cm³ incorrectly on a powder. For a known metal, compare to a table; a 20% miss is almost always volume, not the calculator.

Does temperature matter?

Yes. Most materials expand when heated, so ρ drops. Water is slightly non-monotonic near 4 °C. Homework that says ‘density of water = 1.00 g/cm³’ is using a rounded value, not a precision measurement at your lab’s temperature.

Does the density calculator need an account?

No. It runs in the browser. Enter mass and volume; it computes ρ = m/V locally.

More reading that links back to the same tools and workflows.