Convert mass in grams to amount in moles by dividing the sample’s mass by its molar mass in grams per mole: n = m / M. Enter the substance’s mass and molar mass below to calculate moles, with the molar mass also shown as a check.
Formula
The grams-to-moles formula is n = m / M. Divide the mass of the sample by the substance’s molar mass. Here, n is amount of substance in moles (mol), m is mass in grams (g), and M is molar mass in grams per mole (g/mol). The units cancel as g ÷ (g/mol) = mol.
The first result is the amount in moles, rounded to four decimal places. The second repeats the molar mass you entered; it does not identify the substance or verify that the value is correct. Use a molar mass appropriate to the chemical formula and, where relevant, its specified form, such as an anhydrous compound or a hydrate.
Worked Example
The defaults represent 18.015 g of water, using a molar mass of 18.015 g/mol:
- Write the formula: n = m / M.
- Substitute the default values: n = 18.015 g / 18.015 g/mol.
- Calculate: n = 1 mol.
The calculator displays 1.0000 mol and a molar mass check of 18.015 g/mol. The displayed precision is a formatting choice; it does not make the original measurements more precise.
Assumptions
- The entered mass and molar mass use the stated units: grams and grams per mole.
- The sample’s identity and chemical formula are known well enough to select its molar mass.
- The calculation treats the sample as the stated substance. It does not correct for impurities, moisture, or a mixture.
- No solution-volume, temperature, pressure, or reaction assumption is needed for this mass-to-amount conversion.
How to Find Molar Mass
Molar mass is the mass of one mole of a substance. For a molecule or formula unit, calculate it by adding the atomic masses of every atom in its chemical formula, taking subscripts into account. Standard atomic weights are commonly reported in g/mol for this purpose; for example, H is 1.008, C is 12.011, O is 15.999, Na is 22.990, and Cl is 35.45.
For water, H2O, the calculation is 2 × 1.008 + 15.999 = 18.015 g/mol. A 9.00 g water sample therefore contains 9.00 g / 18.015 g/mol ≈ 0.4996 mol. For sodium chloride, NaCl, the corresponding sum is 22.990 + 35.45 = 58.44 g/mol. A 5.844 g sample is 5.844 / 58.44 = 0.1000 mol.
Use the formula actually present in the material. A hydrate includes water in its formula, so its molar mass differs from that of the anhydrous compound. Likewise, distinguish a molecular substance from an ionic formula unit when describing what its particles are; the arithmetic still uses the formula-unit molar mass.
When to Use the Conversion
Grams are a practical measure of sample mass, while moles let you compare chemical amounts using balanced reaction equations. Converting mass to moles is often an early step in stoichiometry: once you know the amount of a reactant, the equation’s mole ratios can relate it to other reactants or products. It is also useful when preparing a calculation for concentration, where amount in moles is combined with solution volume in liters.
For example, if a calculation calls for 0.25 mol of a compound, rearrange the same relationship to find the required mass: m = n × M. That is the reverse conversion, not a different definition of a mole. For 0.25 mol of water, the mass is 0.25 mol × 18.015 g/mol = 4.50375 g, before choosing a rounding level suitable for the measurement.
Do not confuse grams to moles with grams to particles. To estimate the number of entities, first find moles and then multiply by Avogadro’s exact constant, 6.02214076 × 1023 entities per mol. State what the entities are—molecules, atoms, or formula units—because that depends on the substance and question.
Common Errors and Limits
- Multiplying instead of dividing: grams divided by g/mol gives moles. Multiplying mass by molar mass does not produce a mole amount.
- Mixing units: if mass is in milligrams, convert it to grams by dividing by 1,000 before using a molar mass in g/mol. Alternatively, convert the molar mass to matching units, but keep both quantities consistent.
- Using the wrong formula or form: a hydrate, salt, or isotope-specific compound may have a different molar mass from a related substance. Check subscripts and the material’s stated chemical form.
- Rounding too early: retain useful digits through intermediate calculations, then round the final value to match the precision justified by the input measurements.
- Assuming a sample is pure: this calculator treats all entered mass as the named compound. If a sample has a known purity fraction, the mass of the compound is the total mass multiplied by that fraction before conversion; the purity must come from reliable information.
The calculation is only as reliable as the mass, molar mass, and sample identification supplied. It does not measure purity or determine an unknown chemical’s identity. If the material is a mixture and its composition is unknown, one total mass and one molar mass cannot give a unique mole amount for each component.
Frequently Asked Questions
How do you convert grams to moles?
Divide mass in grams by molar mass in grams per mole: n = m / M. Keep the units consistent so the result 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 g/mol. To convert the other way, use m = n × M.
How many moles are in 10 grams?
It depends on the substance because molar masses differ. Divide 10 g by that substance’s molar mass in g/mol; for water, 10 / 18.015 ≈ 0.5551 mol.
Can I calculate moles without molar mass?
Not from mass alone. You need the substance’s formula or otherwise known molar mass, or other information that determines the amount independently.
Do grams and moles mean the same thing?
No. Grams measure mass; moles measure amount of substance. Molar mass connects the two for a specified substance.
How do I convert moles back to grams?
Multiply the mole amount by molar mass: mass in grams = moles × molar mass in g/mol.
Related
Formula used
in m | Mass | g | 18.015 | 0 in mm | Molar mass | g/mol | 18.015 | 0.001 out n | Amount of substance | mol | m / mm | 4 out mm | Molar mass check | g/mol | mm | 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