About the Grams to Moles Calculator
Convert a mass in grams into moles using the compound’s molar mass.
Also known as: grams to moles, g to mol, convert mass to moles.
How to use this calculator
- Enter chemical formula, mass.
- 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
n = m / M
Worked example
Using the values pre-filled in the calculator above:
- Chemical formula: H2SO4
- Mass = 49 g
the calculator returns:
- Moles: 0.499633 mol
- Molar mass: 98.072 g/mol
- Millimoles: 499.633
- Particles: 3.00886 × 10^23
Working
n = m / M = 49 / 98.072 = 0.499633 mol