Grams to Moles Calculator
Convert between grams and moles using the molar mass of any substance.
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
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.
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.
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.
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.
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.
Related Calculators
Mole Calculator
Calculate moles from mass using molar mass, or convert between moles, mass, and number of particles. Essential for stoichiometry.
Avogadro's Number Calculator
Convert between moles and number of particles (atoms, molecules, ions) using Avogadro's constant.
Molality Calculator
Calculate the molality of a solution from moles of solute and the mass of solvent in kilograms.
Molar Mass Calculator
Calculate the molar mass of a compound by summing the atomic masses of its constituent elements.
Molarity Calculator
Calculate the molarity (molar concentration) of a solution from the number of moles of solute and the volume of solution in liters.
Theoretical Yield Calculator
Calculate the theoretical yield of a reaction product from the limiting reagent mass, molar masses, and stoichiometric ratio.
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
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)?
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.
Embed this calculator on your site
Paste this snippet into your blog, course page, or documentation to drop a live, interactive Grams to Moles Calculator into your page.
Free to embed — includes a link back to MegaCalc.