Math Tools

Molecular Weight Calculator (Molar Mass in g/mol)

Enter a chemical formula to get its molecular weight, also called molar mass, in grams per mole, with the mass and percent of each element. Brackets such as Ca(OH)2 and K4[Fe(CN)6] and hydrates such as CuSO4·5H2O are supported.

01

Your inputs

Start with the example, or enter your own values.

Processed in your browser. Your inputs stay on this device.

02

Your result

A little clarity, coming right up.

Make room for the answer.

Enter your values and run the tool. Your result will appear here.

How to use the Molecular Weight Calculator

Type the formula with capital letters where element symbols start, for example NaCl, H2SO4 or Al2(SO4)3, and press Calculate.

Read more: How to Use the Molecular Weight Calculator: Steps and a Worked Example

How molar mass is calculated

Multiply each element's standard atomic weight by the number of its atoms and add them up. Water, H2O, is 2 × 1.008 + 15.999 = 18.015 g/mol, so 18.015 g of water is one mole, about 6.022 × 10²³ molecules.

Molecular weight, molar mass and formula mass

Molar mass is the mass of one mole in grams (g/mol). Molecular weight is the same number without units, in daltons per molecule. Ionic compounds such as NaCl have no molecules, so their value is called formula mass, but it is worked out the same way.

Writing formulas correctly

Symbols are case sensitive: Co is cobalt but CO is carbon monoxide. Write a hydrate with a dot, a star or ·, such as CuSO4·5H2O or CuSO4*5H2O, and the number in front multiplies the whole water group.

The formula

Molar mass = sum of (atomic weight × number of atoms) for every element in the formula.

Examples

  • With the default values
    Molar mass: 180.156 g/mol
    C: 6 × 12.011 = 72.066 g/mol (40%)
    H: 12 × 1.008 = 12.096 g/mol (6.71%)
    O: 6 × 15.999 = 95.994 g/mol (53.28%)

Limitations and assumptions

Uses IUPAC standard atomic weights; radioactive elements use the mass number of their most stable isotope. Element symbols are case sensitive: Co is cobalt, CO is carbon monoxide.

Frequently asked questions

What is the molar mass of water?

18.015 g/mol.

What is the molar mass of NaCl?

58.44 g/mol (22.990 + 35.45).

Where do the atomic weights come from?

From the IUPAC standard atomic weights, rounded to the usual conventional values. Radioactive elements use the mass number of their most stable isotope.