Saved

Press the star next to a tool's name to save it.

All my tools

Density Calculator

Use this density calculator to find the density of a material from its mass and volume, or the mass or volume from the density, with the specific gravity and the closest material.

Restored your last values ·

Choose whether to find the density, the mass or the volume. Enter the other two values with their units. You get the result in several units, the specific gravity and the closest common material.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want and fill in the boxes, then press Calculate.

See full result

A density calculator finds the density of a material from its mass and volume, or finds the mass or the volume when the density is known. It works in kilograms, grams and pounds and in several volume units, gives the density in kilograms per cubic metre, grams per cubic centimetre and pounds per cubic foot, and names the closest common material.

How to use the density calculator

  1. Choose what you want.
  2. Enter the mass and volume, or one of them and the density.
  3. Press Calculate.

The definition

Density is the mass divided by the volume: ρ = m ÷ V [1]. Its SI unit is the kilogram per cubic metre, and it is often given in grams per cubic centimetre [1]. The densities in grams per cubic centimetre, kilograms per decimetre cubed and megagrams per cubic metre all have exactly the same number [1]. Water is about 1 gram per cubic centimetre, or 1,000 kilograms per cubic metre [1].

The three modes

Use the first mode to find the density of an object that you have measured, the second to find the mass of a given volume of a material, and the third to find the volume of a given mass. A block of 2.7 kilograms and 1 litre has a density of 2,700 kilograms per cubic metre, 2.7 grams per cubic centimetre, which is aluminium. The calculator says so.

Other units

The page gives the conversion 1 gram per cubic centimetre ≈ 62.427961 pounds per cubic foot [1]. The block above is therefore 168.56 pounds per cubic foot. The calculator shows the density in all three common units. You can enter the mass in kilograms, grams or pounds, and the volume in cubic metres, litres, cubic centimetres, cubic feet or US gallons.

Specific gravity

The specific gravity, or relative density, is the ratio of the density of a material to that of a standard material, usually water [1]. A material below 1 floats in water, and one above 1 sinks [1]. The calculator shows the specific gravity relative to water at 1,000 kilograms per cubic metre, and says whether the material floats. Aluminium, at 2.7, sinks.

Densities of materials

The page lists the densities of common materials, in kilograms per cubic metre: air 1.2, hydrogen 0.0898, helium 0.179, ice 916.7, fresh water 1,000, salt water 1,030, aluminium 2,700, mild steel 7,850, iron 7,870, brass 8,600, copper 8,940, silver 10,500, lead 11,340, mercury 13,546, gold 19,320, platinum 21,450 and osmium 22,570 [1]. The calculator compares your result with a list based on them.

The closest material

The result names the listed material whose density is nearest to yours, and says by how many percent yours differs. A result within a few percent is a good sign that the material is that one. A larger difference means that it is another material, an alloy, or that there are cavities or impurities. Use it as a hint, and not as an identification.

Water and temperature

The density of water changes slightly with the temperature. The page gives 999.8395 kilograms per cubic metre at 0 degrees Celsius, 999.972 at 4 degrees, which is its maximum, 998.2071 at 20 degrees and 958.4 at 100 degrees [1]. The calculator uses 1,000 for the specific gravity, a round figure. For precise work, use the density of water at your temperature.

Gases

The density of a gas depends strongly on the pressure and the temperature. The page gives the ideal gas relation, ρ = M P ÷ (R T), so that doubling the pressure or halving the absolute temperature doubles the density [1]. Air is 1.293 kilograms per cubic metre at 0 degrees, and 1.204 at 20 degrees [1]. The air density calculator on this site takes these into account.

Units

Mass can be in kilograms, grams or pounds, and the volume in cubic metres, litres, cubic centimetres, cubic feet or US gallons. The calculator converts to kilograms and cubic metres. In the mass and volume modes, enter the density in kilograms per cubic metre: for a value in grams per cubic centimetre, multiply by 1,000. The working line shows the mass in kilograms and the volume in litres.

Limits

The density of an object that is not uniform, or that has holes, is an average. The result for a porous material depends on whether you count the volume of the pores. The calculator also assumes that the mass and the volume are measured at the same temperature. For liquids, the volume changes with temperature, so the density does too.

Using the calculator

Pick the mode, set the units and enter the values. Check the specific gravity and the closest material. To identify an unknown solid, weigh it, find its volume by water displacement and enter both. Compare the density with the list and with a handbook. A density near 2,700 suggests aluminium, near 7,850 steel, and near 8,940 copper.

Tips for measuring

For an irregular solid, find its volume by lowering it into a measuring cylinder of water and reading the rise. Weigh it dry on a scale. For a liquid, weigh a known volume in a container, and subtract the mass of the empty container. Take care with temperature, as the density of liquids changes as they warm up.

Common mistakes

  • Mixing grams and kilograms. Check the unit.
  • Using the mass of the container. Weigh the material alone.
  • Forgetting that gas density changes with pressure. State the conditions.
  • Treating the closest material as proof. Alloys overlap.

What next

Use this often? Add Density to your Home screen.

Frequently asked questions

What is a density calculator?

A tool that finds density from mass and volume, or the mass or volume from the density.

What is the formula for density?

ρ = m ÷ V.

What is the density of water?

About 1,000 kg/m³, or 1 g/cm³.

What is specific gravity?

The ratio of the density of a material to that of water.

How do I convert g/cm³ to lb/ft³?

Multiply by 62.428.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools