Grams to Milligrams

1 gram = 1,000 milligrams exactly. Type in either box; the other updates as you go.

Tier 0 · browser · unlimited
0.25 g = 250 mgmg = g × 1000 · shown to 6 significant figures
Precision

Grams and milligrams

The gram is one thousandth of a kilogram. Recipes, nutrition labels, postage and small parcels use grams.

The milligram is one thousandth of a gram. Medicine doses, vitamins and nutrients such as sodium and caffeine are labeled in milligrams.

Worked example

Convert 0.25 g: 0.25 × 1,000 = 250, so 0.25 grams is 250 milligrams. Likewise 0.1 g = 100 mg.

Estimating in your head

The factor is a power of ten, so just move the decimal point 3 places to the right: 0.25 g = 250 mg.

Going the other way

To convert milligrams to grams, divide by 1,000 (or multiply by 0.001). The swap button between the boxes opens that page.

How this works

mg = g × 1,000

1 g = 0.001 kg and 1 mg = 0.000001 kg, both by definition, so the factor is their ratio: 1,000 exactly. Results drop binary floating-point noise beyond 15 significant digits and display at the precision you choose (6 significant figures by default). Copy result copies the full value.

Frequently asked

How many milligrams are in a gram?

1 gram = 1,000 milligrams, exactly. The value follows from the unit definitions, so it never changes.

How do I convert grams to milligrams?

Multiply by 1,000. For example, 0.1 g × 1,000 = 100 mg.

What is 0.5 g in milligrams?

0.5 g = 500 mg. The table next to the converter lists more common values.

Is the result rounded?

Only on screen. The page computes with the exact definitions and removes floating-point noise past 15 significant digits; pick 3 to 12 significant figures, or use Copy result for the full value.

Sources

Reviewed Oct 17, 2026 · test vectors fixtures/units/mass/grams-to-mg/