Skip to main content

Grams to Milligrams (g to mg)

Last updated:

Grams-to-milligrams conversions are the within-metric scale roll-down that translates gram-scale recipe, food-retail, bulk-pharmaceutical and bulk-chemical figures into the milligram-precision needed for per-tablet pharmaceutical dose-strength, per-capsule supplement formulation, per-100-g micronutrient declaration and trace-analysis sample handling. A 0.5 g per-tablet paracetamol API rolls down to 500 mg for the per-tablet dose-strength label; a 2.4 g daily sodium limit rolls down to 2400 mg for individual-food per-portion comparison; a 25 g per-bottle vitamin-C bulk-fill rolls down to 250 mg per capsule for the per-capsule formulation. The math is a clean three-decimal-place shift the other way (1 g = 1000 mg).

How to convert Grams to Milligrams

Formula

mg = g × 1000

To convert grams to milligrams, multiply the gram figure by 1000 — equivalently, shift the decimal three places to the right. The relationship is exact in metric SI and is fixed by the SI prefix system. For mental math, "g × 1000" lands the mg figure cleanly: 0.5 g is 500 mg, 2.4 g is 2400 mg, 25 g is 25,000 mg. The conversion is one of the cleanest in modern measurement and runs constantly across pharmaceutical-bulk-stock to per-tablet dose-strength preparation, per-portion nutrition gram macronutrients to mg-detail micronutrients, bulk-chemical gram-inventory to per-sample mg-precision laboratory work, and recipe-gram-primary-ingredients to mg-precision spice-and-flavouring measures. The factor is exact rather than approximate, with no rounding error required at the conversion step itself.

Worked examples

Example 11 g

One gram equals exactly 1000 milligrams by metric SI definition. That is the canonical g-to-mg reference, with the thousandfold ratio fixed by the SI prefix system. The same thousandfold ratio applies in both directions.

Example 20.5 g

Half a gram — the per-tablet paracetamol API mass — converts to 500 mg. That is the figure on the per-tablet dose-strength label, the per-tablet preparation worksheet and the regulatory dose-strength specification document. The g-figure is the bulk-stock equivalent; the mg-figure is the per-tablet dose-strength.

Example 32.4 g

Two point four grams — the FDA Daily Value upper-limit for sodium — converts to 2400 mg. That is the figure on per-food nutrition labels and dietary-tracking-app per-food entries, with the gram-figure on the daily-summary aggregate and the mg-figure on individual food labels.

g to mg conversion table

gmg
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 g10000 mg
15 g15000 mg
20 g20000 mg
25 g25000 mg
30 g30000 mg
40 g40000 mg
50 g50000 mg
75 g75000 mg
100 g100000 mg
150 g150000 mg
200 g200000 mg
250 g250000 mg
500 g500000 mg
750 g750000 mg
1000 g1000000 mg
2500 g2500000 mg
5000 g5000000 mg

Common g to mg conversions

  • 0.001 g=1 mg
  • 0.01 g=10 mg
  • 0.1 g=100 mg
  • 0.25 g=250 mg
  • 0.5 g=500 mg
  • 1 g=1000 mg
  • 2 g=2000 mg
  • 5 g=5000 mg
  • 10 g=10000 mg
  • 100 g=100000 mg

What is a Gram?

The gram (g) is one one-thousandth of the kilogram. By international convention adopted at the 11th CGPM in 1960 and unchanged since, decimal multiples and submultiples of mass are formed from the root "gram" rather than from the base unit "kilogram" — so 1,000 grams is one kilogram, one million grams is a megagram (Mg, equivalently a metric tonne), and one-thousandth of a gram is a milligram (mg), not a "microkilogram". The SI symbol for the gram is the lowercase "g", standardised by ISO 80000-1 and the BIPM SI Brochure (9th edition, 2019). The older symbol "gm" — common in nineteenth-century scientific writing and still occasionally seen in US pharmacopoeial texts before the late twentieth century — is non-standard and not recognised by the BIPM, NIST, or any modern metrology authority. Because the gram is a submultiple of the kilogram, its modern definition rides on the kilogram's anchoring to the Planck constant: a gram is 1/1000 of the mass derived from h = 6.62607015 × 10⁻³⁴ J·s. The quantity 1 gram-force, equal to the gravitational force on one gram of mass at standard gravity (≈9.80665 mN), is a deprecated coherent unit not part of the SI; force in modern usage is expressed in newtons.

