A grams-to-milliliters calculator converts a mass into a volume when you know the substance’s density. Enter the mass in grams and density in grams per milliliter (g/mL); the result is the corresponding volume in milliliters (mL).
Formula
Volume = mass ÷ density, or V = m / ρ.
- V is volume, in milliliters (mL).
- m is mass, in grams (g).
- ρ (rho) is density, in grams per milliliter (g/mL).
The result is in milliliters because dividing grams by grams per milliliter cancels the gram units: g ÷ (g/mL) = mL. To convert the answer to liters, divide milliliters by 1,000. This calculator accepts positive density values; the substance’s actual density must be supplied for a meaningful conversion.
Worked Example
Using the calculator’s default values, the mass is 100 g and the density is 1 g/mL.
- Start with V = m ÷ ρ.
- Substitute the values: V = 100 g ÷ 1 g/mL.
- Cancel grams: V = 100 mL.
- Convert to liters: 100 mL ÷ 1,000 = 0.100 L.
The calculator displays 100.00 mL and 0.100 L.
Why Density Is Needed
Grams and milliliters measure different things. A gram measures mass—how much matter an object contains—while a milliliter measures volume, or how much space it occupies. There is no single conversion factor that works for every material. Density supplies the relationship between the two: it describes the mass contained in a unit of volume.
For example, 100 g of a substance with density 0.8 g/mL occupies 125 mL, while 100 g at 2 g/mL occupies 50 mL. The same mass can therefore take up different volumes. A conversion that treats every gram as one milliliter is only appropriate when the density is about 1 g/mL under the relevant conditions.
Water is often used as a convenient approximation: around ordinary room conditions, its density is close to 1 g/mL. That makes 100 g of water close to 100 mL. But water’s density varies slightly with temperature, and many other liquids and solids differ substantially. For precise work, use a density value that matches the specific material and conditions.
How to Find the Right Density
Look for density in a reliable reference for the material, or calculate it from known mass and volume using ρ = m ÷ V. A product’s ingredient list or package may not state density. If it does not, do not assume that the material has water’s density.
- Use the value for the correct substance or mixture. Syrup, oil, flour, and granulated sugar do not share one density.
- Check the units. This calculator requires g/mL; a density stated in kg/m³ must be converted first. Since 1 g/mL = 1,000 kg/m³, divide a kg/m³ value by 1,000 to express it in g/mL.
- Consider temperature when the source provides temperature-specific values. Liquids generally expand or contract as temperature changes, affecting density.
- For powders and grains, distinguish the density of the material itself from bulk density, which includes air gaps between particles. The appropriate value depends on how the volume is defined.
Using the Result in Cooking and Other Tasks
A mass-to-volume conversion can help when a recipe gives an ingredient by weight but a measuring tool is marked in milliliters. It is most dependable when you have a suitable density for that ingredient. For dry ingredients, scooping and packing change the amount of air in a measured volume, so a generic density can give a different result from weighing the ingredient directly.
When a recipe provides a mass, weighing the ingredient is usually the direct way to match that quantity. The calculator does not turn grams into a universal kitchen volume such as cups or tablespoons; it returns milliliters based on the density you enter. To convert milliliters to another volume unit, use the appropriate separate unit conversion.
The same principle applies outside cooking: the calculator converts mass to volume, not one kind of material into another. It does not identify an unknown substance, measure density, or account for a container’s shape. Use it when density is known and a volume estimate is what you need.
Common Errors and Limits
- Assuming 1 g always equals 1 mL: this confuses mass and volume. The shortcut only approximates materials whose density is near 1 g/mL.
- Reversing the operation: to find volume, divide mass by density. Multiplying mass by density does not produce milliliters.
- Mixing units: grams with density in kg/m³ will not give the correct result unless the density is converted to g/mL first.
- Rounding too early: keep extra digits in the density and intermediate calculation, then round the displayed volume to the precision your task requires.
The displayed answer is rounded to two decimal places, but the actual precision cannot exceed the quality of the mass and density inputs. A density from a general reference may be an approximation, and the calculator cannot correct for variation in composition, temperature, packing, or measurement technique.
Frequently Asked Questions
How many milliliters are in one gram?
There is no fixed number for all substances. For a material with density 1 g/mL, one gram corresponds to one milliliter; otherwise, use volume = grams ÷ density.
How do I convert grams to mL without density?
You cannot calculate a dependable volume from mass alone. Find the material’s density in g/mL, or measure its mass and volume to determine density first.
Is 100 g the same as 100 mL?
Only approximately for a substance with density near 1 g/mL, such as water under ordinary conditions. For other materials, 100 g may occupy a different volume.
How do I convert g/mL to kg/m³?
Multiply the density in g/mL by 1,000. For instance, 0.8 g/mL equals 800 kg/m³.
Can I use this formula for powders?
Yes, if you have a density appropriate to the way the powder is measured. Bulk density includes spaces between particles, so packing and settling can affect volume estimates.
Related
Formula used
in g | Mass | g | 100 | 0 in den | Density | g/mL | 1 | 0.000001 out ml | Volume | mL | g / den | 2 out l | Volume | L | g / den / 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
- ML to Gram Conversion Calculator for Cooking100.0 g
- 5 Grams to mL Conversion Calculator: Formula & Examples5.00 mL
- Catering Calculator: Food Per Person for Any Event22,500 g
- 100 Grams to Milliliters: Calculator and Ingredient Guide
- ML to G Calculator: Convert Milliliters to Grams100.00 g
- Catering Food Quantity Calculator and Portion Guide25.00 kg