Grams To Mol Calculator
Convert a mass in grams to moles using built-in molar masses — or enter your own.
Chemists rarely work in grams. Recipes in the lab are written in moles, because chemical reactions count particles, not weight — and a mole is simply chemistry’s way of counting a huge number of particles at once. Converting grams to moles is therefore one of the most-used calculations in all of science, from school labs to pharmaceutical factories. The Grams To Mol Calculator does it instantly: enter your mass, pick your compound from the built-in list (or enter a custom molar mass), and get moles, millimoles and the actual particle count with every step shown.
What This Grams To Mol Calculator Does
This calculator converts a mass in grams into the amount of substance in moles, using the molar mass of your compound as the bridge. It includes ready-made molar masses for ten common compounds — water, table salt, carbon dioxide, glucose, sucrose, calcium carbonate, sulfuric acid, ethanol, methane and oxygen — plus a custom mode for anything else. Beyond moles, it reports millimoles (handy for small lab quantities) and the number of individual particles via Avogadro’s number, and it finishes with a reverse check that multiplies the answer back into grams so you can trust the result.
How to Use the Calculator
Three quick steps:
- Mass in grams: enter the weight of your sample, for example 90 for ninety grams. Use a scale reading, and keep the units in grams — if you measured milligrams, divide by 1000 first.
- Compound: choose your substance from the dropdown. Each option shows its molar mass in g/mol so you know exactly which value is being used.
- Custom molar mass (optional): pick “Custom compound” from the dropdown and a new field appears — enter the molar mass of any substance not on the list.
Press Calculate to see your moles, millimoles, particle count and the full breakdown. Press Reset to clear the form.
The Formula Behind the Conversion
The entire conversion rests on one simple relationship:
moles = mass in grams ÷ molar mass in g/mol
Molar mass is the weight of one mole of a substance — water’s is 18.015 g/mol, which means one mole of water (about 602 sextillion molecules) weighs 18.015 grams. Dividing your sample’s mass by that number tells you how many of those mole-sized portions you have. From there the calculator derives two bonus quantities: millimoles = moles × 1000, and particles = moles × 6.022 × 10²³, where 6.022 × 10²³ is Avogadro’s number, the number of particles in one mole. The final check reverses the math — moles × molar mass should return your original grams — proving the calculation is consistent.
Worked Example: 90 Grams of Water
A student weighs out 90 grams of water (H₂O, molar mass 18.015 g/mol) and wants to know how many moles that is:
Step 1 — moles: 90 ÷ 18.015 = 4.9958 mol.
Step 2 — millimoles: 4.9958 × 1000 = 4995.84 mmol.
Step 3 — particles: 4.9958 × 6.022 × 10²³ = 3.01 × 10²⁴ molecules of water.
Step 4 — check: 4.9958 × 18.015 = 90.00 g, which matches the starting mass.
Result: 90 g of water = 4.9958 mol = 3.01 × 10²⁴ molecules. Notice how close the answer is to 5 moles — 90 grams of water is just shy of five mole-portions, each weighing 18.015 grams.
Worked Example: Table Salt and Glucose
Molar masses are chosen so that round numbers often give round answers. Weighing exactly 58.44 grams of sodium chloride (NaCl, molar mass 58.44 g/mol) gives 58.44 ÷ 58.44 = 1.0000 mol — one full mole, containing 6.02 × 10²³ formula units of salt. For glucose (C₆H₁₂O₆, molar mass 180.156 g/mol), 100 grams gives 100 ÷ 180.156 = 0.5551 mol, or 555.07 millimoles — the kind of small quantity where the millimole readout earns its keep. And with the custom mode, 25 grams of a compound with molar mass 40.00 g/mol gives 25 ÷ 40.00 = 0.6250 mol.
How to Read Your Result
The headline number is your amount in moles, shown to four decimal places. The stat boxes add context: millimoles for bench-scale work, particles in scientific notation so you can grasp the true scale (10²⁴ is a 1 followed by 24 zeros), the molar mass used so you can confirm the right compound was selected, and the mass you entered for reference. The Formula and Breakdown panel walks through the division, the millimole conversion, the Avogadro multiplication and the reverse check — everything a teacher would want to see in your lab report.
Common Mistakes to Avoid
Gram-to-mole errors almost always come from the inputs, not the math. The classic mistake is using the wrong compound — glucose (180.156) versus sucrose (342.297) nearly doubles the answer, so double-check the dropdown. Another is entering milligrams as grams: 90 mg is 0.090 g, and skipping that division inflates your moles a thousandfold. Students also confuse molar mass with molecular weight units or grab the mass of an element when they need the whole compound (Na is 22.99, but NaCl is 58.44). For hydrates and solutions, remember that only the mass of the actual compound counts — water of crystallization and solvent mass need separate handling. Finally, do not round the molar mass too early; the calculator keeps full precision until the final display.
Where This Conversion Gets Used
Converting grams to moles is the gateway to stoichiometry — predicting how much product a reaction makes or how much reactant you need. Titration labs convert the moles of titrant to find unknown concentrations; pharmacy and medicine use millimoles to prepare IV solutions and drug doses; environmental scientists convert pollutant masses to moles to compare gases fairly; and in cooking-scale chemistry, from soap making to home brewing, mole math keeps recipes reproducible. Anywhere a reaction equation’s ratios meet a real weighing scale, this conversion sits in between.
Frequently Asked Questions
1. What is a mole in chemistry?
A mole is a counting unit equal to 6.022 × 10²³ particles (Avogadro’s number). Just as a dozen means 12, a mole means that huge number — it lets chemists count atoms and molecules by weighing them.
2. What is molar mass?
Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). It equals the substance’s relative molecular mass in atomic mass units — water’s 18.015 u becomes 18.015 g/mol.
3. How do you convert grams to moles?
Divide the mass in grams by the molar mass in g/mol. For example, 90 g of water divided by 18.015 g/mol gives 4.9958 mol. This calculator performs that division for you.
4. How do you convert moles back to grams?
Multiply: grams = moles × molar mass. The calculator’s check step does exactly this — 4.9958 mol × 18.015 g/mol returns 90.00 g, confirming the conversion.
5. What is Avogadro’s number?
Avogadro’s number is 6.022 × 10²³, the number of particles in one mole of any substance. Multiplying your moles by it gives the actual count of molecules, atoms or ions in your sample.
6. What is a millimole?
A millimole (mmol) is one-thousandth of a mole. It is the convenient unit for small laboratory quantities — 4.9958 mol equals 4995.84 mmol — and is standard in medicine and analytical chemistry.
7. Why does the calculator show particles in scientific notation?
Because the numbers are astronomically large. Writing 3.01 × 10²⁴ is far clearer than 3,010,000,000,000,000,000,000,000, and scientific notation keeps the significant figures honest.
8. Can I use this for elements, not just compounds?
Yes — use the custom molar mass mode and enter the element’s atomic mass. For example, enter 12.011 g/mol for carbon, and the calculator will convert grams of carbon to moles of carbon atoms.
9. What is the difference between molar mass and molecular weight?
They are numerically the same but have different units: molecular weight is in atomic mass units (u), while molar mass is in grams per mole (g/mol). For the grams-to-moles formula you need the g/mol value.
10. My compound is not in the dropdown. What should I do?
Choose “Custom compound” and enter its molar mass, which you can find on a periodic table (by summing atomic masses) or a reliable chemistry reference. The calculation works identically.
11. Should I include water of crystallization in the mass?
Only convert the mass of the compound you actually weighed, using the molar mass that matches it. If you weighed a hydrate like CuSO₄·5H₂O, use the hydrate’s full molar mass (249.68 g/mol), not the anhydrous salt’s.
12. Why is my answer slightly different from my textbook?
Textbooks often round molar masses (water as 18.0 instead of 18.015). This calculator uses more precise values, so tiny differences in the fourth decimal place are normal and the calculator’s answer is the more accurate one.
13. Can moles be less than 1?
Absolutely. Any sample lighter than one molar mass gives a fraction of a mole — 100 g of glucose is 0.5551 mol. Fractions are normal; that is why millimoles exist.
14. How many significant figures should I report?
Match the least precise measurement you made. If your scale reads to 0.1 g, reporting 4.9958 mol overstates your precision — 5.00 mol would be honest. The calculator shows four decimals; round to fit your data.
15. Is this suitable for homework and lab reports?
Yes. The Formula and Breakdown panel shows each step — the division, the millimole conversion, the Avogadro multiplication and the reverse check — exactly as a teacher expects to see the working.
Final Thoughts
Grams are what you can weigh; moles are what reactions actually count. The bridge between them is a single division, but getting the molar mass right and keeping the arithmetic clean is where mistakes hide. This calculator removes both risks: pick your compound or enter a custom mass, and get moles, millimoles and particle counts with a verification step built in. Whether you are balancing your first equation or prepping a buffer for real research, fast and trustworthy mole conversions keep the chemistry moving. Bookmark it for lab day — your future self, mid-titration, will be glad you did.