Use this calculator to find the amount of substance in moles from a sample’s mass and molar mass. Enter the mass in grams and the molar mass in grams per mole; the result is the number of moles, with an optional particle-count conversion using Avogadro’s constant.
Formula
For a sample whose mass and molar mass are known, divide mass by molar mass:
n = m / M
- n is the amount of substance, in moles (mol).
- m is the sample mass, in grams (g).
- M is the substance’s molar mass, in grams per mole (g/mol).
The units cancel as g ÷ (g/mol) = mol. To convert moles to individual particles, use N = n × NA, where N is the number of particles and the exact Avogadro constant is NA = 6.02214076 × 1023 mol−1. “Particles” means the relevant entities: atoms, molecules, ions, or formula units.
Worked Example
Find the amount of sodium chloride (NaCl) in 2.922 g. The calculator’s default molar mass is 58.44 g/mol, based on the conventional atomic weights Na = 22.990 and Cl = 35.45.
- Record the mass: m = 2.922 g.
- Use the molar mass: M = 58.44 g/mol.
- Substitute into the formula: n = m / M = 2.922 g / 58.44 g/mol = 0.05000 mol.
- For the corresponding number of formula units, calculate N = n × NA = 0.05000 mol × 6.02214076 × 1023 mol−1 = 3.011 × 1022 particles.
The calculator displays 0.0500 mol and about 3.011 × 1022 particles at its specified precision. A mole is a counting unit, not a mass: one mole contains Avogadro’s exact number of specified entities.
Assumptions
- The sample is the substance represented by the molar mass entered, and its mass is measured in grams.
- The molar mass is appropriate for the substance’s chemical formula and, where relevant, its stated form or composition.
- The particle count treats each specified atom, molecule, ion, or formula unit as one entity. It does not assume that a compound dissociates into ions.
What You’ll Need
- The sample’s mass, measured or provided in grams. Convert from another unit before entering it; for example, 1 kg = 1000 g.
- The correct molar mass in g/mol. Look it up or calculate it from the chemical formula and standard atomic weights.
- A calculator, or this page’s calculator. For a particle count, the conversion uses Avogadro’s constant.
Step-by-Step
- Identify the substance. Confirm its formula and form. A hydrate, salt, isotope-enriched material, or mixture can have a different molar mass than a related anhydrous or pure compound. For a mixture, a single molar mass may not be suitable.
- Find or calculate the molar mass. Add the atomic masses of all atoms in one formula unit, multiplying each element’s atomic mass by its subscript. For water, H2O, M = 2(1.008) + 15.999 = 18.015 g/mol. Use the same convention and precision for every element in the calculation.
- Get the sample mass in grams. If it is given in milligrams, divide by 1000; if given in kilograms, multiply by 1000. Do not enter a volume as though it were a mass. Converting a liquid’s volume to mass requires its density and conditions.
- Divide mass by molar mass. Calculate n = m / M. Keep the units visible: grams divided by grams per mole gives moles. For example, 9.0075 g of water divided by 18.015 g/mol gives 0.5000 mol.
- Round appropriately. Keep extra digits during the calculation, then round the final answer to match the precision justified by the measured mass and molar mass. The displayed calculator result is rounded to four decimal places for moles; the underlying result may have more digits.
- Convert to particles only if needed. Multiply moles by 6.02214076 × 1023 mol−1. State whether the answer is molecules, atoms, ions, or formula units. For example, one mole of NaCl corresponds to one mole of formula units, not automatically two moles of particles unless counting Na+ and Cl− separately after dissociation.
- Check whether another route applies. For a solution, moles may be found from molarity × volume in liters. For a gas, the appropriate gas-law relationship may be needed, with pressure, volume, and temperature supplied. Do not use the mass formula unless both mass and a valid molar mass are known.
Common Mistakes
- Reversing the division. Moles are mass divided by molar mass, not molar mass divided by mass.
- Mixing units. A mass in milligrams paired with a molar mass in g/mol gives an answer 1000 times too small unless the mass is converted to grams first.
- Using the wrong formula or chemical form. Missing a subscript, ignoring water of hydration, or using a molar mass for a different salt changes the result.
- Confusing moles with particles. Moles measure an amount; particle count is a separate quantity found using Avogadro’s constant.
- Rounding too early. Early rounding can affect the final digits, particularly in multi-step stoichiometry. Keep guard digits and round once at the end.
- Treating a solution’s volume as its mass. A volume alone cannot be substituted for mass; use concentration or density information when the problem requires it.
Tips
- Write the units beside each value before substituting. Unit cancellation is a quick way to catch a reversed formula or conversion error.
- For compounds, use parentheses and subscripts carefully. In Al2(SO4)3, for example, the 3 multiplies every atom inside the parentheses.
- Check the scale of the answer. A few grams of a small-molar-mass substance commonly represent fractions of a mole; a very large answer may indicate a unit or molar-mass error.
- When reporting particle counts, use scientific notation and name the entity being counted. Avoid implying that a formula-unit count is the same as the number of ions in solution.
- For lab planning, account for purity or assay only when reliable information is provided; the basic mass-over-molar-mass calculation assumes the weighed sample is the stated substance. Follow your lab method, the safety data sheet (SDS) and your supervisor.
Troubleshooting
- The result is 1000 times off: check whether the mass was entered in milligrams or kilograms instead of grams, or whether the molar mass was entered in the wrong units.
- The answer seems implausibly large or small: verify the decimal point, chemical formula, subscripts, and molar mass. Make sure you did not use a volume in place of a mass.
- You know only the solution volume: you also need the concentration to calculate moles using n = C × V, with V in liters, or the solution’s density and composition if calculating from mass is appropriate.
- You have a gas volume: do not assume a fixed molar volume unless the stated conditions and approximation justify it. Use the supplied gas-law data and conditions.
- The sample is impure or a mixture: a single mass and molar mass may not determine the moles of each component. You need composition, purity, or assay information.
Frequently Asked Questions
What is the formula for calculating moles?
For a known mass and molar mass, use n = m / M. Keep mass and molar mass units consistent.
How do I find molar mass from a chemical formula?
Add the atomic masses of all atoms in the formula, multiplying each atomic mass by its subscript. The result is usually reported in g/mol.
Can I calculate moles from volume?
Not from volume alone. For a solution, you also need molarity and use n = C × V with volume in liters. A gas calculation needs suitable pressure, temperature, and volume data.
How many particles are in one mole?
Exactly 6.02214076 × 1023 specified entities, such as atoms, molecules, ions, or formula units.
Do I need to include the coefficient in a balanced equation?
The coefficient represents a stoichiometric ratio between substances. First calculate the moles of the sample; then use the balanced equation’s coefficients to relate that amount to other substances.
Why does my answer change when I use a different molar mass?
Different atomic-weight conventions, isotope compositions, or chemical forms can change molar mass. Check that the value matches the substance and precision required by the problem.
Related
Formula used
in m | Sample mass | g | 2.922 | 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 | 3
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