Solved.tools — Free Online Calculators & Tools

We use cookies for analytics and advertising. Learn more about our cookie policy

Milligrams to Grams Converter

Last updated: 23 August 2026

Reviewed by Gavin · Research and drafting assisted by AI

Quick presets
Formulag = mg ÷ 1000
Inverse formulamg = g × 1000
Current value1,000 mg = 1 g
Was this helpful?


Milligrams to Grams Converter

The milligrams to grams converter translates any mass between the milligram and the gram in a single step. For the Milligrams to Grams Converter, Enter a value in either field and the other updates instantly. The converter is useful for pharmacists dispensing tablets, doctors prescribing paediatric doses, parents measuring out a vitamin, chemists weighing trace reagents, cooks scaling recipes between metric and imperial conventions, students working through stoichiometry problems, nutritionists reading a food label, and formulators mixing skincare actives. The relationship between milligrams and grams is exact, both units are defined in terms of the kilogram, and the displayed precision is limited only by the number of decimal places chosen.

How to Use the Milligrams to Grams Converter

  1. Type a number into the Milligrams (mg) field to see the gram equivalent on the right.
  2. Type a number into the Grams (g) field to see the milligram equivalent on the left.
  3. For the Milligrams to Grams Converter, The two fields stay in sync as you type, editing one updates the other automatically.
  4. Use the quick presets for common reference quantities (1 mg, 100 mg, 1 g, 5 g) to load an exact pair instantly.
  5. Read the result box to see the active formula and a side-by-side display of the current value in both units.

The Conversion Formulas

The conversion between milligrams and grams uses one constant: the 1000× scaling factor (one gram is exactly 1000 milligrams). Formally:

Milligrams to grams: g = mg ÷ 1000

Grams to milligrams: mg = g × 1000

|| Reference quantity | mg | g | ||---------------------|----|----| || Trace dose (1 mg) | 1 | 0.001 | || Small tablet (100 mg) | 100 | 0.1 | || Standard aspirin (500 mg) | 500 | 0.5 | || Basic unit (1 g) | 1 000 | 1 | || Teaspoon of salt (≈5 g) | 5 000 | 5 | || Tablespoon of sugar (≈12 g) | 12 000 | 12 |

Why exactly 1000? The gram is defined by the SI as 10⁻³ kg and the milligram as 10⁻⁶ kg. The ratio 10⁻³ / 10⁻⁶ = 10³ = 1000. Because the kilogram itself is now defined by a fixed value of the Planck constant, both the gram and the milligram are defined, not measured, and their ratio has no experimental uncertainty.

Why this is the simplest metric mass conversion. Every step in the metric mass ladder (milligram → centigram → decigram → gram → kilogram) is a factor of 10. The mg↔g step happens to span three of those factors at once, so dividing by 1000 is the only operation needed. The microgram (µg) is one step further down (1 mg = 1000 µg), and the kilogram (kg) is one step further up (1 kg = 1000 g).

Worked Examples

Example 1, a 250 mg antibiotic capsule. A pharmacist fills a prescription for a 250 mg antibiotic capsule. What is the mass in grams? g = 250 ÷ 1000 = 0.25 g. So 250 mg = 0.25 g, a quarter of a gram. This is the kind of quantity that's easier to weigh on a precision balance than to read off a teaspoon.

Example 2, a 5 g scoop of creatine. A sports-nutrition label says 5 g of creatine per serving. How many milligrams is that? mg = 5 × 1000 = 5 000 mg. So 5 g = 5 000 mg, five thousand milligrams. A scoop that looks small contains five thousand milligrams of active ingredient, which is why dosing accuracy matters and why athletes weigh it rather than eyeball it.

Example 3, a 1.5 mg vitamin B12 tablet. A daily multivitamin contains 1.5 mg of vitamin B12. How many grams is that? g = 1.5 ÷ 1000 = 0.0015 g. So 1.5 mg = 0.0015 g, fifteen ten-thousandths of a gram. Vitamin B12 is required in trace amounts and is sometimes dosed in micrograms (µg) on US labels (1.5 mg = 1 500 µg) or in milligrams on EU labels.

Example 4, a 750 g bag of flour. A 750 g bag of flour contains how many milligrams of flour? mg = 750 × 1000 = 750 000 mg. So 750 g = 750 000 mg, three-quarters of a million milligrams. Cooks don't usually think in milligrams at this scale, but the conversion is exact.

Example 5, going the other way. A chemistry protocol asks for 0.075 g of a reagent. How many milligrams is that? mg = 0.075 × 1000 = 75 mg. So 0.075 g = 75 mg, three-quarters of a tenth of a gram. The exactness of the conversion means there's no rounding error to worry about in the calculation, only in the display.

