This calculator converts milliliters (ml) to grams (g) for any liquid or substance, but only when you know its density. You enter the volume in milliliters and the density in grams per milliliter, and you get the mass in grams instantly. The result is exact for water (1 ml = 1 g) and accurate for any other substance when you use its correct density.
Formula
The relationship between milliliters and grams is defined by density. The formula is:
Mass (g) = Volume (ml) × Density (g/ml)
Where:
- Mass is the amount of substance, measured in grams (g).
- Volume is the space the substance occupies, measured in milliliters (ml).
- Density is the mass per unit volume, measured in grams per milliliter (g/ml).
For pure water at 4°C (39°F), density is exactly 1.000 g/ml, which is why 1 ml of water weighs 1 g. For other substances, density varies—oil is less dense, honey is denser.
Worked Example
Using the default values from the calculator: you have 100 ml of water with a density of 1 g/ml.
- Start with the formula: Mass = Volume × Density
- Plug in the numbers: Mass = 100 ml × 1 g/ml
- Multiply: Mass = 100 g
The calculator shows 100.00 g, which matches. Now try 100 ml of cooking oil (density ≈ 0.92 g/ml): Mass = 100 × 0.92 = 92 g. The same volume weighs less because oil is less dense.
Why Density Matters
Many people assume 1 ml always equals 1 g, but that’s only true for water. Density is the bridge between volume and mass, and it changes with temperature and pressure for most substances. For example:
- Water at 4°C: 1.000 g/ml
- Milk: about 1.03 g/ml (slightly denser than water)
- Olive oil: about 0.91 g/ml
- Honey: about 1.42 g/ml
- Ethanol: about 0.789 g/ml
If you ignore density, you’ll be off by up to 40% for something like honey. In cooking, baking, or chemistry, that error can ruin a recipe or an experiment.
How to Find Density
You need the density of your specific substance. Here are reliable ways to get it:
- Label on the container: Many food products list density or specific gravity (density relative to water).
- Reference tables: Chemistry handbooks and reputable online databases list densities for pure substances at standard temperatures.
- Measure it yourself: Weigh a known volume on a kitchen scale. For example, weigh 100 ml of your liquid in a measuring cup, then divide the weight in grams by 100 to get density in g/ml.
- For mixtures: If you’re mixing substances, the density of the mixture is not a simple average—you need to measure it or look up a specific value.
Common Mistakes and Misconceptions
Here are the most frequent errors people make when converting ml to g:
- Assuming 1 ml = 1 g for everything: Only true for water at 4°C. For other liquids, this leads to significant errors.
- Confusing ml with mg: A milliliter is a volume unit; a milligram is a mass unit (1/1000 of a gram). They are not interchangeable without density.
- Using the wrong temperature: Density changes with temperature. Water at 100°C has a density of about 0.958 g/ml, not 1.0. For most everyday purposes, room temperature values are fine.
- Rounding too early: If you round density to 1.0 for milk (1.03), you get a 3% error. In baking, that can matter.
- Forgetting that solids have density too: You can convert ml to g for flour or sugar, but their densities are much lower than water (flour ≈ 0.5 g/ml, granulated sugar ≈ 0.85 g/ml).
Practical Applications
This conversion is used in many everyday situations:
- Cooking and baking: Recipes sometimes list liquids in ml (especially European recipes) but you only have a scale. For water, milk, or oil, use their densities.
- Nutrition tracking: Food labels often list serving sizes in ml (e.g., 100 ml of juice) but nutrition facts are per gram. Converting helps track calories accurately.
- Chemistry and lab work: Preparing solutions requires precise mass. If you measure a liquid by volume, you must convert to mass using density.
- DIY and home projects: Mixing paints, resins, or cleaning solutions often requires specific mass ratios. Density allows you to measure by volume instead of weighing.
- Medicine and supplements: Liquid medications often have a density close to water, but always check the label. Never guess with medication—use the provided measuring device.
Limitations of the Calculator
This calculator is accurate only if you input the correct density. It does not account for temperature-induced density changes, which can be significant for some liquids (like oils). For precise scientific work, you should use a density value measured at your actual working temperature.
Also, the density of a mixture is not a linear combination of its components. For example, mixing 50 ml water (50 g) with 50 ml ethanol (39.45 g) does not give you 100 ml of solution—the volume contracts. The mass would be 89.45 g, but the volume would be less than 100 ml, so the density is not simply 0.8945 g/ml. Always measure the actual density of your mixture.
Frequently Asked Questions
Is 1 ml of water always 1 gram?
Yes, for pure water at 4°C (its maximum density), 1 ml equals 1 g. At room temperature (20°C), water density is 0.998 g/ml, so 1 ml weighs 0.998 g—a negligible difference for most uses. At boiling (100°C), it’s 0.958 g/ml, which is a 4% difference.
How many grams is 500 ml of milk?
Milk has a density of about 1.03 g/ml. So 500 ml × 1.03 g/ml = 515 g. The exact value depends on fat content—whole milk is slightly less dense than skim milk.
Can I convert ml to grams for flour?
Yes, but you need the density of flour, which varies with how it’s packed. All-purpose flour has a density of about 0.5 g/ml when lightly spooned, but can reach 0.6 g/ml when packed. For accuracy, weigh flour instead of measuring by volume.
What is the difference between ml and grams?
A milliliter (ml) measures volume—how much space something takes up. A gram (g) measures mass—how much matter is in it. They are different physical quantities, so you can’t convert directly without knowing density. One ml of lead weighs much more than one ml of air.
Why does the calculator need density?
Because density is the conversion factor between volume and mass. Without it, you can’t know how heavy a given volume is. The calculator uses the formula mass = volume × density, so you must supply the density for your specific substance.
Is there a difference between milliliters and cubic centimeters?
No, 1 ml is exactly equal to 1 cubic centimeter (cc). They are two names for the same volume. So if you have a density in g/cm³, you can use it directly in this calculator.
Related
Formula used
in vol | Volume | ml | 100 | 0 | 1000000 in dens | Density | g/ml | 1 | 0 | 20 out mass | Mass | g | vol * dens | 2 out kg | Mass | kg | (vol * dens) / 1000 | 3
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Measuring Light Speed & Wavelength: How It Works
- Draco Race Blox Fruits: How to Get It
- ES File Explorer Tips & Tricks That Actually Work
- Remove Google FRP Lock on Oppo: Step-by-Step
- Forza Horizon 6: Unlock Legend Island & Earn Horizon Legend
- Clean Hair Dryer Filter: Improve Airflow