Molecular Weight Calculator

Parse a formula and compute molecular weight.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a formula such as C6H12O6 or Ca(OH)2 and the calculator returns the molar mass in g/mol, with the contribution of each element listed. Parentheses and hydrate dots (CuSO4*5H2O) are handled.

How to use

1
Step 1
Type the formula with correct capitalisation, for example Ca(OH)2.
2
Step 2
Use parentheses for groups and * for water of hydration, for example CuSO4*5H2O.
3
Step 3
Press Calculate to read the total in g/mol and the per-element rows.

How it works

Molecular weight is the sum of the standard atomic weight of every atom in the formula. Subscripts multiply the atom count and a subscript after a closing bracket multiplies everything inside it. Element symbols are case sensitive: Co is cobalt, CO is carbon monoxide.

M = Σ (atoms of element × atomic weight)      Ca(OH)₂ = 40.078 + 2 × (15.999 + 1.008)

Worked example

Calcium hydroxide

Input
Ca(OH)2
Output
74.092 g/mol
Walkthrough
Ca 40.078 + O 2 × 15.999 (31.998) + H 2 × 1.008 (2.016) = 74.092 g/mol.

Limitations

  • An unknown symbol returns an error (for example Xx2 gives “Unknown element: Xx”).
  • Uses standard atomic weights, so results differ slightly from textbooks that round to one decimal.
  • Charges and isotopic labels are not parsed.

Questions

What is the molar mass of glucose?
180.156 g/mol for C6H12O6.
What is the molar mass of water?
18.015 g/mol (two H at 1.008 plus one O at 15.999).
How do I get the molar mass of a hydrate?
Write the water with an asterisk. CuSO4*5H2O is 249.677 g/mol, against 159.602 g/mol for anhydrous CuSO4.
What is the molar mass of NaCl?
58.44 g/mol.

Features

  • Per-element breakdown
  • Brackets and hydrates
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • The Periodic Table: Crash Course Chemistry #4

    CrashCourse

    Periodic table context for element and molar mass tools.

    Watch on YouTube
  • The Nucleus: Crash Course Chemistry #1

    CrashCourse

    Atomic structure basics next to chemistry calculators.

    Watch on YouTube