A gram is the mass/weight equal to 1/1,000 of a kilogram and is roughly equivalent to the mass of one cubic centimeter of water.
The milligram is the mass equal to 1/1,000 of a gram.
Conversion of gram to milligram
Multiply the number of grams (g) by 1,000 to get milligrams (mg).
We have to convert 5 grams to milligrams.
We know, 1 g = 1000 mg
Thus, 5 g = 5 × 1000 = 5000 mg