# Milligrams to Grams (mg to g)

> Convert milligrams to grams: 1 mg = 0.001 g. Exact conversion factor, formula, 22-row table and worked examples, with JSON API and MCP access.

- Page id: `mg-to-grams` · Quantity: Mass (`mass`, base unit kg) · Tool: `convert_units`
- Canonical page: https://tttkmbb.com/conversion/mg-to-grams · This document: https://tttkmbb.com/conversion/mg-to-grams.md · JSON: https://tttkmbb.com/conversion/mg-to-grams.json (add `?value=` for a result)

## Formula

- `1 mg = 0.001 g`
- `grams = milligrams × 0.001`
- Reverse: `milligrams = grams × 1000`

The factor follows from the SI definitions of both units (NIST SP 811); values below are rounded to 6 significant figures, the API returns up to 12.

## Worked examples

- 5 mg = 0.005 g
- 12.5 mg = 0.0125 g
- 100 mg = 0.1 g

## Conversion table

| Milligrams (mg) | Grams (g) |
| --- | --- |
| 1 | 0.001 |
| 2 | 0.002 |
| 3 | 0.003 |
| 4 | 0.004 |
| 5 | 0.005 |
| 6 | 0.006 |
| 7 | 0.007 |
| 8 | 0.008 |
| 9 | 0.009 |
| 10 | 0.01 |
| 15 | 0.015 |
| 20 | 0.02 |
| 25 | 0.025 |
| 30 | 0.03 |
| 40 | 0.04 |
| 50 | 0.05 |
| 75 | 0.075 |
| 100 | 0.1 |
| 200 | 0.2 |
| 250 | 0.25 |
| 500 | 0.5 |
| 1000 | 1 |

## API

- `GET https://tttkmbb.com/api/v1/convert?value=5&from_unit=mg&to_unit=g` → unified JSON envelope with `result.values.result`, `formula`, `factor`, `sources`, `freshness`
- MCP: server `https://tttkmbb.com/mcp`, tool `convert_units` with `{"value":5,"from_unit":"mg","to_unit":"g"}`
- All mass units: https://tttkmbb.com/api/v1/units?quantity=mass · full converter: [Mass / Weight Converter](https://tttkmbb.com/conversion/mass.md)
- Authentication: none. Freshness: `static` (fixed conversion factors).

## FAQ

**How many grams are in one milligram?**

1 mg = 0.001 g. 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 milligrams to grams?**

Multiply the value in milligrams by 0.001: grams = milligrams × 0.001. For example, 5 mg = 0.005 g.

**How do I convert grams back to milligrams?**

Multiply by the inverse factor 1000 (milligrams = grams × 1000), or use the grams-to-milligrams page.

## Related conversions

- [Grams to milligrams](https://tttkmbb.com/conversion/grams-to-mg.md) (reverse)
- [Kilograms to Pounds](https://tttkmbb.com/conversion/kg-to-lbs.md)
- [Pounds to Kilograms](https://tttkmbb.com/conversion/lbs-to-kg.md)
- [Grams to Ounces](https://tttkmbb.com/conversion/grams-to-oz.md)
- [Ounces to Grams](https://tttkmbb.com/conversion/oz-to-grams.md)
- [Kilograms to Stone](https://tttkmbb.com/conversion/kg-to-stone.md)
- [Stone to Kilograms](https://tttkmbb.com/conversion/stone-to-kg.md)
- [Pounds to Ounces](https://tttkmbb.com/conversion/lbs-to-oz.md)
- [Ounces to Pounds](https://tttkmbb.com/conversion/oz-to-lbs.md)

## Data Sources

- NIST Special Publication 811 – Guide for the Use of the International System of Units (SI), Appendix B conversion factors — https://www.nist.gov/pml/special-publication-811 (standard, retrieved 2026-09-24)
- BIPM – The International System of Units (SI Brochure, 9th edition) — https://www.bipm.org/en/publications/si-brochure (standard, retrieved 2026-09-24)
- Wikipedia – Conversion of units — https://en.wikipedia.org/wiki/Conversion_of_units (reference, retrieved 2026-09-24)
