The ml to grams conversion formula is: grams = milliliters × density, where density is in grams per milliliter (g/ml). For water at 4°C, density is 1 g/ml, so 1 ml equals 1 gram; for any other substance, you must know its density to convert accurately.
Formula
The core formula is:
m = V × ρ
- m = mass in grams (g)
- V = volume in milliliters (ml)
- ρ (rho) = density in grams per milliliter (g/ml)
This is just the standard density equation rearranged: density = mass / volume. Multiply both sides by volume to get mass = density × volume.
Worked Example
Using the calculator defaults: volume = 100 ml, density = 1 g/ml (water).
- Write the formula: m = V × ρ
- Plug in values: m = 100 ml × 1 g/ml
- Multiply: m = 100 g
The calculator returns 100.00 g, matching the hand calculation.
Why Density Matters
Milliliters measure volume (how much space something occupies), while grams measure mass (how much matter it contains). Two substances can occupy the same volume but have very different masses because their molecules are packed differently. For example, 100 ml of water weighs 100 g, but 100 ml of honey weighs about 140 g because honey is denser. Conversely, 100 ml of whipped cream weighs only about 50 g because it is full of air.
Density changes with temperature and pressure, though for most kitchen or lab purposes at room temperature the variation is small. Water is the standard reference: its density is almost exactly 1 g/ml at 4°C, and about 0.998 g/ml at 20°C. For everyday cooking, treating water as 1 g/ml introduces less than 0.2% error.
How to Find the Density You Need
You have three options to get density:
- Look it up in a table (common for cooking ingredients, chemicals, and metals).
- Measure it by weighing a known volume: put a container on a scale, tare it, add the liquid, and divide the mass by the volume.
- Use the label on packaged products – many list both volume and mass (e.g., a 500 ml bottle of oil may say “net wt 460 g”).
For cooking, here are approximate densities at room temperature (g/ml):
- Water: 1.00
- Milk: 1.03
- Vegetable oil: 0.92
- Honey: 1.42
- Olive oil: 0.91
- All-purpose flour (unsifted): 0.53–0.59
- Granulated sugar: 0.85
- Salt (table): 1.20
These are averages; actual values vary by brand, temperature, and how tightly a powder is packed.
Common Mistakes and How to Avoid Them
- Using 1 g/ml for everything: This only works for water. For oil, using 1 g/ml overestimates mass by about 8%; for honey, it underestimates by 30%.
- Confusing milliliters with liters: 1 liter = 1000 ml. If a recipe says 1 L of milk, that is 1000 ml, not 1 ml.
- Confusing grams with kilograms: 1 kg = 1000 g. A 2 kg bag of flour is 2000 g.
- Ignoring packing for powders: Flour density changes dramatically if sifted or packed. A cup of sifted flour weighs less than a cup of packed flour. Always use the density that matches your preparation.
- Rounding too early: If you round density to 1 for oil, your result is off by 8%. Keep at least two decimal places for density.
When to Use the Formula and When Not To
Use this formula whenever you need to convert a liquid or a powder from volume to mass for cooking, chemistry, or hobby projects. It is also the basis for converting between metric and imperial in recipes (e.g., 1 cup of butter ≈ 227 g, because butter density is about 0.96 g/ml and 1 cup = 237 ml).
Do not use this formula for gases (density varies wildly with pressure) or for substances that change volume when mixed (e.g., alcohol and water contract). Also, do not use it for weight in everyday language – weight is a force (newtons), but in cooking and commerce “grams” is used as mass.
Alternative: Using a Kitchen Scale
The most reliable method is to skip volume entirely and weigh ingredients directly. A digital kitchen scale measures grams precisely, removing all density guesswork. This is especially important in baking, where ingredient ratios are critical. When a recipe gives volumes, you can still use the scale by placing the measuring cup on the scale, zeroing it, and adding the ingredient until the target mass appears.
If you do not have a scale, the formula above is your best option, but be aware that powder densities vary widely. For flour, a common conversion is 1 cup (240 ml) ≈ 125 g, which gives a density of about 0.52 g/ml – but this assumes a specific scooping method.
Frequently Asked Questions
Is 1 ml always 1 gram?
No. 1 ml of water weighs 1 g only because water’s density is 1 g/ml. Any other substance has a different density, so 1 ml of it will weigh more or less than 1 g. For example, 1 ml of mercury weighs 13.6 g, while 1 ml of air at sea level weighs about 0.0012 g.
How do I convert ml to grams without a density table?
You can measure density yourself: weigh an empty container, add a known volume (e.g., 100 ml) of the substance, weigh again, subtract the empty weight, and divide by the volume. That gives you density in g/ml. Then use the formula.
What is the density of milk in g/ml?
Whole milk has a density of about 1.03 g/ml at room temperature. So 250 ml of milk weighs about 257.5 g. Skim milk is slightly higher, around 1.035 g/ml, because fat is less dense than water.
How many grams are in 500 ml of flour?
It depends on the flour’s density. All-purpose flour has a density of about 0.55 g/ml (unsifted). So 500 ml × 0.55 = 275 g. If the flour is packed, it could be 300 g or more. Always check the specific density for your flour type and preparation.
Does temperature affect the ml to grams conversion?
Yes, because density changes with temperature. Most liquids expand when heated, so their density decreases. For example, water at 4°C has a density of 1.000 g/ml, but at 80°C it is about 0.972 g/ml. For cooking, the difference is usually negligible, but for precise scientific work, you must control temperature.
Can I convert ml to grams for any liquid?
Yes, as long as you know the liquid’s density. The formula works universally. The challenge is finding accurate density data for uncommon liquids. For mixtures (like a sauce), you may need to estimate or measure the density directly.
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
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