Skip to content
DeviceCheckHub

Density Calculator

Density from mass and volume, or the mass or volume from a density, in every common unit, with the volume of a box, cylinder or sphere, the densities of common metals and whether the object floats.

ρ = m ÷ V

The value being found is filled in for you. 1 mL is exactly 1 cm³. Numbers such as 2e-3 work too.

Examples:
540 g in 200 mL has a density of 2.7 g/cm³.

ρ = 2.7 g/cm³

Density
2700 kg/m³ = 2.7 g/cm³
Mass
0.54 kg = 540 g
Volume
0.0002 m³ = 0.2 L
Specific gravity
2.7 (water at 4 °C = 1)
In water
Sinks in fresh water and in sea water
Closest listed material
Aluminum, 2.7 g/cm³ (a match)
The density in every unit
kg/m³2700
g/cm³ (g/mL)2.7
g/L2700
kg/L2.7
lb/ft³168.56
lb/in³0.097544
lb/yd³4551
lb/gal (US)22.533
lb/gal (UK)27.061
oz/in³1.5607

Steps

  1. Mass in kilograms: 540 g = 0.54 kg.
  2. Volume in cubic meters: 200 mL = 0.0002 m³.
  3. ρ = m ÷ V = 0.54 kg ÷ 0.0002 m³ = 2700 kg/m³.
  4. In g/cm³: ρ = 2.7 g/cm³.

How to use the density calculator

  1. Leave “Find” on “Density” and enter the mass and the volume, each with its unit.
  2. If you know the object’s measurements rather than its volume, set “Volume from” to a box, cylinder or sphere and enter its dimensions; the volume is worked out for you.
  3. To find a mass or a volume instead, choose it under “Find”, then type a density or pick a material from the list.
  4. Read the answer, the same density in every unit, the specific gravity, whether the object floats, and, when you find a density, the listed material it is closest to.

What density is

Density says how much mass is packed into a given volume. It is the mass divided by the volume, ρ = m ÷ V, written with the Greek letter rho. A block of lead and a block of aluminum of the same size have very different masses because lead is much denser: each cubic centimeter of lead holds about 11.342 g, against 2.7 g for aluminum.

Density belongs to the material, not to the object. Cut a piece of metal in half and each half has half the mass and half the volume, so the density stays the same. That is what makes density useful for recognizing materials, for working out how much something weighs before lifting it, and for knowing how much space a mass of material will take. For example, 540 g of a material filling 200 mL has a density of 2.7 g/cm³, which matches aluminum.

Units of density

In science the usual units are grams per cubic centimeter and kilograms per cubic meter. Because a milliliter is exactly a cubic centimeter, g/cm³ and g/mL are the same unit, and so are kg/L. One g/cm³ is exactly 1000 kg/m³, so 2.7 g/cm³ is 2700 kg/m³. In the United States densities are often given in pounds per cubic foot, pounds per cubic inch or pounds per gallon; 2.7 g/cm³ is 168.56 lb/ft³.

The calculator converts with exact definitions: the pound is 0.453 592 37 kg and the inch 2.54 cm, the US gallon is 231 cubic inches and the US fluid ounce a 128th of it, the UK gallon is 4.546 09 liters, and the metric carat, used for gems, is 200 mg. A liquid weighing 8.34 lb per US gallon has a density of 0.99935 g/cm³.

Finding the mass or the volume

If you know what something is made of, its density gives the mass from the volume, m = ρ × V, or the volume from the mass, V = m ÷ ρ. Pick the material from the list and the density is filled in. A gold bar 5 cm long, 2 cm wide and 1 cm thick has a mass of 192.82 g; a lead ball 3 cm across has 160.34 g. One kilogram of water takes up 1 L.

Volume from a box, cylinder or sphere

Many objects have a simple shape whose volume is easy to work out from its measurements. A box, or any rectangular block, has V = length × width × height. A cylinder, such as a rod, a can or a pipe’s solid core, has V = π × (diameter ÷ 2)² × height. A sphere has V = π × diameter³ ÷ 6. Choose the shape, enter the measurements in one length unit, and the calculator shows the volume in your chosen volume unit along with the steps.

For an irregular object, measure its volume by displacement: lower it into a measuring cup or a cylinder of water and read how far the level rises, or fill a container to the brim, lower the object in and measure the water that spills out. That volume, in milliliters, is the object’s volume in cubic centimeters.

