Format Code Now
/

Density Converter

CU-19

Type a density such as 1 g/cm3, 62.4 lb/ft3 or 8.34 lb/gal and see it in metric and imperial units. Exact factors, one value per line.

Runs in your browser. Nothing is uploaded.

Values, one per line

Converted

How to use it

  1. Type or paste one density per line, for example 1 g/cm3, 62.4 lb/ft3 or 17.1 gr/gal.
  2. Leave out the unit on a line to use the one chosen under "Unit when none is typed".
  3. Choose All units, or one unit under Show, and set the significant digits.
  4. Press Convert, then copy the result or download it as a text file.

Where the factors come from

Metric units are exact multiples of kg/m3: 1 g/cm3, 1 g/mL, 1 kg/L and 1 t/m3 are all 1000 kg/m3. Imperial units come from the exact pound (0.45359237 kg), foot (0.3048 m), inch (0.0254 m), US gallon (3.785411784 L), UK gallon (4.54609 L) and grain (64.79891 mg). A slug is 0.45359237 x 9.80665 / 0.3048 kilograms.

US gallons and UK gallons

A UK imperial gallon is about 20 percent bigger than a US gallon, so lb/gal and grains per gallon change a lot depending on which one is meant. The tool lists both and labels them. Plain gal on input is read as the US gallon, so write gal (UK) when you mean the imperial one.

What it does not do

The tool converts units only. Density depends on temperature and pressure, and the converter does not correct for either, so water is 1 g/cm3 only near 4 degrees Celsius. It also does not turn density into weight for a given volume. Superscripts such as cm³ and ^3 are accepted as input.

Error messages and what to do

MessageWhat it meansFix
Line 1: could not find a number at the start of "abc". Write a value such as 12.5 km, or just 12.5.The line does not start with a number, so there is nothing to convert.Start each line with a value such as 12.5, then the unit if you want one.
Line 2: unknown unit "parsec". Known units: kg/m³, g/cm³, mg/L, lb/ft³, lb/in³, lb/gal (US), lb/gal (UK), oz/in³, oz/gal (US), slug/ft³, gr/ft³, gr/gal (US), gr/gal (UK).The text after the number is not a density unit this tool knows.Use one of the units listed in the message.

Questions people ask

How do I convert g/cm3 to kg/m3?

Multiply by 1000. Water at about 4 degrees Celsius is 1 g/cm3, which is 1000 kg/m3. Type 1 g/cm3 into the tool and read the kg/m³ line.

How do I convert lb/ft3 to kg/m3?

Multiply by 16.01846337. For example 62.4 lb/ft³, which is roughly water, is about 999.5 kg/m³. The factor is exact: 0.45359237 kg per pound divided by 0.028316846592 m³ per cubic foot.

What is the density of water in lb/gal?

About 8.345 pounds per US gallon at 1 g/cm3, and about 10.02 pounds per UK gallon. The real density of water varies a little with temperature, which this tool does not model.

How do I convert g/mL to lb/gal?

Multiply g/mL by 8.3454, the number of US pounds per gallon at 1 g/mL. So 0.8 g/mL is about 6.68 lb/gal. Use the lb/gal (US) line, or lb/gal (UK) for the imperial gallon.

What are grains per gallon used for?

Grains per gallon (gpg) is a way to state water hardness and dissolved minerals. One grain per US gallon is about 17.12 mg/L. The tool converts it using the exact 64.79891 mg grain and the US or UK gallon.

What is a slug per cubic foot?

A slug is the mass that one pound of force accelerates at one foot per second squared, about 14.59 kg. A density of 1 slug/ft³ is about 515.38 kg/m³. It appears mostly in older US aerospace tables.

About this tool

Converts mass per volume. Metric units are exact multiples of kg/m3 (1 g/cm3 and 1 g/mL are both 1000 kg/m3). Imperial units come from the exact pound (0.45359237 kg), foot (0.3048 m), inch (0.0254 m), US gallon (3.785411784 L), UK gallon (4.54609 L) and the grain (64.79891 mg); a slug is 0.45359237 x 9.80665 / 0.3048 kilograms (one pound-force second squared per foot). Gallons are labelled US or UK because they differ by about 20 percent. Water density changes with temperature, and this tool does not apply any temperature or pressure correction. Superscripts such as cm³ work as input.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.