Moles Calculator

This moles calculator converts between mass, moles, and molar mass using the fundamental relationship n = m / M, where n is the number of moles, m is the mass in grams, and M is the molar mass in grams per mole. The mole is the chemist's counting unit: one mole contains 6.022 x 10^23 particles, and it is the unit every balanced chemical equation is written in. Because you cannot count individual molecules directly but you can weigh a sample on a balance, converting between mass and moles is the single most common calculation in chemistry. It is the starting point for working out reacting quantities, theoretical yields, and solution concentrations. You pick which quantity to solve for, enter the other two, and the result appears immediately. To find moles, the calculator divides mass by molar mass. To find mass, it multiplies moles by molar mass. To find molar mass, it divides mass by moles. If you do not know the molar mass of your compound, use the molar mass calculator with the chemical formula first and then enter the result here. Mass is always in grams, and molar mass is always in grams per mole. The default example is 18 g of water, which has a molar mass of 18.02 g/mol, giving just under 1.00 mol. This tool is for chemistry students, lab technicians preparing solutions, and anyone doing stoichiometry calculations. Results are mathematical and assume pure substances; real samples may contain impurities.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Advertise on this page
g
g/mol
1 mol
moles
Mass18 g
Molar mass18.02 g/mol
Moles0.9989 mol

Mass in grams, molar mass in grams per mole. Use the Molar Mass Calculator to find the molar mass of your compound from its chemical formula.

How it works

The three quantities are linked by n = m / M. To find moles (n): divide mass (m) by molar mass (M). To find mass (m): multiply moles (n) by molar mass (M). To find molar mass (M): divide mass (m) by moles (n). The selected variable's input row is hidden so you only enter the two known values. Division by zero or negative values is caught and a prompt is shown instead of a nonsensical result.

Worked example

You have 18 g of water (H2O). The molar mass of water is 18.02 g/mol. Moles = 18 / 18.02 = 1.00 mol. This matches the default values pre-filled in the calculator above. If you had 36 g of water, you would have 2.00 mol; if you had 9 g, you would have 0.50 mol.

Related calculators