grams to mg
Type any number of grams and see it in milligrams straight away; the converter below starts with 5 g.
What you type stays in your browser
5 g = 5,000 mg
5 g in other units
Results show up to six significant figures; the calculation uses exact unit definitions.
In short
1 gram equals 1,000 milligrams. To convert grams to milligrams, multiply by 1,000: 5 g × 1,000 = 5,000 mg.
grams to mg formula
The formula is milligrams = grams × 1,000, so every gram adds 1,000 milligrams to the result.
Written as a single factor, 1 g = 1,000 mg; the converter keeps the full precision of that factor and rounds only the final result.
Going back, 1 milligram = 0.001 grams, so multiply by 0.001 to turn milligrams into grams.
As a reference point, 100 grams make 100,000 mg, while 100 milligrams make 0.1 g.
Example: 5 g to milligrams
This is the conversion of 5 g to milligrams, worked through step by step.
- Multiply by 1,000: 5 × 1,000 = 5,000.
- Rounded for everyday use, 5 g = 5,000 mg.
grams to mg conversion chart
| grams | milligrams |
|---|---|
| 1 g | 1,000 mg |
| 2 g | 2,000 mg |
| 3 g | 3,000 mg |
| 4 g | 4,000 mg |
| 5 g | 5,000 mg |
| 6 g | 6,000 mg |
| 7 g | 7,000 mg |
| 8 g | 8,000 mg |
| 9 g | 9,000 mg |
| 10 g | 10,000 mg |
| 12 g | 12,000 mg |
| 15 g | 15,000 mg |
| 20 g | 20,000 mg |
| 25 g | 25,000 mg |
| 30 g | 30,000 mg |
| 40 g | 40,000 mg |
| 50 g | 50,000 mg |
| 60 g | 60,000 mg |
| 75 g | 75,000 mg |
| 100 g | 100,000 mg |
Frequently asked questions
How many milligrams are in a gram?
One gram is 1,000 mg. Turned around, one milligram is 0.001 g; the two factors multiply to exactly 1.
How many grams are in a milligram?
One milligram contains 0.001 g. To turn a number of milligrams into grams, multiply by 0.001; the calculation on this page simply runs it the other way.
How do I convert milligrams to grams?
Reverse the rule: multiply by 0.001. For example, 250 mg is 0.25 g.
What is 10 grams in milligrams?
10 g is exactly 10,000 mg.
Is the grams to mg conversion exact?
Yes. Both units have exact definitions, so the factor is exactly 1,000 and any difference you see comes only from rounding the result.
What are grams and milligrams?
A gram is one thousandth of a kilogram. Recipes, food packaging, letters and jewellery are weighed in grams in most countries.
A milligram is one thousandth of a gram. Medicine doses, caffeine content and nutrition labels for sodium or vitamins use milligrams.
Everyday values in grams and milligrams
Familiar weight values make it easy to check that a converted number is plausible.
- A sheet of A4 paper: 5 g = 5,000 mg
- A US nickel coin: 5 g = 5,000 mg
How your files stay private
This tool runs with JavaScript inside your browser tab. What you type, the settings you choose and the results stay in the page's memory and disappear when you close it. Nothing is sent to a server; a few display settings may be remembered in your own browser.
Related conversions
All weight conversions
- Weight converter
- kg to lbs
- lbs to kg
- grams to oz
- oz to grams
- lbs to oz
- oz to lbs
- kg to grams
- grams to kg
- grams to lbs
- lbs to grams
- mg to grams
- grams to mg
- mcg to mg
- mg to mcg
- kg to stone
- stone to kg
- stone to lbs
- lbs to stone
- kg to oz
- oz to kg
- tonnes to lbs
- lbs to tonnes
- tons to lbs
- lbs to tons
- tons to kg
- kg to tons
- tonnes to tons
- tons to tonnes
- tonnes to kg
- kg to tonnes
- carats to grams
- grams to carats
- grains to grams
- grams to grains
- grains to mg
- troy ounces to grams
- grams to troy ounces
- kg to stone and pounds
- kg to lbs and oz
Unit converter All unit converters
Last updated Nov 20, 2026