Milligram is 0.001 gram units.
Milligrams to Yoctograms Converter — mg to yg
Convert Milligram (mg) to Yoctogram (yg) using the exact conversion factor (1 milligram = 1e+21 yoctogram). See the formula, worked examples, and conversion table.
Milligrams to Yoctograms converter
Converter
Mass/Weight Converter
Convert SI mass, imperial weight, jewelry, atomic, and astronomy mass units.
Yoctogram is 1e-24 gram units.
Result = input x 1e-6 / 1e-27.
Mass uses the kilogram as the base unit.
Reserved above the conversion cards and below the converter.
About Converting Milligrams to Yoctograms
Weight conversions between Milligram and Yoctogram come up constantly in everyday commerce, shipping, and cooking, since US packaging is usually labeled in pounds while most of the rest of the world uses kilograms. Specifically: Milligram is 0.001 gram units, and yoctogram is 1e-24 gram units.
Formula
yoctograms = milligrams × 1e+21
This factor comes from each unit's defined relationship to the category's base unit: 1 milligram equals 0.000001 base units, and 1 yoctogram equals 1e-27 base units, so dividing one by the other gives the direct milligram-to-yoctogram factor of 1e+21.
Simple example
1 mg × 1e+21 = 1e+21 yg
1 milligram = 1e+21 yoctograms.
Real-world example
50 mg × 1e+21 = 5e+22 yg
50 milligrams = 5e+22 yoctograms.
Conversion table
| Milligram (mg) | Yoctogram (yg) |
|---|---|
| 1 mg | 1e+21 yg |
| 5 mg | 5e+21 yg |
| 10 mg | 1e+22 yg |
| 25 mg | 2.5e+22 yg |
| 50 mg | 5e+22 yg |
| 100 mg | 1e+23 yg |
Reverse conversion: Yoctogram to Milligram
1e+21 yg × 1e-21 = 1 mg
1e+21 yoctograms = 1 milligram.
milligrams = yoctograms × 1e-21
For a page dedicated to this direction, see Yoctogram to Milligram.
Understanding the Milligram (mg)
Milligram is 0.001 gram units.
Understanding the Yoctogram (yg)
Yoctogram is 1e-24 gram units.
Reserved between the cards and the FAQ so the page stays balanced.
Frequently asked questions
How many yoctograms are in 1 milligram?
1 milligram equals 1e+21 yoctograms, using the exact defined conversion factor rather than an estimate.
How do I convert milligram to yoctogram?
Multiply the milligram value by 1e+21. The converter above does this instantly to whatever precision you set.
How do I convert yoctogram back to milligram?
Use the reverse factor: 1 yoctogram equals 1e-21 milligrams. You can also use the swap control in the converter above to flip the direction instantly.
What is a milligram?
Milligram (mg) is a unit of mass/weight.
What is a yoctogram?
Yoctogram (yg) is a unit of mass/weight.
Is the milligram to yoctogram conversion exact?
Yes. Both milligram and yoctogram are defined by fixed standards rather than physical artifacts, so the factor of 1e+21 used above is exact to as many digits as you choose to display.