Two ways of writing the same density

Density is mass divided by volume, and chemists, cooks and lab technicians usually give it in grams per milliliter, because the quantities they handle fit on a balance and in a graduated cylinder. Engineers, physicists and most reference tables use the SI unit, kilograms per cubic meter. The two units describe the same property at very different scales, and the conversion between them is one of the most frequently needed in practical work. This converter takes a density in g/mL and returns kg/m³ using the factor 1,000. The page also offers kg/L, g/cm³, lb/ft³ and lb/gal in the menus, but the pair here is the central one. Because the factor is a clean power of ten, you can do the conversion by moving the decimal point three places to the right, and the tool is there to confirm the answer and to handle awkward numbers.

Why the factor is exactly 1,000

A gram is one thousandth of a kilogram, so converting grams to kilograms divides by 1,000. A milliliter is one millionth of a cubic meter, since a cubic meter holds 1,000 liters of 1,000 milliliters each, so converting per-milliliter to per-cubic-meter multiplies by 1,000,000. Combined, the density number is multiplied by 1,000,000 divided by 1,000, which is 1,000. The milliliter is exactly one cubic centimeter, because the liter has been defined as exactly one cubic decimeter since 1964, and a cubic decimeter holds 1,000 cubic centimeters. That makes g/mL identical to g/cm³. The NIST conversion factor tables list the same relationship, and it is exact, with no rounding in the factor itself. Going the other way, from kg/m³ to g/mL, divide by 1,000.

The default example: 10 g/mL

The default input of 10 g/mL gives 10,000 kg/m³. That density sits in a realistic range for solids: silver is about 10.5 g/mL, so the default is a stand-in for a heavy metal rather than for any liquid. It is higher than most ordinary substances. Water, the reference liquid, is near 1 g/mL, and the great majority of plastics, woods and liquids sit below 2. The default is worth keeping in mind as an upper-middle value on the density scale: steel is about 7.85, copper about 8.96, lead about 11.34, gold about 19.3 and osmium, among the densest elements, about 22.6. Each of these multiplied by 1,000 gives the SI figure, so lead is 11,340 kg/m³ and gold is about 19,300 kg/m³. The values are typical handbook numbers at room temperature and vary slightly with alloy, purity and temperature.

Water as the anchor point

Water is the natural reference, and its density is the reason the gram-per-milliliter unit feels so intuitive. The original metric system defined the gram in terms of the mass of a cubic centimeter of water, so water was close to 1 g/mL by design. Modern definitions use fundamental constants, and water's density depends on temperature. It is greatest near 4 °C, at about 0.99997 g/mL, and falls to about 0.9982 g/mL at 20 °C. Multiplying gives about 999.7 and 998.2 kg/m³. For quick estimates the value 1,000 kg/m³ is entirely adequate, and it gives an easy mental check: any density in g/mL above 1 means the material sinks in water, any below 1 means it floats. Ice at 0.917 g/mL, or 917 kg/m³, floats. Seawater at around 1.025 sinks beneath freshwater, which matters for estuary mixing and for the buoyancy of ships.

Liquids and fuels

Liquids are the most common reason for converting from g/mL. Ethanol has a density near 0.789 g/mL at 20 °C, which is 789 kg/m³. Milk is about 1.03 g/mL, or 1,030 kg/m³. Mercury, the dense liquid used in old barometers and thermometers, is 13.5951 g/mL at 0 °C, which converts to 13,595.1 kg/m³; the conventional value is the one used to define the millimeter of mercury as a pressure unit. These are standard handbook values, and they shift by a fraction of a percent with temperature and composition. Density data for fuels and chemicals is often quoted at a stated reference temperature, such as 15 °C or 20 °C, so confirm the temperature when precision matters. Converting to kg/m³ lets you combine the figure with a tank volume in cubic meters to obtain a mass in kilograms directly, without any further unit change.

From density to mass in a tank

The usual reason to want kg/m³ is to multiply it by a volume in cubic meters. Consider a storage tank holding 12 cubic meters of ethanol at 0.789 g/mL. The SI density is 789 kg/m³, and the mass is 12 times 789, which is 9,468 kg. Without the conversion, you would have to turn 12 cubic meters into 12,000,000 milliliters and the answer into grams, a path with more room for slips. For solids the same logic applies. A steel plate of 0.02 cubic meters at 7.85 g/mL, or 7,850 kg/m³, has a mass of 157 kg. These sample values are illustrative, based on typical handbook densities, and real batches differ with temperature, grade and impurities. The pattern is simple: convert the density once, then multiply by volume in the SI unit, and the mass comes out in kilograms.

