Skip to main content
chemistry

Grams to Moles Calculator

Convert between grams and moles using the molar mass of any substance.

Reviewed by Christopher FloiedPublished Updated

This free online grams to moles calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Minimum: 0

Mass of the substance in grams.

Molar mass from the periodic table or formula weight.

Results

Moles

1 mol

Molecules

6.022e+23

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Grams to Moles Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Grams to Moles Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Grams to Moles Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Grams to Moles Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
  • Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
  • Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
  • Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.

About This Calculator

The Grams to Moles Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Convert between grams and moles using the molar mass of any substance. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

About Grams to Moles Calculator

The grams-to-moles calculator performs the fundamental conversion between mass and amount of substance using the molar mass. This is arguably the most frequently performed calculation in chemistry, serving as the bridge between what you can weigh on a balance (grams) and what participates in chemical reactions (moles). Every stoichiometry problem begins with this conversion. The calculator also provides the number of individual molecules or formula units using Avogadro's number, connecting the macroscopic world of laboratory measurements to the microscopic world of atoms and molecules.

The Math Behind It

The mole is the SI unit of amount of substance, defined as exactly 6.02214076 × 10²³ elementary entities (Avogadro's number, as redefined in 2019). One mole of any substance contains this many atoms, molecules, ions, or formula units. The molar mass (MW) is the mass of one mole of a substance, expressed in grams per mole. For elements, the molar mass equals the atomic mass from the periodic table. For compounds, it is the sum of the atomic masses of all atoms in the formula. For example, water (H₂O) has a molar mass of 2(1.008) + 15.999 = 18.015 g/mol. The conversion n = m / MW is bidirectional: to go from moles to grams, multiply n × MW. This relationship underpins all quantitative chemistry, from balancing equations to preparing solutions to calculating reaction yields.

Formula Reference

Mole Conversion

n = m / MW

Variables: n = moles; m = mass (g); MW = molar mass (g/mol)

Worked Examples

Example 1: NaCl example

How many moles in 58.44 g of NaCl (MW = 58.44 g/mol)?

Step 1:n = 58.44 / 58.44 = 1.000 mol.
Step 2:Molecules = 1.000 × 6.022 × 10²³ = 6.022 × 10²³ formula units.

58.44 g of NaCl is exactly 1 mole, containing 6.022 × 10²³ formula units.

Common Mistakes & Tips

  • !Using atomic mass instead of molecular/formula mass for compounds.
  • !Confusing moles of atoms with moles of molecules (1 mol H₂O contains 2 mol H atoms).
  • !Not using enough significant figures in the molar mass.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

What is the difference between molecular mass and molar mass?

Molecular mass (or molecular weight) refers to the mass of a single molecule in atomic mass units (amu or Da). Molar mass is the mass of one mole of molecules in grams per mole. They are numerically equal but have different units.

Can I use this for ions?

Yes. The molar mass of an ion is essentially the same as the atom or formula unit (the mass of added/removed electrons is negligible). Use the formula mass of the ionic compound.