Grams to Moles Calculator

Last Updated: 5 May, 2026

Convert a known mass into moles and particle count using molar mass so you can move cleanly into stoichiometry, solution prep, and reaction-yield work.

Edited by Gail Joyce

This page is maintained as a fast stoichiometry helper for converting measured mass into moles and particle count. The unit guidance, formulas, and worked examples are reviewed against standard general-chemistry references before major updates.

Grams to Moles Calculator

Enter the mass in grams and molar mass to calculate the number of moles and particles.

Enter the mass of the substance in grams.

Enter the molar mass in grams per mole. Use our Molar Mass Calculator to find this value.

How to Use the Grams to Moles Calculator

Work the same way you would on paper: identify the measured mass, confirm the molar mass, then check whether the resulting moles and particle count make sense for the compound you entered.

1

Enter the measured mass

Use grams for the substance mass. Convert milligrams or kilograms before using the calculator so the units match the formula.

2

Supply the correct molar mass

Enter molar mass in grams per mole. For compounds, use the full formula mass rather than a single element’s atomic mass.

3

Calculate moles and particles

The tool divides mass by molar mass to find moles, then multiplies by Avogadro’s number to estimate particle count.

4

Use the result in the next chemistry step

Take the mole result into stoichiometry, concentration, or yield calculations once the unit conversion is complete.

Table of Contents

Quickly navigate to different sections of this guide.

Understanding Grams to Moles Conversion

Converting grams to moles is one of the most fundamental operations in chemistry. This conversion bridges the gap between the macroscopic world we can measure (mass in grams) and the microscopic world of atoms and molecules (particles counted in moles). Understanding this conversion is essential for stoichiometry, reaction calculations, and quantitative chemistry.

The mole is a unit that represents a specific number of particles—exactly 6.022 × 10²³ particles, known as Avogadro's number. However, we can't count atoms or molecules individually. Instead, we measure mass and use molar mass to convert to moles. Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). It's numerically equal to the atomic or molecular mass in atomic mass units (u).

The relationship is elegantly simple: Moles = Mass / Molar Mass. This formula allows chemists to convert any measurable mass into moles, which can then be used in stoichiometric calculations. For example, if you have 18.015 grams of water (H₂O), and water's molar mass is 18.015 g/mol, you have exactly 1.000 mole of water molecules, which contains 6.022 × 10²³ water molecules.

Why This Conversion Matters

Stoichiometry

Chemical equations show mole ratios, not mass ratios. To use balanced equations, you must convert masses to moles. For example, the reaction 2H₂ + O₂ → 2H₂O shows that 2 moles of hydrogen react with 1 mole of oxygen to produce 2 moles of water. To determine how much oxygen is needed for a given mass of hydrogen, you must first convert hydrogen mass to moles.

Reaction Yields

Calculating theoretical and percent yields requires mole conversions. You need to know how many moles of reactants you have and how many moles of products you should get. This is impossible without converting masses to moles first.

Solution Preparation

Preparing solutions with specific molarities requires converting mass to moles. Molarity (M) is defined as moles per liter, so you need to know how many moles your mass represents to prepare solutions accurately.

Limiting Reactants

Determining limiting reactants requires comparing mole ratios from balanced equations. You must convert all reactant masses to moles to see which reactant limits the reaction.

Common Molar Masses Reference

Substance Formula Molar Mass (g/mol)
WaterH₂O18.015
Sodium chlorideNaCl58.44
Carbon dioxideCO₂44.01
GlucoseC₆H₁₂O₆180.16
Sulfuric acidH₂SO₄98.08

Common Mistakes

Most grams-to-moles errors come from unit mismatch or using the wrong molar mass. These quick checks keep the conversion reliable before you move on to stoichiometry.

Leaving mass in the wrong unit

Convert milligrams or kilograms to grams before dividing by molar mass. The formula expects grams and grams per mole.

Using atomic mass for a full compound

For compounds like H₂O or NaCl, use the full molar mass of the formula, not the mass of just one element.

Forgetting the result is in moles, not grams

Once you divide mass by molar mass, the unit is moles. Do not carry the gram unit into the next step.

Using the conversion before checking the formula

If the molar mass came from the wrong chemical formula, every downstream stoichiometry result will be off too.

Formulas and Calculations

The conversion from grams to moles uses a simple but fundamental relationship. Understanding this formula and its applications is essential for chemistry calculations.

Grams to Moles Formula

Moles = Mass / Molar Mass

n = m / M

Where:

  • n = number of moles (mol)
  • m = mass (g)
  • M = molar mass (g/mol)

