Chemistry calculation tool

Mass to Moles Calculator

Calculate mass, moles, or molar mass from two known chemistry values with clear units and working steps.

Enter two known values

Solve a mass and moles problem

Free tool
g

Mass of the chemical sample in grams.

mol

This is the value being calculated.

g/mol

Mass of one mole of the substance.

Enter mass in grams and molar mass in grams per mole. The calculator does not convert between other mass units.

Try an example:

Your result will appear here

Select the missing variable and enter the other two chemistry values.

Calculator guide

How this calculator works

Mass to Moles Calculator converts between mass, amount of substance, and molar mass using fundamental chemistry relationships. It helps students, researchers, scientists, and laboratory professionals perform accurate chemical quantity calculations for experiments, reactions, and solution preparation.

Formula explanation

Mass and moles calculations use the relationship between sample mass, molar mass, and the amount of substance in moles.

Formula

Moles = Mass ÷ Molar Mass

Worked example

Example: A sample mass can be converted into moles by dividing the mass by its molar mass.

Assumptions

  • The chemical substance and molar mass are correctly identified.
  • Mass values use compatible units such as grams.
  • Atomic masses are based on accepted periodic table values.
  • Chemical formulas accurately represent the substance being analyzed.

Examples

  • Example: A 58.5 gram sample of sodium chloride can be converted to moles using its molar mass.
  • Example: Chemists use mass-to-moles calculations to determine reactant and product quantities in experiments.

Common mistakes

  • Using an incorrect molar mass.
  • Mixing grams and kilograms.
  • Ignoring molecular composition.

Variables

  • Mass of substance
  • Number of moles
  • Molar mass
  • Chemical substance identity
  • Molecular formula
  • Amount of substance

Limitations

  • Accuracy depends on correct molar mass values and measurements.
  • Complex compounds require accurate chemical formulas for reliable results.

Scientific references

  • OpenStax Chemistry: Chemical Quantities and Stoichiometry
  • NIST Chemistry WebBook
  • Scientific laboratory calculation guidelines

Content review

Reviewed by: ScienceCalcHub Chemistry Review Team | Last reviewed: 2026-08-30

Applications

  • Stoichiometry calculations
  • Chemical reaction analysis
  • Laboratory preparation
  • Chemistry education
  • Quantitative chemical analysis
  • Research sample calculations

Frequently asked questions

How do you convert mass to moles?

Mass is converted to moles by dividing the given mass of a substance by its molar mass.

What is the formula for converting grams to moles?

The formula is moles = mass divided by molar mass.

Why are mole calculations important in chemistry?

Mole calculations allow scientists to compare chemical quantities and accurately measure substances in reactions.

Where is mass to moles conversion used?

Mass to moles conversion is used in chemistry laboratories, research experiments, stoichiometry calculations, and chemical preparation processes.

Accuracy and transparency

Created and maintained by our editorial team

This chemistry calculator is maintained by the ScienceCalcHub Editorial Team. Its calculation logic is tested with representative inputs, while the supporting guidance is checked for formula clarity, units, assumptions, and common mistakes.

Written by
ScienceCalcHub Editorial Team
Reviewed by
ScienceCalcHub Scientific Review Team
Review standard
Formula accuracy, units, examples, and educational clarity

Learn more about our formula-review and correction process, explore our calculation methodology, or view our scientific references.

  • Calculation logic tested
  • Variables and units explained
  • Assumptions stated clearly
  • Corrections handled transparently

Formula

Mass, moles, and molar mass formula

Mass =moles × molar mass

The relationship is written as m = n × M, where m is mass in grams, n is amount in moles, and M is molar mass in grams per mole.

  • Moles: n = m ÷ M
  • Mass: m = n × M
  • Molar mass: M = m ÷ n

Worked example

Convert grams of water to moles

A water sample has a mass of 36.03 grams. The molar mass of water is 18.015 g/mol.

  1. Use the formula: n = m ÷ M
  2. Substitute the values: 36.03 ÷ 18.015
  3. Calculate the result: 2 mol

The sample therefore contains 2 moles of water.

Chemistry units

Use compatible mass and molar-mass units

This calculator expects mass in grams and molar mass in grams per mole. Using matching units ensures that grams cancel correctly when calculating moles.

  • Mass: grams (g)
  • Amount of substance: moles (mol)
  • Molar mass: grams per mole (g/mol)

Common mistakes

Mass-to-moles calculation mistakes

  • Multiplying instead of dividing when converting grams to moles.
  • Entering molecular mass without checking the chemical formula.
  • Mixing kilograms with molar mass in grams per mole.
  • Rounding molar mass too early.
  • Forgetting to include units in the final result.

Questions and answers

Calculator FAQ

How do you convert mass to moles?

Mass is converted to moles by dividing the given mass of a substance by its molar mass.

What is the formula for converting grams to moles?

The formula is moles = mass divided by molar mass.

Why are mole calculations important in chemistry?

Mole calculations allow scientists to compare chemical quantities and accurately measure substances in reactions.

Where is mass to moles conversion used?

Mass to moles conversion is used in chemistry laboratories, research experiments, stoichiometry calculations, and chemical preparation processes.