Telling materials apart

Archimedes is said to have used this idea to check whether a king’s crown was pure gold: a crown with silver mixed in would take up more volume for the same mass. With the calculator, a crown of 1000 g that displaces 60 mL of water has a density of 16.667 g/cm³, well below gold’s 19.282 g/cm³. When you find a density, the calculator names the listed material closest to it and how far off it is. A ring of 10.5 g with a volume of 1 mL comes out at 10.5 g/cm³, matching Silver, 10.501 g/cm³.

Treat a match as a clue rather than proof. Alloys have densities between those of their metals, coins and jewelry are often plated, and different materials can share a density. Small measurement errors matter too: for a small object, an error of 0.1 mL in the volume can change the density by several percent.

Specific gravity and floating

Specific gravity is a density compared with water’s, so it has no unit: a specific gravity of 2.7 means 2.7 times as dense as water. Because water at about 4 °C has a density of 1 g/cm³, the specific gravity is the same number as the density in g/cm³.

A solid object floats when it is less dense than the liquid it is in. Ice, at 0.917 g/cm³, floats on water with most of its volume below the surface; a block of 917 g in 1000 cm³ gives 0.917 g/cm³, and the calculator reports “Floats in fresh water and in sea water.” Sea water, at about 1.025 g/cm³, holds things up a little better than fresh water, so an object slightly denser than fresh water can sink in a lake and float in the sea. Ships float even though steel is far denser than water, because their average density, the steel and the air inside together, is less than the water’s.

Densities of common materials

The densities below come from PubChem, the chemistry database of the US National Institutes of Health: its periodic table for the elements and its water entry for water, ice and sea water. Values are for the pure material, and for water, ice and sea water at the temperature shown.

Materialg/cm³lb/ft³
Water (4 °C)162.428
Sea water (25 °C)1.02563.9887
Ice (0 °C)0.91757.2464
Lithium0.53433.3365
Magnesium1.74108.625
Aluminum2.7168.555
Titanium4.5280.926
Zinc7.134445.361
Tin7.287454.913
Iron7.874491.558
Nickel8.912556.358
Copper8.933557.669
Silver10.501655.556
Lead11.342708.058
Mercury (liquid)13.5336844.875
Uranium18.951183.01
Gold19.2821203.74
Tungsten19.31204.86
Platinum21.461339.7
Osmium22.571409

Density changes a little with temperature, because most materials expand as they warm. For solids the change is small. Water is unusual: it is densest at about 4 °C and expands as it freezes, which is why lakes freeze from the top down.

Your values stay on your device

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

Frequently asked questions

What is the formula for density?

Density is mass divided by volume, ρ = m ÷ V. Rearranged, the mass is m = ρ × V and the volume is V = m ÷ ρ. With the mass in grams and the volume in cubic centimeters or milliliters, the density is in g/cm³; with kilograms and cubic meters, it is in kg/m³.

What is the density of water?

About 1 g/cm³, or 1000 kg/m³. Water is densest at about 4 °C (PubChem gives 1.000000 g/mL at 3.98 °C) and a little less dense when warmer or colder. Ice is lighter, 0.917 g/cm³ at 0 °C, which is why it floats, and sea water, with its dissolved salt, is about 1.025 g/cm³.

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

Multiply by 1000. One cubic meter holds a million cubic centimeters, and a kilogram is a thousand grams, so 1 g/cm³ = 1000 kg/m³ exactly. A density of 2.7 g/cm³ is 2700 kg/m³, or 168.56 lb/ft³ in pounds per cubic foot. The calculator lists the density in all of these units at once.

How can density tell what a metal is?

Each pure metal has its own density, so measuring the mass and the volume of an object and comparing the density with a table is a quick test. A ring of 10.5 g that pushes 1 mL of water out of a full glass has a density of 10.5 g/cm³, close to silver’s 10.501 g/cm³. Alloys and hollow or plated objects can mislead, so a match is a clue, not proof.

Will an object float?

A solid object floats if its density is less than the liquid’s, and sinks if it is greater. The calculator shows the specific gravity, the density compared with water’s, and says whether the object would float in fresh water and in sea water. A hollow object such as a boat floats when its average density, the whole mass over the whole volume including the air inside, is less than the water’s.

Is anything I type sent anywhere?

No. Everything is worked out in your browser, and nothing you type is sent anywhere or stored.

Last updated · About DeviceCheckHub