Density, Mass & Volume Calculator

Find density, mass or volume from the other two with ρ = m / V. Every field has its own unit, a material picker fills in typical densities, and the result tells you whether the object floats in water.

Calculator Science & Engineering Updated Oct 4, 2026
How to Use
  1. Choose what to solve for: Density, Mass or Volume. The answer appears in that field, which turns read-only.
  2. Enter the other two values and pick a unit beside each one: grams, kilograms, pounds; cm³, litres, m³, gallons; g/cm³, kg/m³ or lb/ft³.
  3. When solving for mass or volume you can pick a material (water, aluminium, steel, gold, air) instead of typing a density.
  4. Read the answer, the same value in another unit, the specific gravity and whether the object floats in water. Change the answer’s unit to convert it.
  5. Show Work lists every unit conversion and the division or multiplication, so you can check it by hand.
Input
typical values
ρ
m
V
Presets
Float or Sink
Density
—
Converted
—
Specific gravity
—
In water
—

Worked Example

Density of a gold bar. A sample of 193 g measures 10 cm³. ρ = m ÷ V = 193 ÷ 10 = 19.3 g/cm³, which is 19,300 kg/m³ and a specific gravity of 19.3. It sinks in water.

Volume of 1 kg of steel. With a typical density of 7,850 kg/m³, V = m ÷ ρ = 1 ÷ 7,850 = 0.000127389 m³ = 127.4 cm³, a cube about 5 cm on each side.

The common mistake: converting cm³ to m³ like cm to m. A metre is 100 cm, but a cubic metre is 100 × 100 × 100 = 1,000,000 cm³. Dividing 10 cm³ by 100 gives 0.1 m³ and a gold density of 0.193 ÷ 0.1 = 1.93 kg/m³, lighter than air. The right volume is 10 ÷ 1,000,000 = 0.00001 m³, and 0.193 ÷ 0.00001 = 19,300 kg/m³.

Show Work

Enter two of density, mass and volume to see the working.

Formulas

Density
ρ = m / V
Mass per unit volume
Mass
m = ρ × V
Density times volume
Volume
V = m / ρ
Mass divided by density
Specific gravity
SG = ρ / 1,000 kg/m³
Density relative to water at 4 °C (999.97 kg/m³)
Floating
fraction under = ρobject / ρwater
Archimedes: a floating body displaces its own weight of water
Units
1 g/cm³ = 1,000 kg/m³ = 62.428 lb/ft³
Also 1 g/mL and 1 kg/L

From Archimedes to the Kilogram

The best-known density story is about Archimedes and the crown of King Hiero II of Syracuse, told by the Roman architect Vitruvius in De architectura in the 1st century BC. The king suspected his goldsmith of mixing silver into a gold crown. Archimedes, noticing the water rise as he stepped into a bath, realised he could measure the crown’s volume by the water it displaced and compare it with the same mass of pure gold. Whether or not he shouted “Eureka”, his treatise On Floating Bodies (3rd century BC) states the principle behind the float check here: a body in a fluid is buoyed up by the weight of the fluid it displaces.

Density was also built into the metric system. In 1795 France defined the gram as the mass of one cubic centimetre of water, and the platinum Kilogram of the Archives (1799) was made to match a cubic decimetre of water at its densest, near 4 °C. Water’s density was later measured more precisely (999.97 kg/m³ at 4 °C), and since 2019 the kilogram has been defined through the Planck constant instead, but 1 g/cm³ for water remains a handy reference.

About This Calculator

This calculator solves the density equation in all three directions: density from mass and volume, mass from density and volume (it replaces the separate Mass Calculator), and volume from mass and density. Each field has its own unit, from milligrams to tonnes and millilitres to cubic feet, and the working shows the conversion to kilograms and cubic metres before the arithmetic.

The material picker uses typical handbook values: water 997 kg/m³ at 25 °C, aluminium 2,700, carbon steel about 7,850 (alloys vary by a few per cent), gold 19,300 and dry air 1.204 kg/m³ at 20 °C and sea-level pressure. Every result is compared with fresh water to say whether a solid object of that density floats, and how much of it sits below the surface.

All calculations run in your browser; nothing you enter is sent anywhere.

Related tools: Volume Calculator, Weight Calculator, and Unit Converter.

Frequently Asked Questions

How do you calculate density?

Divide mass by volume: ρ = m / V. A wooden block of 600 g that measures 1,000 cm³ has a density of 600 ÷ 1,000 = 0.6 g/cm³, which is 600 kg/m³. Rearranged, mass is ρ × V and volume is m ÷ ρ.

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

Multiply by 1,000. Aluminium at 2.7 g/cm³ is 2,700 kg/m³. A cubic metre holds 1,000,000 cm³ and a kilogram is 1,000 g, so the factor is 1,000,000 ÷ 1,000 = 1,000. To get lb/ft³, multiply g/cm³ by 62.428.

How do I know if something will float in water?

A solid object floats if its density is below the water’s, about 997 kg/m³ for fresh water at 25 °C. The fraction under the surface equals the density ratio: a 600 kg/m³ block floats with 600 ÷ 997 = 60.2% of it under water. Steel at 7,850 kg/m³ sinks, yet a steel ship floats because its average density, air inside included, is lower than the water’s.

How much does a litre of water weigh?

About 0.997 kg at 25 °C, and 999.97 g at 4 °C, where water is densest. That is why the kilogram was first defined as the mass of a litre of water. A US gallon (3.785 L) of water at 25 °C has a mass of 3.774 kg.

How do I find the mass from density and volume?

Multiply them: m = ρ × V, after putting both in matching units. 100 cm³ of aluminium (2.7 g/cm³) is 2.7 × 100 = 270 g. The air in a 50 m³ room at 20 °C (1.204 kg/m³) has a mass of 60.2 kg. Choose Mass in the Solve For bar to do this.

How do I use the Density, Mass & Volume Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Is it really gold?

A 10 g ring that displaces 0.8 cm³ of water has a density of 12.5 g/cm³, far below pure gold’s 19.3 g/cm³, so it is an alloy or plated.

Aquarium and tank loads

A 200 L tank holds 200 × 0.997 = 199.4 kg of water before the glass, gravel and stand are added.

Ordering metal stock

1 kg of steel is 127.4 cm³ and 1 kg of aluminium is 370.4 cm³, nearly three times the volume for the same mass.

Physics and chemistry homework

Solve ρ = m / V in any direction with mixed units, and see each conversion to kg and m³ in the working.

Boats, floats and buoyancy

Ice at about 917 kg/m³ floats with 917 ÷ 997 = 92% of its volume under fresh water.

Last updated: