FLXCode Molar Mass Calculator

FLXCode apps

Appearance

Molar Mass Calculator

Type a formula and get its molar mass in g/mol, with each element's share of the mass.

Capital letters start each element: Co is cobalt, CO is carbon monoxide. Use brackets, and a dot or · for water of crystallisation.

Try an example

Example Molar mass

399.86 g/mol Molar mass of Fe2(SO4)3

Mass by element
ElementAtomsAtomic weightMass (g/mol)Mass %
Fe (Iron)255.845111.69027.93%
S (Sulfur)332.0696.18024.05%
O (Oxygen)1215.999191.98848.01%
Results
Molar mass399.858 g/mol
Moles in 10 g0.02501 mol
Mass of 1 mmol399.86 mg

The steps, with your numbers

Fe: 2 × 55.845 = 111.690

S: 3 × 32.06 = 96.180

O: 12 × 15.999 = 191.988

Total = 111.690 + 96.180 + 191.988 = 399.858 g/mol

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

Quick start

  1. Type the formula with capital letters for each element, like Fe2(SO4)3.
  2. Read the molar mass in g/mol. The table shows how each element adds up.
  3. Use the percent column for composition questions, or the steps to show your work.

Worked examples

FormulaMolar massNote
H2O18.02 g/molWater
NaCl58.44 g/molTable salt
CO244.01 g/molCarbon dioxide
C6H12O6180.16 g/molGlucose
Ca(OH)274.09 g/molSlaked lime, brackets
Fe2(SO4)3399.86 g/molIron(III) sulfate
CuSO4·5H2O249.68 g/molCopper sulfate pentahydrate, a hydrate
K4[Fe(CN)6]368.35 g/molPotassium ferrocyanide, square brackets

How it is worked out

The formula is read into counts of each element. Each count is multiplied by that element's atomic weight and the results are added:

molar mass = Σ (atoms of element × atomic weight)

For Fe2(SO4)3 there are 2 Fe, 3 S and 12 O. That is 2 × 55.845 + 3 × 32.06 + 12 × 15.999 = 111.69 + 96.18 + 191.988 = 399.858, shown as 399.86 g/mol. The percent by mass of an element is its part divided by the total.

Hydrates and dots

A dot in a formula, as in CuSO4·5H2O, means the second part is added once for each unit, multiplied by the number in front of it. You can type the dot as ·, . or *. The number applies to the whole group after it, so CuSO4.5H2O is five waters, not five hydrogens.

Common mistakes

  • Lowercase symbols. NaCl works, nacl does not, and the tool will suggest the likely symbol.
  • Forgetting that a number after a bracket multiplies everything inside it.
  • Mixing up Co (cobalt) and CO (carbon monoxide), or Cl and CI (letter i).
  • Using the molar mass of the anhydrous form when the bottle says hydrate. The water changes the answer by up to 40%.

Need grams for a solution? The molarity calculator uses this molar mass to give the mass to weigh, and the dilution calculator handles stock solutions. To check a reaction first, use the equation balancer.

Atomic weights used, elements 1 to 36

No.SymbolNameAtomic weight
1HHydrogen1.008
2HeHelium4.0026
3LiLithium6.94
4BeBeryllium9.0122
5BBoron10.81
6CCarbon12.011
7NNitrogen14.007
8OOxygen15.999
9FFluorine18.998
10NeNeon20.18
11NaSodium22.99
12MgMagnesium24.305
13AlAluminium26.982
14SiSilicon28.085
15PPhosphorus30.974
16SSulfur32.06
17ClChlorine35.45
18ArArgon39.95
19KPotassium39.098
20CaCalcium40.078
21ScScandium44.956
22TiTitanium47.867
23VVanadium50.942
24CrChromium51.996
25MnManganese54.938
26FeIron55.845
27CoCobalt58.933
28NiNickel58.693
29CuCopper63.546
30ZnZinc65.38
31GaGallium69.723
32GeGermanium72.63
33AsArsenic74.922
34SeSelenium78.971
35BrBromine79.904
36KrKrypton83.798

All 118 elements are built into the calculator.

Numbers this uses

Every constant the tool uses is listed here with its source. Where a number varies, you can edit it in the tool.

  • Atomic weights is the 118 values in the table above and the calculator. IUPAC 2021 standard atomic weights, abridged (CIAAW). Elements without a stable isotope use the mass number of their longest-lived isotope..
  • Hydrogen and oxygen is H 1.008 and O 15.999. IUPAC 2021 abridged. The full interval for H is 1.00784 to 1.00811, so 1.008 is the conventional value.
  • Display rounding is the total to 2 decimals, parts to 3. The two-decimal rule matches the usual textbook answer. Check your own course for the digits it expects.
  • Charges is ignored for mass. An electron weighs 0.00055 g/mol, which is below the rounding.

Nothing you type is uploaded. We count events without cookies (details).

FAQ

What is molar mass?

It is the mass of one mole of a substance, in grams per mole. For a compound you add up the atomic weights of every atom in the formula. Water, H2O, is 2 × 1.008 + 15.999 = 18.015 g/mol.

What is the difference between molar mass, molecular weight and formula weight?

The numbers are the same. Molecular weight is a unitless ratio to carbon-12, formula weight is used for ionic compounds like NaCl that have no molecules, and molar mass is the same number in g/mol. For homework they are interchangeable.

How do I calculate the molar mass of CuSO4·5H2O?

The dot means five water molecules come with each CuSO4. Add Cu 63.546, S 32.06, O 4 × 15.999, and 5 × H2O at 18.015. The total is 249.68 g/mol. The water is 36.1% of it, which is why the crystals lose that much mass when heated.

Why do my answer and the textbook differ in the last digit?

Atomic weights are rounded differently. This tool uses IUPAC 2021 abridged values (H 1.008, O 15.999, S 32.06, Cl 35.45). Older books use H 1.0079 or Cl 35.453. The difference is usually below 0.05 g/mol.

Why is Co different from CO?

Element symbols are one capital letter and at most one lowercase letter. Co is cobalt. CO is carbon and oxygen. NaCl and NACl are different things too, and the tool tells you when a symbol does not exist.

How do I use brackets and multipliers?

Ca(OH)2 means one Ca and two OH groups, so 1 Ca, 2 O and 2 H. You can nest them and mix (), [] and {}. For Al2(SO4)3 the 3 multiplies everything inside the bracket: 3 S and 12 O.

Which elements are not stable and what weight is used?

Elements with no stable isotope, like technetium, radon and everything past bismuth except thorium, protactinium and uranium, have no fixed atomic weight. IUPAC lists the mass number of the longest-lived isotope in brackets, and this tool uses that number.

Is my formula sent anywhere?

No. The calculation runs in your browser. What you type is not put in the address bar, not stored and not counted.

More from FLXCode

Share Molar Mass Calculator