mg to mL Calculator: Convert Milligrams to Millilitres (with Every Formula)

July 09, 2026 • César Daniel Barreto

Milligrams measure weight. Millilitres measure volume. You can’t convert one to the other without knowing one more thing: how heavy the liquid is. Get that wrong and, for medicine, the mistake can be dangerous.

The calculator below does it correctly. Under it, every formula, a density table, and the one rule that keeps you safe with liquid medication.

mg ↔ mL converter

1 mL

Input is in mg, result in mL. For medicine, pick Liquid medication and enter the mg/mL printed on the label — not a density.

Why mg and mL aren’t the same thing

A milligram is a thousandth of a gram — a measure of mass. A millilitre is a thousandth of a litre — a measure of volume. Converting between them is like asking “how many kilograms is a metre.” You need a bridge, and the bridge is density: how much mass fits in a given volume.

People assume 1 mg = 1 mL because it’s roughly true for water, and it isn’t even true there. Water’s density is 1 gram per millilitre, which is 1000 milligrams per millilitre. So a thousand milligrams of water make one millilitre. Not one to one — a thousand to one.

The formulas, all of them

Every version of this conversion is the same single idea rearranged.

You haveYou wantFormula
mg (mass)mL (volume)mL = mg ÷ density(mg/mL)
mL (volume)mg (mass)mg = mL × density(mg/mL)
Density in g/mLDensity in mg/mLmg/mL = g/mL × 1000
mg and mLDensitydensity(mg/mL) = mg ÷ mL

That’s the whole thing. If you only ever remember one line, remember this: millilitres equal milligrams divided by how many milligrams sit in each millilitre.

Worked example, step by step

Say you have 2500 mg of olive oil and you want millilitres.

  1. Olive oil’s density is 0.918 g/mL. Multiply by 1000 to get mg/mL: 918 mg/mL.
  2. Divide your mass by that: 2500 ÷ 918 = 2.72 mL.

Try the same 2500 mg as water and you get 2.5 mL. Oil is lighter than water, so the same mass takes up more room. The density is doing real work here, not decoration.

Quick reference: water

Most everyday searches are really about water or something close to it. At water’s density (1000 mg/mL), the maths is just “move the decimal three places.”

MilligramsMillilitres (water)
1 mg0.001 mL
100 mg0.1 mL
250 mg0.25 mL
500 mg0.5 mL
1000 mg1 mL
5000 mg5 mL
10000 mg10 mL

Density table for common liquids

These are the numbers the calculator uses. Density shifts a little with temperature and, for things like honey or milk, with the exact product — treat them as solid working figures, not lab constants.

LiquidDensity (g/mL)Density (mg/mL)
Ethanol / alcohol0.789789
Cooking / olive oil0.918918
Water1.0001000
Sea water1.0251025
Milk (whole)1.0301030
Blood1.0601060
Glycerin1.2601260
Honey1.4201420
Mercury13.53413534

Liquid medicine is different — read this

Do not use density for medication. A liquid medicine’s label gives a concentration, not a density — how much active drug is dissolved in each millilitre. That number is what you divide by.

Here’s the thing that trips people up. If a bottle says 250 mg/5 mL, that means 250 milligrams of the drug in every 5 millilitres of liquid. Per millilitre, that’s 50 mg/mL. So a 250 mg dose is 5 mL — nowhere near the “0.25 mL” you’d get by treating it like water.

To do it right: read the concentration off the label, pick Liquid medication in the calculator, type that mg/mL figure, and it converts correctly. And for anything you actually swallow or inject, confirm the dose against the label or with a pharmacist. A converter is a helper, not a prescription.

The short version

mL = mg divided by density in mg/mL. Water is 1000 mg/mL, so a thousand milligrams of water is one millilitre. Other liquids need their own density, and medicine needs the concentration off its label — never a density, and never a guess.

César Daniel Barreto, Cybersecurity Author at Security Briefing

César Daniel Barreto

César Daniel Barreto is an esteemed cybersecurity writer and expert, known for his in-depth knowledge and ability to simplify complex cyber security topics. With extensive experience in network security and data protection, he regularly contributes insightful articles and analysis on the latest cybersecurity trends, educating both professionals and the public.

en_USEnglish