Grams to Milligrams Converter: Simple, Fast, and Fun

The metric prefix relationship

"Milli-" means one-thousandth, so a milligram is 1/1000 of a gram by definition — the same relationship as millimeters to meters or milliliters to liters. To go from grams to milligrams, multiply by 1000: milligrams = grams × 1000.

Worked example

Enter 2.5 grams and the tool returns 2500 milligrams (2.5 × 1000 = 2500). For a smaller value like 0.05 g, you'd get 50 mg.

Where the precision matters

This scale of conversion is common in nutrition labels (sodium, iron, and vitamins are usually listed in mg) and lab or pharmacy contexts where doses are measured in milligrams but source material is weighed in grams. Because the multiplier is an exact power of 10, there's no rounding error at any input size — unlike imperial-to-metric conversions, which always carry some rounding.

Input check

Leave the field blank or type a non-numeric value and the tool raises a browser alert asking for a valid number rather than converting a blank or garbled input.