Calculate the number of moles from a sample’s mass and molar mass: enter the mass in grams and molar mass in grams per mole to get the amount in moles. The calculator also reports the corresponding number of molecules or formula units, using the exact Avogadro constant.
Formula
The basic calculation is n = m / M. Divide the sample mass, m, in grams (g) by its molar mass, M, in grams per mole (g/mol). The result, n, is the amount of substance in moles (mol). The units cancel as g ÷ (g/mol) = mol.
For the particle count, use N = n × NA, where N is the number of specified particles and NA is the Avogadro constant, exactly 6.02214076 × 1023 mol−1. A “particle” can mean atoms, molecules, ions, or formula units; the appropriate kind depends on the substance and question. The calculator’s particle result is an estimate rounded to a whole particle.
In the example calculator, m is entered in g and M in g/mol. If your mass is in another unit, convert it to grams first. Molar mass must refer to the same chemical substance and formula as the sample.
Worked Example
Using the calculator’s default inputs—10 g of sodium chloride (NaCl) and a molar mass of 58.44 g/mol:
- Calculate moles: n = m / M = 10 g / 58.44 g/mol = 0.1711 mol (rounded to four decimal places).
- Calculate the number of particles: N = n × NA = (10 / 58.44) mol × 6.02214076 × 1023 mol−1 ≈ 1.030 × 1023 formula units.
The particle count refers to NaCl formula units, not separate NaCl molecules: solid sodium chloride is an ionic compound. In water, it separates into sodium and chloride ions, so counting ions would require stating whether the requested count is for each ion type or for all ions.
Assumptions
- The entered mass is the mass of the substance being counted, not the mass of its container or a mixture’s total mass.
- The entered molar mass is appropriate for the substance’s chemical formula and composition.
- The calculated amount assumes the sample is represented by that formula; impurities, water content, or uncertain composition can make the actual amount differ.
- The particle count uses the exact Avogadro constant; its displayed whole-number value does not imply that a measured sample is known to that precision.
What a Mole Measures
A mole is the SI unit for amount of substance. One mole contains exactly 6.02214076 × 1023 specified entities. That number is enormous because atoms and molecules are extraordinarily small: a mole lets chemists connect the microscopic count of particles to laboratory-scale measurements such as grams.
Moles are useful because chemical equations express reacting particles as ratios. For instance, a balanced equation may say that two molecules of one substance react with one molecule of another; the same ratio applies to their amounts in moles. The mole calculation therefore provides a bridge from a measured mass to the quantities used in reaction calculations, solution preparation, and gas-law problems.
How to Find Molar Mass
Molar mass is the mass of one mole of a substance. For a compound, find it by adding the atomic masses for every atom in its chemical formula, multiplying each element’s value by its subscript. For sodium chloride, the conventional abridged standard atomic weights give Na = 22.990 and Cl = 35.45, so the molar mass is 22.990 + 35.45 = 58.440 g/mol, commonly written as 58.44 g/mol.
For water, H2O, the corresponding calculation is 2 × 1.008 + 15.999 = 18.015 g/mol. These are average molar masses based on standard atomic weights, which account for the natural isotopic composition represented by those values. A particular isotope-enriched sample can have a different molar mass, so use isotope-specific data when that distinction matters.
Using the Result and Avoiding Errors
- Check the units. If the mass is given in milligrams, divide by 1,000 to convert to grams; if it is in kilograms, multiply by 1,000. Keep molar mass in g/mol when using mass in grams.
- Use the full formula. A subscript changes the count of atoms: CO and CO2 have different molar masses. For hydrates, include the water shown in the formula.
- Distinguish moles from particles. Moles measure amount of substance; particles are a count. Multiply moles by Avogadro’s constant to convert to a count, or divide a particle count by it to convert to moles.
- Do not overstate precision. A calculator can display several digits, but the result cannot be more reliable than the mass measurement and molar mass used. Round only after doing the calculation, and follow significant-figure rules appropriate to the measurements.
- Account for mixtures and purity. If a weighed sample contains impurities or moisture, its total mass is not all the mass of the target compound. Use the target substance’s actual mass or a justified purity correction when known.
A common misconception is that “moles” always means molecules. It does not: the entity must be specified. One mole of helium is one mole of helium atoms; one mole of water is one mole of water molecules; one mole of sodium chloride is one mole of formula units. Likewise, a mole of ions refers to a stated ion type or a defined collection of ions.
When the Mass Formula Is Not Enough
The mass-based formula is convenient when you know both the sample’s mass and molar mass. In other situations, use the measurement that is available. For a solution, amount can be calculated from concentration and volume: n = cV, with concentration in mol/L and volume in L. For a gas, an ideal-gas calculation may be appropriate if pressure, volume, and temperature are known; real gases can depart from ideal behavior, especially under conditions where interactions or compression matter.
These methods answer related questions, but they rely on different inputs and assumptions. A concentration describes amount per volume, whereas molar mass converts mass to amount. Do not substitute solution volume for sample mass in the mass formula. For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.
Frequently Asked Questions
How do I calculate moles from grams?
Divide the mass in grams by the substance’s molar mass in g/mol: n = m/M. For example, 10 g divided by 58.44 g/mol is about 0.1711 mol.
How do I calculate moles from molecules?
Divide the number of molecules by Avogadro’s constant, 6.02214076 × 1023 molecules/mol. The result is the amount in moles.
How do I calculate molar mass from a formula?
Add the atomic masses of the elements in the formula, multiplying each by the number of its atoms. The result is usually expressed in g/mol.
Can the number of moles be less than one?
Yes. A fraction of a mole is an ordinary amount of substance. For example, 0.1711 mol represents about 1.030 × 1023 specified particles.
What is the difference between a mole and a molecule?
A molecule is one particle; a mole is an amount containing 6.02214076 × 1023 specified particles. Some substances, including ionic salts, are counted in formula units rather than molecules.
Related
Formula used
in m | Sample mass | g | 10 | 0 in mm | Molar mass | g/mol | 58.44 | 0.001 out n | Amount of substance | mol | m / mm | 4 out p | Number of particles | particles | n * 6.02214076e23 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Molecules to Grams Calculator: Convert with Molar Mass18.0150 g
- How Many Protons Are in Potassium (K)?19 protons
- Moles of Electrons: Formula and Calculator
- Molecules to Liters Calculator: Convert Using Molarity0.1000 L
- How to Calculate mL to Moles: Formula and Calculator0.1250 mol
- Free Energy Change Calculation: ΔG Formula and Example-24.907 kJ/mol