Calculate the number of moles by dividing the sample’s mass in grams by its molar mass in grams per mole: n = m / M. Enter a substance’s mass and molar mass to get the amount in moles, plus the equivalent number of millimoles.
Formula
The mass method uses n = m / M. Here, n is amount of substance in moles (mol), m is sample mass in grams (g), and M is molar mass in grams per mole (g/mol). Dividing grams by grams per mole leaves moles. The second calculator result converts moles to millimoles: mmol = n × 1000, because 1 mol = 1000 mmol.
This calculator assumes that you already know the sample’s molar mass and that the mass represents the substance being counted. Its default values illustrate water: 18.015 g of a substance with a molar mass of 18.015 g/mol is 1 mol. Change both inputs to match your material and measured sample.
Worked Example
Using the calculator’s default values, the sample mass is 18.015 g and the molar mass is 18.015 g/mol.
- Apply the mass formula: n = m / M.
- Substitute the values: n = 18.015 g / (18.015 g/mol) = 1 mol.
- Convert to millimoles: 1 mol × 1000 = 1000 mmol.
The calculator displays the amount as 1.0000 mol and 1000.0 mmol. The displayed digits are a calculator format, not a claim that the mass measurement has four significant figures.
Assumptions
- The entered mass is the mass of the substance whose amount you want, not a container, solvent, or mixture’s total mass.
- The entered molar mass is appropriate for the substance’s chemical formula and form.
- The calculation is a mass-to-amount conversion; it does not account for purity, water content, impurities, or reaction yield unless those are handled separately.
Find the Molar Mass First
Molar mass is the mass of one mole of a specified substance. For a compound, calculate it by adding the atomic masses of all atoms in its formula. For example, water is H2O. Using standard atomic weights H = 1.008 and O = 15.999, its molar mass is:
M(H2O) = 2 × 1.008 + 15.999 = 18.015 g/mol.
For carbon dioxide, CO2, using C = 12.011 and O = 15.999 gives 12.011 + 2 × 15.999 = 44.009 g/mol. Use the complete formula, including parentheses and subscripts. For a hydrate or a salt with a specified water content, include that composition; using the anhydrous formula when the sample is hydrated gives the wrong result.
For elements that naturally occur as mixtures of isotopes, tabulated standard atomic weights are commonly used for routine calculations. A sample made of a particular isotope may require that isotope’s molar mass instead. The compound’s chemical form can matter too: different hydrates, salts, or isotopically labeled forms do not necessarily share one molar mass.
Other Ways to Calculate Moles
Mass is not the only route. Choose a relation that matches the information you have:
- From particle count: n = N / NA, where N is the number of specified entities (atoms, molecules, ions, or formula units) and NA = 6.02214076 × 1023 mol−1 is the exact Avogadro constant. The kind of entity must be stated: one mole of molecules is not the same description as one mole of atoms in those molecules.
- From solution concentration: n = cV, where c is amount concentration in mol/L and V is solution volume in L. Convert millilitres to litres by dividing by 1000 before multiplying.
- From an ideal gas: n = PV/(RT), with pressure P, volume V, absolute temperature T, and the gas constant R in compatible units. This relation assumes ideal-gas behavior; real gases can depart from it, especially at high pressure or near condensation.
- From a balanced reaction: use the equation’s stoichiometric coefficients to relate the amount of one reactant or product to another. The balanced equation supplies ratios, not the sample’s starting amount by itself.
These methods answer related but different questions. If you have a mass, use molar mass. If you have a solution concentration and its final volume, use cV. Do not substitute solvent volume for solution volume: dissolving a substance can change the total volume.
Reading Results and Avoiding Errors
A mole is a counting unit, like a dozen, but its specified count is enormous: exactly 6.02214076 × 1023 specified entities. It does not mean that a sample contains that many grams. The mass of one mole depends on the identities and formulas of the particles.
- Check units: mass must use the same unit as the molar mass numerator. If mass is in milligrams, convert it to grams by dividing by 1000, or convert molar mass consistently.
- Check the formula: the denominator must be in g/mol when the mass is in grams. Dividing by a numerical atomic mass without accounting for the formula can produce an incorrect answer.
- Keep precision sensible: retain extra digits during the calculation, then round the final result to suit the precision of the measurements and molar mass. A long calculator display cannot make an imprecise measurement more precise.
- Distinguish amount from concentration: moles describe the quantity of substance; molarity describes moles per litre of solution. The same amount can have different concentrations in different volumes.
For a mixture, dividing total mixture mass by one component’s molar mass does not give that component’s moles unless the entire mass is that pure component. If the material has a known mass fraction or purity, account for it separately and state the assumption. For a reaction, the amount calculated from a weighed reactant is not automatically the amount of product formed; stoichiometry and reaction completion also matter.
When This Calculation Is Useful—and Its Limits
Mole calculations connect measurable quantities to chemical formulas. They are useful in classroom stoichiometry, checking reaction ratios, converting a weighed pure sample to an amount, and preparing calculation plans for solutions. For any bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.
The simple mass formula gives an amount from the inputs; it does not determine whether the sample is pure, whether a reaction will proceed, or how much product will actually be recovered. If purity is stated as a mass fraction between 0 and 1, the substance mass is the total sample mass multiplied by that fraction before applying n = m/M. If purity is stated as a percentage, divide the percentage by 100 to obtain the fraction. Do not apply a purity correction unless its basis is known and relevant.
Likewise, a concentration calculation requires a defined solution volume, and a gas calculation depends on pressure and temperature as well as the model chosen. Report the method and assumptions with the answer when they affect interpretation. In all cases, distinguish an exact conversion constant from measured values: Avogadro’s constant is exact in SI, while a balance reading, sample purity, or measured volume has experimental uncertainty.
Frequently Asked Questions
How do I calculate moles from grams?
Divide the mass in grams by the molar mass in grams per mole: n = m/M. For 10.0 g of a substance with molar mass 20.0 g/mol, n = 10.0/20.0 = 0.500 mol.
How many particles are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. State whether those entities are atoms, molecules, ions, or formula units.
Can I calculate moles without molar mass?
Yes, if different data are available. For example, use particle count with Avogadro’s constant or use concentration multiplied by solution volume in litres. The appropriate formula depends on what is known.
Are moles and molarity the same thing?
No. Moles measure an amount of substance. Molarity is concentration, expressed as moles per litre of solution. To find one from the other, you also need the solution volume.
Why does the formula divide by molar mass?
Molar mass tells you how many grams correspond to one mole. Dividing a sample’s grams by grams per mole therefore gives the number of moles, with the units cancelling correctly.
Related
Formula used
in m | Sample mass | g | 18.015 | 0 in mm | Molar mass of water | g/mol | 18.015 | 0 out n | Amount of substance | mol | m / mm | 4 out mmol | Amount of substance | mmol | n * 1000 | 1
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
- How Many Protons Are in Fluorine?9 protons
- Grams to Percentage Calculator: Formula and Examples12.50 %
- Prodigy Free Energy Calculator: What It Can and Can’t Do-24.907 kJ/mol
- Moles to Grams: Formula and Worked Example2.9220 g
- Moles of Electrons Formula and Faraday’s Constant
- Moles and Pressure Formula: Calculate Gas Amount1.0000 mol