Grams to Moles Calculator

Enter a mass in grams and a molar mass (g/mol) — or pick a common substance — to calculate the number of moles instantly.

Conversion Inputs

Tip: select a substance above to auto-fill.

Enter a mass and molar mass, then click Calculate.

Quick reference — common molar masses

Substance Formula g/mol
WaterH2O18.015
Carbon dioxideCO244.010
Sodium chlorideNaCl58.440
GlucoseC6H12O6180.160
Sulfuric acidH2SO498.079
AmmoniaNH317.031
EthanolC2H5OH46.069
Calcium carbonateCaCO3100.087
Copied!

Summary

Enter a mass in grams and a molar mass (g/mol) — or pick a common substance — to calculate the number of moles instantly.

How it works

  1. Enter the mass of your sample in grams.
  2. Either select a substance from the preset list to auto-fill its molar mass, or type the molar mass in g/mol manually.
  3. The calculator divides the mass by the molar mass to give moles.
  4. The formula and intermediate values are displayed below the result.

Use cases

  • Determine the number of moles in a weighed sample before a chemical reaction.
  • Cross-check reagent quantities when preparing solutions of a known molarity.
  • Help students verify stoichiometry calculations from a chemistry textbook.
  • Quickly convert bulk measurements in a lab to moles for yield calculations.
  • Check mole quantities when scaling up or down a synthesis procedure.

Frequently Asked Questions

Last updated: 2026-06-18 · Reviewed by Nham Vu