The gramme — and the unit's identity is the gramme rather than the kilogramme in the original metric texts — was first defined in the Loi du 18 germinal an III of 7 April 1795, the law that set out the Système Métrique Décimal in revolutionary France. The law fixed it as the absolute weight of a volume of pure water equal to the cube of the hundredth part of the metre, at the temperature of melting ice — the mass of one cubic centimetre of water at the ice point. The phrasing matters: an earlier 1793 provisional definition had set the grave at the mass of one cubic decimetre (one litre) of water at the freezing point, but the 1795 law moved to the much smaller cubic-centimetre reference and renamed the unit. For four years the gramme was the base unit of mass in the new French metric system, and the kilogramme its multiple. The relationship inverted with the deposition of the Kilogramme des Archives — the platinum standard built to realise the larger unit — at the National Archives in Paris on 22 June 1799 (4 messidor an VII), at which point the kilogramme assumed the role of base unit and the gramme was treated as its submultiple, where it has remained. Through the late nineteenth and twentieth centuries the gramme had a second life as the base unit of mass in the centimetre-gramme-second (CGS) system, formally adopted by the British Association for the Advancement of Science in 1874 and the workhorse of physics and astronomy until the 11th CGPM displaced it with the metre-kilogramme-second-based Système International in 1960. Since the SI redefinition of 2019 the gram is anchored to the Planck constant indirectly, via the kilogram — the same downstream chain that has held since the demotion of 1799.

Pharmaceuticals: the gram is the working unit for active pharmaceutical ingredient (API) bulk masses and for finished oral solid dosage forms in the United States Pharmacopeia (USP), the European Pharmacopoeia (Ph. Eur.) and the Japanese Pharmacopoeia, with monographs specifying allowable mass tolerances on tablet and capsule weight in grams or milligrams. Compounding pharmacies, hospital formularies and contract manufacturers track API inventory and dispensing in grams. Nutrition labelling: EU Regulation 1169/2011 (the Food Information to Consumers Regulation, in force since 13 December 2014) mandates per-100 g and per-portion nutrient declarations on every prepacked food sold in the EU, with macronutrients reported in grams and micronutrients in milligrams or micrograms. The US FDA Nutrition Facts panel, redesigned under the 2016 Nutrition Labeling rule and mandatory across the food industry by the 2020-2021 compliance window, denominates fat, carbohydrate, fibre and protein in grams per serving. Jewellery and precious metals: the gram is the global trade unit for gold at retail, with spot prices on the LBMA quoted in dollars per troy ounce but consumer bullion priced and bought by the gram in the great majority of jurisdictions outside the United States. The carat used for gemstone weight is defined as exactly 0.2 g by international agreement at the 4th CGPM in 1907. Specialty coffee: barista practice doses espresso shots between 16 and 22 g of dry ground coffee per double basket, with measured-mass extraction having displaced volume-based dosing in third-wave coffee since the early 2010s. Postal rates worldwide use gram thresholds for letter classes — 20 g, 50 g, 100 g — with national operators (Royal Mail, USPS, La Poste, Deutsche Post) all denominating their first-class letter rate breaks in grams.

What is a Milligram?

The milligram (mg) is exactly one one-thousandth of a gram, or one one-millionth of a kilogram, by SI prefix definition. Since the SI redefinition adopted at the 26th CGPM in 2018 and entered into force on 20 May 2019, the kilogram is anchored to a fixed numerical value of the Planck constant (h = 6.62607015 × 10⁻³⁴ J·s exactly), and the milligram inherits that anchoring as a derived submultiple. The recognised SI symbol is the lowercase "mg", standardised by ISO 80000-1 and the BIPM SI Brochure (9th edition). The unit is not the same as the milligram-equivalent (mEq) used in clinical chemistry to express electrolyte concentrations — mEq accounts for valence and is a measure of chemical activity rather than mass. Microbalances calibrated for mg-precision work typically resolve to ±0.01 mg or ±0.001 mg.

