molecalculator

Moles & Molar Mass

Grams to Moles: How to Convert & Formula

Calculator No. 01-10551 · Updated · Formula and assumptions shown below

Molarity 0.2000 mol/L
Concentration in millimolar
200.00 mM
= Molarity × 1000
Mass of solute
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of solute (g), Molar mass (g/mol), Final solution volume (mL)
You get
Molarity (mol/L), Concentration in millimolar (mM)
Rounding
4 dp · 2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

To convert grams to moles, divide the mass in grams by the molar mass of the substance (in g/mol). For example, 10.0 g of water (molar mass 18.015 g/mol) equals 0.555 moles. This page provides a calculator, the formula, and step-by-step examples for any substance.

Formula

The core conversion is:

moles = mass (g) / molar mass (g/mol)

Where:

  • mass is the weight of the substance in grams (g).
  • molar mass is the mass of one mole of the substance in grams per mole (g/mol). For a compound, add the atomic weights of all atoms in its formula.
  • moles is the amount of substance, expressed in moles (mol).

For the calculator above, which also computes molarity, the relationship is:

molarity (mol/L) = mass (g) / molar mass (g/mol) / volume (L)

Since volume is entered in mL, it is converted to liters by dividing by 1000.

Worked Example

Using the default values from the calculator: mass = 2.922 g of sodium chloride (NaCl), molar mass = 58.44 g/mol, and final solution volume = 250 mL.

  1. First, find the number of moles of NaCl:
    moles = 2.922 g / 58.44 g/mol = 0.05000 mol (exactly 0.05 mol).
  2. Convert the volume to liters:
    250 mL = 250 / 1000 = 0.250 L.
  3. Calculate molarity:
    molarity = 0.05000 mol / 0.250 L = 0.2000 mol/L.
  4. Convert to millimolar:
    0.2000 mol/L × 1000 = 200.0 mM.

The calculator shows 0.2000 mol/L and 200.00 mM, matching these steps.

Assumptions

  • The substance is pure; impurities would change the effective mass.
  • The molar mass is accurate for the given formula (for NaCl, 22.99 + 35.45 = 58.44 g/mol).
  • For molarity, the volume is the final solution volume (after dissolving), not the volume of solvent added.
  • Temperature and pressure do not affect mass or molar mass (they would affect gas volume but not moles).

How to Find Molar Mass

Molar mass comes from the periodic table. For an element, it is the atomic weight in g/mol. For a compound, sum the atomic weights of all atoms in the formula.

  • Water (H₂O): 2×1.008 + 15.999 = 18.015 g/mol.
  • Carbon dioxide (CO₂): 12.011 + 2×15.999 = 44.009 g/mol.
  • Glucose (C₆H₁₂O₆): 6×12.011 + 12×1.008 + 6×15.999 = 180.156 g/mol.

Always use the exact atomic weights from a reliable source (IUPAC) for precise work.

Common Mistakes and Misconceptions

  • Using the wrong molar mass: For hydrated salts (e.g., CuSO₄·5H₂O), include the water molecules in the molar mass.
  • Confusing grams with moles: Grams is mass; moles is amount. They are proportional only through molar mass.
  • Rounding too early: Round only at the final answer to avoid accumulating error.
  • Forgetting to convert mL to L: When calculating molarity, volume must be in liters.
  • Assuming molar mass is the same as molecular weight in daltons: Numerically they are equal, but units differ (g/mol vs Da).

When to Use This Conversion

Converting grams to moles is essential in stoichiometry, preparing solutions, and interpreting chemical reactions. You use it whenever you need to:

  • Calculate how many moles of a reactant you have in a given mass.
  • Prepare a solution of a specific molarity from a solid reagent.
  • Convert between mass and amount in a balanced chemical equation.
  • Find the number of molecules or atoms (multiply moles by Avogadro’s number, 6.022×10²³).

In the lab, always follow your method, the safety data sheet (SDS), and your supervisor.

Limits of the Formula

The conversion is exact for pure substances. However, molar mass is an average if the element has multiple isotopes (e.g., chlorine is a mix of ³⁵Cl and ³⁷Cl). For most work, the standard atomic weight is sufficient. For extremely precise work (e.g., isotope dilution), you may need the isotopic composition.

Also, the molarity calculation assumes complete dissolution and that the volume is the final volume. If you add solute to a volumetric flask and then fill to the mark, the volume is correct. If you add solvent to a beaker, the final volume may differ.

Frequently Asked Questions

How do I convert grams to moles without a calculator?

Divide the mass in grams by the molar mass (g/mol). For example, 36 g of water divided by 18 g/mol gives 2 moles. You need the molar mass from the periodic table.

What is the difference between molar mass and molecular weight?

Molecular weight is the sum of atomic weights of atoms in a molecule, expressed in atomic mass units (u) or daltons (Da). Molar mass is the same numerical value but expressed in grams per mole (g/mol). For example, water has a molecular weight of 18.015 u and a molar mass of 18.015 g/mol.

Can I convert grams to moles for any substance?

Yes, as long as you know the chemical formula and can calculate its molar mass. For elements, use the atomic weight. For compounds, sum the atomic weights of all atoms.

Why do I need to convert grams to moles in chemistry?

Chemical reactions are described in moles because atoms and molecules react in fixed ratios. Grams are a mass unit that depends on the substance, while moles are a count of particles. Converting allows you to use stoichiometric ratios.

How many grams are in one mole of any substance?

It depends on the substance. One mole of carbon-12 weighs exactly 12 grams. One mole of water weighs about 18 grams. In general, the mass in grams of one mole equals the molar mass.

What if I have a hydrate? Do I include the water in molar mass?

Yes. For a hydrate like CuSO₄·5H₂O, add the molar mass of CuSO₄ (159.61 g/mol) plus five times the molar mass of water (5×18.015 = 90.075 g/mol) to get 249.685 g/mol. Use this total for conversions.

Related

Formula used
in m | Mass of solute | g | 2.922 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
in v | Final solution volume | mL | 250 | 0.001
out c | Molarity | mol/L | m / mm / (v / 1000) | 4
out cmm | Concentration in millimolar | mM | c * 1000 | 2

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

The whole Moles & Molar Mass section →