Skip to main content
ponderloop

Density Calculator

540 g of material that fills 200 cm³ has a density of 2.7 g/cm³, which is 2,700 kg/m³ or about 168.555 lb/ft³: density is mass divided by volume (ρ = m ÷ V). Fresh water is 1,000 kg/m³ at about 4 °C, so this material is 2.7 times as dense and sinks. Rearranged, mass = density × volume (1.5 L of a 2,700 kg/m³ metal has a mass of 4.05 kg) and volume = mass ÷ density. Pick which of the three to solve for, enter the other two in mg to lb, mL to US gallons and six density units, and the calculator shows the answer in your unit and in other common units, with the working and whether the object floats.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Solve for

Type a number such as 2.5 or 1,200. The units can differ: the calculator converts them exactly. The quantity you solve for needs no input; its unit menu sets the unit of the answer.

ρ = m ÷ V = 540 g ÷ 200 cm³

Density 2.7 g/cm³

Density in g/cm³
2.7 g/cm³
Density in kg/m³
2,700 kg/m³
Density in lb/ft³
≈ 168.555 lb/ft³
Density in lb/in³
≈ 0.0975437 lb/in³
Density relative to fresh water
2.7

Sinks in fresh water. At 2,700 kg/m³ it is 2.7 times as dense as fresh water (1,000 kg/m³ at about 4 °C), so it sinks.

The calculation is exact; numbers are rounded to 6 significant digits only for display (“≈” marks a rounded value, and the steps show rounded intermediate values). The float check treats the object as one uniform material. A hollow or mixed object, such as a boat, floats when its overall average density (hull and enclosed air together) is below that of the water, and salt water is denser than fresh water.

The working

  1. Mass in kg: 1 g = 0.001 kg, so 540 g = 0.54 kg.
  2. Volume in m³: 1 cm³ = 0.000001 m³, so 200 cm³ = 0.0002 m³.
  3. Density: ρ = m ÷ V = 0.54 kg ÷ 0.0002 m³ = 2,700 kg/m³.
  4. In g/cm³: 2,700 kg/m³ ÷ 1,000 = 2.7 g/cm³.
  5. Fresh water: 1,000 kg/m³. Density ÷ 1,000 = 2.7, so it sinks.

Density of common materials

Densities of common materials in kg/m³ (3 significant digits), converted to g/cm³ and lb/ft³ by this calculator, with a float-or-sink check against fresh water. Each value is labelled as a reference value or a typical value, and typical values vary.
Materialkg/m³g/cm³lb/ft³Floats in fresh water?Value and source
Air1.230.001230.0765YesReference value. Standard atmosphere, sea level, 15 °C
Gasoline7400.7446.2YesTypical value. Varies with blend and temperature
Oak wood7500.7546.8YesTypical value. Air-dried oak; varies with species and moisture
Ice9170.91757.2YesReference value. Ordinary ice at 0 °C
Water (fresh)1,000162.4Neutral (the reference)Reference value. Fresh water at about 4 °C, the reference this tool uses
Concrete2,4002.4150NoTypical value. Design figure for normal-weight concrete; varies with the mix
Aluminum2,7002.7169NoReference value. Pure aluminum at room temperature
Steel7,8507.85490NoTypical value. Carbon steel; alloys vary
Copper8,9608.96559NoReference value. Pure copper at room temperature
Lead11,30011.3708NoReference value. Pure lead at room temperature
Gold19,30019.31,210NoReference value. Pure gold at room temperature

What a liter, a cubic foot and a gallon of each material weigh

Mass = density × volume, from the densities in the table above, to 3 significant digits. The gallon is the US gallon (231 cubic inches).
Material1 liter (kg)1 cubic foot (lb)1 US gallon (lb)
Air0.001230.07650.0102
Gasoline0.7446.26.18
Oak wood0.7546.86.26
Ice0.91757.27.65
Water (fresh)162.48.35
Concrete2.415020
Aluminum2.716922.5
Steel7.8549065.5
Copper8.9655974.8
Lead11.370894.6
Gold19.31,210161

Density unit conversion matrix: 1 g/cm³ in every unit

One gram per cubic centimeter written in each density unit of this calculator, computed from the exact unit definitions.
UnitName1 g/cm³ equalsPrecision
g/cm³grams per cubic centimeter1Exact
kg/m³kilograms per cubic meter1,000Exact
lb/ft³pounds per cubic foot62.428Rounded to 6 significant digits
g/mLgrams per milliliter1Exact
lb/in³pounds per cubic inch0.0361273Rounded to 6 significant digits
kg/Lkilograms per liter1Exact

Worked examples: density, mass and volume

