Skip to main content
grams → milligrams

40 grams to milligrams

40,000 mg

40 g = 40,000 mg.

milligrams

40,000mg

40 g = 40,000 mg

In short

How many milligrams is 40 grams?

40 g = 40,000 mg. 1 gram = 1,000.000000 milligrams, so the working is 40 × 1,000.000000 = 40,000.

The working

The factor below is an exact definition rather than a measurement, so nothing is approximated in the arithmetic. The only rounding on this page happens where a number is displayed.

1 gram = 1,000.000000 milligrams
40 × 1,000.000000 = 40,000

How much precision do you need?

Each row is the same answer cut at a different number of decimals, with what that choice costs you. Pick the shortest row whose error is smaller than whatever you are measuring with.

Rounded toAnswer (mg)Off by
Whole number40,000exact
1 decimal40,000.0exact
2 decimals40,000.00exact

Round trip: take 40,000 mg back the other way and you land on 40.0000 g — a drift of 0.0000 g. That gap is the rounding, not the conversion.

Frequently asked questions

What is 40 grams in milligrams?

40 grams is 40,000 milligrams. 1 gram = 1,000.000000 milligrams, so the working is 40 × 1,000.000000 = 40,000.

How accurate is 40,000 mg?

Rounding to 40,000 mg and converting straight back gives 40.0000 g, a drift of 0.0000 g from the 40 you started with. The factor itself is exact; every bit of that difference comes from the rounding, not the conversion.

Nearby values

Any value at all

Grams to Milligrams Converter

Convert g to mg — and why a trailing zero is banned on a prescription.

Open the grams to milligrams converter