By Mian Ali Khalid · Published · Updated · How we build and test tools
How to use the milligrams to grams converter
- Enter a value in the Milligrams field to convert mg to grams, or use the Grams field to go the other way.
- The result updates automatically as you type.
- Use the output for dosing, lab work, or recipe adjustments.
How the conversion works
The metric system defines one gram as exactly 1000 milligrams. The prefix milli means one thousandth, so a milligram is one thousandth of a gram. To convert mg to grams, divide the milligram value by 1000:
grams = milligrams / 1000
To convert grams to milligrams, multiply by 1000:
milligrams = grams * 1000
For example, a standard paracetamol tablet contains 500 mg. Dividing by 1000 gives 0.5 grams. Conversely, 2.5 grams of salt multiplied by 1000 equals 2500 mg.
Common milligram and gram values
This table lists frequently encountered amounts when converting between milligrams and grams, especially in medicine and cooking.
| Milligrams (mg) | Grams (g) | Typical context |
|---|---|---|
| 1 | 0.001 | Trace chemical amount |
| 5 | 0.005 | Low-dose medication |
| 50 | 0.05 | Some antihistamines |
| 100 | 0.1 | Caffeine in espresso |
| 250 | 0.25 | Antibiotic capsule |
| 500 | 0.5 | Paracetamol tablet |
| 1000 | 1 | One gram exactly |
| 5000 | 5 | Teaspoon of sugar |
Why accurate mg to grams conversion matters
In pharmacology, confusing milligrams with grams can lead to a thousandfold dosing error. A prescription written as 0.5 g must be dispensed as 500 mg, not 5 mg or 5000 mg. Hospitals and pharmacies rely on precise unit conversion to prevent adverse drug events.
In analytical chemistry, reagents are often weighed in milligrams but recorded in grams for molarity calculations. A balance reading of 125 mg translates to 0.125 g before being used in concentration formulas. Even small rounding errors at this scale can shift experimental results.
Nutrition labels list sodium, vitamins, and minerals in both units depending on the quantity. Vitamin C might appear as 60 mg while total carbohydrates show in grams. Understanding the relationship between these units helps interpret dietary information correctly.
Milligrams in the metric system
The gram is the base unit of mass in the centimetre-gram-second system and a derived unit in the International System of Units (SI), where the kilogram serves as the base. The milligram sits three orders of magnitude below the gram. Going further down, micrograms (mcg) are one thousandth of a milligram, and nanograms are one millionth.
When working across multiple scales, it helps to convert everything to a single unit first. For instance, if you need to add 200 mg and 0.3 g, convert both to milligrams (200 mg + 300 mg = 500 mg) or both to grams (0.2 g + 0.3 g = 0.5 g) before summing. If you later need to convert larger quantities, tools like grams to pounds handle imperial conversions.
Common mistakes to avoid
The most frequent error when converting mg to grams is moving the decimal point in the wrong direction. Remember that milligrams are smaller than grams, so the gram number will always be smaller. Dividing by 1000 shifts the decimal three places to the left.
Another mistake is confusing milligrams (mg) with micrograms (mcg or ug). One milligram equals 1000 micrograms, so treating them as interchangeable introduces another factor-of-thousand error. Always check the abbreviation carefully on prescriptions and lab protocols.
Finally, do not round prematurely. In pharmaceutical compounding, 0.125 g should stay as 125 mg rather than being rounded to 130 mg unless the protocol explicitly allows it. Keep full precision through intermediate steps and round only at the final measurement.
Convert the other way and exact factor
1 milligram is exactly 0.001 grams. For example, 25 milligrams is 0.025 grams, and 25 grams is 25,000 milligrams. If you mainly start from grams, the dedicated G to MG Converter page opens with that direction and lists its own tables and common values.
Reading a nutrition label in milligrams
The FDA states Daily Values for many nutrients in milligrams, and each one converts by moving the decimal three places left.
| Nutrient | FDA Daily Value | In grams |
|---|---|---|
| Sodium | 2,300 mg | 2.3 g |
| Calcium | 1,300 mg | 1.3 g |
| Potassium | 4,700 mg | 4.7 g |
| Cholesterol | 300 mg | 0.3 g |
| Vitamin C | 90 mg | 0.09 g |
| Iron | 18 mg | 0.018 g |
Vitamin C at 90 mg is only 0.09 g, and iron at 18 mg is 0.018 g.
Worked example: a soup with 640 mg of sodium
A serving listing 640 mg of sodium holds 0.64 g. Against the 2,300 mg Daily Value it supplies 640 / 2300 = 27.8%. Three such servings give 1,920 mg, or 1.92 g, which is 83.5% of the day.
A common slip is mixing salt and sodium. A teaspoon of table salt weighs about 6 g (6,000 mg) in the King Arthur chart, but that figure is the mass of the salt, not the sodium listed on a label.
In gemstones the same unit appears: a metric carat is exactly 200 mg, so a 2.5 ct stone weighs 500 mg or 0.5 g.
A stepwise method for any milligram figure
Divide by 1,000 and check the result against a known size: 90 mg is 0.09 g, 18 mg is 0.018 g, 1,300 mg is 1.3 g and 4,700 mg is 4.7 g. The reverse, grams to milligrams, multiplies by 1,000, so the 6 g teaspoon of table salt in the King Arthur chart is 6,000 mg. A carat of 200 mg sits between the two scales: a 1 ct stone is 0.2 g, and a 100 mg stone is half a carat.
Worked examples
| Example | Input | Result |
|---|---|---|
| Common tablet dose | Milligrams (mg): 500 | Grams: 0.5 |
| One gram in mg | Grams (g): 1 | Milligrams: 1,000 |
| Small lab sample | Milligrams (mg): 25 | Grams: 0.025 |
| Quarter gram | Grams (g): 0.25 | Milligrams: 250 |
FAQ
How many milligrams are in one gram?
There are exactly 1000 milligrams in one gram. To convert grams to milligrams, multiply the gram value by 1000.
How do I convert mg to grams?
Divide the number of milligrams by 1000. For example, 250 mg divided by 1000 equals 0.25 grams.
Is 500 mg the same as 0.5 grams?
Yes. Since 1000 mg equals 1 gram, 500 mg is exactly half a gram, or 0.5 g.
What is the difference between mg and mcg?
A milligram (mg) is one thousandth of a gram, while a microgram (mcg) is one millionth of a gram. There are 1000 micrograms in one milligram.
Why do medicines use milligrams instead of grams?
Most active drug ingredients are effective in very small amounts. Using milligrams avoids long strings of leading zeros after the decimal point, reducing the risk of reading errors.
Can I use this converter for cooking measurements?
Yes, though kitchen recipes more commonly use grams or ounces. When a recipe calls for small quantities like saffron or food coloring, milligrams may be specified.
How many milligrams is half a gram?
500 mg, because 1 g is 1,000 mg.
Is the FDA sodium Daily Value in grams or milligrams?
Milligrams: 2,300 mg, which is 2.3 g.
Sources and references
- NIST Guide to the SI, Chapter 4: The Two Classes of SI Units and the SI Prefixes: SI prefixes: kilo = 10^3, centi = 10^-2, milli = 10^-3.
- FDA: Daily Value on the Nutrition and Supplement Facts Labels: Daily Values in mg for sodium, calcium, potassium, vitamin C, iron and cholesterol.
- King Arthur Baking: Ingredient Weight Chart: Grams per cup, tablespoon or teaspoon for flour, sugar, salt, butter, honey, water, milk, cocoa and baking powder.
- Wikipedia: Carat (mass): Metric carat of 200 mg, 100 points, 1907 adoption and the earlier 205 mg proposal.