Skip to content

Molar Mass Calculator (Grams ↔ Moles)

Molar mass from a mass and an amount, or convert grams to moles and moles to grams with a known molar mass, working shown.

Inputs

Amount of substance
0.0787 mol

Use this calculator on your own site

Free embed

  • Two lines of HTML, unlimited views
  • Shows a small CalculateEveryday bar, with a credit link under the calculator

What each Molar Mass input means

Find
Find the molar mass from a mass and an amount, the moles in a mass, or the mass of an amount.
Mass
The mass of the sample in grams.
Moles
The amount in moles.
Molar mass (for the moles and mass modes)
The molar mass in g/mol: the sum of the atomic masses in the formula — for water, 2 × 1.008 + 15.999 = 18.015.

Molar Mass formula

molar mass (g/mol) = mass (g) ÷ moles · moles = mass ÷ molar mass · mass = moles × molar mass · particles = moles × 6.022 × 10²³

M=mn,n=mM,N=n×6.022×1023\mathcal{M} = \frac{m}{n}, \qquad n = \frac{m}{\mathcal{M}}, \qquad N = n \times 6.022 \times 10^{23}

A mole is 6.022 × 10²³ particles, and the molar mass is what one mole weighs in grams — the same number as the formula mass in atomic mass units, which is the point of the definition. For a compound, add up the atomic masses in the formula: water is 2 × 1.008 + 16.00 = 18.02 g/mol, sodium chloride 22.99 + 35.45 = 58.44 g/mol. With the molar mass known, grams and moles convert either way by one division or multiplication, which is the step at the start of nearly every stoichiometry problem. The page does all three: molar mass from a measured mass and amount, moles from grams, and grams from moles, and shows how many particles that is.

Molar Mass worked example

OpenStax's copper example: 5.00 g of copper wire at 63.55 g/mol is 5.00 ÷ 63.55 = 0.0787 mol, which is 0.0787 × 6.022 × 10²³ = 4.74 × 10²² atoms. The other way, 0.25 mol of NaCl (58.44 g/mol) weighs 0.25 × 58.44 = 14.61 g. And if 58.44 g turns out to be exactly one mole, the molar mass is 58.44 ÷ 1 = 58.44 g/mol.

More Molar Mass examples

A quarter of a mole of glucose (C₆H₁₂O₆, 180.16 g/mol): 0.25 × 180.16 = 45.04 g — 1.5 × 10²³ molecules.

An unknown acid: 9.8 g is found to be 0.1 mol, so its molar mass is 9.8 ÷ 0.1 = 98 g/mol — close to sulfuric acid's 98.08 g/mol.

Where the Molar Mass calculator can give the wrong answer

  • The molar mass must match the formula as written, including water of crystallisation and the state of any ion: CuSO₄·5H₂O is 249.7 g/mol, CuSO₄ is 159.6.
  • Atomic masses are averages over natural isotopes, so a molar mass to two decimals is as precise as most work needs; isotopically pure samples differ.
  • Grams to moles assumes a pure sample. Purity below 100% means fewer moles than the arithmetic says.
  • This page does not parse chemical formulas — you add up the atomic masses yourself, or enter a molar mass from a table. A typo in that number carries straight through.
  • Molar mass is per formula unit. For ionic compounds 'molecule' is loose language; the count of particles line is formula units.

Spotted a mistake? Tell us

Molar Mass reference table

Atomic masses of common elements (g/mol)
ElementSymbolAtomic mass
HydrogenH1.008
CarbonC12.011
NitrogenN14.007
OxygenO15.999
SodiumNa22.990
MagnesiumMg24.305
AluminiumAl26.982
SulfurS32.06
ChlorineCl35.45
PotassiumK39.098
CalciumCa40.078
IronFe55.845
CopperCu63.546
ZincZn65.38
Source: IUPAC standard atomic weights (abridged conventional values)

Molar Mass FAQ

Add the atomic masses of every atom in the formula, from the periodic table, in g/mol. CO₂: 12.01 + 2 × 16.00 = 44.01 g/mol. C₆H₁₂O₆ (glucose): 6 × 12.01 + 12 × 1.008 + 6 × 16.00 = 180.16 g/mol. If you have measured a mass and know the amount in moles, divide: that is the page's first mode.