Each row is the calculator run on the inputs in the first column; the last column is the float-or-sink check against fresh water.
ProblemFormula with the numbersAnswerIn fresh water
Density of a block: 540 g and 200 cm³ρ = m ÷ V = 540 g ÷ 200 cm³Density 2.7 g/cm³Sinks in fresh water
Mass of a piece of aluminum: 1.5 L and 2700 kg/m³m = ρ × V = 2,700 kg/m³ × 1.5 LMass 4.05 kgSinks in fresh water
Volume of fuel: 10 lb and 740 kg/m³V = m ÷ ρ = 10 lb ÷ 740 kg/m³Volume ≈ 1.61928 galFloats in fresh water
Density in pounds per cubic foot: 25 lb and 0.4 ft³ρ = m ÷ V = 25 lb ÷ 0.4 ft³Density 62.5 lb/ft³Sinks in fresh water
Mass of water in a tank: 20 gal and 1 kg/Lm = ρ × V = 1 kg/L × 20 galMass ≈ 166.908 lbNeutrally buoyant in fresh water
Size of an ice cube: 30 g and 917 kg/m³V = m ÷ ρ = 30 g ÷ 917 kg/m³Volume ≈ 32.7154 cm³Floats in fresh water
Mass of a cubic inch of gold: 1 in³ and 19320 kg/m³m = ρ × V = 19,320 kg/m³ × 1 in³Mass ≈ 11.1677 ozSinks in fresh water

Exact unit factors used

Every factor comes from an exact definition (1 lb = 0.45359237 kg, 1 in = 0.0254 m, 1 US gallon = 231 in³), so conversions are exact until the final rounding.
UnitEqualsPrecision
1 mg (milligrams)0.000001 kgExact
1 g (grams)0.001 kgExact
1 oz (ounces)0.028349523125 kgExact
1 lb (pounds)0.45359237 kgExact
1 mL (milliliters)0.000001 m³Exact
1 L (liters)0.001 m³Exact
1 cm³ (cubic centimeters)0.000001 m³Exact
1 in³ (cubic inches)0.000016387064 m³Exact
1 ft³ (cubic feet)0.028316846592 m³Exact
1 gal (US gallons)0.003785411784 m³Exact
1 fl oz (US fluid ounces)≈ 2.957352956 × 10⁻⁵ m³Rounded to 10 significant digits
1 g/cm³ (grams per cubic centimeter)1,000 kg/m³Exact
1 lb/ft³ (pounds per cubic foot)≈ 16.01846337 kg/m³Rounded to 10 significant digits
1 g/mL (grams per milliliter)1,000 kg/m³Exact
1 lb/in³ (pounds per cubic inch)≈ 27,679.90471 kg/m³Rounded to 10 significant digits
1 kg/L (kilograms per liter)1,000 kg/m³Exact

How to find density, mass or volume

  1. Choose what to solve for. Pick density, mass or volume. The calculator uses ρ = m ÷ V, and rearranges it to m = ρ × V or V = m ÷ ρ for the other two.
  2. Enter the two values you know. Type each number and pick its unit (mass in mg, g, kg, oz or lb; volume in mL, L, cm³, m³, in³, ft³, gal or fl oz; density in g/cm³, kg/m³, lb/ft³, g/mL, lb/in³ or kg/L). The page opens with 540 g in 200 cm³. The units do not have to match.
  3. Choose the unit for the answer. The unit menu of the quantity you are solving for sets the unit of the answer, and the same answer is also shown in two or three other common units. For the example that is density 2.7 g/cm³.
  4. Check the working. The calculator writes the formula with your numbers in, converts to kg, m³ and kg/m³ with exact factors, and rounds once at the end: ρ = m ÷ V = 540 g ÷ 200 cm³ gives density 2.7 g/cm³.
  5. Read the float-or-sink line. The density is compared with fresh water at 1,000 kg/m³: below it the object floats (and the line gives the share under the surface), above it the object sinks. For the example: sinks in fresh water.

Frequently asked questions

