free tool, no sign-up

Density Calculator

Solve for density, mass, or volume, and switch to speed, distance, and time, with each formula shown using your numbers.

Enter any two. The blank one is solved from density = mass / volume. Unit labels are not converted.

Amount of matter. Leave blank to solve mass.

Space the sample takes up. Zero cannot be the denominator.

Shown as g/cm³. Leave blank to solve density.

Formula

density = mass / volume

mass = density × volume

volume = mass / density

Enter two of mass, volume, and density. The blank one is solved, and the formula is written with your numbers. Fill in all three to check whether they agree.

Density examples

This density calculator shows how to calculate density with the density formula, density = mass / volume, and solves for whichever of the three you leave blank. A mass of 27 g and a volume of 10 cm³ produce a density of 2.7 g/cm³, with those numbers substituted into the formula. Density units such as g/cm³ are labels only, so the tool does not convert between unit systems. A second mode uses speed = distance / time, so a distance of 120 and a time of 2 give a speed of 60.

How to calculate density

The density formula is density = mass / volume, also written D = m/v. Enter any two of mass, volume, and density and the blank one is solved, with your numbers substituted into the formula. A mass of 27 g and a volume of 10 cm³ has a density of 2.7 g/cm³. Density units follow the labels, so g and cm³ display as g/cm³, and the tool does not convert between unit systems.

The other mode is speed, distance, and time. Speed = distance / time, time = distance / speed, and distance = speed × time, the same relationship as the classroom triangle. A distance of 120 and a time of 2 give a speed of 60. If a denominator is 0, the page explains that there is no result instead of showing infinity.

Frequently Asked Questions

What is the density formula?

The density formula is density = mass / volume, often written D = m/v. Mass = density × volume, and volume = mass / density. Fill in any two of the three and the calculator solves the blank one, then writes the formula with your numbers substituted.

What is an example of calculating density?

A mass of 27 g and a volume of 10 cm³ has density 27 / 10 = 2.7 g/cm³. That is the usual lab value for aluminum. If you type all three numbers, the page says whether they agree. If you leave density blank, it reports 2.7 g/cm³.

What are the units of density?

Density units are a mass unit divided by a volume unit. The labels start as g and cm³, so the density is shown as g/cm³. You can change the labels, for example to kg and m³, and the result is written kg/m³. The calculator does not convert the number, so the mass and volume you type must already match the labels.

How do speed, distance, and time work?

Speed = distance / time. On the classroom triangle, distance sits on top and speed and time sit side by side, so time = distance / speed and distance = speed × time. A distance of 120 and a time of 2 give a speed of 60. A time of 0 or a speed of 0 cannot be used as a denominator, and the page explains that instead of showing infinity. Speed and distance have to be zero or greater.

Related Tools