BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 3 primary sourcesLast updated

Density Calculator: Density, Mass and Volume (ρ = m/V)

The Density Calculator: Density, Mass and Volume finds density from mass and volume, mass from density, or volume from mass, in g/cm³, kg/m³ or lb/ft³, with specific gravity and a float or sink check in water.

Quick Answer: A block with a mass of 270 g and a volume of 100 cm³ has a density of 2.7 g/cm³ (2,700 kg/m³), because density is mass divided by volume. It is denser than water, so it sinks.

Assumptions

Computed

Preset scenarios

Result
2.7 g/cm³
Density in kg/m³
2,700 kg/m³
Density in g/cm³
2.7 g/cm³
Density in lb/ft³
168.555 lb/ft³
Specific gravity
2.7001
In water
Sinks in fresh water at 20 °C
Mass in kilograms
0.27 kg
Volume in litres
0.1 L

Density in four units for 1 cm³ samples of different mass

Download CSV
Each row is this calculator run in density mode on a 1 cm³ sample with the mass in the first column, so the first column is also the density in g/cm³. Specific gravity is relative to water at 3.98 °C. Values are rounded to six significant figures.
Mass of 1 cm³ (g)DensityDensitySpecific gravityIn water
0.5500 kg/m³31.214 lb/ft³0.50001Floats in fresh water at 20 °C
0.8800 kg/m³49.9424 lb/ft³0.80002Floats in fresh water at 20 °C
0.9900 kg/m³56.1852 lb/ft³0.90002Floats in fresh water at 20 °C
11,000 kg/m³62.428 lb/ft³1Sinks in fresh water at 20 °C
1.21,200 kg/m³74.9136 lb/ft³1.2Sinks in fresh water at 20 °C
2.72,700 kg/m³168.555 lb/ft³2.7001Sinks in fresh water at 20 °C
7.857,850 kg/m³490.059 lb/ft³7.8502Sinks in fresh water at 20 °C
8.968,960 kg/m³559.355 lb/ft³8.9602Sinks in fresh water at 20 °C
11.3411,340 kg/m³707.933 lb/ft³11.34Sinks in fresh water at 20 °C
19.319,300 kg/m³1,204.86 lb/ft³19.3Sinks in fresh water at 20 °C

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Density Calculator: Density, Mass and Volume (ρ = m/V): Result 2.7 g/cm³ (Solve for: Density from mass and volume; Mass (m): 270; Mass unit: grams; Volume (V): 100; Volume unit: cubic centimetres (cc); Density unit: g/cm³).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of a pale wooden cube, a wooden cube inside a glass tank of water and a dark metal cube in a row
Quick Answer: A block with a mass of 270 g and a volume of 100 cm³ has a density of 2.7 g/cm³ (2,700 kg/m³), because density is mass divided by volume. It is denser than water, so it sinks.

What does this calculator do?

This density calculator solves the density equation, ρ = m/V, in any direction. Give it a mass and a volume and it returns the density; give it a density and a volume and it returns the mass; give it a mass and a density and it returns the volume.

Every answer is also shown in kilograms per cubic metre, grams per cubic centimetre and pounds per cubic foot, with the specific gravity and whether the material would float in fresh water.

Units are where density problems usually go wrong, so the calculator takes mass in grams, kilograms, milligrams, pounds or ounces, volume in cubic centimetres, millilitres, litres, cubic metres, cubic inches, cubic feet or US gallons, and density in g/cm³, kg/m³, g/mL, kg/L, lb/ft³ or lb/gal. It converts everything to kilograms and cubic metres first, using exact definitions (the pound is 0.45359237 kg and the foot 0.3048 m), and converts back for the answer.

For comparisons with water it uses pure, air-free water from the CIPM formula of Tanaka and colleagues: 999.97495 kg/m³ at its densest, near 3.98 °C, for specific gravity, and 998.2067 kg/m³ at 20 °C for the float or sink card.

Using the Density Calculator

  1. Choose what to solve for: density, mass or volume.
  2. Enter the two known values and choose their units.
  3. The unit menu of the quantity you are solving for sets the unit of the answer. Solving for density in lb/ft³, for example, gives the answer in lb/ft³.
  4. Read the result at the top, and the cards for the density in three units, the specific gravity, the float or sink check, and the mass and volume in kilograms and litres.

How is this calculated?

  1. Convert to SI. Mass is converted to kilograms and volume to cubic metres; a density you enter is converted to kilograms per cubic metre.
  1. Solve the density equation. One of three arrangements, depending on the mode:

ρ = m/V; m = ρV; V = m/ρ

  1. Specific gravity. The density divided by the density of pure water at 3.98 °C, its maximum, so the result has no units:

SG = ρ/(ρ_(water, 3.98 °C)); ρ_(water, 3.98 °C) = 999.97495 kg/m³

  1. Float or sink. The density is compared with pure water at 20 °C, 998.2067 kg/m³. Less dense floats; denser sinks.
  1. Convert back and round. The answer is converted to the unit you chose, the density is also given in kg/m³, g/cm³ and lb/ft³, and results are rounded half up to six significant figures (specific gravity to five). A zero volume when solving for density, or a zero density when solving for volume, is refused.