Example 6, the equal point. Verify that 1 000 mg is the same as 1 g. g = 1 000 ÷ 1000 = 1 g. mg = 1 × 1000 = 1 000 mg. This is the only place on the scale where the same mass is named with the same number in both units, and it's a useful sanity check when debugging conversion code or writing a unit test.

Where the Conversion Shows Up

  • Pharmacy and medicine: Tablet and capsule strengths are universally in milligrams (5 mg warfarin, 500 mg paracetamol, 1000 mg metformin). Bulk powder for compounded prescriptions is weighed in grams. IV-bag contents and total parenteral nutrition may be in either, depending on the formulation and the country.
  • Nutrition labelling: Vitamins and minerals on a nutrition label are in milligrams (vitamin C, calcium, iron) or in micrograms (vitamin D, folate, vitamin B12, iodine). Macronutrients (protein, carbohydrate, fat) and food weight are in grams. Converting between the two lets you check the percentage of a daily value without losing precision.
  • Chemistry and laboratory work: Reagent masses on analytical balances are in grams (to 3-4 decimal places of precision, like 0.1234 g). Standards and trace analytes are in milligrams or micrograms. Stoichiometry problems often start with grams and end with milligrams or vice versa.
  • Cooking and baking: Spices (cinnamon, paprika, vanilla), salt, baking powder, and small quantities of flavouring agents are typically in grams in modern recipes. Very small amounts (a pinch of saffron, a few crystals of MSG) are in milligrams in industrial food production.
  • Cosmetics and personal care: Active ingredients (retinol at 0.025% to 0.1%, niacinamide at 2% to 10%, salicylic acid at 0.5% to 2%) are listed as a percentage of the formulation; the actual mass of active in a 30 g jar is in milligrams (e.g. 0.1% × 30 g = 0.03 g = 30 mg of retinol).
  • Drug enforcement and forensic chemistry: Threshold masses for controlled substances are in grams or kilograms; active doses for individual consumption are in milligrams. Converting between the two is part of routine analysis.

Common Mistakes

  • Confusing milligrams with micrograms. A milligram is 1000 micrograms. Vitamin D on a US label is in micrograms (25 µg, 50 µg, 100 µg), and on an EU label is in micrograms too but sometimes the conversion is shown in IU. Confusing the two can mean a 1000-fold overdose.
  • Dropping the factor of 1000. A frequent error is to write "0.5 mg = 0.5 g" because the numbers look similar. The correct answer is 0.5 mg = 0.0005 g, a thousand times smaller. Always check the exponent.
  • Forgetting to convert when copying a dose. A paediatric dose of 5 mg/kg of paracetamol becomes 5 g for a 1-tonne adult, which is not the right number. Always re-derive the dose from the patient's weight, don't copy a number from a chart without rechecking the unit.
  • Mixing metric and imperial prefixes. A "gram" and a "grain" are different units, with 1 grain ≈ 64.79891 mg. A "grain" was historically a wheat grain's mass, and is still used in firearms (bullet mass), precious metals (rare), and pharmacy for a few legacy compounds.
  • Forgetting trailing zeros in the display. 0.500 g and 0.5 g are the same mass, but the former carries extra information about the precision of the measurement. When transcribing a value, keep the trailing zeros if the precision is significant.
  • Rounding too early. A chain of conversions (mg → g → mg) should round only at the end. If you round 1.234 g to 1 g and then convert to milligrams, you get 1000 mg instead of the original 1234 mg. Round only at the final step.

Quick Mental Conversion Trick

For an approximate mg → g in your head: move the decimal point three places to the left. For example, 250 mg → 0.250 g. 5 000 mg → 5.000 g. 1 mg → 0.001 g. The trick is exact, not approximate, because the conversion factor is exactly 1000.

For an approximate g → mg in your head: move the decimal point three places to the right. 1.5 g → 1500 mg. 0.075 g → 75 mg. 0.001 g → 1 mg. Again, exact, not approximate.

The "three decimal places" rule is the same as for any other metric step (kg → g, g → mg, mg → µg, etc.). If you're ever unsure, write the number in scientific notation and count the powers of 10.

When to Use a Different Unit

Grams are appropriate for everyday masses in the range 1 g to 1 000 g (1 kg). Below 1 g, milligrams or micrograms are clearer. Above 1 kg, kilograms are clearer. The choice is about readability, not correctness: 1 g = 1 000 mg exactly, so any pair of units works at any scale, but a number with three to six digits is easier to read than a number with one to three digits and a decimal point.

