Skip to converter

Convert grams to milligrams

One gram (g) equals 1000 milligrams (mg), so multiply grams by 1000 to get milligrams.

How it's calculated

  1. 1 g × 1000 = 1000 mg

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 grams to milligrams?

milligrams = grams × 1000

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

Gram to milligram conversion table

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

Reverse: 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

To convert grams to milligrams, multiply the number of grams by 1000. One gram equals 1000 milligrams, and one milligram equals 0.001 grams, so the relationship is fixed and exact. As a worked example, 10 g comes to 10000 mg. 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 gram values already worked out in milligrams, plus the reverse milligram to gram 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 you can multiply any number of grams by 1000 to get milligrams.

What is the formula to convert grams to milligrams?

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

How do I convert milligrams back to grams?

1 milligram equals 0.001 grams, 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 gram to milligram converter accurate?

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

API (static JSON with every factor)

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