Home › Unit Conversion › Grams to Milligrams
Grams to Milligrams (g to mg)
Convert grams to milligrams: 1 g = 1000 mg. Exact conversion factor, formula, 22-row table and worked examples, with JSON API and MCP access.
Formula
1 g = 1000 mg
milligrams = grams × 1000 — reverse: grams = milligrams × 0.001
The factor is derived from the SI definitions of both units (base unit: kg) as listed in NIST SP 811; results on this page are shown to 6 significant figures, the API returns up to 12.
Worked examples
- 5 g = 5000 mg
- 12.5 g = 12500 mg
- 100 g = 100000 mg
Grams to milligrams conversion table
| Grams (g) | Milligrams (mg) |
|---|---|
| 1 | 1000 |
| 2 | 2000 |
| 3 | 3000 |
| 4 | 4000 |
| 5 | 5000 |
| 6 | 6000 |
| 7 | 7000 |
| 8 | 8000 |
| 9 | 9000 |
| 10 | 10000 |
| 15 | 15000 |
| 20 | 20000 |
| 25 | 25000 |
| 30 | 30000 |
| 40 | 40000 |
| 50 | 50000 |
| 75 | 75000 |
| 100 | 100000 |
| 200 | 200000 |
| 250 | 250000 |
| 500 | 500000 |
| 1000 | 1000000 |
FAQ
How many milligrams are in one gram?
1 g = 1000 mg. The factor comes from the SI definitions of both units (NIST SP 811 / BIPM), so it is exact or correct to at least 10 significant figures.
What is the formula to convert grams to milligrams?
Multiply the value in grams by 1000: milligrams = grams × 1000. For example, 5 g = 5000 mg.
How do I convert milligrams back to grams?
Multiply by the inverse factor 0.001 (grams = milligrams × 0.001), or use the milligrams-to-grams page.
Related conversions
Machine access
- API:
GET https://tttkmbb.com/api/v1/convert?value=5&from_unit=g&to_unit=mg - MCP: server
https://tttkmbb.com/mcp, toolconvert_unitswith{"value":5,"from_unit":"g","to_unit":"mg"} - Markdown: https://tttkmbb.com/conversion/grams-to-mg.md · JSON: https://tttkmbb.com/conversion/grams-to-mg.json (add
?value=for a result) · Units: /api/v1/units?quantity=mass - OpenAPI operationId:
convert_units. Freshness:static. Authentication: none.