Milligrams to grams

Type a value in milligrams to see it in grams straight away, or type in the second box to convert back.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Type the value in the milligrams box.
  2. Read the result in grams as you type, and pick the precision you need.
  3. Swap the direction to convert back, or copy the result.

How it is calculated

g = mg × 0.001

Multiply the value in milligrams by 0.001 to get grams.

Example

To convert 25 mg to grams: 25 × 0.001 = 0.025 g.

Conversion table

Milligrams (mg)Grams (g)
10.001
20.002
30.003
50.005
100.01
200.02
250.025
500.05
1000.1
2500.25
5000.5
1,0001

About the units

Milligram
One thousandth of a gram, used for medicine and supplement doses.
Gram
One thousandth of a kilogram, the usual unit for weighing gold and food.

Limits and caveats

  • Results are rounded for display and computed with the browser's floating point precision (about 15 significant digits).
  • Both unit factors are exact by their official definitions.

Questions about this tool

How many grams are in one milligram?

1 mg = 0.001 g exactly.

How do I convert milligrams to grams?

Use g = mg × 0.001. For example, 25 mg = 0.025 g.

How many milligrams are in one gram?

1 g = 1,000 mg.

Are mass and weight the same thing?

Strictly no: mass is the amount of matter, in kilograms, while weight is the force of gravity on it, in newtons. Scales display mass, so everyday language uses the two words interchangeably.

What is the difference between an ounce and a troy ounce?

An ordinary ounce is 28.349523125 grams and is used for food and goods, while a troy ounce is 31.1034768 grams and is used to price gold and silver.