What is the density formula?
Density is mass divided by volume: ρ = m ÷ V, where ρ (the Greek letter rho) is density, m is mass and V is volume. For 540 g in 200 cm³, ρ = m ÷ V = 540 g ÷ 200 cm³ gives density 2.7 g/cm³. The SI unit is kilograms per cubic meter; chemistry and materials work often use g/cm³, and US customary work uses lb/ft³.
How do I find mass from density and volume?
Multiply: m = ρ × V. Use units that agree, or let the calculator convert them. For 1.5 L of a 2,700 kg/m³ metal the mass is 2,700 kg/m³ × 1.5 L = 4.05 kg (about 8.92872 lb). Choose "Mass" under "Solve for", type the density and the volume, and read the answer in kg, g, lb or oz.
How do I find volume from mass and density?
Divide: V = m ÷ ρ. 10 lb of a 740 kg/m³ fuel fills 10 lb ÷ 740 kg/m³ = about 1.61928 gal, or about 6.12963 L. The volume comes out in the unit you pick, so a mass in pounds and a density in kilograms per cubic meter can still give gallons.
How do I convert g/cm³ to kg/m³ and lb/ft³?
Multiply g/cm³ by 1,000 to get kg/m³ (1 g/cm³ = 1,000 kg/m³, because a cubic meter holds a million cubic centimeters and a kilogram is a thousand grams). To get lb/ft³ multiply by 62.428. Going the other way, 1 lb/ft³ is 16.0185 kg/m³. The conversion matrix above lists 1 g/cm³ in all six units, and the factors come from the exact definitions of the pound (0.45359237 kg) and the inch (0.0254 m).
Is 1 mL the same as 1 cm³, and 1 g/mL the same as 1 g/cm³?
Yes. A liter is defined as a cubic decimeter, so 1 L = 1,000 cm³ and 1 mL = 1 cm³ exactly. That makes g/mL, g/cm³ and kg/L the same number: 540 g in 200 mL is 2.7 g/mL, 2.7 kg/L and 2.7 g/cm³. The calculator treats them as equal and leaves the repeats out of its list of other units.
How do I know if something floats?
Compare its density with the water's. Fresh water is taken as 1,000 kg/m³ (about 62.428 lb/ft³): denser objects sink and less dense ones float. A floating object displaces its own weight of water, so the share of its volume below the surface equals its density divided by the water's. Ice at 917 kg/m³ floats with about 91.7% under the surface, and a 30 g ice cube takes up about 32.7154 cm³. This assumes one uniform material: a steel ship floats because its hull and the air inside give it an overall density below the water's. Salt water is denser than fresh water, so an object can sink in a lake and float in the sea.
What is the density of water?
This calculator uses 1,000 kg/m³, which is 1 g/cm³ or 1 kg/L and about 62.428 lb/ft³. That is the value of fresh water near 4 °C, where it is densest. At 20 °C it is a little lower, about 998.2 kg/m³ (a typical value), so an object within a fraction of a percent of 1,000 kg/m³ can float or sink depending on the temperature. A US gallon of water is therefore about 8.345 lb.
What is specific gravity or relative density?
It is the density of a material divided by the density of water, so it has no unit. The calculator shows it as "Density relative to fresh water": 2.7 for the example, 7.85 for steel (a typical value) and 0.917 for ice. Anything above 1 sinks in fresh water and anything below 1 floats.
How do I find the density of an irregular object?
Weigh it for the mass, then find the volume by displacement: lower it into a measuring container of water and read how far the level rises (1 mL of rise is 1 cm³). An object that weighs 540 g and raises the level by 200 mL has a density of 2.7 g/mL. If it floats, push it under with a thin rod; if it absorbs water, the result is only approximate.
Does density change with temperature?
Yes. Most materials expand when they warm, so the same mass fills more volume and the density falls; gases change the most, and for them pressure matters too. Water is unusual: it is densest near 4 °C and slightly less dense both colder and warmer. The densities in the tables are for room temperature or the conditions stated, and any density you type is used as given.
Is the pound a unit of mass or of weight in lb/ft³?
In density units the pound is a pound of mass (the avoirdupois pound, exactly 0.45359237 kg), so lb/ft³ is mass per volume, the same kind of quantity as kg/m³. The calculator gives a mass in pounds, which is what a scale reads, not a force. There are 16 ounces in a pound, and a US gallon holds 128 US fluid ounces or 231 cubic inches, which is 3.785412 liters.

How it works

Density ρ is mass m per volume V: ρ = m ÷ V, so m = ρ × V and V = m ÷ ρ. The two numbers you type are read as exact decimals, converted to SI (kg, m³ and kg/m³) with exact rational factors, combined, and converted to the unit you chose, and the result is rounded once, to 6 significant digits, for display (a rounded number is marked with "≈"). The factors come from exact definitions: 1 lb = 0.45359237 kg, 1 oz = 1/16 lb, 1 in = 0.0254 m, 1 ft = 12 in, 1 US gallon = 231 in³, 1 US fluid ounce = 1/128 gallon, 1 L = 1 dm³ = 0.001 m³ and 1 mL = 1 cm³ (NIST Special Publication 811 and NIST Handbook 44). The float-or-sink check compares the density with 1,000 kg/m³, the usual reference value for fresh water at about 4 °C (kg/m³); it treats the object as one uniform material and does not account for salt water, a hollow shape or a trapped air pocket. The material tables show each density to 3 significant digits and label it as a reference value (a standard value for the pure material at room temperature or the stated conditions) or a typical value (a material that varies with its grade, species, moisture or blend); typical values are indicative only, and your own material may differ. Everything else in the tables is computed from those values with the same conversions as the tool.

Sources

All convertersAll toolsHome & DIY calculators