CalcTrace

Molecular Weight Calculator

Type a chemical formula to get its molar mass in grams per mole, with a breakdown by element and each element’s share of the mass. Brackets, nested groups and hydrates such as CuSO4·5H2O are understood, and the atomic weights are IUPAC standard values.

Last updated .

Your formula

Capital letters matter: Co is cobalt, CO is carbon monoxide. Use ( ), [ ] or { } for groups, and ·, * or . before water of crystallisation.

Grams to moles, or moles to grams, for this substance.

Result

Molar mass

–

Show the working

    How molar mass is calculated

    The molar mass of a compound is the mass of one mole of it, in grams per mole. Numerically it equals the relative molecular mass, often called the molecular weight, which has no unit. It is found by adding up the atomic weights of every atom in the formula.

    M = Σ (ni × Ai)

    Mass % of element i = ni × Ai ÷ M × 100

    M is the molar mass, ni the number of atoms of element i in the formula and Ai its standard atomic weight. A number after a bracket multiplies everything inside it, brackets can be nested, and a number in front of a hydrate part, as in ·5H₂O, multiplies that whole part.

    Atomic weights used

    The calculator uses the standard atomic weights published by IUPAC’s Commission on Isotopic Abundances and Atomic Weights (CIAAW) in their abridged form, which gives most elements to five significant figures. Some elements, including hydrogen, carbon, nitrogen, oxygen, sulfur and chlorine, have weights that vary slightly with the source of the sample, so IUPAC gives an interval; for these the conventional single values are used, such as 1.008 for hydrogen, 12.011 for carbon and 15.999 for oxygen. Elements with no stable isotopes, such as technetium, radon and plutonium, have no standard atomic weight; the mass number of a long-lived isotope is used instead, shown in square brackets. Results are shown to three decimal places, but the last digit is not always significant, because the precision is limited by the least precise atomic weight in the formula.

    Worked examples

    1. Water, H₂O. 2 × 1.008 + 15.999 = 18.015 g/mol.
    2. Calcium hydroxide, Ca(OH)₂. The 2 applies to the whole OH group: 40.078 + 2 × (15.999 + 1.008) = 40.078 + 34.014 = 74.092 g/mol.
    3. Copper(II) sulfate pentahydrate, CuSO₄·5H₂O. CuSO₄ is 63.546 + 32.06 + 4 × 15.999 = 159.602. Five waters are 5 × 18.015 = 90.075. The total is 249.677, about 249.68 g/mol. Copper is 63.546 ÷ 249.677 = 25.45% of the mass, and the water of crystallisation 36.08%.
    4. Glucose, C₆H₁₂O₆. 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 72.066 + 12.096 + 95.994 = 180.156 g/mol. Carbon is 40.00% of it by mass.

    To turn a mass into moles, divide by the molar mass: 10 g of water is 10 ÷ 18.015 = 0.5551 mol. To go the other way, multiply.

    Reading formulas correctly

    Capitals carry meaning. Each element symbol starts with a capital letter, and a second letter, if any, is lower case. CO is one carbon and one oxygen; Co is cobalt. Typing a formula in all lower case cannot be read reliably, so the calculator asks you to fix it rather than guess.

    Hydrates count their water. The dot in CuSO₄·5H₂O joins two parts of one substance. Leaving the water out gives the anhydrous salt, which weighs much less per mole. Fractional hydrates such as CaSO₄·½H₂O (enter it as CaSO4·0.5H2O) are allowed.

    Ions and charges. The mass of an electron is tiny, so the molar mass of an ion is, for practical purposes, the same as for the neutral group. Enter SO4 rather than SO4²⁻; charge signs are not accepted.

    Empirical and molecular formulas. CH₂O and C₆H₁₂O₆ have the same mass percentages but different molar masses. Percentages from the breakdown cannot tell them apart; you need the molar mass from a separate measurement.