Convert grams to milligrams

Enter a value in grams (g) to get milligrams (mg). One gram is 1,000 milligrams; one milligram is 0.001 grams.

✓ Runs in your browser — nothing uploaded Free, no sign-upNo watermark

How to use the Gram to milligram

  1. Type the number of grams.
  2. Click Convert.
  3. Read the result in milligrams, plus the same value in every other weight & mass unit.

g to mg formula

milligrams = grams × 1,000. To go the other way, grams = milligrams × 0.001 (see milligrams to grams).

Worked example

12 g × 1,000 = 12,000 mg.

Grams to milligrams conversion table

GramsMilligrams
0.1 g100 mg
0.5 g500 mg
1 g1,000 mg
2 g2,000 mg
3 g3,000 mg
5 g5,000 mg
10 g10,000 mg
20 g20,000 mg
25 g25,000 mg
50 g50,000 mg
100 g100,000 mg
250 g250,000 mg
500 g500,000 mg
1,000 g1,000,000 mg

About the gram

One thousandth of a kilogram; the kitchen and postal unit across the metric world.

About the milligram

One thousandth of a gram. Medicine doses and nutrition labels use milligrams.

Related conversions

milligrams to grams · grams to ounces · any unit.

Frequently asked questions

How many milligrams in a gram?

1,000 milligrams.

How many grams in a milligram?

0.001 grams.

Is the factor exact?

The factor 1,000 is derived from the units' exact definitions; only the display is rounded.

Privacy

This tool runs entirely inside your browser using WebAssembly and the Canvas/File APIs. Your files are never uploaded to ToolFlint or any third party; you can verify this in your browser's network tab or by switching to airplane mode after the page loads. Read how we process files.

Last updated 2026-09-23.