A grams-to-moles calculator converts a substance’s mass in grams into the amount of substance in moles: enter the mass and molar mass to get the result. The calculation is moles = grams ÷ molar mass, with molar mass expressed in grams per mole (g/mol).
Formula
Amount in moles = mass in grams ÷ molar mass in grams per mole
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 expected: g ÷ (g/mol) = mol. The calculator does not identify the material or look up its molar mass; you must provide a value appropriate to the substance and formula being considered.
Worked Example
Using the calculator’s default values—2.922 g and 58.44 g/mol—the calculation is:
- Write the relationship: n = m / M.
- Substitute the values: n = 2.922 g / 58.44 g/mol.
- Divide: n = 0.050000 mol.
The displayed result is 0.0500 mol when rounded to four decimal places.
Assumptions
- The entered mass and molar mass refer to the same chemical substance and chemical form.
- The sample’s composition is represented by its stated formula; impurities or mixtures may change the effective amount.
- This is a unit conversion based on molar mass. It does not assume a reaction, solution volume, temperature, or complete dissociation.
What Moles Mean
A mole is the SI unit for amount of substance. One mole contains exactly 6.02214076 × 1023 specified entities, such as atoms, molecules, or ions. The entity depends on what the chemical formula describes: one mole of water means one mole of water molecules, while one mole of sodium chloride formula units refers to formula units of that ionic compound.
Mass and amount are related through molar mass. A small mass of a heavy substance can represent fewer moles than the same mass of a lighter substance. For example, 1 g of a compound with a molar mass of 100 g/mol is 0.010 mol, whereas 1 g of a compound with a molar mass of 10 g/mol is 0.10 mol.
How to Find the Molar Mass
For a pure compound, calculate molar mass from its chemical formula by adding the atomic mass contribution of each element. Use the number of atoms shown by each subscript, including any grouping in parentheses. Atomic weights are commonly reported in grams per mole for this calculation; standard atomic weights can vary slightly in precision depending on the reference and convention used.
For water, H2O, the calculation using H = 1.008 and O = 15.999 is:
M(H2O) = 2 × 1.008 + 15.999 = 18.015 g/mol.
For sodium chloride, NaCl, using Na = 22.990 and Cl = 35.45 gives 58.44 g/mol. This is the default molar mass in the calculator. For a hydrated salt, ionic form, isotope-enriched material, or a different chemical formula, use the molar mass that matches that exact form rather than assuming the anhydrous or most common form.
Steps and Useful Checks
- Identify the substance and write its correct chemical formula.
- Determine its molar mass in g/mol from a reliable reference or by summing atomic weights.
- Enter the sample mass in grams. Convert other mass units before using this calculator.
- Divide the mass by the molar mass, then report the result with sensible significant figures.
Check that the answer is plausible. If the mass in grams is less than the numerical molar mass in g/mol, the amount will be less than one mole. A useful reverse check is to multiply the calculated moles by the molar mass; the result should recover the original mass, subject to rounding.
If the mass is supplied in milligrams, convert it to grams by dividing by 1,000. For instance, 250 mg = 0.250 g. Do not enter 250 as if it were grams. If the mass is in kilograms, multiply by 1,000 to convert to grams.
Common Mistakes and Limits
- Using the wrong molar mass: Confirm the formula, hydration state, and chemical form. A value for a salt is not automatically suitable for its hydrate.
- Mixing units: The formula requires mass in grams and molar mass in g/mol. Convert milligrams or kilograms first.
- Confusing moles with molecules: Moles are an amount unit, not a particle count. To estimate entities, multiply moles by 6.02214076 × 1023 entities/mol.
- Rounding too early: Keep extra digits through intermediate calculations, then round the final answer to match the precision of the measured mass and molar mass.
- Treating a mixture as pure: The calculation gives the amount corresponding to the stated mass and molar mass. It cannot determine purity or the composition of an unknown mixture.
The calculator is a direct conversion, not a reaction or concentration calculator. If a reaction calculation is needed, first convert each reactant mass to moles, then use the balanced equation’s coefficients to compare amounts. For solution concentration, moles alone are not enough; the solution’s final volume is also needed.
Frequently Asked Questions
How do I convert grams to moles?
Divide the mass in grams by the substance’s molar mass in g/mol. The result is the amount in moles.
What is the formula for grams to moles?
Use n = m / M, where n is moles, m is mass in grams, and M is molar mass in g/mol.
How many moles are in 10 grams?
It depends on the substance. Divide 10 g by that substance’s molar mass in g/mol; without the chemical identity or molar mass, there is no single answer.
Can I convert milligrams to moles?
Yes. First convert milligrams to grams by dividing by 1,000, then divide by the molar mass in g/mol.
Is molar mass the same as molecular mass?
They describe related quantities but use different units. Molecular mass is often expressed in atomic mass units per molecule, while molar mass is expressed in g/mol for a mole of the substance.
Why do I need the chemical formula?
The formula determines which atoms and how many of each are included, allowing you to calculate the molar mass. Different formulas or hydrated forms can have different molar masses.
Related
Formula used
in m | Mass | g | 2.922 | 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