The milligram emerged with the metric system itself. The Loi du 18 germinal an III of 7 April 1795 established the metric system in revolutionary France, and the SI prefix milli- (denoting one one-thousandth) was carried forward from Latin through the Greek-Latin compromise that built the prefix system. The milligram was therefore defined from the moment the gram was named, but it took a century before it became practically usable: nineteenth-century analytical balances could not reliably resolve sub-gram masses, and the unit was largely a theoretical figure until the 1880s when Bunge, Sartorius and other Göttingen instrument makers introduced damped torsion balances capable of milligram precision. The milligram came into commercial routine through pharmacopoeial dose-strength specifications, where the active-ingredient mass per tablet runs at the milligram scale (typical paracetamol 500 mg, ibuprofen 200 or 400 mg, aspirin 75 or 300 mg). Modern analytical chemistry preserves the milligram as the working unit for active pharmaceutical ingredient dose-strength specs, food and supplement nutrient labels, and forensic toxicology sample masses. Since the 2019 SI redefinition the milligram inherits its anchoring from the kilogram via the Planck constant.

Pharmaceutical dose-strength specs are the milligram's most-visible application. Every active-pharmaceutical-ingredient (API) tablet, capsule and oral-suspension dose is labelled in mg under USP, Ph. Eur., JP and BP pharmacopoeial style: paracetamol 500 mg, ibuprofen 200/400 mg, aspirin 75/300 mg, atorvastatin 10/20/40/80 mg, metformin 500/850/1000 mg. Compounding pharmacies, hospital formularies and clinical-trial Manufacturing Authorisation submissions all denominate API mass in mg or fractional mg. Food and supplement nutrient labelling: EU Regulation 1169/2011 mandates per-100 g micronutrient declarations in mg or μg on every prepacked food, with vitamins (B-complex, C, E, K) and minerals (sodium, calcium, iron, zinc) all in the mg range. The US FDA Nutrition Facts panel uses the same mg or μg scale for "vitamins and minerals to be declared" under 21 CFR 101.9. Forensic toxicology: blood-alcohol concentrations are reported in mg per 100 ml under most legal frameworks (UK 80 mg/100 ml limit for drink-driving; same convention in Ireland, Australia and most European jurisdictions). Drug-screen cut-off concentrations and confirmation-test positive thresholds are likewise in mg or sub-mg per litre or per gram of matrix. Jewellery and gemstones: the carat is exactly 200 mg by international agreement at the 4th CGPM in 1907.

Real-world uses for Grams to Milligrams

Pharmaceutical bulk gram-stock translated to per-tablet mg dose-strength preparation

Pharmaceutical compounding pharmacies (NHS, EU pharmacy networks, US compounding pharmacies) translate bulk gram-scale API stock into per-tablet mg-precision dose-strength preparation worksheets. A 5 kg = 5000 g paracetamol API stock divides into 10,000 tablets at 500 mg per tablet; a 2 kg vitamin C divides into 8,000 capsules at 250 mg per capsule. The conversion runs at every bulk-stock to per-tablet preparation step, with the gram-figure on the supplier-purchase document and the mg-figure on the per-tablet preparation worksheet.

Per-portion gram nutrition labels translated to per-portion mg micronutrient details

Per-portion nutrition labels on prepacked food show macronutrients in grams (carbohydrates 30 g, protein 5 g, fat 10 g) but micronutrients translate to mg or μg for the per-portion detail. A 30 g per-portion carbohydrate figure has no direct mg equivalent (carbohydrate is the major nutrient), but accompanying per-portion sodium, potassium, calcium and iron figures translate from gram-scale equivalent salt-or-mineral content to mg-scale per-portion declarations. The g-to-mg conversion runs at every nutrition-label per-portion preparation.

Bulk chemical gram-inventory translated to per-sample mg-precision laboratory work

Research and QC laboratories (chemistry research, pharmaceutical R&D, materials testing labs, environmental analytical laboratories) work with bulk gram-scale chemical inventory but per-sample mg-precision experimental work. A 100 g reagent jar divides into 100 samples at 1 g each or 1000 samples at 100 mg each; a 25 g standard-reference material divides into 250 samples at 100 mg each. The g-to-mg conversion runs at every bulk-inventory to per-sample preparation step, with the gram-figure on the supplier-purchase record and the mg-figure on the per-sample worksheet.

Recipe gram-quantities translated to mg-precision spice and flavouring measures

