🔬
🔬 Science & engineering

Density, Mass & Volume Calculator

Results update as you type.

Your numbers

Understanding the density calculator — concept and principle

Density tells you how much mass is packed into a given volume. It identifies materials, predicts whether something floats, converts between mass and volume for shipping or recipes, and checks purity. This calculator takes mass and volume and returns density in kg/m³ and g/cm³, plus specific gravity relative to water.

Density of a 1-litre block of 2.7 kgA 1 L block of 2.7 kg has density 2,700 kg/m³ (2.7 g/cm³), about aluminium; 1 L of water is 0.998 kg, so its specific gravity is about 2.71.Two 1-litre cubes, very different massaluminiumwater1 L · 2.7 kg1 L · 0.998 kgeach a10 cm cubeρ = 2.7 kg ÷ 0.001 m³ = 2,700 kg/m³same number in2.7 g/cm³vs water 2,700 ÷ 998SG ≈ 2.71SG above 1 → a solid block sinks in water
Same volume, 2.7 times the mass of water — density 2,700 kg/m³.

How it is calculated

Rearranged, m = ρV and V = m ÷ ρ.

The principle

Density is an intensive property: it does not depend on how much of the substance you have. A teaspoon and a bucket of the same water have the same density. It reflects how heavy the atoms or molecules are and how tightly they are packed. Metals with heavy atoms in close-packed crystals, such as lead or gold, are dense; foams and gases with lots of empty space are not.

Specific gravity removes units by comparing with water. A value above 1 means the material sinks in water, below 1 means it floats, provided it is solid and not hollow.

Worked example

  1. Inputs: m = 2.7 kg, V = 1 L.
  2. ρ = 2.7 ÷ (1 ÷ 1,000) = 2.7 ÷ 0.001 = 2,700 kg/m³.
  3. In g/cm³: 2.7 ÷ 1 = 2.7 g/cm³.
  4. SG = 2,700 ÷ 998 ≈ 2.705410822.
How Density (kg/m³) changes with Volume (L)How Density changes with Volume02,0004,0006,0008,00010,00012,0000.250.50.7511.251.52Example: 2,700Volume (L)
Each point is the calculator re-run with only “Volume (L)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Volume (L)Density (kg/m³)
0.2510,800
0.55,400
0.753,600
12,700
1.252,160
1.51,800
21,350

How to read the result

2,700 kg/m³ is the density of aluminium. Some reference values: fresh water about 1,000 kg/m³, seawater about 1,025, steel about 7,850, gold about 19,300, air at sea level about 1.2. Liquids and gases change density with temperature, and gases also with pressure, so compare values measured under similar conditions.

Common mistakes

Keep in mind: Results are only as accurate as the volume measurement. Irregular objects should be measured by water displacement, porous materials can absorb water, and temperature changes the density of liquids, so treat the result as an estimate unless measured carefully.

Frequently asked questions

How do I measure the volume of an irregular object?

Submerge it in a measuring container of water and read how much the level rises; that rise is the object's volume (Archimedes' method).

Is specific gravity the same as density in g/cm³?

Almost, because water is about 1 g/cm³. Strictly SG is dimensionless and depends on the reference temperature.

Why is ice less dense than water?

Hydrogen bonds hold ice in an open crystal, so ice is about 917 kg/m³ and floats on liquid water.

Sources: BIPM, The International System of Units (SI Brochure), 9th edition · CRC Handbook of Chemistry and Physics (densities of elements and water)

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →