Molar Mass Calculator

Use element symbols with correct capitalisation (Co is cobalt, CO is carbon monoxide). Brackets and hydrates (· or .) are supported.
Chemistry Updated 29 Oct 2026

Calculates the molar mass of a chemical compound. Type a formula such as H2O, Ca(OH)2, Al2(SO4)3 or the hydrate CuSO4·5H2O, or pick elements from the full periodic table (all 118) and set how many atoms of each. The calculator adds up the atomic weights and shows the molar mass in grams per mole, the number of atoms, and each element's mass contribution and percentage by mass.

  • Uses abridged standard atomic weights; real samples with unusual isotope ratios can differ.
  • Charges, isotopic labels and state symbols such as (aq) are not supported.
  • Element symbols are case-sensitive.

Formula

Molar mass (g/mol) = Σ (number of atoms of each element × atomic weight of that element)
  • A multiplier after a closing bracket applies to everything inside the bracket, so Ca(OH)2 contains 1 Ca, 2 O and 2 H.
  • In a hydrate such as CuSO4·5H2O, the number after the dot multiplies the whole water unit that follows it.
  • Atomic weights are the abridged standard values published by IUPAC CIAAW (2024), given to 4 to 5 significant figures. The headline result is rounded half up to 2 decimals; the unrounded sum is shown as well.
  • Elements with no standard atomic weight (for example Tc, Pm, Po, Rn and everything after U except Th and Pa) use the mass of their longest-lived isotope from PubChem.
  • Mass percent of an element = (atoms × atomic weight) ÷ molar mass × 100.

Calcium hydroxide, Ca(OH)2

Inputs
  • Enter the compound as: formula
  • Chemical formula: Ca(OH)2

Ca(OH)2 has 1 Ca (40.078), 2 O (2 × 15.999) and 2 H (2 × 1.008). The sum is 40.078 + 31.998 + 2.016 = 74.092, shown as 74.09 g/mol.

Sources & references

Frequently asked questions

What is molar mass?
Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). It is found by summing the atomic weights of all atoms in the formula.
How does capitalisation affect the formula?
Element symbols start with a capital letter and have at most one lowercase letter. Co is cobalt, while CO is one carbon and one oxygen. A formula with invalid capitalisation returns no result. If you are unsure, pick the elements from the list instead.
Can I enter hydrates?
Yes. Separate the parts with a dot, for example CuSO4·5H2O or CuSO4.5H2O. The number directly after the dot multiplies the following part.
Why do other tools show slightly different values?
Different sources round atomic weights differently or use older tables. For example, some use 1.0079 for hydrogen and 16 for oxygen and so give 18.0158 g/mol for water; with the current IUPAC values (1.008 and 15.999) water is 18.015 g/mol. Both round to 18.02.
Which elements are supported?
All 118. Elements with a standard atomic weight use the IUPAC value. Radioactive elements without one, such as technetium, radon or plutonium, use the mass of their longest-lived isotope, and the result says so.

Related calculators