CalcWorldHub
Free online calculator · no signup

Grams to milligrams converter

Convert grams to milligrams or reverse the direction in one step. This free converter keeps the source and target units visible, which is useful for quick checks, worksheets, travel planning, recipes, specifications, and technical notes.

4,000 tools
Grams to milligrams converter — Value to convert, Conversion direction and calculation method
Grams to milligrams converter: inputs and calculation method.

How to use this calculator

Convert grams to milligrams or reverse the direction in one step.

  1. Enter Value to convert, Conversion direction. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Conversion guide

How to convert grams and milligrams

One gram contains exactly 1,000 milligrams. Select A → B to scale grams up by 1,000, or B → A to express milligrams in grams.

Inputs and units

amount — Value to convert
Enter a numeric value measured in the selected source unit. The same value is used whichever direction is selected.
direction — Conversion direction
A = grams (g); B = milligrams (mg).

Formula and method

A → B: x × 1000; B → A: x × 0.001. These are exact metric-prefix factors.

The milli-prefix means 10⁻³, so one milligram is 0.001 g. The reverse direction uses the reciprocal factor; no density or volume input is needed.

Worked example

Enter 10 g and select A to B. The calculator returns 10000 mg. Reverse the direction and enter 10 mg to see the reciprocal conversion.

Assumptions and limits

This converts mass only using the metric prefix relation 1 g = 1,000 mg; it does not convert volume.

Reading the result

For A → B, the number grows by a factor of 1,000; in reverse it shrinks by that factor. The displayed unit changes with the selected direction.

Method reference: NIST Guide to SI, Appendix B conversion factors.

Frequently asked questions

How many mg are in one g?

One g equals 1000 mg under the unit definition used here.

How do I convert milligrams back to grams?

Select B to A, enter the milligrams value, and calculate. The conversion factor is inverted automatically.

Is the gram-to-milligram factor exact?

Yes. The metric-prefix relation is exactly 1 g = 1,000 mg; only displayed precision can change the final shown digits.

How do I use the Grams to milligrams converter?

Enter Value to convert, Conversion direction. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Grams to milligrams converter?

Enter 10 g and select A to B. The calculator returns 10000 mg . Reverse the direction and enter 10 mg to see the reciprocal conversion.