How to calculate Density - worked example
The best way to trust a calculator is to work one example all the way through by hand, then confirm the calculator agrees. Here is that example, step by step, with nothing skipped.
The formula is: Density = mass ÷ volume. With mass in grams and volume in cubic centimetres the answer is in grams per cubic centimetre (g/cm³). One g/cm³ equals 1,000 kg/m³, so water at 1.00 g/cm³ is 1,000 kg/m³.
Step by step: A sample of 500 grams occupying 250 cm³ has a density of 500 ÷ 250 = 2.00 g/cm³ — twice as dense as water, so it sinks.
A second example: 900 grams in 300 cm³ gives 900 ÷ 300 = 3.00 g/cm³. And 1,000 grams in 1,000 cm³ gives exactly 1.00 g/cm³, the density of water.
Now repeat it with your own numbers. Change one input at a time and watch the answer move — that is how you learn what each input actually does.
Calculator, formula or water test — which one to use
Density has three practical ways of being found, and each suits a different situation. The calculator is fastest when the numbers are already measured: type in the mass and the volume and the answer appears, with the unit conversion handled for you. The formula on paper is best when you are learning, because writing mass ÷ volume out in full shows which number goes on top. The water test is best when you cannot measure the volume at all: drop the object in water and see whether it floats or sinks — floating means it is less dense than water, 1.00 g/cm³, and sinking means it is denser.
Try two more samples. A piece of wood weighing 250 grams and taking up 200 cm³ has a density of 250 ÷ 200 = 1.25 g/cm³ — denser than water, so it sinks, which surprises people who expect all wood to float. A block weighing 400 grams in 250 cm³ has a density of 400 ÷ 250 = 1.60 g/cm³. And a sample of 750 grams in 500 cm³ gives 750 ÷ 500 = 1.50 g/cm³. All three are heavier than water for their size, so all three sink, even though the numbers look quite different at first glance.
The water test and the calculator agree when both are done right, so use the test as a rough check on the number: if the calculator says 1.25 g/cm³ and the object floats, one of the measurements is wrong.
What to check when the answer looks wrong
Four checks cover most density errors. First, the units must match: grams with cubic centimetres gives g/cm³, while kilograms with cubic metres gives kg/m³, and mixing the two — grams with cubic metres, for instance — throws the answer off by a factor of a million. Second, check that the volume is the volume of the object, not the volume of the container it sits in. A 500-gram sample in a 1-litre jar does not occupy 1,000 cm³ unless it fills the jar.
Third, watch for air pockets. A hollow object weighs less than a solid one of the same size, so its density comes out lower — that is a real property of the object, not a mistake, but it means two samples of the “same” material can give different answers. Fourth, compare with water as an anchor: anything near 1.00 g/cm³ should behave like water, and anything near 2.00 g/cm³, like the 500-gram sample on this page, should feel distinctly heavy for its size. If the feel and the number disagree, re-weigh the sample before you re-do the sum.
Frequently asked questions
Why work through an example by hand?
Because a hand-worked example gives you a number you trust. Once you have one, you can test the calculator against it and spot any input slip at once.
Should the calculator match my hand calculation exactly?
Yes, apart from rounding to two decimal places. A larger gap means an input differs.
What if my result looks wrong?
Re-read each field and its unit first. Most wrong results come from a mistyped number or a wrong unit, not from the calculator itself.
More guides on the Density Calculator
Enter mass and volume to see density in grams per cubic centimetre.