Grams to Moles Calculator

Convert grams to moles and moles to grams using molar mass. Supports all elements and common compounds with an extensive molecular weight database.

Common Compounds

Results

Moles
0.000000
Amount of substance in moles
Mass (g)
0.0000 g
Mass of substance in selected unit
Mass (grams)
0.0000 g
Mass converted to grams
Number of Particles
0
Total molecules/atoms/formula units (via Avogadro's number)
Mass per Molecule
N/A
Mass of a single molecule in grams
Molar Mass Used
N/A
Molecular weight used for the conversion

Quick Conversion Scale

Compound Reference Table

CompoundMW (g/mol)1 mol (g)1 g (mmol)
Water (H₂O)18.01518.0255.51
Carbon dioxide (CO₂)44.01044.0122.72
Sodium chloride (NaCl)58.44058.4417.11
Glucose (C₆H₁₂O₆)180.160180.165.55
Sulfuric acid (H₂SO₄)98.07998.0810.20
Ethanol (C₂H₅OH)46.07046.0721.71
Sodium hydroxide (NaOH)40.00040.0025.00
Hydrochloric acid (HCl)36.46036.4627.43
Acetic acid (CH₃COOH)60.05060.0516.65
Ammonia (NH₃)17.03117.0358.72
Calcium carbonate (CaCO₃)100.090100.099.99
Aspirin (C₉H₈O₄)180.160180.165.55
Planning notes, formulas, and examples

About the Grams to Moles Calculator

The grams to moles calculator converts between mass in grams and amount in moles using the molar mass of any substance. This is one of the most fundamental conversions in chemistry, required for virtually every stoichiometry problem, lab calculation, and reagent preparation.

The relationship is straightforward: moles equal mass divided by molar mass. However, the real challenge lies in knowing the correct molar mass for your substance. This calculator includes a database of common elements and compounds so you can quickly look up molecular weights without consulting a separate periodic table.

Beyond simple conversions, the calculator handles multi-step problems: entering both mass and desired moles to find how much more substance you need, converting between different units (mg, g, kg), and performing batch calculations for multiple substances simultaneously. It also shows the number of particles (atoms or molecules) for each conversion using Avogadro's number.

When This Page Helps

This calculator handles one of the most common conversions in chemistry without manual arithmetic. It also includes a compound database so you don't need a separate reference.

How to Use the Inputs

  1. Select the conversion direction: grams to moles or moles to grams.
  2. Enter the mass in grams or the number of moles.
  3. Enter the molar mass of your substance, or select from preset compounds.
  4. Choose a mass unit if not working in grams.
  5. Review the conversion results including particle counts.
  6. Use the batch section to convert multiple substances at once.
  7. Reference the common compounds table for quick molar mass lookups.
Formula used
Moles = Mass (g) / Molar Mass (g/mol) Mass (g) = Moles × Molar Mass (g/mol) Particles = Moles × 6.022 × 10²³

Example Calculation

Result: 2.000 moles

36.03 g of water (H₂O) divided by its molar mass of 18.015 g/mol gives exactly 2.000 moles. This corresponds to 1.204 × 10²⁴ molecules of water.

Tips & Best Practices

  • Always double-check your molar mass before converting — the most common error is using the wrong one.
  • For elements that exist as diatomic molecules (H₂, O₂, N₂, F₂, Cl₂, Br₂, I₂), use the diatomic molar mass.
  • Include water of crystallization in your molar mass for hydrated salts like CuSO₄·5H₂O.
  • When working with solutions, you often need molarity (moles/liter) rather than just moles.
  • Keep extra significant figures during intermediate calculations and round only the final answer.
  • Practice estimating: 1 mole of water is about 18 g, fitting in a tablespoon.

The Mole Concept in Chemistry

The mole is the SI unit for amount of substance, defined as exactly 6.02214076 × 10²³ elementary entities. One mole of any substance contains this exact number of atoms, molecules, ions, or other particles. The mole bridges the gap between the atomic scale and the laboratory scale, allowing chemists to measure out specific numbers of particles using a balance.

Common Conversion Scenarios

Laboratory work frequently requires converting between grams and moles. When preparing solutions, you calculate how many grams of solute to weigh for a desired molarity. In yield calculations, you convert product mass to moles for comparison with theoretical predictions. In analytical chemistry, measured masses are converted to moles to determine empirical and molecular formulas.

Tips for Complex Compounds

Hydrated salts require adding the water of crystallization to the molar mass. For example, copper sulfate pentahydrate (CuSO₄·5H₂O) has MW = 159.61 + 5(18.015) = 249.69 g/mol. Polymers use the monomer molecular weight for mole calculations. For mixtures, calculate moles of each component separately using their individual molar masses.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Add up the atomic masses of all atoms in the formula. For H₂O: 2(1.008) + 16.00 = 18.015 g/mol. Use the periodic table for atomic masses of each element.