Grams to Milliliters (Density) Calculator
Convert a mass in grams to a volume in milliliters using the substance density — the correct way, since grams and millilitres only match for water.
How it works
Volume (mL) = mass (g) ÷ density (g/mL)
Grams measure mass and millilitres measure volume, so a direct swap only works for water, whose density is almost exactly 1 g/mL. For anything else you must divide the mass by the density: a lighter liquid like ethanol takes up more volume per gram, while a denser one like glycerol takes up less. Density itself changes a little with temperature, so lab-grade work uses a value quoted at a stated temperature.
Worked example
Convert 100 g of ethanol (density 0.789 g/mL) to volume: 100 ÷ 0.789 = 126.7 mL. The same 100 g of water would be only 100 mL, because water is denser.
Sources: Density — Wikipedia
Frequently asked questions
Is 1 gram always 1 millilitre?
Only for water at room temperature, where the density is about 1 g/mL. For any other substance you must divide the mass by its density — ethanol, oil and syrup all give different volumes for the same gram count.
Where do I find the density value?
Densities are tabulated for common liquids and solids (water 1.0, ethanol 0.789, milk 1.03, olive oil 0.92 g/mL). Use a value quoted at the temperature you are working at, since density drops slightly as temperature rises.
Can I use this for solids?
Yes, the formula is the same, but a solid’s bulk (poured) density differs from its true density because of air gaps. Use true density for a single solid piece and bulk density for a powder or granules.
Related calculators
This calculator is for educational purposes. Double-check important results before acting on them.