About the Moles to Grams Calculator
Convert moles of a compound into grams using its molar mass.
Also known as: moles to grams, mol to g, convert moles to mass.
How to use this calculator
- Enter chemical formula, moles.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Open “Step-by-step” to see how the answer was worked out.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
m = n × M
Worked example
Using the values pre-filled in the calculator above:
- Chemical formula: NaOH
- Moles = 2.5 mol
the calculator returns:
- Mass: 99.9925 g
- Molar mass: 39.997 g/mol
- In kilograms: 0.099993
- Particles: 1.505535 × 10^24
Working
m = n × M = 2.5 × 39.997 = 99.9925 g