Advertisement
Loading...

Grams to Milligrams Converter

Enter a Value to Convert

Type a gram or milligram value above, or tap a common-value preset, to see the instant conversion result with multi-unit breakdown and reference chart.

Advertisement
Loading...

How to Use This Converter

1

Choose Conversion Direction

Select 'g → mg' to convert grams to milligrams, or 'mg → g' to convert milligrams to grams. Use the swap button (⇌) in the middle to instantly flip the direction and carry your current result over as the new input value.

2

Enter Your Value or Pick a Preset

Type any number into the input field — decimals are fully supported (e.g., 1.5, 0.25, 500). Or click one of the quick-pick preset buttons for common medical or nutritional values like 500 mg (paracetamol), 0.5 g, 1 g, or 2.5 g. The converter recalculates instantly on every keystroke.

3

Adjust Decimal Precision

Use the decimal precision selector to control how many decimal places appear in the result. Choose 0–2 for general use or cooking, 3–5 for medical and nutritional contexts, or 6–8 for laboratory and scientific work where small quantities matter.

4

Read Results and Export

The primary result is shown large at the top. Scroll down to see all units at once (mg, mcg, g, kg, oz, grains), the scale reference chart comparing your value to everyday items, and the reference table. Use 'Copy Result' to copy to clipboard, 'Export CSV' to download the reference table as a spreadsheet, or 'Print' for a paper record.

Frequently Asked Questions

How many milligrams are in a gram?

There are exactly 1,000 milligrams (mg) in one gram (g). This is an exact definition from the International System of Units (SI) — not an approximation. The prefix 'milli-' means one thousandth (1/1,000), so a milligram is literally one thousandth of a gram. To convert any gram value to milligrams, simply multiply by 1,000. For example, 2.5 g = 2,500 mg, 0.5 g = 500 mg, and 0.001 g = 1 mg. Because the factor is 1,000, you can also think of it as moving the decimal point three places to the right when going from grams to milligrams.

Is 500 mg the same as 0.5 g?

Yes, 500 mg is exactly equal to 0.5 g. Dividing 500 by 1,000 gives 0.5, confirming the equivalence. This is important in medication contexts because a standard paracetamol (acetaminophen) or aspirin tablet contains 500 mg of active ingredient, which is one half of a gram. Packaging and prescriptions may express this as either 500 mg or 0.5 g, and both refer to the same quantity. Always verify the unit written on a medication label — a difference of 1,000-fold (confusing mg with g) is one of the most common types of pharmaceutical dosing error.

How do I convert milligrams back to grams?

To convert milligrams to grams, divide by 1,000 (or equivalently, multiply by 0.001). For example: 250 mg ÷ 1,000 = 0.25 g; 1,500 mg ÷ 1,000 = 1.5 g; 10,000 mg ÷ 1,000 = 10 g. You can also think of this as moving the decimal point three places to the left. Our converter handles this automatically in 'mg → g' mode — just enter your milligram value and the gram equivalent appears instantly. Use the swap button to reverse direction while carrying your result over as the new input.

Why is the gram-to-milligram conversion used so often in medicine?

Drug doses are almost always expressed in milligrams because the quantities involved are very small — far less than a gram. A standard ibuprofen tablet is 400 mg (0.4 g), a typical iron supplement is 18 mg (0.018 g), and vitamin D supplements commonly contain 25 mcg (0.025 mg = 0.000025 g). Expressing these as decimal fractions of a gram would be cumbersome and error-prone, so milligrams — and sometimes micrograms (mcg) — are used instead. Healthcare providers, pharmacists, and patients need to convert between units to verify doses, compare products, and understand prescription instructions. A milligram-to-gram confusion represents a 1,000-fold error, which is why having a reliable conversion tool matters.

What is the difference between mg, mcg, and g?

These three units are all metric units of mass that differ by factors of 1,000. A gram (g) is the base unit. A milligram (mg) is one thousandth of a gram: 1 g = 1,000 mg. A microgram (mcg or µg) is one thousandth of a milligram, and one millionth of a gram: 1 g = 1,000,000 mcg, and 1 mg = 1,000 mcg. Micrograms are used for extremely potent substances — vitamin B12 doses are typically 2–1,000 mcg, and vitamin D is often dosed in mcg (25 mcg = 1,000 IU). Our converter displays all three units simultaneously so you can see the value in g, mg, and mcg at the same time, along with kilograms, ounces, and grains for complete context.

Can I use this converter for cooking and food measurement?

Absolutely. While grams and milligrams appear most often in medical and supplement contexts, they are equally relevant in cooking, baking, and food science. Nutrition labels list sodium, iron, calcium, and vitamins in milligrams per serving, while ingredient quantities are in grams. If a recipe calls for 2.5 g of a spice and your scale only reads in milligrams, you need 2,500 mg. If a nutrition fact panel shows 1,500 mg of sodium per serving, that is 1.5 g. The multi-unit output panel also shows ounces, which helps when switching between metric and US customary cooking measurements. The preset buttons include common cooking quantities like 5 g (one teaspoon of sugar) for quick reference.