Molecular Weight Calculator
Parse a formula and compute molecular weight.
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
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?
What is the molar mass of water?
How do I get the molar mass of a hydrate?
What is the molar mass of NaCl?
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 YouTubeThe Nucleus: Crash Course Chemistry #1
CrashCourse
Atomic structure basics next to chemistry calculators.
Watch on YouTube
- Periodic Table of Elements
NIST
Official element data for chemistry calculators.
- Chemistry | Khan Academy
Khan Academy
Practice path for stoichiometry and solutions math.