Convert between milligrams and grams with multi-unit reference
Converting between milligrams and grams is one of the most common unit conversions in everyday life, especially in healthcare, cooking, nutrition, and science. The relationship is simple — 1 gram equals 1,000 milligrams — but when you are dealing with medication dosages, nutritional supplements, recipe ingredients, or laboratory measurements, getting the conversion right is critically important. An error of even one decimal place can mean a tenfold dosage mistake in pharmaceutical contexts. Our free Mg to Grams Converter provides instant bidirectional conversion between milligrams and grams, along with automatic conversion to five additional units: micrograms, kilograms, ounces, pounds, and grains. The converter is designed with healthcare and pharmaceutical use cases in mind, featuring eight quick-access presets for common supplement and medication dosages including Vitamin C (500 mg), ibuprofen (200 mg), aspirin (325 mg), caffeine (100 mg), melatonin (5 mg), Vitamin D (0.025 mg / 25 µg), iron (18 mg), and calcium (1,000 mg). The bidirectional toggle lets you instantly switch between milligrams-to-grams and grams-to-milligrams conversion. A visual scale shows what fraction of a gram your milligram value represents, making the relative scale intuitive — helpful for understanding that a 500 mg Vitamin C tablet is exactly half a gram, or that a 5 mg melatonin dose is just 0.5% of a gram. The grain unit is included specifically for pharmacy professionals, as grains remain in use in certain prescription conventions (1 grain ≈ 64.8 mg). The ounce and pound conversions serve food and nutrition contexts where both metric and imperial measurements are common. All results are shown with appropriate precision — whole numbers for large values, scientific notation for very small values, and up to six decimal places for intermediate values. Results can be exported to CSV for records or printed for reference. The quick reference table at the bottom provides the most commonly looked up mg-to-gram equivalents at a glance.
Understanding Milligrams and Grams
What Is the Difference Between Milligrams and Grams?
Milligrams (mg) and grams (g) are both metric units of mass. The prefix 'milli-' means one-thousandth, so 1 milligram is exactly 0.001 grams, and conversely, 1 gram equals exactly 1,000 milligrams. Grams are part of the base SI (International System of Units) framework — the kilogram (1,000 grams) is the official SI base unit of mass. Milligrams are used when measuring very small quantities — drug dosages, trace minerals in nutrition, chemical reagents in laboratories, and fine ingredients in recipes. Grams are used for slightly larger quantities — food portions, small packages, jewelry, and general kitchen measurements.
How to Convert Between Mg and Grams
The conversion is straightforward division or multiplication by 1,000. To convert milligrams to grams: divide by 1,000. Formula: Grams = Milligrams ÷ 1,000. Example: 500 mg = 500 ÷ 1,000 = 0.5 g. To convert grams to milligrams: multiply by 1,000. Formula: Milligrams = Grams × 1,000. Example: 2.5 g = 2.5 × 1,000 = 2,500 mg. The converter also handles conversions to other units using standard factors: 1 gram = 1,000,000 micrograms, 1 kilogram = 1,000 grams, 1 ounce = 28,349.5 mg, 1 pound = 453,592 mg, 1 grain = 64.799 mg.
Why Does Accurate Conversion Matter?
In healthcare and pharmacy, milligram accuracy is literally a matter of life and safety. Medication dosages are specified in milligrams with exact precision — a prescription for 200 mg of ibuprofen means exactly 200 mg, not approximately 200 mg. Errors in mg-to-gram conversion can lead to tenfold overdoses or underdoses. In nutrition, understanding mg quantities helps interpret supplement labels and daily recommended values. In laboratory science, experiments require precise measurements where a milligram error can invalidate results. Even in cooking, recipes calling for ingredients like salt, spices, or leavening agents by weight need accurate mg/g conversions for consistent results, especially when scaling recipes up or down.
Practical Notes
This converter handles mass (weight) conversions only. It does not convert between mass and volume — for example, 500 mg of sugar does not occupy the same volume as 500 mg of flour because they have different densities. Volume-to-mass conversions require knowing the specific density of the substance. The grain unit (used in pharmacy) has a precise modern definition of 64.79891 mg; this converter uses the rounded value of 64.799 mg which is accurate to six significant figures. For pharmaceutical calculations requiring absolute precision, always verify with a pharmacist or use a certified pharmaceutical calculator. The ounce and pound conversions use avoirdupois units (the common system), not troy ounces used for precious metals.
Conversion Formulas
Milligrams to Grams
Grams = mg / 1,000
Divide the milligram value by 1,000 to get grams. The prefix 'milli-' means one-thousandth, so this is an exact conversion with no rounding.
Grams to Milligrams
mg = Grams × 1,000
Multiply the gram value by 1,000 to get milligrams. Move the decimal point three places to the right.
Milligrams to Kilograms
kg = mg / 1,000,000
Divide the milligram value by 1,000,000 to get kilograms. Useful for converting large pharmaceutical quantities.
Milligrams to Grains (pharmacy)
Grains = mg / 64.799
Divide the milligram value by 64.799 to get pharmaceutical grains. Used in some legacy prescription conventions.
Reference Tables
Common Milligram to Gram Conversions
Quick reference for the most frequently searched mg-to-gram conversions, including common medication dosages.
| Milligrams | Grams | Common Context |
|---|---|---|
| 1 | 0.001 | Microgram-range supplements (e.g., Vitamin B12) |
| 5 | 0.005 | Melatonin, folic acid |
| 25 | 0.025 | Vitamin D (1,000 IU) |
| 100 | 0.1 | Caffeine tablet |
| 200 | 0.2 | Ibuprofen standard dose |
| 325 | 0.325 | Aspirin standard dose |
| 500 | 0.5 | Vitamin C, acetaminophen |
| 1,000 | 1.0 | Calcium supplement |
| 2,000 | 2.0 | Extended-release tablets |
| 5,000 | 5.0 | Bulk supplement powder |
Medication Dose Conversion Reference
Common medication dosages shown in milligrams, grams, and grains for pharmacy professionals.
| Medication | Typical Dose (mg) | Grams | Grains |
|---|---|---|---|
| Aspirin | 325 | 0.325 | 5.01 |
| Ibuprofen | 200–400 | 0.2–0.4 | 3.09–6.17 |
| Acetaminophen | 500–1,000 | 0.5–1.0 | 7.72–15.43 |
| Amoxicillin | 500 | 0.5 | 7.72 |
| Metformin | 500–1,000 | 0.5–1.0 | 7.72–15.43 |
Worked Examples
Convert a 500 mg Tablet to Grams
A Vitamin C tablet contains 500 mg of ascorbic acid. Express this dosage in grams.
Identify the formula: Grams = mg / 1,000
Substitute the value: 500 / 1,000
Calculate: 500 / 1,000 = 0.5 grams
500 mg = 0.5 grams (half a gram)
Convert 2.5 Grams to Milligrams for a Prescription
A compounding pharmacy needs to measure 2.5 grams of an active ingredient. Express in milligrams.
Identify the formula: mg = Grams × 1,000
Substitute the value: 2.5 × 1,000
Calculate: 2.5 × 1,000 = 2,500 mg
2.5 grams = 2,500 milligrams
Convert 325 mg Aspirin to Grains
A legacy prescription references aspirin in grains. Convert the standard 325 mg dose.
Identify the formula: Grains = mg / 64.799
Substitute the value: 325 / 64.799
Calculate: 325 / 64.799 = 5.015 grains
Note: This confirms the historical '5-grain aspirin' tablet
325 mg aspirin = approximately 5 grains
How to Use the Mg to Grams Converter
Choose Conversion Direction
Select whether you want to convert from milligrams to grams (mg → g) or from grams to milligrams (g → mg). Use the swap button in the middle to quickly reverse the direction. The selected direction determines which unit your input value is interpreted as.
Enter Your Value
Type the numeric value you want to convert in the input field. You can enter whole numbers, decimals, or very small values. Alternatively, click one of the eight pharmaceutical presets to quickly load common dosage values like 500 mg Vitamin C, 200 mg ibuprofen, or 325 mg aspirin.
Read Your Conversions
The primary conversion appears in the hero result. Below it, the All Conversions section shows the value in seven different units: micrograms, milligrams, grams, kilograms, ounces, pounds, and grains. The scale visualization shows what fraction of a gram your milligram value represents as a horizontal bar. The quick reference table provides common mg-to-gram equivalents.
Export or Print
Click 'Export CSV' to download all conversion values as a spreadsheet-compatible file. Click 'Print' to print the results page directly from your browser. Both options are useful for keeping records of medication dosages, lab measurements, or nutritional calculations.
Frequently Asked Questions
How many milligrams are in a gram?
There are exactly 1,000 milligrams in one gram. This is a precise, exact conversion defined by the metric system — the prefix 'milli-' always means one-thousandth. So 1 mg = 0.001 g, 10 mg = 0.01 g, 100 mg = 0.1 g, 500 mg = 0.5 g, and 1,000 mg = 1 g. To convert any milligram value to grams, simply move the decimal point three places to the left (or divide by 1,000). To convert grams to milligrams, move the decimal point three places to the right (or multiply by 1,000). This relationship is consistent and exact — there is no rounding or approximation involved in mg-to-gram conversion.
What is 500 mg in grams?
500 milligrams equals exactly 0.5 grams (half a gram). This is one of the most commonly searched conversions because 500 mg is a standard dosage for several popular supplements and medications, including Vitamin C tablets, extra-strength acetaminophen (often combined with 500 mg in a single tablet), and amoxicillin capsules. When a supplement label says '500 mg per serving,' that means each serving contains half a gram of the active ingredient. For context, a standard paper clip weighs about 1 gram, so 500 mg is roughly the weight of half a paper clip — a very small quantity.
What are grains and why are they included?
Grains (abbreviated 'gr') are an ancient unit of mass that remains in limited use in pharmacy and ammunition. One grain equals approximately 64.799 milligrams. In pharmacy, some older medication dosages are still expressed in grains — for example, aspirin was historically available in 5-grain tablets (325 mg), and some thyroid medications like Armour Thyroid are still prescribed in grains. The inclusion of grains in this converter serves healthcare professionals who need to convert between modern milligram dosages and legacy grain-based prescriptions. In everyday use outside of pharmacy, grains are most commonly encountered in ammunition specifications and precious metal measurements.
Is there a difference between mass and weight in these conversions?
Technically, milligrams and grams measure mass (the amount of matter in an object), not weight (the force of gravity on that object). However, for all practical everyday purposes — cooking, medicine, nutrition, and general measurement — the distinction is irrelevant because we measure both mass and weight at Earth's surface where gravity is constant. A kitchen scale that shows '500 mg' is technically measuring weight but reporting it as mass, and the difference is negligible for any non-scientific application. The distinction only matters in physics and engineering contexts involving different gravitational environments (space travel, planetary science) or extremely precise scientific measurements.
How do I convert mg to teaspoons or tablespoons?
You cannot directly convert milligrams (a unit of mass) to teaspoons (a unit of volume) without knowing the density of the specific substance. Different substances have very different densities — a teaspoon of sugar weighs about 4,200 mg, a teaspoon of salt weighs about 5,700 mg, and a teaspoon of cinnamon weighs about 2,600 mg, even though the volume is the same. For medications, the concentration is usually printed on the label (e.g., '100 mg per 5 mL'), which tells you exactly how many milligrams are in a specific volume. For cooking conversions between mass and volume, use our Cups to Grams Converter, which has density data for dozens of common ingredients.
Why are medication dosages measured in milligrams instead of grams?
Medications are measured in milligrams because active pharmaceutical ingredients are typically effective in very small quantities — most oral drug dosages fall between 1 mg and 1,000 mg. Using milligrams avoids the need for multiple decimal places that would make dosages harder to read and more prone to errors. A dosage written as '325 mg' is much clearer and less error-prone than '0.325 g' — the decimal point could easily be missed or misplaced, leading to a tenfold dosage error. The milligram scale also allows easy expression of very precise dosages: levothyroxine, for example, comes in dosages as small as 25, 50, 75, and 100 micrograms (0.025 to 0.1 mg), where even milligrams would require decimals. Pharmacology standards worldwide use milligrams as the default unit for drug dosages specifically to minimize reading and calculation errors.
Related Tools
Grams to Mg Converter
Convert grams to milligrams with multi-unit reference including micrograms, ounces, and pharmaceutical grains.
Grams to Moles Calculator
Convert grams to moles using molar mass for chemistry and laboratory calculations.
Moles to Grams Calculator
Convert moles to grams using molar mass for stoichiometry and chemical preparation.
Kg to Tons Converter
Convert kilograms to metric tons, short tons, and long tons for shipping and industrial use.
Dosage Calculator
Calculate medication dosages based on weight, age, and concentration for safe pharmaceutical dosing.