Skip to converter

Convert milligrams to grams

One milligram (mg) equals 0.001 grams (g), so divide milligrams by 1000 to get grams.

How it's calculated

  1. 1 mg ÷ 1000 = 0.001 g

Pairs you use or save show up here. They stay on this device.
Convert a list

Paste a column of numbers, one per line (tabs and semicolons also separate values). Each line keeps its place, so the results paste straight back next to your data.

Up to 1,000 values. Commas inside a number (2,54 or 1,000) are read as part of it.

How do you convert milligrams to grams?

grams = milligrams ÷ 1000

Last reviewed . Source: NIST Handbook 44, Appendix C: General Tables of Units of Measurement. How we convert

Milligram to gram conversion table

Milligrams to grams

MilligramsGrams
1 mg0.001 g
2 mg0.002 g
3 mg0.003 g
5 mg0.005 g
10 mg0.01 g
20 mg0.02 g
50 mg0.05 g
100 mg0.1 g
500 mg0.5 g
1000 mg1 g

Reverse: grams to milligrams

GramsMilligrams
1 g1000 mg
2 g2000 mg
3 g3000 mg
5 g5000 mg
10 g10000 mg
20 g20000 mg
50 g50000 mg
100 g100000 mg
500 g500000 mg
1000 g1000000 mg

To convert milligrams to grams, divide the number of milligrams by 1000. One milligram equals 0.001 grams, and one gram equals 1000 milligrams, so the relationship is fixed and exact. As a worked example, 10 mg comes to 0.01 g. Enter your own figure in the converter above to get an instant answer, or use the swap button to flip the direction. This is a mass conversion, and like every tool on UnitGlide it runs locally in your browser with no account or upload required. The table further down shows a range of common milligram values already worked out in grams, plus the reverse gram to milligram direction, which is handy for quick reference or double-checking a result by hand.

Frequently asked questions

How many milligrams are in a gram?

1 gram equals 1000 milligrams. The ratio is constant, so this figure holds for any quantity. Divide a number of milligrams by 1000 to get grams.

How many grams are in a milligram?

1 milligram equals 0.001 grams. The ratio is constant, so you can multiply any number of milligrams by 0.001 to get grams.

What is the formula to convert milligrams to grams?

1000 is the number to divide by: grams = milligrams ÷ 1000. UnitGlide applies this exact formula for every value, so results stay accurate across the whole range.

How do I convert grams back to milligrams?

1 gram equals 1000 milligrams, so multiply by that to go the other way. You can also press the swap button in the converter above to flip the direction in one click.

Is this milligram to gram converter accurate?

10 mg = 0.01 g here, worked out from internationally defined SI conversion factors, as maintained by the BIPM. All math runs in your browser, so nothing is rounded away on a server, and for everyday use the displayed precision is more than enough.

Related conversions

Embed this converter or use the API

Put this converter on your own site, or call the free JSON API. Full documentation is on the developers page.

Embed (iframe)

<iframe src="https://unitglide.net/embed/mg-to-g" width="360" height="200"
        style="border:1px solid #e2e6ec;border-radius:12px"
        title="Milligram to Gram converter"></iframe>
<p><a href="https://unitglide.net/convert/mg-to-g">Milligram to Gram Converter</a> by UnitGlide</p>

API (static JSON with every factor)

https://unitglide.net/api/v1/factors