Liquids in the lab and the kitchen
Density in grams per milliliter is the form used for liquids on reagent bottles, in pharmacy references and in recipes that go by weight. A supplier sheet or a standard may give the same number in kilograms per cubic meter. This page converts the SI form to the one that matches a pipette, a graduated cylinder or a measuring cup. With the density in g/mL, you can turn a measured mass into a volume or a volume into a mass with one multiplication or division. The menu includes related units such as kg/L and lb/ft³ for other cases, but this page is built around the lab and kitchen habit of working in milliliters.
A milliliter is a cubic centimeter
The liter is defined as exactly one cubic decimeter, so one milliliter equals one cubic centimeter. That makes the factor from kg/m³ the same as for g/cm³. A kilogram is 1,000 grams and a cubic meter is 1,000,000 milliliters, so the net factor is 1,000 divided by 1,000,000, or 0.001. Reverse it by multiplying by 1,000, so 0.789 g/mL becomes 789 kg/m³. Water at about 4 degrees Celsius is close to 1 g/mL, so a liquid with a value above 1 sinks in water and one with a value below 1 floats on it, provided the two do not mix.
Checking 1,000 kg/m³ against 1 g/mL
The page opens on 10 kg/m³ and returns 0.01 g/mL. No liquid has such a low density, but the figure shows the arithmetic cleanly. A more useful test is to type 1,000 and see 1, which matches the density of water. After that, a value such as 1,030 should return 1.03 and 789 should return 0.789. If the output is larger than the input, the units are reversed. Another check is the reverse trip: 0.915 g/mL should come back as 915 kg/m³, which confirms that nothing was lost to rounding. Because the factor is a simple shift of the decimal point, you can check any result mentally. The output shows as many digits as the calculation gives, so round to the precision of your source.
Everyday liquids
Typical values give a sense of the range. Cow milk is about 1,030 kg/m³, which is 1.03 g/mL. Olive oil is about 915 kg/m³, or 0.915 g/mL, and floats on water. Honey is about 1,420 kg/m³, or 1.42 g/mL, and sinks in it. Ethanol at 20 degrees Celsius is about 789 kg/m³, or 0.789 g/mL. Seawater is about 1,025 kg/m³, or 1.025 g/mL. Each is a typical figure that varies with temperature, composition and brand, so use the label or the datasheet for the exact product. The conversion handles the unit and leaves the physical value to the source.
From grams to milliliters on a lab bench
A common bench task is measuring a liquid by weight and needing the volume. If a method calls for 50 g of ethanol at 0.789 g/mL, the volume is 50 / 0.789, about 63.37 mL. A table that lists 789 kg/m³ needs the conversion before this step. Working the other way, 100 mL of milk at 1.03 g/mL has a mass of 103 g. Weighing is usually more accurate than reading a meniscus, which is why many labs prefer it. Pipettes and burettes carry their own tolerance, and a balance with a resolution of 0.01 g adds very little uncertainty to a 50 g sample. Note the temperature of the liquid, since density changes with it, and use the value that matches your conditions.
Cooking by weight
Recipes that use grams for liquids rely on density. A US cup is about 236.6 milliliters. Filled with honey at 1.42 g/mL, it holds about 336 g, which is far more than the 237 g of an equal volume of water. Bakers who follow a metric recipe can use this relationship to replace a volume measure with a scale reading. Olive oil at 0.915 g/mL gives about 216.5 g for a US cup, which is why a cup of oil weighs less than a cup of water, about 236.6 g. A density in kg/m³ from a food science reference gets converted here first. Remember that syrups and oils shift with temperature, so a warm sample measures a little less per milliliter than a cold one.
Heavy liquids such as mercury
Density in g/mL reaches large values for dense liquids. Mercury at 20 degrees Celsius is about 13,534 kg/m³, which converts to 13.534 g/mL. A 10 mL sample would then weigh about 135 g, which surprises people who expect a small volume to feel light. Mercury handling is restricted in many places, so the figure appears mostly in older instrument manuals and physics tables. The conversion is the same for every liquid. Only the input changes, and the output keeps the same relative precision as the source value.
Sugar syrups and brewing
Home brewers and candy makers measure sugar concentration through density. Wort with a specific gravity of 1.050 has a density near 1,050 kg/m³, which converts to 1.05 g/mL, and a sample of 250 mL then weighs about 262.5 g. The extra weight over plain water comes from dissolved sugar. A refractometer or hydrometer reading may be listed as specific gravity, degrees Plato or Brix, so decide which one your source uses before converting. This page handles only mass density in kg/m³ turned into g/mL. A reading in specific gravity is already close to g/mL when the reference is water, so it needs no conversion, only the temperature correction that the instrument maker supplies.
What the conversion cannot do
This page changes the unit of a density. It does not look up a substance, adjust for temperature, or distinguish a liquid from a suspension or foam. Mixtures such as milk and honey vary by product, and solutions change density with concentration. Fat content moves the figure for milk, and water content moves it for honey, so two jars on one shelf can differ in the third digit. A label that lists nutrition per 100 mL is a reminder that volume is the common basis, and a density lets you move to grams. For regulated work such as pharmacy compounding or lab accreditation, use the density stated in your method and its reference temperature. The converter supplies the arithmetic only.