mg to ml Conversion: Formula, Density & Worked Examples

Converting milligrams to millilitres trips everyone up, because the two units measure different things. This guide explains why you need density, gives you the exact formula, and walks through worked examples — or skip straight to the mg to ml converter.

Why mg and ml don't convert directly

Milligrams (mg) measure mass — how much stuff there is.Millilitres (ml) measure volume — how much space it takes up. A millilitre of honey weighs far more than a millilitre of air, so no fixed exchange rate exists. The bridge between mass and volume is density: mass per unit volume, usually written in g/ml.

That's why any mg to ml conversion must ask for what substance? A converter that doesn't ask is silently assuming water (density 1 g/ml) — fine for water-based liquids, wrong for everything else.

The mg to ml formula

In two steps: first turn milligrams into grams (divide by 1,000), then turn grams into millilitres (divide by density):

ml = mg ÷ 1,000 ÷ density (g/ml)

Going the other way: mg = ml × density × 1,000. For water the density is 1, so the formulas collapse to ml = mg ÷ 1,000 and mg = ml × 1,000.

Worked examples

Water: 500 mg of a water-based liquid → 500 ÷ 1,000 ÷ 1 = 0.5 ml.

Vegetable oil (density ≈ 0.92 g/ml): 1 g = 1,000 mg → 1,000 ÷ 1,000 ÷ 0.92 ≈ 1.087 ml. The same gram takes up more volume than water because oil is lighter.

Flour (density ≈ 0.55 g/ml, approximate): 2 g = 2,000 mg → 2,000 ÷ 1,000 ÷ 0.55 ≈ 3.64 ml. Flour's density varies with grind and how tightly it's packed, so treat flour conversions as estimates — weighing is better for baking.

Reverse: 2.5 ml of milk (density ≈ 1.03 g/ml) → 2.5 × 1.03 × 1,000 = 2,575 mg.

Quick reference table (water, density 1 g/ml)

MilligramsMillilitres
1 mg0.001 ml
5 mg0.005 ml
10 mg0.01 ml
25 mg0.025 ml
50 mg0.05 ml
100 mg0.1 ml
250 mg0.25 ml
500 mg0.5 ml
1,000 mg (1 g)1 ml

For any other substance, divide these figures by its density — or just use the converter, which does it for you.

A note on medicine dosing

mg to ml questions often come from medicine: "the prescription says 250 mg, the syringe measures ml." Do not use a generic converter for this. Every liquid medicine has its own concentration printed on the label (for example, 250 mg per 5 ml), and that is the only figure that matters. Always follow the label and your pharmacist or doctor's instructions. The converter and this guide are general information, not medical advice.

Related volume conversions

Two other common kitchen and travel conversions have their own dedicated tools. Millilitres to fluid ounces uses the US fluid ounce: 100 ml ÷ 29.5735 ≈ 3.38 fl oz. Litres to gallons needs care because the US liquid gallon (3.78541 litres) and the imperial gallon (4.54609 litres) still used in the UK differ by about 20% — 1 litre is 0.264 US gallons but only 0.22 imperial gallons.

Browse all our tools from the homepage, or see the full list of guides for more step-by-step explainers.

Sources & official guidance

Frequently asked questions

What is the formula to convert mg to ml?
ml = mg ÷ 1,000 ÷ density, where density is in g/ml. For water (density 1), it simplifies to ml = mg ÷ 1,000.
Is 1 mg equal to 1 ml?
No — not even for water. 1 mg of water is 0.001 ml. The "1 to 1" confusion comes from grams and millilitres: 1 gram of water is 1 ml, but a milligram is a thousand times smaller.
What density should I use for cooking conversions?
Water-based liquids: 1 g/ml. Milk: about 1.03. Vegetable oil: about 0.92. Flour: roughly 0.55, but it varies with grind and packing — for baking, weighing in grams is more reliable than converting. Our converter has these presets built in.
Can I use an mg to ml converter for medicine?
Only with extreme care. Liquid medicines state a concentration (e.g. 250 mg per 5 ml) — you must use that figure, not a generic converter. Always follow the label and your pharmacist or doctor. This site's converter is general information, not medical advice.
How do I convert ml back to mg?
Reverse the formula: mg = ml × density × 1,000. So 2 ml of water is 2 × 1 × 1,000 = 2,000 mg.

Related calculators & guides