Convert Weight from Grams to Milligrams (g to mg)

Select a category and enter your values below

Single conversion

Gram to Milligram Conversion Formula

To convert from Gram (g) to Milligram (mg), use the following formula:

Milligram (mg)

= 1000× Gram (g)


Example

Let's convert 5 Gram (g) to Milligram (mg).

Using the formula:

5 × 1000 = 5000

Therefore, 5 Gram (g) is equal to 5000 Milligram (mg).

How many grams are in one milligram? One Milligram (mg) contains 0.001 Grams (g) — the inverse of the factor above. Multiplying by 1000 takes you from grams to milligrams; multiplying by 0.001 brings you back.

Put in words: one gram equals 1000 milligrams, so the gram is the larger unit of this pair. Converting between them never changes the amount of weight being measured — only the size of the unit you count it in.

What is a Gram (g)?

A gram (g) is a base unit of mass in the metric system. The plural form is grams.


Where Did the Gram Originally Come From?

The gram was initially defined in 1795 by the French National Convention.

Its first definition was based on the mass of one cubic centimeter of pure water at the temperature of its maximum density, which is approximately 4 degrees Celsius (4 °C).

This practical, water-based definition was a revolutionary step toward a standardized and universal system of measurement, moving away from the inconsistent and often confusing units of time.


Grams vs. Ounces: What's the Difference?

A gram is much smaller than an ounce, the standard unit of mass in the imperial and US customary systems.

One ounce equals approximately 28.35 grams, which is why grams are preferred for scientific work and for measuring small amounts, such as spices or medicine.

The metric system's decimal structure (for example, 1,000 grams in a kilogram) also makes calculations simpler than in the imperial system.


How Is the Gram Defined Today?

Although the gram was once tied to water, it's no longer linked to any physical object.

Since 2019, the kilogram — and therefore the gram — is defined by a fundamental constant, the Planck constant (h).

That shift makes the unit stable and reproducible in any properly equipped laboratory, without relying on the old International Prototype of the Kilogram.


The Gram's Odd Position in SI

The gram is the unit people use, but it is not the one the system is built on. The kilogram is the SI base unit of mass — the only base unit whose name carries a prefix.

This is a historical accident with practical consequences. Because the base unit already contains "kilo", SI prefixes are stacked on the gram rather than the kilogram: a millionth of a kilogram is a milligram, not a "microkilogram". The rule to remember is that prefixes always attach to gram, so the ladder runs microgram → milligram → gram → kilogram → megagram, where a megagram is what almost everyone calls a tonne.


Grams in Cooking and Nutrition

The gram's dominance in the kitchen comes from a property the imperial system cannot match: it measures mass, not volume.

A cup of flour can vary by 20% depending on whether it was scooped or spooned and how much it has settled; 120 grams of flour is 120 grams every time. This is why baking recipes — where ratios decide whether a dough works — moved to grams long before general cooking did, and why kitchen scales displaced measuring cups in professional practice.

Nutrition labelling relies on the same unit worldwide. Macronutrients are declared in grams per serving or per 100 g, with sodium and micronutrients in milligrams and vitamins often in micrograms. The per-100-gram convention exists specifically so that two products in different package sizes can be compared directly, without arithmetic.

What is a Milligram (mg)?

A milligram, abbreviated as mg, is a tiny unit of mass in the metric system.

It's equal to one-thousandth of a gram (0.001 g). While incredibly small, the milligram plays a massive role in our daily health, from the medicine we take to the food we eat.


Milligrams in Medicine: Ensuring Safe Dosages

The milligram (mg) is a critical unit of measurement for quantifying the active ingredients in medications. Its small size allows for the precise dosage needed to make a drug effective and safe.

Why is dosage in mg so important?

  • Effectiveness: The right milligram amount ensures the medicine works as intended.
  • Safety: Even a slight dose error, such as a few milligrams off, can lead to harmful side effects or render the treatment ineffective.

You'll see milligram (mg) dosages clearly listed on standard medications, such as aspirin, ibuprofen, and prescription pills.


Milligrams on Nutrition Labels: Tracking Your Diet

When you read a nutrition facts label, you'll see many vitamins and minerals listed in milligrams (mg).

Essential nutrients like Vitamin C, iron, calcium, and sodium are all measured in mg to help you understand your daily intake. For example, the recommended daily allowance of Vitamin C for an adult is around 75-90 mg. Understanding these measurements is key to maintaining a balanced and healthy diet.


How Small Is a Milligram? Visualizing the Unit

It can be difficult to picture just how small a milligram is. Here's a simple way to visualize it:

  • A single grain of table salt weighs about one milligram.
  • A small grain of sand also weighs approximately one milligram.

The name itself gives a clue: it combines the Latin prefix "milli" (meaning "thousandth") with the base unit, gram. This means there are 1,000 milligrams in one gram.

Gram to Milligram Conversion Table

Here are some quick reference conversions from Gram (g) to Milligram (mg):

GramsMilligrams
0.000001 g0.001 mg
0.001 g1 mg
0.1 g100 mg
1 g1000 mg
2 g2000 mg
3 g3000 mg
4 g4000 mg
5 g5000 mg
6 g6000 mg
7 g7000 mg
8 g8000 mg
9 g9000 mg
10 g104 mg
20 g20000 mg
30 g30000 mg
40 g40000 mg
50 g50000 mg
100 g105 mg
1000 g106 mg
10000 g107 mg