🧪 Molecular Weight Calculator
Enter a chemical formula to get its molecular weight (g/mol) with each element’s contribution — hydrates and nested groups supported.
Molar mass
180.156 g/mol
| Element | Atoms | Atomic wt | Mass | Mass % |
|---|---|---|---|---|
| O Oxygen | 6 | 15.999 | 95.994 | 53.28% |
| C Carbon | 6 | 12.011 | 72.066 | 40.00% |
| H Hydrogen | 12 | 1.008 | 12.096 | 6.71% |
| Total | 180.156 | 100% | ||
IUPAC/CIAAW standard atomic weights. Parser handles nested groups, hydrates (· / . / *) and two-letter symbols. 🔒 Computed in your browser.
How the molecular weight calculator works
The formula is parsed (nested groups, hydrate dots, two-letter symbols) and each element’s count is multiplied by its IUPAC standard atomic weight and summed. The result is the molecular weight in g/mol, with a per-element mass and percent breakdown.
Molecular weight and molar mass are the same number; this page reports it in g/mol from exact atomic-weight constants — no rounding drift.
Frequently asked questions
How do I find molecular weight from a formula?
Sum the atomic weights of all atoms. Glucose C₆H₁₂O₆ = 6×12.011 + 12×1.008 + 6×15.999 = 180.16 g/mol. The tool parses the formula and computes it exactly.
Is molecular weight the same as molar mass?
Numerically yes. Molecular weight is the relative (dimensionless) mass of a molecule; molar mass is that value in g/mol. This tool shows g/mol.
Can it handle complex formulas?
Yes — nested parentheses/brackets like Ca(NO₃)₂ and K₄[Fe(CN)₆], and hydrates like CuSO₄·5H₂O, are all parsed correctly.
What units are used?
Grams per mole (g/mol), the standard for molar mass / molecular weight.
Is the calculation private?
Yes — everything runs in your browser.