Recipe gram-quantities for primary ingredients (250 g flour, 100 g sugar, 50 g butter) translate to mg-precision for high-impact spice and flavouring measures (1.5 g vanillin = 1500 mg, 0.5 g saffron = 500 mg, 2 g black pepper = 2000 mg). The g-to-mg conversion is uncommon in everyday cooking but appears in precision-baking and molecular-gastronomy work where mg-precision spice quantification matters for flavour-balance optimisation.

When to use Milligrams instead of Grams

Use milligrams whenever the destination is per-tablet pharmaceutical dose-strength, per-capsule supplement formulation, per-100-g micronutrient declaration, per-sample trace-analysis or any precision-source work where mg granularity is the natural unit. Milligrams are the universal precision-source unit for pharmaceutical dosing, supplement formulation and trace-analysis work across every modern healthcare and food-regulation jurisdiction. Stay in grams when the destination is bulk pharmaceutical-inventory documentation, per-bottle supplement bulk-fill production, daily-intake nutrition summary, recipe-execution or any document where gram-scale granularity is more legible than mg-precision. The conversion is the within-metric scale roll-down between gram-source documentation and mg-precision destination work, and the choice of unit signals whether the context is bulk-aggregate or precision-execution.

Common mistakes converting g to mg

  • Confusing grams-to-milligrams (multiply by 1000) with grams-to-kilograms (divide by 1000). Both are within-metric scale conversions but in opposite directions, and mixing them up gives a millionfold error. The standard metric mass hierarchy is 1 kg = 1000 g = 1,000,000 mg.
  • Conflating "0.5 g paracetamol" (a bulk per-tablet API mass) with "0.5 mg paracetamol" (a sub-clinical trace dose). The thousandfold difference between g-precision and mg-precision pharmaceutical work matters at every per-tablet preparation step; substituting one for the other risks a thousand-times underdose or overdose.

Frequently asked questions

How many mg in 1 gram?

One gram equals exactly 1000 milligrams by SI prefix definition. The milli- prefix means 1/1000, so 1 g = 1000 mg. The thousandfold ratio is exact and unchanged across every metric measurement context. Pharmaceutical inventory, food-labelling and recipe-execution all use this clean three-decimal-place ratio.

How many mg in 0.5 g?

Half a gram equals 500 mg. That is the per-tablet paracetamol API mass, the modal adult-strength painkiller dose globally. The g-figure is the bulk-stock equivalent for 10,000 tablets (5 kg total); the mg-figure is the per-tablet dose-strength on the regulatory specification document.

How many mg in 2.4 g (a daily sodium limit)?

Two point four grams equals 2400 mg. That is the FDA Daily Value upper-limit for sodium intake, with the gram-figure on dietary-tracking app daily-summaries and the mg-figure on per-food nutrition labels. The per-food mg-figures aggregate across the day against this daily target.

Quick way to convert grams to mg in my head?

Multiply the gram figure by 1000 — a three-decimal-place shift to the right. For 0.5 g that gives 500 mg, for 2.4 g that gives 2400 mg, for 25 g that gives 25,000 mg. The conversion is one of the cleanest mental-math operations in metric measurement and runs trivially for any gram-figure.

How many mg in a kilogram?

One kilogram equals 1000 g = 1,000,000 mg by metric SI definition. The kg-to-mg roll-down is a six-decimal-place shift, the largest single-step within-metric mass conversion in everyday work. Pharmaceutical bulk-stock at the kg-scale rolls down through gram-inventory and per-tablet mg-dose-strength layers.

When does grams-to-mg appear in real work?

Grams-to-mg appears in pharmaceutical bulk gram-stock translated to per-tablet mg dose-strength preparation, per-portion gram nutrition labels translated to per-portion mg micronutrient details, bulk-chemical gram-inventory translated to per-sample mg-precision laboratory work, and recipe gram-quantities translated to mg-precision spice and flavouring measures. The conversion is one of the most-run within-metric mass conversions in pharmacy, nutrition, laboratory and recipe contexts. The thousandfold ratio is fixed by the SI prefix system and is exact at every step.

How precise should grams-to-mg be for nutrition labels?

For per-portion nutrition labels the g-to-mg conversion is exact, and the typical food-analysis precision (±0.1 g for macronutrients, ±0.01 g for trace nutrients) preserves precision through the mg roll-down. Per-portion mg-figures on regulatory food labels round to whole-mg or single-decimal-mg precision based on the analytical-method limit-of-quantification rather than the conversion step itself.