The mole is chemistry's way of bridging the gap between the everyday world (grams on a scale) and the atomic world (individual atoms and molecules, far too small and numerous to count one by one). This calculator handles the two relationships that make that bridge work: converting mass to moles via molar mass, and converting moles to a particle count via Avogadro's number.
Why moles exist
Atoms and molecules are extremely small — a single water molecule has a mass of about 3 × 10⁻²³ grams, far too tiny to weigh directly. The mole solves this by defining a convenient counting unit: one mole is exactly 6.02214076 × 10²³ particles (Avogadro's number), a value chosen so that one mole of any substance has a mass in grams numerically equal to that substance's atomic or molecular mass in atomic mass units. That's why 1 mole of water (molar mass 18.015 g/mol) weighs 18.015 g, and 1 mole of table salt (molar mass 58.44 g/mol) weighs 58.44 g — the mole makes lab-scale masses and atomic-scale counts directly interchangeable.
The two formulas at the core of this calculator
Everything here follows from two relationships. First, n = mass / M converts a measured mass (in grams) into an amount in moles, using the substance's molar mass (in g/mol) as the conversion factor — the same molar mass you'd find by summing atomic masses from the periodic table. Second, N = n × N_A converts an amount in moles into a count of individual particles, using Avogadro's number as the conversion factor. Both formulas are simple proportional relationships, and both can be rearranged to solve for any one variable given the other two — which is exactly what the Mass ↔ Moles tab does.
Where molar mass comes from, and common pitfalls
Molar mass isn't something you calculate here — it's a property of the specific substance, found by adding up the atomic masses of every atom in its chemical formula (e.g. H₂O = 2×1.008 + 15.999 = 18.015 g/mol). Getting the molar mass wrong is the most common source of error in mole calculations, so double-check the formula and atomic masses before trusting the result. This calculator also assumes pure, well-defined substances — it doesn't account for mixtures, hydrates (e.g. water of crystallization), or isotopic variation, all of which shift the effective molar mass.