Moles ↔ Grams

Convert between mass and amount using your molecular weight.

n = m / MW · n in mol, m in g, MW in g/mol.

Enter molecular weight and a positive quantity to calculate.

Load Example uses illustrative NaCl data (MW 58.44 g/mol).

How it works

Molecular weight relates a compound’s mass to its amount of substance. Use the correct molecular weight for the chemical form; hydrates and salts may differ. A mass conversion alone does not describe a balanced chemical reaction.

Formula: n = m / MW; m = n × MW. With m in g and MW in g/mol, n is in mol. 1 mmol = 0.001 mol; 1 mg = 0.001 g.

Worked example: 584.4 mg NaCl = 0.5844 g. At MW 58.44 g/mol, n = 0.5844 / 58.44 = 0.01000 mol = 10.00 mmol.

Use the calculator