Tommaso Francese, computational chemistMolecules&FriendsAuthor: Tommaso Francese
VeneziaItaliano
← Back to the molecule builder

Molar mass and grams ↔ moles conversion

Type the formula of a compound: I work out the molar mass element by element and convert a mass in grams to the number of moles, or the other way round, showing every step.

Molar mass

H2SO4 · 98.07 g/mol

Steps

ElementAtomsAtomic weight (u)Contribution (g/mol)
H21.00802.0160
S132.0632.06
O415.99963.996
Total98.0720
M = 2 × 1.0080 + 1 × 32.06 + 4 × 15.999
  = 2.0160 + 32.06 + 63.996
  = 98.0720 ≈ 98.07 g/mol  (rounded to the decimals of the least precise term)

Conversion

Type a value in either field: the other one is worked out for you.

n = m / M = 10 g / 98.07 g/mol = 0.1020 mol

Result rounded to 4 significant figures.

How to write formulas

The method

The molar mass M of a compound is the sum of the atomic weights of its atoms, each multiplied by how many times it appears in the formula. It is expressed in g/mol: one mole of the compound weighs M grams.

I use the IUPAC standard atomic weights in the abridged form of this site's periodic table. Each contribution keeps the decimals of its atomic weight and the sum is rounded to the decimals of the least precise term, as with measurements.

The number of moles is the mass divided by the molar mass, n = m / M; the other way round, the mass is m = n × M.

Limits

The result holds for the natural isotopic composition: an enriched or labelled sample (for example with deuterium) has a different molar mass. For elements with no stable isotopes I use the mass number of the most stable isotope. The conversion uses the rounded molar mass and gives 4 significant figures: in exercises, mind the significant figures of the data.

In brief

A molar mass calculator that shows each element's contribution and converts grams to moles and moles to grams, for stoichiometry exercises. It uses the IUPAC standard atomic weights of this site's periodic table.

Frequently asked questions

How is molar mass calculated?

By adding up the atomic weights of all the atoms in the formula, each multiplied by how many times it appears. The result is in g/mol and the sum is rounded to the decimals of the least precise term.

How do I convert grams to moles?

Divide the mass by the molar mass, n = m / M; the other way round, m = n × M. Type a value in either field and the other is worked out for you, to 4 significant figures.

Does it work with hydrates and ions?

Yes: write hydrates with a dot (CuSO4·5H2O, CuSO4.5H2O works too) and ions with their charge (SO4^2-, NH4+). The physical state, such as (aq) or (s), does not change the molar mass.

Does it apply to isotopically enriched samples?

No: the result holds for the natural isotopic composition. An enriched or labelled sample, for example with deuterium, has a different molar mass.

More tools

Last updated