This formula directly converts mass to moles. The units work out perfectly: grams divided by grams per mole equals moles.

Calculating Particles

Particles = Moles × Avogadro's Number

Particles = n × 6.022 × 10²³

Once you have moles, multiply by Avogadro's number (6.022 × 10²³) to find the number of particles (atoms, molecules, ions, etc.).

Worked Examples

Let's work through detailed examples to understand grams to moles conversions.

Example 1: Water

Given: 36.0 g of water (H₂O, M = 18.015 g/mol)

Find: Number of moles

Solution:

Moles = Mass / Molar Mass

Moles = 36.0 g / 18.015 g/mol = 2.00 mol

Answer: 36.0 g of water equals 2.00 moles, containing 1.20 × 10²⁴ water molecules.

Example 2: Sodium Chloride

Given: 58.44 g of sodium chloride (NaCl, M = 58.44 g/mol)

Find: Number of moles

Solution:

Moles = 58.44 g / 58.44 g/mol = 1.000 mol

Answer: 58.44 g of NaCl equals exactly 1.000 mole, containing 6.022 × 10²³ formula units.

Example 3: Carbon Dioxide

Given: 22.0 g of carbon dioxide (CO₂, M = 44.01 g/mol)

Find: Number of moles

Solution:

Moles = 22.0 g / 44.01 g/mol = 0.500 mol

Answer: 22.0 g of CO₂ equals 0.500 moles, containing 3.01 × 10²³ CO₂ molecules.

Applications in Stoichiometry

Grams to moles conversion is essential for stoichiometry calculations. Chemical equations show mole ratios, not mass ratios, so you must convert masses to moles before using balanced equations.

Example: Reaction Calculation

Consider the reaction: 2H₂ + O₂ → 2H₂O. If you have 4.0 g of hydrogen gas (H₂, M = 2.016 g/mol), how many grams of oxygen are needed?

Step 1: Convert H₂ mass to moles

Moles H₂ = 4.0 / 2.016 = 1.98 mol

Step 2: Use mole ratio from equation

From equation: 2 mol H₂ requires 1 mol O₂

Moles O₂ needed = 1.98 / 2 = 0.99 mol

Step 3: Convert O₂ moles to grams

Mass O₂ = 0.99 × 32.00 = 31.7 g

This calculation requires grams-to-moles conversion as the first step!

Frequently Asked Questions (FAQs)

Common questions about grams to moles conversion.

How do I convert grams to moles?

Use the formula: Moles = Mass (g) / Molar Mass (g/mol). Divide the mass in grams by the molar mass to get the number of moles. For example, 18.015 g of water (M = 18.015 g/mol) equals 1.000 mol.

What is molar mass?

Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). For elements, it equals the atomic mass. For compounds, it's the sum of atomic masses of all atoms in the formula.

Why do I need to convert grams to moles?

Chemical equations show mole ratios, not mass ratios. To use balanced equations for stoichiometry, you must convert masses to moles first. This allows you to determine reactant and product quantities accurately.

How do I find molar mass?

For elements, use the atomic mass from the periodic table. For compounds, add up the atomic masses of all atoms in the formula. For example, H₂O: 2×1.008 + 16.00 = 18.016 g/mol. Use our Molar Mass Calculator for complex formulas.

Can I convert moles back to grams?

Yes! Use the reverse formula: Mass = Moles × Molar Mass. Multiply the number of moles by the molar mass to get mass in grams.

What units should I use?

Always use grams for mass and grams per mole (g/mol) for molar mass. This ensures the units cancel correctly: g / (g/mol) = mol.

References and Further Reading

For more in-depth information about grams to moles conversion, stoichiometry, and the mole concept, consult these authoritative sources:

Resource Description Category
OpenStax Chemistry 2e Textbook reference for mole concept, molar mass, and stoichiometric conversions Chemistry Textbook
ChemLibreTexts: General Chemistry Background on mole calculations, stoichiometry, and unit conversion workflow General Chemistry
IUPAC Standards body for quantity definitions and chemistry terminology Standards
NIST Chemistry WebBook Reference data source for compound properties and formula validation Chemical Data

Disclaimer: The calculators and tools available on ChemistryCalculators.net are intended for educational and informational purposes only. While we make every effort to ensure accuracy, the results and calculations provided may contain errors or inaccuracies. Users are encouraged to verify the information independently and should not rely solely on these results for academic, professional, or laboratory purposes. ChemistryCalculators.net assumes no responsibility or liability for any loss, damage, or consequences arising from the use of these tools.