Grams to Moles Converter – Mass, Moles and Particles in One Step
Chemists weigh substances in grams but count them in moles. Every stoichiometry problem, every reagent you weigh out and every yield calculation starts by converting between the two. This grams to moles converter reads the chemical formula you type, works out its molar mass from standard atomic weights, and converts a mass into an amount in moles, or an amount back into grams. It also counts the molecules, shows the factor-label working and splits the sample's mass across its elements.
The grams to moles formula
The link between mass and amount is the molar mass M, the mass of one mole of the substance in g/mol:
n = m / M: moles from gramsm = n × M: grams from molesN = n × N_A: number of particles, withN_A = 6.02214076 × 10²³ mol⁻¹
For water, M = 2 × 1.008 + 15.999 = 18.015 g/mol, so 10.0 g of water is 10.0 / 18.015 = 0.555 mol, or about 3.34 × 10²³ molecules. Going the other way, 0.250 mol of glucose (C₆H₁₂O₆, 180.156 g/mol) weighs 0.250 × 180.156 = 45.0 g.
How to use the converter
- Type a formula such as
NaCl,Ca(OH)2orCuSO4·5H2O, or tap one of the common-substance chips. The "Interpreted as" line shows how the formula was read and its molar mass. - Enter a mass (pg to kg) or an amount (pmol to kmol). The field you typed in last is the input, and the other one is calculated. Changing the input's unit reinterprets your number; changing the calculated field's unit re-expresses the answer.
- Read the result, the particle count and the dimensional-analysis chain, then copy the worked solution if you need it for homework or a lab notebook.
For a protein, polymer or a reagent sold with a quoted molecular weight, switch to Known molar mass and enter it in g/mol, kg/mol, Da or kDa. For example, 10.0 mg of a 66.5 kDa protein is 1.50 × 10⁻⁷ mol, or 150 nmol.
Factor-label method (dimensional analysis)
Textbooks teach mole conversions as a chain of fractions that each equal one. To convert 250 mg of sodium chloride to millimoles, you multiply by 1 g / 1000 mg, then by 1 mol NaCl / 58.44 g NaCl, then by 1000 mmol / 1 mol. Each unit that appears on the top of one fraction and the bottom of another cancels, leaving only mmol NaCl. The converter draws this chain with the real numbers and strikes out each cancelled pair, so you can see why the answer comes out as it does.
Ions, hydrates and tricky formulas
You can type charges in several ways: SO4^2-, SO4²⁻, SO4 2- or SO42-. The last form is ambiguous, because the 2 could be a subscript or the charge. The converter reads it as sulfate, SO₄²⁻, and offers a one-click switch to the other reading. Common singly charged ions such as NH4+ and NO3- are recognised directly. The charge does not change the molar mass in any meaningful way, because electrons are so light. Hydrates count their water of crystallisation, so CuSO₄·5H₂O has a molar mass of 249.677 g/mol, not the 159.60 g/mol of the anhydrous salt.
CO is carbon monoxide (28.01 g/mol) but Co is cobalt (58.933 g/mol). Check the "Interpreted as" line whenever a result looks wrong.Significant figures in mole calculations
The answer is rounded to the smaller of two counts: the significant figures in your measured value and those of the molar mass. Unit factors such as 1000 mg = 1 g are exact definitions and never limit precision. A whole number such as 250 has ambiguous trailing zeros and counts as two significant figures. Write 250. or 2.50e2 to make it three. Switch to Full precision to see up to ten digits when you are checking a calculation instead of reporting it.