Grams to Moles Calculator


Grams to Moles Calculator

A precise chemistry tool to convert the mass of a substance in grams to its amount in moles.



Enter the total mass of your substance in grams (g).

Please enter a valid positive number for mass.



Enter the molar mass of the substance in grams per mole (g/mol). See table below for common values.

Please enter a valid positive number for molar mass.


Amount of Substance (n)

0.00 moles
Formula: moles (n) = mass (m) / Molar Mass (M)


Mass to Moles Relationship

Dynamic chart showing the calculated moles based on varying mass percentages for the given molar mass.

What is a Grams to Moles Calculator?

A grams to moles calculator is a fundamental scientific tool used to convert the mass of a substance, measured in grams, into the amount of that substance, measured in moles. This conversion is one of the most common and critical calculations in chemistry, acting as a bridge between the macroscopic world (what we can weigh) and the microscopic world of atoms and molecules. Because chemical reactions happen based on the ratio of particles, not their weight, converting to moles is essential for any quantitative chemical work.

Grams to Moles Formula and Explanation

The relationship between mass, moles, and molar mass is defined by a simple and powerful formula. To convert grams to moles, you use the following equation:

n = m / M

Understanding the components of this formula is key to using a convert grams to moles using molar mass calculator correctly.

Description of variables in the grams to moles formula.
Variable Meaning Unit (Auto-Inferred) Typical Range
n Amount of Substance moles (mol) Depends on the mass and molar mass
m Mass grams (g) Any positive value measured by a scale
M Molar Mass grams per mole (g/mol) From ~1 g/mol (for H) to over 300 g/mol for complex molecules

Practical Examples

Let’s walk through two realistic examples to see how the grams to moles calculator works in practice.

Example 1: Converting Water (H₂O) from Grams to Moles

Imagine you have 100 grams of pure water and want to know how many moles that is.

  • Inputs:
    • Mass (m): 100 g
    • Molar Mass of H₂O (M): 18.015 g/mol
  • Calculation:
    • n = 100 g / 18.015 g/mol
  • Result:
    • n ≈ 5.551 moles

Example 2: Converting Table Salt (NaCl) from Grams to Moles

Suppose you measure out 25 grams of sodium chloride (table salt) for a recipe.

  • Inputs:
    • Mass (m): 25 g
    • Molar Mass of NaCl (M): 58.44 g/mol
  • Calculation:
    • n = 25 g / 58.44 g/mol
  • Result:
    • n ≈ 0.428 moles

For further reading on stoichiometry, check out this useful article on understanding stoichiometry.

Common Molar Masses

Finding the molar mass is often the trickiest part. You calculate it by summing the atomic masses of each atom in a compound’s formula. Here is a quick reference table:

Molar Mass of Common Chemical Compounds
Compound Name Chemical Formula Molar Mass (g/mol)
Water H₂O 18.015
Carbon Dioxide CO₂ 44.01
Sodium Chloride (Salt) NaCl 58.44
Sucrose (Sugar) C₁₂H₂₂O₁₁ 342.30
Ammonia NH₃ 17.031
Ethanol C₂H₅OH 46.07

If you need to calculate the molar mass of other substances, our molar mass calculation tool can help.

How to Use This Grams to Moles Calculator

Using this calculator is a straightforward process designed for accuracy and speed:

  1. Enter Mass (g): In the first input field, type the mass of your substance in grams.
  2. Enter Molar Mass (g/mol): In the second field, provide the molar mass of the specific chemical compound. If you don’t know it, you may need to calculate it using a periodic table.
  3. Interpret the Result: The calculator will instantly display the amount of the substance in moles. The result updates in real-time as you type.
  4. Reset if Needed: Click the “Reset” button to clear all fields and start a new calculation.

Key Factors That Affect Grams to Moles Conversion

Several factors can influence the accuracy of your calculation:

  • Purity of the Substance: The calculation assumes a 100% pure substance. Impurities will add to the mass but not the mole count of the desired substance, leading to errors.
  • Accuracy of Mass Measurement: The precision of the scale used to measure the mass (m) directly impacts the precision of the final result.
  • Correctness of Molar Mass (M): Using an incorrect molar mass is a common source of error. Always double-check the chemical formula and the atomic masses used for your mass to mole formula.
  • Hydration: Some compounds exist as hydrates (with water molecules attached). This water must be included in the molar mass calculation if present.
  • Isotopic Composition: Standard molar masses are based on the natural abundance of isotopes. For highly specialized work, the specific isotopic composition might alter the molar mass.
  • Significant Figures: The number of significant figures in your result should be consistent with the least precise of your input values (mass and molar mass).

FAQ about the Grams to Moles Calculator

1. What is a mole in chemistry?
A mole is a unit of measurement for the amount of a substance. One mole contains approximately 6.022 x 10²³ elementary entities (like atoms or molecules), a value known as Avogadro’s number.
2. Why is converting grams to moles important?
Chemical reactions occur based on fixed ratios of moles, not mass. This conversion is crucial for stoichiometry, allowing chemists to predict reactant quantities and product yields accurately. You can learn more about Avogadro’s number here.
3. What if I don’t know the molar mass?
You must first determine the chemical formula of your substance (e.g., H₂O for water). Then, use a periodic table to find the atomic mass of each element, multiply by the number of atoms of that element in the formula, and sum the results.
4. Can I convert from kilograms or milligrams?
Yes, but you must first convert the mass to grams. This calculator specifically uses grams. (1 kg = 1000 g; 1000 mg = 1 g).
5. How is this different from a concentration calculator?
This calculator deals with pure substances (mass to moles). A concentration calculator determines the amount of a substance (solute) dissolved in a certain volume of a liquid (solvent).
6. What does the unit g/mol mean?
The unit g/mol stands for “grams per mole.” It represents how many grams one mole of a substance weighs.
7. What’s the difference between molecular mass and molar mass?
They are numerically the same. Molecular mass is the mass of one molecule in atomic mass units (amu). Molar mass is the mass of one mole of molecules in grams. The term formula mass is often used for ionic compounds.
8. Does this work for gases?
Yes, it converts the mass of a gas to moles. However, if you are dealing with the volume of a gas (in liters), you would need to use a different tool, like a gas law calculator, which relates pressure, volume, and temperature to moles.

© 2026 Calculator Experts. All rights reserved.



Leave a Reply

Your email address will not be published. Required fields are marked *