Convert grams to milligrams by multiplying by exactly 1,000. Handles the sub-gram values supplement labels use, with scientific notation available for very small masses.
Settings
Generated locally in your browser β your settings and results never leave this page.
What this converter does
It converts grams to milligrams β the decimal point moves three places right β and it exists mostly for the range where grams stop being convenient. Below about one gram, decimal grams become awkward and error-prone: 0.075 g reads worse than 75 mg in every respect that matters. This page turns the readable-but-clumsy unit into the readable-and-safe one, exactly, and shows the shift so that the pattern sticks.
The formula
Multiply grams by 1,000. That is a definition β the milligram is one thousandth of a gram β so there is no measurement uncertainty, no approximation, and no digit lost. 0.5 g is 500 mg. 0.02 g is 20 mg. 2.5 g is 2,500 mg. In practice the operation is purely positional: shift the decimal three places right, appending zeros if the number runs out of digits. So 0.4 becomes 400, 1.2 becomes 1,200, and 3 becomes 3,000.
Worked examples
A nutrition panel listing 0.4 g of sodium per serving is stating 400 mg β a figure that compares directly against the 2,300 mg daily guideline, which the gram form obscures. A supplement specification of 0.075 g of an active ingredient is 75 mg, the form the capsule label will actually print. A laboratory weighing of 1.234 g is 1,234 mg, which is useful when the downstream calculation runs in milligrams. And a recipe calling for 0.5 g of saffron is 500 mg, which is the only sane way to discuss a spice that is weighed in threads.
Where this direction comes up
Three settings dominate. Nutrition data is often published in grams for consistency across a table but consumed in milligrams for the micronutrients, so converting lets a single panel be read at both scales. Analytical work weighs samples in grams on a balance and reports constituents in milligrams, putting this conversion between the measurement and the report. And formulation work specifies ingredients as fractions of a gram in the master recipe but labels them in milligrams for the consumer, which is this same conversion running in the direction people rarely expect.
Reading small decimals safely
The reason this conversion deserves doing rather than eyeballing is that small decimal grams are exactly the numbers humans misread. Standard medication-safety practice addresses it directly: always write the leading zero, so 0.5 g never appears as .5 g; never write a trailing zero, so 5 mg never appears as 5.0 mg and gets read as 50; and prefer the unit that avoids decimals altogether where one exists. Converting 0.075 g to 75 mg satisfies all three rules at once, which is why labels do it and why this page exists at all.
Precision, and how much to keep
The multiplication is exact, so precision is entirely a question of the source. A balance reading 1.2345 g justifies 1,234.5 mg. A label saying about half a gram justifies 500 mg and nothing finer. The temptation with an exact converter is to keep every digit it offers, but digits inherited from a rounded input are decoration rather than information. Set the display to match the measurement, which this tool allows from whole numbers up to twenty decimal places.
Common mistakes
Shifting the wrong way tops the list: dividing instead of multiplying turns 0.5 g into 0.0005 rather than 500, an error of a millionfold that is nonetheless easy to make at speed. Losing a zero comes next β 0.05 g is 50 mg, not 500 mg β and it happens most in the two-decimal range, which is precisely where supplements and trace nutrients live. Third is the grain confusion: old prescriptions and reloading tables use grains, and a grain is 64.79891 mg rather than a milligram or a gram, so a figure in grains needs the grains converter linked below. The two units differ by a factor of about 15.4, large enough to be obvious once noticed and very easy to miss when not.
The rest of the ladder
Grams and milligrams are two rungs of a ladder that continues in both directions by the same factor of 1,000: kilogram, gram, milligram, microgram, nanogram. Each step is a pure decimal shift, which is the entire design goal of the metric system and the reason this conversion needs no lookup table. If your numbers keep landing above 1,000 mg then grams were the better unit; if they keep landing below 1 mg then micrograms are. The tool switches to scientific notation when a plain decimal stops being readable, and the dedicated microgram pages carry that next rung with their own examples.
Benchmarks
0.001 g is 1 mg. 0.01 g is 10 mg. 0.05 g is 50 mg. 0.1 g is 100 mg. 0.25 g is 250 mg. 0.5 g is 500 mg. 1 g is 1,000 mg. 2 g is 2,000 mg. 5 g is 5,000 mg. A physical anchor for the range: a single grain of rice weighs roughly 25 mg, so a gram is about forty grains of rice β a useful check whenever a converted number feels implausible.
Accuracy and limits
Exact factor, exact arithmetic, one rounding at the display precision you choose. Input accepts decimals, scientific notation, spaces and correctly grouped thousands separators; genuinely ambiguous input is refused with an explanation rather than silently interpreted, because a wrong guess at a decimal separator in a dosing context is not a cosmetic error. The tool converts mass only β concentrations, international units and percentage daily values all carry information about a substance that no converter can supply.
Reading a nutrition panel end to end
A single panel usually mixes both units by design: macronutrients in grams, sodium and micronutrients in milligrams. Converting the whole panel into one unit is what makes it comparable. A serving with 12 g of protein, 0.4 g of sodium and 90 mg of calcium becomes 12,000 mg, 400 mg and 90 mg β and stated that way the sodium is plainly the dominant minor component, which the mixed-unit original hides. This is the everyday use of this direction: not converting one number, but flattening a table so its magnitudes can be compared at a glance.
Percentages and milligrams
Formulation sheets often give proportions rather than masses, and the bridge is this same factor. One percent of a gram is 10 mg; 0.1 percent is 1 mg. So a 2 g cream containing 1 percent of an active carries 20 mg of it. The conversion here handles the mass step; the percentage step needs the total mass of the preparation, which is information about the product rather than about the units. Stating both β the total and the percentage β is what makes a formulation reproducible.
How to use the Grams to Milligrams Converter
- Enter the grams β decimals are the whole point here.
- Read the milligrams: the decimal point moves three places right.
- Use the table for the common supplement and dosing values.
- Sub-milligram results are better read on the micrograms pages linked below.
Frequently asked questions
What is the formula for grams to milligrams?
Multiply by 1,000 β exactly. 0.5 g is 500 mg, 0.02 g is 20 mg. The relationship is definitional, so every digit of the answer is real.
What is 0.4 g in mg?
400 mg. The pattern to internalise: shift the decimal three places right and drop the point β 0.4 β 400, 0.75 β 750, 1.2 β 1,200.
Why does my lab report mix g and mg?
Reports quote each analyte in the unit that keeps its reference range in readable numbers β cholesterol in mg/dL, total protein in g/dL. Converting between them is this page's Γ1,000; comparing across reports also needs the per-volume part to match, which is a units question beyond mass alone.
How do I avoid decimal errors converting doses?
Write the leading zero (0.5 g, never .5 g), never write trailing zeros (5 mg, never 5.0 mg β misread as 50), and convert in one step with the units written down. These are standard medication-safety rules precisely because Γ1,000 slips are the dangerous kind.
Is a "gram" on food labels the same gram?
Yes β the SI gram is universal. Nutrition panels, kitchen scales, lab balances and this converter all mean the same unit, which is exactly why metric won in medicine and food labelling.
What about grains β the old pharmacy unit?
Different unit entirely: 1 grain is 64.79891 mg. Old prescriptions written in grains (aspirin was "5 grains" β 324 mg) need the grains to milligrams converter, not this page β the two units differ by a factor of about 15.4.
How large a value can I enter?
Any realistic one, and far beyond: the tool keeps exact arithmetic to 40 significant digits and switches to scientific notation when plain decimals stop being readable.