Convert mg/g to grams by entering the mg/g value and sample mass to calculate the total grams of substance in a sample of any positive mass.

Prefilled with 1 g, which gives grams of substance per gram. Replace it with your sample’s mass.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Substance massFinds the grams of a substance in a sample from its concentration in mg/gRequires a concentration from 0 to 1,000 mg/g and the sample mass in g, kg or mg

Sample mass is prefilled with 1 g, which returns grams of substance per gram of sample, and has presets from 1 to 1,000. Each result also lists the total milligrams and the concentration as g/g and as a percent by mass.

mg/g to g Formulas

g = mg/g × m ÷ 1,000 [1]
gMass of the substance in grams
mg/gMilligrams of substance per gram of sample
mSample mass in grams. A kilogram is 1,000 g and a milligram is 0.001 g
1,000Milligrams in a gram: milli is 10⁻³ [1]

mg/g × m is the total milligrams, and dividing by 1,000 turns that into grams. A 50 g sample at 5 mg/g holds 5 × 50 = 250 mg, or 0.25 g. A 2 kg sample at 20 mg/g holds 40 g, and a 500 mg sample at 250 mg/g holds 0.125 g.

% by mass = mg/g ÷ 10

mg/g is a mass fraction, the mass of the substance over the mass of the whole sample [2]. 1 mg/g is 0.001 g/g, 0.1% and 1 g/kg, so 5 mg/g is 0.5%. A pure substance is 1,000 mg/g, which is the highest value the calculator accepts.

Limits of This Estimate

  • The sample mass is the whole sample, substance included. A concentration quoted per gram of dry matter or per gram of one ingredient needs that mass instead.
  • The result assumes the substance is spread evenly, so a small portion of an uneven material can hold more or less than its share.

Sources