What is a gram? What is a milligram?
A gram is a metric unit of mass. A milligram is one thousandth of a gram. That one sentence is the whole conversion: multiply grams by 1,000 and you have milligrams. The grams to mg converter on this page runs that as you type — 0.5 g becomes 500 mg, 2.3 g becomes 2,300 mg, 0.00025 g becomes 0.25 mg — and prints the calculation underneath so you can check it against your own arithmetic.
The gram
The gram (g) is how most of the world weighs small things. A paperclip is about 1 g. A US nickel is exactly 5 g. A sheet of A4 printer paper is close to 5 g too. In the metric system the kilogram is the base unit and the gram is a thousandth of it, which is a historical quirk rather than a design choice — the gram came first, then the standard settled on the kilogram. Recipes, postage, produce scales, and most product weights outside the United States are printed in grams.
The milligram
The milligram (mg) is a thousandth of a gram, and it is the unit of doses. A standard aspirin tablet is 325 mg; the low-dose kind is 81 mg. A brewed cup of coffee carries roughly 95 mg of caffeine. The US daily sodium ceiling is 2,300 mg. Anything you take, swallow, or measure into a reaction gets labeled in milligrams, because writing 0.081 g on a pill bottle would be cruel.
Both units measure the same thing. "Milli" is a prefix, not a different quantity — 1,000 mg and 1 g weigh exactly the same. Labels pick whichever unit keeps the digits readable. Fish oil sells as 1,000 mg because that number looks larger than 1 g. Protein powder lists 24 g because 24,000 mg reads like a typo. Same substance, same mass, different paint.
How grams to milligrams conversion works
mg = g × 1,000 — multiply grams by a thousand, or just move the decimal point three places to the right.
Search boxes and lab notes shorten it to g to mg, but there is only ever one step. Take 0.045 g. Move the decimal three places right: 0.045 → 0.45 → 4.5 → 45. So 0.045 g = 45 mg. The converter shows that same line as 0.045 g × 1,000 = 45 mg, and there is a Copy formula button if you need to paste the working into homework or a lab notebook.
The step people get wrong is running out of digits. Moving the decimal past the end of the number means filling with zeros: 2.3 g has one decimal place, so 2.3 → 23 → 230 → 2,300 mg. Skip a zero and you are out by a factor of ten. Going the other way, 0.045 g is 45 mg, not 4.5 mg — a mistake that is easy to make at speed and impossible to spot afterwards, because both answers look plausible on a page.
What makes this conversion unusual is that it is exact. Most unit conversions carry an ugly constant: 1 kg is 2.20462 lb, 1 inch is 25.4 mm, 1 mile is 1.609344 km. Those ratios come from reconciling two systems that grew up apart. The gram-to-milligram ratio comes from the definition of the prefix itself, fixed in the International System of Units. There is no measurement behind it and nothing to round. If you see decimals wandering off the end of your answer, they came from your calculator, not from the conversion.
Common grams to mg conversions
These are the values people look up most, taken straight from the converter so the display matches what you will see on screen.
| Grams | Milligrams | Where you'll meet it |
|---|---|---|
| 0.001 g | 1 mg | the smallest step a milligram scale can read |
| 0.01 g | 10 mg | a typical statin or melatonin dose |
| 0.081 g | 81 mg | low-dose aspirin |
| 0.1 g | 100 mg | a vitamin C tablet |
| 0.2 g | 200 mg | a caffeine pill, or two cups of coffee |
| 0.25 g | 250 mg | a common antibiotic capsule |
| 0.5 g | 500 mg | a paracetamol or ibuprofen tablet |
| 1 g | 1,000 mg | a fish oil softgel |
| 2.3 g | 2,300 mg | the US daily sodium limit |
| 5 g | 5,000 mg | a creatine scoop |
| 10 g | 10,000 mg | two teaspoons of sugar |
| 100 g | 100,000 mg | a small chocolate bar |
| 1,000 g | 1,000,000 mg | one kilogram |
Read down the two columns and the pattern is just three zeros arriving. Every row is the gram figure with the decimal point shoved right. That is worth internalising, because it means you can sanity-check any answer in under a second: if your milligram number does not have three more digits than your gram number, something went wrong.
The row worth staring at is 2.3 g → 2,300 mg. Nutrition labels almost always print sodium in milligrams, and dietary guidelines almost always talk in grams, so a lot of people arrive at this conversion trying to work out whether their lunch was reasonable. It also comes with a trap: sodium is not salt. Table salt is roughly 39% sodium by weight, so 2.3 g of sodium comes from about 5.8 g of salt — a little under a level teaspoon. If your label lists salt rather than sodium, as most UK and EU labels do, divide the salt figure by 2.5 first.
The other row that catches people is 5 g → 5,000 mg. Supplement marketing loves the milligram column for exactly this reason. Two creatine tubs can advertise "5,000 mg per serving" and "5 g per serving" and be the identical product at different prices. Convert both to the same unit before comparing cost per dose, every time.
When you'll need to convert grams to milligrams
Comparison shopping for supplements. One bottle says 1,000 mg, the next says 1 g, a third says 1,200 mg. Put them all in one unit and the ranking takes three seconds instead of three minutes of squinting.
Chemistry and pharmacy coursework. Stoichiometry problems hand you grams; dosage problems want milligrams. Both appear in the same exam. The formula line the converter prints is the working most graders ask to see, and if you need the next step after that, the grams to moles converter picks up where this one stops.
Forms that demand a specific unit. Lab submission portals, customs declarations, and food-logging apps each have an opinion about units, and it is rarely the one printed on the thing in your hand. Spec sheets give grams; the field wants milligrams.
Weighing on a jeweler's scale. Milligram scales read in grams to three decimals — 0.250 g, not 250 mg — so anyone working with small quantities converts constantly in both directions.
A conversion this small should not come with a contract, and too often it does. The pattern is familiar: the calculator sits four clicks deep inside a nutrition platform that wants an account before it will multiply, or a lab suite billed per seat, or a spreadsheet add-on that starts a 14-day countdown the first time you open it and then asks for a card. Some of them now bundle an AI assistant you did not ask for into the same subscription, so the price of one multiplication is a monthly line item you have to email someone to cancel. This page is the multiplication. No account, no trial clock, nothing held back for a plan. Type grams, read milligrams, close the tab.
Edge cases and gotchas
Micrograms are the dangerous one. A microgram (mcg, also written µg) is a thousandth of a milligram, which makes it a millionth of a gram. On a shelf, "500 mcg" and "500 mg" look nearly identical, and confusing them is a thousandfold error. Vitamin B12, vitamin D, folate, biotin, and most thyroid medication are dosed in mcg; almost everything else is in mg. This is why the converter refuses micrograms outright instead of guessing — type "500 mcg" and it stops you with "That's micrograms, not grams — 1,000,000 mcg = 1 g. 500 mcg is 0.0005 g — type that." The same guard catches mg, kg, oz, and lb inputs.
| Unit | Symbol | In grams | In milligrams |
|---|---|---|---|
| kilogram | kg | 1,000 g | 1,000,000 mg |
| gram | g | 1 g | 1,000 mg |
| milligram | mg | 0.001 g | 1 mg |
| microgram | mcg, µg | 0.000001 g | 0.001 mg |
Commas mean different things in different countries. Type "1,250" and half the world reads 1,250 and the other half reads 1.25. The converter takes the US reading and then says so — a note appears reading "Read as 1,250. If you meant 1.25, type it with a dot." It annotates rather than rejects, because guessing silently is how a decimal-point error survives all the way to a printed label.
Trailing digits are your calculator, not the maths. Multiply 0.3 by 1,000 in most programming languages or spreadsheets and you can get 300.00000000000006. Binary floating point has no exact form for values like 0.1 and 0.3, so a tail of digits appears at the far end. The true answer is 300. This converter cleans results to fifteen significant digits — the last place a double-precision number is trustworthy — so 1.001 g renders as 1,001 mg rather than 1000.9999999999999.
Very small and very large both have floors and ceilings. Amounts down to 0.000001 g still resolve properly, showing as 0.001 mg rather than collapsing to zero; the display carries nine decimal places. At the top, the ceiling is 1,000,000,000,000 g. Negative masses are rejected rather than converted, since a negative weight is almost always a typo.
A kitchen scale cannot do this. Household scales read in 1 g steps, so they cannot tell 200 mg from an empty pan. Milligram amounts need a jeweler's scale with 0.001 g resolution, and even those only deserve trust above roughly twenty times their smallest step. For anything medical, use the pre-measured dose or the syringe that came in the box — never a powder and a hopeful scale.
Related converters
Going the other direction is the mg to g converter, which reads the same range in reverse. If the label in your hand says mcg, the mg to mcg converter handles that thousandfold step without the mental arithmetic.
For imperial weights, the weight converter moves between grams, ounces, pounds, and kilograms in one place, and grams to ounces covers the kitchen case specifically. kg to lbs is the one for luggage and bodyweight.
Mass and volume are different questions. If you have grams and need millilitres, grams to mL asks which ingredient you mean first, because flour and honey do not weigh the same per spoon — and grams to tablespoons does the same job in kitchen units.
Frequently asked questions
How many milligrams are in a gram?
Exactly 1,000. Not approximately, not rounded — the prefix "milli" means one thousandth, and that is fixed by definition in the International System of Units. So 1 g = 1,000 mg, 0.5 g = 500 mg, and 5 g = 5,000 mg, with no error term hiding anywhere.
How do I convert grams to mg in my head?
Grams to milligrams is a decimal shift, not a calculation. Move the point three places to the right, filling with zeros when you run out of digits. 2.3 becomes 2,300. 0.25 becomes 250. 0.045 becomes 45. The only real trap is the zero-filling step — count the places on your fingers if the number is awkward, because being out by a factor of ten looks exactly as reasonable as being right.
What is the difference between mg and mcg?
A factor of 1,000. A microgram (mcg or µg) is a thousandth of a milligram, so 1,000 mcg = 1 mg = 0.001 g, and it takes a million micrograms to make a gram. Reading a 500 mcg vitamin as 500 mg is a thousandfold mistake, which is why a mcg value gets refused here rather than converted behind your back.
Why does my calculator say 300.00000000000006 instead of 300?
Because computers store decimals in binary, and numbers like 0.3 have no exact binary form. Multiplying leaves a tail of digits at the far end. The correct answer is 300. This page cleans the result to fifteen significant digits and caps the display at nine decimals, which removes the artefact without ever hiding a digit you typed.
Can I convert grams to millilitres the same way?
No. Grams measure mass, millilitres measure volume, and the bridge between them is density — which depends on the substance. Water is the coincidence that makes people think otherwise: 1 g of water is about 1 mL at room temperature. Flour is roughly half as dense, honey about 40% denser. Use grams to mL, which asks what the ingredient is before answering.
Can I weigh milligrams on a kitchen scale?
Not usefully. Kitchen scales resolve to 1 g, which is 1,000 mg — so a 200 mg amount reads as zero. You need a milligram scale with 0.001 g resolution, and for medication you should use the supplied dose rather than weighing anything yourself.
Does the converter cost anything, and is what I type stored?
It costs nothing and there is no account. The conversion runs entirely in your browser, so nothing is sent to a server and closing the tab clears it. Microapp is funded by membership rather than by your data, and 10% of every dollar it earns goes to charity, off the top, audited quarterly.