For medicines, the milligram is almost universal in the dose range 0.1 mg to 1 000 mg. Below 0.1 mg, micrograms (µg) are used. Above 1 000 mg, grams or kilograms are used. The pharmacy balance and the analytical laboratory use the same set of units, just at different precisions.

If you need to convert to or from another unit, here are the common relationships: 1 g = 1 000 mg = 1 000 000 µg = 0.001 kg = 0.03527396 oz (avoirdupois) = 0.00220462 lb. The ounce and pound conversions are not exact, because the imperial units are defined in terms of the metric kilogram and the conversion factor depends on how many decimal places are kept.

Frequently Asked Questions

Q: How many milligrams are in a gram? A: Exactly 1000. One gram equals 1000 milligrams by definition, since the gram is 10⁻³ kg and the milligram is 10⁻⁶ kg, and 10⁻³ ÷ 10⁻⁶ = 10³ = 1000. There is no rounding or uncertainty.

Q: How many grams are in a milligram? A: Exactly 0.001. One milligram is one-thousandth of a gram, or 0.001 g. The conversion is exact because both units are defined in terms of the kilogram.

Q: Are milligrams and grams part of the metric system? A: Yes. The gram is the fundamental metric unit of mass, and the milligram is a metric submultiple. Both are accepted for use with the SI (Système International d'Unités). The SI symbol for gram is "g" and for milligram is "mg", note the lowercase "m" and "g" in both cases, no capitals.

Q: Which is larger, a milligram or a gram? A: A gram is larger. 1 g = 1 000 mg, so a gram is a thousand times more massive than a milligram. A 1 g object is roughly the mass of a small paperclip or a cubic centimetre of water; a 1 mg object is roughly the mass of a grain of sand or a small drop of water.

Q: How do I convert milligrams to millilitres? A: You can't directly, milligrams measure mass and millilitres measure volume. The conversion requires the density of the substance. For water at 4 °C, 1 mg = 0.001 mL (because water's density is 1 g/mL). For other substances, multiply by the inverse of the density: mg × (1/density) = mL. For example, 1 mg of mercury (density 13.6 g/mL) = 0.0000735 mL. The mass-volume conversion is one of the most common sources of error in pharmacy and cooking, because the same word "milli" is applied to two different dimensions.

Q: Why are medicine doses usually in milligrams, not grams? A: Because most active pharmaceutical ingredients are dosed in the range 0.1 mg to 1 000 mg per unit. Using milligrams keeps the numbers in the 1-3 digit range, which is easier to read and to type into a prescription system. Bulk powders and IV-bag contents are sometimes in grams because the dose is larger. Paediatric doses are sometimes in micrograms (µg) because the dose is smaller.

Q: How accurate is the mg to g conversion? A: The conversion is exact. Both units are defined in terms of the kilogram, which is defined by a fixed value of the Planck constant. The factor 1 000 has no measurement uncertainty. The only source of error in a displayed value is how many decimal places are kept when rounding for display. The mass itself (the object being measured) may of course have measurement uncertainty, but the conversion between units does not.

Q: Can I use this converter for medicine dosing? A: Yes, the converter provides mathematically correct results that are suitable for educational and reference use. The 1 000 factor is exact. For actual medical decisions, verify the dose with a pharmacist, doctor, or the medicine's data sheet. The converter is not a substitute for professional medical advice, and the operator of this site accepts no liability for dosing errors.

How often are the Milligrams to Grams Converter formulas updated?ormulas updated? A: The formulas are based on the SI definition of the gram and milligram, both of which are defined in terms of the kilogram. Since 2019 the kilogram has been defined by a fixed value of the Planck constant, not by a physical artefact, so the gram and milligram are also defined, not measured. The 1 000 factor is stable and does not change. Modern refinements relate to how the kilogram is realised in laboratory settings, not to the everyday conversion factor.

References

  • BIPM SI Brochure (9th edition, 2019), the formal definition of the kilogram, gram, and milligram by fixed values of the Planck constant and the metre.
  • NIST Special Publication 811: Guide for the Use of the SI Units, the authoritative US reference for SI usage and conversion.
  • ISO 80000-4:2006 Quantities and units, Part 4: Mechanics, the international standard for units of mass, including the gram and its submultiples.
  • World Health Organization, The International Pharmacopoeia, the global reference for medicine quality, with dose units in milligrams and grams.
  • European Pharmacopoeia (Ph. Eur.) and United States Pharmacopeia (USP), the regional pharmacopoeias, both using milligrams and grams as the standard dose units.
  • International Bureau of Weights and Measures (BIPM), historical and current definitions of the mass units.