Gases and very low densities

Gas densities are much lower and are usually listed in g/L or kg/m³ rather than g/mL, but the conversion applies equally. Dry air at 20 °C and standard atmospheric pressure has a density of about 0.001204 g/mL, which is 1.204 kg/m³. Values this small show how many zeros appear in g/mL for gases, which is the reason tables switch to kg/m³ for them. Gas density depends strongly on temperature and pressure, so the number is only meaningful with those conditions attached. The converter handles the arithmetic regardless: it just multiplies by 1,000. If you are working with a gas, confirm that the reference conditions on your source match the conditions of your problem, because a density measured at 0 °C and one measured at 25 °C differ by about 9 percent, which is larger than any rounding in the conversion.

Common mistakes

The most frequent slip is moving the decimal in the wrong direction, giving 0.01 kg/m³ for a density of 10 g/mL. Sanity-checking against water helps: since water is 1,000 kg/m³, any real material heavier than water must have a larger number in kg/m³ than in g/mL. A second slip is treating g/L like g/mL. The units g/mL and kg/L give the same number, but g/L is 1,000 times smaller. Air at 1.204 g/L is the same as 1.204 kg/m³, but 1.204 g/mL would be a dense liquid. The third is ignoring temperature. A density quoted without a temperature may be off by a percent or more for liquids with a high thermal expansion. Finally, mixing density with specific gravity can cause trouble. Specific gravity is a ratio with no unit, relative to water, and multiplies by 1,000 only when the reference is water at a stated temperature.

Everyday and lab measurements

In a kitchen or a lab the milliliter is the natural volume and the gram is the natural mass, which makes g/mL the unit people measure. A 100 mL graduated cylinder filled with a liquid and placed on a balance gives mass in grams, and dividing by 100 gives density in g/mL. If the sample weighs 78.9 g, the density is 0.789 g/mL, which matches ethanol and converts to 789 kg/m³. To measure a solid with an irregular shape, you can weigh it and then find its volume from the water it displaces, a method attributed to Archimedes in the classic story of the crown. A 54 g piece that displaces 20 mL has a density of 2.7 g/mL, which is 2,700 kg/m³ and matches aluminum. Reading the balance to 0.1 g on a 20 mL sample limits the result to about three significant figures, so report it that way.

Reading specific gravity tables

Many reference tables list specific gravity, also called relative density, which is the ratio of a material's density to that of water. It has no unit. When the reference is water near 4 °C, the specific gravity is numerically almost identical to the density in g/mL, so a specific gravity of 2.7 means about 2.7 g/mL, or about 2,700 kg/m³. The slight difference comes from water being 0.99997 g/mL at 4 °C rather than exactly 1, which is well below the precision of most tables. If the table uses water at 20 °C as the reference, the numbers differ by about 0.2 percent. Hydrometers used for brewing, batteries and antifreeze read specific gravity directly, and multiplying by 1,000 gives the density in kg/m³ for a quick engineering estimate.

Temperature changes the input, not the factor

Density is a property that moves with temperature, and the conversion simply carries that movement along. Water at 20 °C is about 0.9982 g/mL, which is 998.2 kg/m³, while water at 25 °C is about 0.9970 g/mL, which is 997.0 kg/m³. Nothing in the factor of 1,000 changes between those two cases. A difference of 1.2 kg/m³ across five degrees is negligible for a garden pond and meaningful for a calibration laboratory. When a data sheet gives a density with no temperature, assume that it was measured near room temperature, and keep the uncertainty in mind when you carry the value into a calculation that needs better than about one percent.

Related units on this converter

The menu includes kg/L, g/cm³, lb/ft³ and lb/gal. The first two are numerically identical to g/mL, so selecting them returns the same value with a different label. The pound-based units are separate conversions. One pound per cubic foot is about 16.0185 kg/m³, so water at 1,000 kg/m³ comes to about 62.43 lb/ft³, a number common in US engineering. Pounds per gallon depends on which gallon is meant, and with the US gallon of 3.785411784 liters, water is about 8.345 lb/gal. If you are comparing a US data sheet with an international one, convert both to kg/m³ first. That removes the pounds, the cubic feet and the gallons from the comparison and leaves one unit that everyone reads the same way.