Mg to Ml Converter

Convert milligrams to millilitres and back. Enter a substance's density or a label concentration, and get an exact result with the formula shown.

Direction
How should the conversion work?

Your result will appear here

Enter an amount and a density or concentration, then press Convert.

Get a real answer, not a guess

Searching “mg to ml” alone turns up conflicting numbers, because the right answer depends on what liquid you're measuring. This converter asks for the one piece of information that actually matters — density or concentration — so the result fits your specific liquid instead of assuming it behaves like water.

Density mode · Concentration mode · Both directions

Why use this mg to ml converter?

Built-in substance list

Water, milk, honey, cooking oil, alcohol, and other common liquids are ready to pick, each with a tested density figure.

Medicine concentration mode

Enter the dose and volume from a label, such as 250 mg per 5 mL, and convert a prescribed dose straight to a volume to measure.

Shows the formula

Every result comes with the exact calculation underneath, so you can double-check it by hand or explain it to someone else.

Works both ways

Convert milligrams to millilitres or millilitres back to milligrams from the same screen, without resetting anything.

How this Mg to Ml Converter works

Milligrams measure weight. Millilitres measure volume. Nothing links the two automatically — a gram of feathers and a gram of lead both weigh a gram, but they take up very different amounts of space. The bridge between weight and volume is density: how much one millilitre of a specific liquid weighs.

This converter asks for that missing piece before it does any maths. In density mode, pick a substance from the list — water, milk, honey, cooking oil, and a handful of others — or type your own figure in grams per millilitre if you have a more exact one. In concentration mode, built for medicine and diluted solutions, enter the dose and volume printed on the label, such as 250 mg per 5 mL, and the converter works out the ratio for you.

Once it has that number, the conversion itself is simple division or multiplication. Converting milligrams to millilitres divides the weight by the concentration; converting millilitres to milligrams multiplies the volume by it. The result always comes with the formula shown underneath, so you can see exactly which numbers went in and check the arithmetic against your own working.

A quick reference table below the result also converts a handful of common weights at the density you picked, so you can scan several amounts at once instead of typing each one separately.

Switching the direction, the substance, or the concentration updates everything immediately. Nothing is submitted or uploaded — the whole calculation runs as plain JavaScript in your browser.

How to use this Mg to Ml Converter

1

Enter your amount

Type the number in milligrams or millilitres and pick which direction you need: mg to mL, or mL to mg.

2

Set the density or concentration

Pick a substance from the list, type your own density, or enter a label concentration such as 250 mg per 5 mL.

3

Read the result

The converted amount appears with the formula underneath, so you can check the numbers yourself.

Example Usage

Converting a weight measurement into the volume it takes up in honey:

Input
500 mg, substance: Honey (1.42 g/mL)
Output
0.352 mL Formula: mL = mg ÷ (density × 1000) = 500 ÷ (1.42 × 1000)

Frequently Asked Questions

Why can't I just convert mg to ml directly, like other units?
Milligrams measure weight and millilitres measure volume, and there's no fixed rule connecting the two. A millilitre of water and a millilitre of honey don't weigh the same, so you need to know how much the liquid weighs per millilitre — its density — before the conversion means anything.
What density should I use if I don't know the exact one?
For water-based liquids such as juice, diluted syrup, or most household liquids, water's density of 1.00 g/mL is a close estimate. For anything thicker, like honey or oil, pick the closest preset in the list. If accuracy matters, check the product label or a safety data sheet for the exact figure.
How many ml is 500 mg?
It depends on the liquid. For water, 500 mg works out to 0.5 mL, since water weighs 1 gram (1000 mg) per millilitre. For honey, which is denser, 500 mg is closer to 0.35 mL. Select the matching substance in the converter to get the right figure for your liquid.
How do I convert a medicine dose using the concentration on the label?
Switch to concentration mode and enter the two numbers printed on the bottle, such as 250 mg per 5 mL. Then type the prescribed dose in milligrams under mg to mL, and the converter divides it by the label concentration to give you the volume to measure out.
Is this calculator safe to use for my child's medicine dose?
The arithmetic is correct, but it isn't medical advice. Always use the concentration printed on the packaging or given by your pharmacist, and have a doctor or pharmacist confirm the dose before giving medicine to a child.
What's the difference between density and concentration here?
Density describes a pure liquid, like how much 1 mL of honey weighs. Concentration describes a mixture, like how many milligrams of an active ingredient sit in every 5 mL of syrup. Use density mode for plain liquids and concentration mode for medicines or diluted solutions.
Can I use this for essential oils, e-liquid, or cooking?
Yes. Pick the closest density preset, or enter your own figure if you know it, such as from a product data sheet. The same formula applies to any liquid, medical or otherwise.
Why does honey weigh more than water at the same volume?
Honey is roughly 80% sugar, and sugar molecules pack more tightly than water molecules do. That makes a millilitre of honey heavier than a millilitre of water, so the same weight of honey takes up less space than the same weight of water.
Does temperature change the mg to ml conversion?
A little. Liquids expand slightly when warm and contract when cold, which shifts density by a small amount. For everyday conversions, such as cooking or a household dose, that difference is too small to matter. Lab work should use the density measured at the actual temperature.
Can I convert a percentage shown on a cream or gel label?
Yes, once you convert the percentage to a concentration first. A label showing 1% means 10 mg of active ingredient per mL, and 2.5% means 25 mg per mL. Enter that figure as the label amount over 1 mL in concentration mode.
Is any of my data sent to a server?
No. The conversion runs in your browser using plain JavaScript. Nothing you type is uploaded, stored, or shared with anyone.

Related Tools

The Mg to Ml Converter is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

Comments

Questions, corrections, and useful tips are welcome. Comments are reviewed before publication.

Loading comments...

Comments are stored and moderated using Cusdis Cloud. Email is optional. Privacy Policy

As featured on

CodeItBro - Free dev tools + practical guides to help you ship faster | Product HuntCodeItBro - Free Online Developer Tools badgeCodeItBro badge