molecalculator

Moles & Molar Mass

Mass to Mole Calculator: Grams to Moles From the Molar Mass

Calculator No. 01-0015 · Updated · Formula and assumptions shown below

Amount of substance 0.4278 mol
Amount in millimoles
427.79 mmol
= n × 1000
Number of formula units
2.576 × 1023
N = n × N_A (6.022 × 10²³ per mol)
Mass of the sample
25 g
Weighed mass, grams
You enter
Mass of the sample (g), Molar mass (g/mol)
You get
Amount of substance (mol), Amount in millimoles (mmol), Number of formula units
Rounding
4 dp · 2 dp · 3 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator turns a mass in grams into an amount of substance in moles. Enter the mass you weighed and the molar mass of the compound; you get the moles, the same amount in millimoles and the number of formula units (molecules, or ion pairs for a salt).

Formula

n = m ÷ M, and N = n × NA.

  • n: amount of substance in moles (mol)
  • m: mass in grams (g)
  • M: molar mass in grams per mole (g/mol), the sum of the atomic weights in the formula
  • N: number of formula units; NA = 6.02214076 × 1023 mol−1 (the Avogadro constant, exact)
  • 1 mol = 1000 mmol

Worked Example

25 g of sodium chloride, NaCl, with a molar mass of 58.44 g/mol (22.990 for Na + 35.45 for Cl).

  1. n = 25 ÷ 58.44 = 0.4278 mol
  2. In millimoles: 0.42779 × 1000 = 427.79 mmol
  3. Formula units: 0.42779 × 6.02214076 × 1023 = 2.576 × 1023

Assumptions

  • The molar mass is that of the exact substance you weighed, including any water of crystallisation (CuSO4·5H2O, not CuSO4).
  • The sample is pure; for a reagent of known purity, multiply the mass by the purity fraction first.
  • Masses are in grams; convert milligrams (÷ 1000) or kilograms (× 1000) before you enter them.

How to read the result

The amount in moles is what reaction equations and concentrations are written in, so it is the number to carry into a stoichiometry or molarity calculation. The number of formula units is mainly a check of scale: even a few milligrams hold around 1019 to 1020 of them. Use the molar mass calculator if you do not have M yet.

Limits and common mistakes

  • Using the anhydrous molar mass for a hydrate (or the reverse) is the most common error and can be off by 30% or more.
  • Entering milligrams as grams gives an answer 1000 times too large.
  • For a solution, the mass of solute is not the mass of the solution; use a molarity calculator instead.

Frequently Asked Questions

How many moles are in 25 g of NaCl?

About 0.4278 mol, using M = 58.44 g/mol.

What is the formula for grams to moles?

Moles = grams ÷ molar mass (g/mol).

Where do I find the molar mass?

Add the atomic weights of every atom in the formula, or type the formula into the molar mass calculator on the home page.

Does the result count molecules or atoms?

Formula units: molecules for a molecular compound, one cation-anion set for a salt such as NaCl. For atoms, multiply by the number of atoms in the formula.

Formula used
in m | Mass of the sample | g | 25 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
out n | Amount of substance | mol | m / mm | 4
out mmol | Amount in millimoles | mmol | n * 1000 | 2
out nn | Number of formula units | - | n * 6.02214076e23 | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Photo collage: a digital analytical balance with a blank dark display and a weighing boat of white salt crystals, and a close-up of salt crystals.
Save this page: a 1000 × 1500 image of Mass to Mole Calculator: Grams to Moles From the Molar Mass.

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →