Convert grams to moles with n = m ÷ M: divide the sample’s mass in grams by the substance’s molar mass in grams per mole. Enter a mass and molar mass in this calculator to get the amount of substance in moles, with the calculation shown below.
Formula
The grams-to-moles formula is n = m / M.
- n is the amount of substance, measured in moles (mol).
- m is the sample mass, measured in grams (g).
- M is the molar mass of the substance, measured in grams per mole (g/mol).
The units explain why the division works: g ÷ (g/mol) = mol. For a pure substance, molar mass is the mass of one mole of its specified particles, such as molecules, atoms, or formula units. The value depends on the chemical formula and the atomic weights used to calculate it.
Worked Example
Using the calculator’s default values, convert 10 g of sodium chloride (NaCl) to moles. Its listed molar mass is 58.44 g/mol.
- Write the formula: n = m / M.
- Substitute the values: n = 10 g / 58.44 g/mol.
- Calculate: n = 0.1711157… mol, which rounds to 0.1711 mol at four decimal places.
The units of grams cancel, leaving moles. This result represents the amount of NaCl in the sample; it does not say how many grams of sodium or chlorine are present separately.
Assumptions
- The entered mass is for the substance whose molar mass is entered, and the sample is treated as pure.
- The molar mass is expressed in g/mol and is appropriate for the specified chemical formula and particle type.
- The calculator reports the mathematical result to four decimal places; the actual measurement may not support that many significant figures.
How to Find Molar Mass
If a reference value is not supplied, calculate molar mass from the chemical formula and the periodic table. Multiply each element’s atomic weight by its subscript, then add the contributions. Use the element count in the entire formula, including any parentheses and any coefficient represented by a hydrate dot.
For sodium chloride, NaCl contains one sodium atom and one chlorine atom. Using abridged standard atomic weights, Na = 22.990 g/mol and Cl = 35.45 g/mol:
M(NaCl) = 22.990 + 35.45 = 58.440 g/mol
For water, H2O contains two hydrogen atoms and one oxygen atom: 2(1.008) + 15.999 = 18.015 g/mol. The subscript applies to the element immediately before it; parentheses multiply every atom inside them. For example, calcium chloride, CaCl2, contains two chlorine atoms.
Some substances have variable composition, contain water of crystallization, or are mixtures rather than a single pure compound. In those cases, one formula and one molar mass may not adequately describe the whole sample. Use the composition or form specified by the problem or lab method.
When to Use the Conversion
Mass is straightforward to measure, while chemical equations and particle-scale calculations are usually expressed in moles. Converting between them connects a weighed sample to reaction ratios, molecular counts, and solution calculations. The formula is useful when the substance’s identity and molar mass are known.
- Stoichiometry: convert a known reactant mass to moles before applying coefficients from a balanced equation.
- Particle counts: after finding moles, multiply by Avogadro’s constant, 6.02214076 × 1023 particles/mol, to estimate the number of specified entities.
- Solution preparation calculations: use moles as an intermediate when calculating a concentration, while distinguishing the final solution volume from the amount of solvent.
- Comparing samples: convert different substances to moles before comparing chemical amounts; equal masses of different compounds generally do not contain equal numbers of molecules.
For a reaction, do not assume the mole ratio is one-to-one. First balance the chemical equation, then use its coefficients to relate the moles of different substances.
Common Mistakes and Limits
- Reversing the division: grams to moles requires mass divided by molar mass. Multiplying these quantities does not produce moles.
- Mixing units: if mass is entered in milligrams, convert it to grams first (1 g = 1,000 mg). If a molar mass is in kg/mol, convert it to g/mol or convert mass consistently.
- Using the wrong formula or form: a salt, hydrate, isotope-specific compound, or different molecular form can have a different molar mass. Confirm the formula and particle identity.
- Overstating precision: calculator digits are not the same as measurement certainty. Round the final result to a precision justified by the measured mass and the supplied molar mass, following the conventions required by the problem.
This calculation only converts mass to amount of substance. It does not account for impurities, reaction yield, incomplete reaction, moisture, or uncertainty in a balance reading. If a sample is a mixture, its total mass alone cannot determine the moles of each component; more composition information is needed.
Frequently Asked Questions
How do I convert grams to moles?
Divide the mass in grams by the molar mass in g/mol: n = m / M. The answer is in moles.
What is the formula for grams to moles?
The formula is n = m ÷ M, where n is moles, m is mass in grams, and M is molar mass in grams per mole.
How many moles are in 10 grams of NaCl?
Using 58.44 g/mol for NaCl, 10 ÷ 58.44 = 0.1711 mol to four decimal places.
Can I convert grams to moles without molar mass?
No. You need the substance’s molar mass, which is determined from its chemical formula or a reliable reference value.
Are grams and moles interchangeable?
No. Grams measure mass; moles measure amount of substance. Molar mass provides the conversion between them for a specified substance.
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
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