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

Frequently Asked Questions

Related tools

Last updated: 2026-05-28 · Reviewed by Nham Vu