Grams to Moles Converter | Free Chemistry Calculator
Convert grams to moles or moles to grams using molar mass. Enter a mass and molar mass to get the result instantly, plus the formula and a worked example.
Grams to Moles Converter
Convert between grams and moles by entering the mass in grams and the molar mass of the substance.
Conversion Result
Conversion Formula
How to Use This Calculator
- Enter the mass of your substance in grams.
- Enter the molar mass of the substance in g/mol.
- The calculator will automatically convert the mass to moles.
- Use the copy button to copy the result to your clipboard.
About Moles
A mole is a unit of measurement used in chemistry to express amounts of a chemical substance. One mole of any substance contains exactly 6.02214076 × 10²³ elementary entities (atoms, molecules, ions, etc.).
For example, 1 mole of water (H₂O) has a mass of 18.02 g and contains 6.02214076 × 10²³ water molecules.
Documentation
What Is Grams to Moles Conversion?
Grams to moles conversion is the process of finding how many moles of a substance a given mass represents. A mole is the unit chemists use to count atoms, molecules, or ions. Converting grams to moles links the mass measured on a lab scale to the number of particles involved in a chemical reaction.
Chemical equations describe reactions in terms of moles, one mole of one substance reacting with a set number of moles of another. Scales measure mass in grams. Converting between the two lets a chemist turn a balanced equation into an actual amount to weigh out.
One mole of any substance contains exactly 6.02214076 × 10²³ elementary entities. This number is called Avogadro's constant. It was fixed at this exact value in 2019 as part of the international definition of the mole, set by the International Bureau of Weights and Measures (BIPM).
The Grams to Moles Formula
The number of moles equals the mass in grams divided by the molar mass of the substance:
To go the other way, from moles to grams, multiply instead of divide:
Molar mass is the mass of one mole of a substance, given in grams per mole (g/mol). For a single element, the molar mass is the atomic weight shown on the periodic table. For a compound, it is the sum of the atomic weights of every atom in its formula.
How to Calculate Molar Mass
To find the molar mass of a compound, add up the atomic weight of each element, multiplied by how many times it appears in the formula. Subscripts in the formula show how many atoms of each element are present.
- Hydrogen (H): 1.008 g/mol
- Oxygen (O): 16.00 g/mol
- Water (H₂O): 2(1.008) + 16.00 = 18.02 g/mol
- Glucose (C₆H₁₂O₆): 6(12.01) + 12(1.008) + 6(16.00) = 180.16 g/mol
Parentheses in a formula apply to every atom inside them. Calcium phosphate, Ca₃(PO₄)₂, has 3 calcium atoms, 2 phosphorus atoms, and 8 oxygen atoms (2 groups of 4 oxygens), not just one of each.
Hydrates, such as copper(II) sulfate pentahydrate (CuSO₄·5H₂O), include water molecules bound inside the crystal. The mass of those water molecules must be added to the molar mass. For CuSO₄·5H₂O, this means adding 5 × 18.02 g/mol for the five water molecules.
Worked Example
Problem: Convert 25 g of sodium chloride (NaCl) to moles.
Step 1: Find the molar mass of NaCl.
- Sodium (Na): 22.99 g/mol
- Chlorine (Cl): 35.45 g/mol
- NaCl: 22.99 + 35.45 = 58.44 g/mol
Step 2: Divide the mass by the molar mass.
So 25 g of NaCl equals 0.4278 mol.
A reverse example shows the other direction. To find the mass of 0.05 mol of sodium hydroxide (NaOH, molar mass 40.00 g/mol):
Why the Conversion Matters
Balanced chemical equations state mole ratios between reactants and products, but reagents are measured by mass. Converting grams to moles is the step that connects the two.
Reaction stoichiometry. In the reaction 2H₂ + O₂ → 2H₂O, 10 g of hydrogen gas converts to 10 ÷ 2.016 = 4.96 mol of H₂. The equation shows a 2:1 ratio of H₂ to O₂, so 4.96 mol of H₂ needs 2.48 mol of O₂, equal to 2.48 × 32.00 = 79.4 g of O₂.
Preparing solutions. Making 500 mL of a 0.1 mol/L sodium hydroxide solution requires 0.1 × 0.5 = 0.05 mol of NaOH, which is 0.05 × 40.00 = 2.0 g.
Limiting reagent problems. When two reactants are combined, converting each to moles and comparing against the balanced equation shows which one runs out first and limits how much product can form.
Empirical formulas. Lab data usually gives the mass percentage of each element in a compound. Converting each element's mass to moles, then comparing the mole ratios, gives the simplest whole-number formula for the compound.
Common Molar Masses
| Substance | Formula | Molar Mass (g/mol) |
|---|---|---|
| Water | H₂O | 18.02 |
| Sodium chloride | NaCl | 58.44 |
| Glucose | C₆H₁₂O₆ | 180.16 |
| Carbon dioxide | CO₂ | 44.01 |
| Oxygen | O₂ | 32.00 |
| Sulfuric acid | H₂SO₄ | 98.08 |
| Ammonia | NH₃ | 17.03 |
| Sodium hydroxide | NaOH | 40.00 |
| Calcium carbonate | CaCO₃ | 100.09 |
History of the Mole
Amedeo Avogadro proposed in 1811 that equal volumes of gas, at the same temperature and pressure, contain equal numbers of molecules. This idea, now called Avogadro's law, was an early step toward linking mass to particle count. The word "mole" is usually credited to the chemist Wilhelm Ostwald in the 1890s, from the German "Mol," short for molecular weight.
In 1971 the mole became an official SI base unit, defined as the amount of substance containing as many elementary entities as there are atoms in 12 g of carbon-12. In 2019, the SI system was revised so the mole is defined directly by a fixed value of Avogadro's constant, 6.02214076 × 10²³, rather than by a physical sample of carbon-12.
Frequently Asked Questions
What is a mole in chemistry? A mole is the SI unit for an amount of substance. One mole of anything contains 6.02214076 × 10²³ particles, in the same way one dozen means 12 items. It lets chemists count particles by weighing them.
Why convert between grams and moles? Chemical equations describe reactions using mole ratios, but reagents are measured by mass. The conversion translates a balanced equation into an amount that can be weighed on a scale.
How is the molar mass of a compound found? Add the atomic weights of every atom in the formula, counting each atom the correct number of times, including atoms inside parentheses and, for hydrates, the water molecules in the crystal.
Can grams be converted to moles without knowing the molar mass? No. Molar mass is required for the conversion. It must be looked up or calculated from the chemical formula before the conversion can be done.
What is the difference between molecular weight and molar mass? The two values are numerically the same but describe different things. Molecular weight describes the mass of one molecule, in atomic mass units. Molar mass describes the mass of one mole of molecules, in grams per mole.
How are moles converted to number of particles? Multiply the number of moles by Avogadro's constant: particles = moles × 6.02214076 × 10²³. To reverse this, divide the particle count by Avogadro's constant.
What is a common mistake when calculating molar mass? Missing atoms inside parentheses, such as in Ca(NO₃)₂, or forgetting to include the water molecules in a hydrate like CuSO₄·5H₂O.