Chemistry

Molar Mass Calculator

Calculate molecular weight from a chemical formula, including parentheses and hydrates, with an element-by-element mass breakdown.

Explicit units and model assumptionsLocal calculations with worked examples
Chemistry workspace
Chemistry workspace

Check the units, concentration basis and assumptions before interpreting the result.

See the method

Set up your calculation

Runs on your device

Your chemistry result

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter a chemical formula with correct capitalization, such as Ca(OH)2.
  2. Use parentheses for repeated groups and a middle dot for hydrates, such as CuSO4·5H2O.
  3. Calculate the molar mass in g/mol. Check the formula before using the value in a mole or solution calculation.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
Chemical formulaKeep the structure and separators shown in the sample. Line breaks are retained in this input.Ca(OH)2

Result for these sample inputs

74.092 g/mol
Ca: 1 atom
40.078 g/mol · 54.092% by mass
O: 2 atoms
31.998 g/mol · 43.187% by mass
H: 2 atoms
2.016 g/mol · 2.7209% by mass

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

Molar mass is the sum of each element’s atom count multiplied by its conventional atomic weight. Parentheses multiply a group; CuSO4·5H2O adds five water molecules.

A WORKED EXAMPLE

Ca(OH)2 contains one calcium atom, two oxygen atoms and two hydrogen atoms. Using Ca = 40.078, O = 15.999 and H = 1.008: 40.078 + 2 × 15.999 + 2 × 1.008 = 74.092 g/mol.

Understanding your result

A molar mass of 74.092 g/mol means one mole has a mass of approximately 74.092 grams under the atomic weights used here. To convert a measured mass into moles, divide grams by g/mol. Conventional atomic weights are rounded and are not the exact mass of a specified isotope.

What to keep in mind

Uses rounded conventional weights for 81 listed elements, not exact isotope masses. Decimal subscripts, ionic charges and isotope annotations are not supported. Educational calculation only; use validated procedures for laboratory work.

Reference: PubChem periodic table — atomic masses

Common questions

Does capitalization matter?

Yes. Co is cobalt, while CO is carbon plus oxygen. Enter formulas with correct case; use a middle dot, such as CuSO4·5H2O, for a hydrate.

Are my inputs uploaded?

No. This calculation runs in your browser without an account or an external API.

Methodology maintained by ClarityKit. How these tools are built and checked.