Use the grams-to-moles equation n = m ÷ M: divide a substance’s mass in grams by its molar mass in grams per mole. Enter those two values in the calculator below to get the amount of substance in moles, with molar mass as a separate input because it depends on the compound.
Formula
The equation 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 substance’s molar mass, measured in grams per mole (g/mol).
The units show why the calculation works: g ÷ (g/mol) = mol. The grams cancel, leaving moles. The calculator accepts a mass of zero or more and a positive molar mass. It does not identify the substance or look up its molar mass; you must supply the appropriate value.
Worked Example
The calculator’s default inputs are 10 g and 58.44 g/mol. Substituting them into the equation gives:
n = m / M = 10 g / (58.44 g/mol) = 0.1711157 mol ≈ 0.1711 mol
Thus, 10 g of a substance with a molar mass of 58.44 g/mol corresponds to 0.1711 mol. The calculator displays four decimal places; the extra digits above show the unrounded division. The result is only as reliable as the mass and molar mass entered.
Assumptions
- The sample’s identity and composition are known, so one molar mass applies.
- The entered mass is the mass of the substance of interest, not the mass of a container or an unaccounted mixture.
- The molar mass is expressed in g/mol and is suitable for the substance’s stated chemical form.
What a Mole Means
A mole is a unit for counting entities such as atoms, molecules, ions, or formula units. One mole contains exactly 6.02214076 × 1023 specified entities, the Avogadro constant. Since individual particles are extremely small, chemists commonly measure a sample’s mass and use molar mass to convert that mass into a particle-counting amount.
Molar mass is the mass of one mole of a substance. Its numerical value in g/mol is commonly obtained from the substance’s chemical formula and standard atomic weights. For example, water, H2O, has a molar mass of about 18.015 g/mol: 2 × 1.008 g/mol for hydrogen plus 15.999 g/mol for oxygen. Therefore, 18.015 g of water is about 1 mol, while 9.008 g is about 0.500 mol.
Finding the Correct Molar Mass
First establish exactly what substance the mass represents. For a pure element, use its molar mass; for a compound, add the atomic masses according to its chemical formula and subscripts. A periodic table or a reliable chemical reference can supply standard atomic weights. Keep enough digits during the calculation, then round the final answer to match the precision of the measurements and the purpose of the calculation.
The chemical form matters. Hydrates include water in their formula, and salts may have different counterions or degrees of hydration. For example, an anhydrous compound and its hydrate do not have the same molar mass. If the label, formula, or sample composition is uncertain, a precise division cannot resolve that uncertainty: verify the material’s identity before using the result.
For a mixture, the equation gives the total moles only if the entered molar mass represents a meaningful average for the mixture. If you need the amount of one component, use that component’s mass or its known mass fraction, then apply the component’s own molar mass. Do not treat the molar mass of one ingredient as if it described an entire mixture.
When to Use the Conversion
Grams-to-moles conversion is useful whenever a calculation requires an amount of substance instead of a mass. In stoichiometry, for example, balanced-equation coefficients compare amounts in moles; converting a measured mass to moles is often an early step in finding how much reactant or product corresponds to another quantity. In solution calculations, moles may be used with volume to find concentration, provided the final solution volume and the applicable units are handled correctly.
To convert the other way, rearrange the same equation: m = n × M. If you know 0.25 mol of a substance with M = 58.44 g/mol, its mass is 0.25 mol × 58.44 g/mol = 14.61 g. The two equations are inverse operations: divide by molar mass to get moles from grams, and multiply by molar mass to get grams from moles.
Common Errors and Limits
- Reversing the division: grams divided by g/mol gives moles. Multiplying grams by g/mol does not.
- Mixing units: if mass is in milligrams, convert it to grams by dividing by 1,000, or use a consistently converted molar mass. Do not enter milligrams as though they were grams.
- Using the wrong formula or chemical form: a subscript, counterion, or water of crystallization changes molar mass and therefore changes the answer.
- Rounding too early: keep useful digits in the molar mass and intermediate values; round the reported result at the end.
- Confusing moles with particles: moles are an amount, not a count of individual particles. To find the number of entities, multiply moles by 6.02214076 × 1023 entities/mol.
The equation is a unit conversion, not a test of sample purity. If a sample contains impurities, the calculation based on its total mass can overstate the moles of the desired compound unless the pure-compound fraction is known. Likewise, uncertain mass measurements or approximate molar masses limit the precision of the answer. For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.
Frequently Asked Questions
What is the equation for converting grams to moles?
Divide mass in grams by molar mass in grams per mole: n = m / M.
How many moles are in 1 gram?
It depends on the substance. Calculate 1 g divided by that substance’s molar mass in g/mol. One gram of a low-molar-mass substance represents more moles than one gram of a high-molar-mass substance.
Can I convert grams to moles without molar mass?
No. You need the substance’s molar mass, which depends on its chemical identity and, for some materials, its form or composition.
How do I convert milligrams to moles?
Convert milligrams to grams first: grams = milligrams / 1,000. Then divide the mass in grams by the molar mass in g/mol.
Are grams and moles the same thing?
No. Grams measure mass, while moles measure amount of substance. Molar mass connects the two quantities.
Related
Formula used
in m | 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
- Percent Composition Formula and Worked Example17.76 %
- What Is r in the Free Energy Equation?1.0000
- Average Atomic Mass Equation and Calculator10.81103 u
- Arrhenius Equation: A-Level Chemistry and Calculator52.91 kJ/mol
- Theoretical Yield Calculator and Stoichiometry Formula1.8015 g
- Empirical Formula Equation: Calculate the Simplest Ratio