Worked Example

The default inputs are a 270 g block with a volume of 100 cm³:

  1. Mass: 270 g = 0.27 kg. Volume: 100 cm³ = 0.0001 m³.
  2. Density: 0.27 ÷ 0.0001 = 2,700 kg/m³, or 2.7 g/cm³, or 168.555 lb/ft³.
  3. Specific gravity: 2,700 ÷ 999.97495 = 2.7001.
  4. It sinks in fresh water at 20 °C.

Working out a mass, one litre of an oil with a density of 0.92 g/mL weighs 920 g, and floats on water.

Working out a volume, 1 kg of a material at 7.85 g/cm³ takes up 127.389 cm³.

In customary units, a 30 lb log with a volume of 1 ft³ has a density of 30 lb/ft³, which is 480.554 kg/m³, and floats.

How to Find Density

Weigh the object to get its mass, measure its volume, and divide. For a regular shape, calculate the volume from its dimensions. For an irregular one, lower it into a measuring container of water and read how far the level rises: the rise is its volume. That second method is Archimedes' displacement and works for anything that does not absorb water.

Density Units Compared

1 g/cm³ is the same as 1 g/mL and 1 kg/L, and is 1,000 kg/m³. In customary units it is 62.428 lb/ft³. The reference table on this page runs the calculator on 1 cm³ samples of different masses, so you can read across between units: 7.85 g/cm³ is 7,850 kg/m³ and 490.059 lb/ft³.

What does this calculator not account for?

  • Temperature and pressure. Densities change with temperature, liquids and gases especially. The calculator uses the numbers you enter and does not correct them.
  • Porous and hollow objects. Measured density of a sponge, a brick or a hollow part is the bulk density of the object, not of the material it is made from.
  • Seawater and other liquids. The float or sink card compares with fresh water only. Seawater is denser, so some objects that sink in a lake float in the sea.
  • Water that is not pure. The water figures are for pure, air-free water from the CIPM formula. Tap water differs slightly.
  • Material identification. Two materials can share a density. A density close to a known value is a hint, not a proof of what something is made of.

What mistakes do people make with this?

  • Mixing g/cm³ and kg/m³. They differ by a factor of 1,000. Water is about 1 g/cm³ or about 1,000 kg/m³, never 1 kg/m³.
  • Using cubic centimetres as square centimetres. Volume is in cubic units; measure all three dimensions.
  • Weight instead of mass. A spring scale reading in newtons must be divided by g to get kilograms first.
  • US and UK gallons. The calculator uses the US gallon, 231 cubic inches. An imperial gallon is about 20% larger.
  • Rounding volumes early. A small error in a small volume makes a large error in density.

Frequently Asked Questions

What is the formula for density?

Density equals mass divided by volume, ρ = m/V. Its SI unit is kilograms per cubic metre.

How do you calculate mass from density and volume?

Multiply the density by the volume, m = ρV, with units that match. One litre at 0.92 g/mL is 920 g.

How do I find volume from mass and density?

Divide the mass by the density, V = m/ρ. One kilogram at 7.85 g/cm³ is 127.389 cm³.

What is specific gravity?

The ratio of a material's density to that of water. It has no units, so a specific gravity of 2.7 means 2.7 times as dense as water. The calculator uses water at its maximum density, near 3.98 °C, as the reference.

Why is water's density not exactly 1 g/cm³?

The gram was once defined from water, but the definitions have since separated. Pure water reaches 0.99997495 g/cm³ at its densest and 0.9982067 g/cm³ at 20 °C, per the CIPM formula.

Will it float?

If its density is less than that of the liquid, it floats. The calculator checks against fresh water at 20 °C.

Sources

  • Tanaka, Girard, Davis, Peuto and Bignell, Recommended table for the density of water between 0 °C and 40 °C based on recent experimental reports, Metrologia 38 (2001) 301 (CIPM formula). doi.org/10.1088/0026-1394/38/4/3
  • NIST Special Publication 811, Guide for the Use of the International System of Units, Appendix B: conversion factors for pound per cubic foot, pound per gallon and volume units. nist.gov/pml/special-publication-811
  • NIST Handbook 44, Appendix C, General Tables of Units of Measurement: the US gallon of 231 cubic inches. nist.gov/pml/owm/nist-handbook-44-current-edition

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 7 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: 270 g in 100 cm³ is 2.7 g/cm³
  • mass: 1 L at 0.92 g/mL is 920 g and floats
  • volume: 1 kg at 7.85 g/cm³ takes 127.389 cm³
  • customary units: 30 lb in 1 ft³ is 30 lb/ft³, 480.554 kg/m³
  • round trip: density to mass and back
  • edge cases: zero volume and zero density are refused
  • builds the unit table from compute()

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews