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 Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
g
g/mol
1.00 mol
moles
Mass18.00 g
Molar mass18.02 g/mol
Moles1.00 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

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.