Molecular Weight Calculator
Calculate molecular weight and molar mass from a chemical formula, including element counts, parentheses, and each element's mass contribution.
About the molecular weight calculator
Molecular weight examples
| Chemical formula | Molar mass | Element count |
|---|---|---|
| H2O | 18.015 g/mol | Two hydrogen atoms and one oxygen atom. |
| C6H12O6 | 180.156 g/mol | Glucose contains six carbon, twelve hydrogen, and six oxygen atoms. |
| Ca(OH)2 | 74.092 g/mol | The outside subscript doubles both atoms inside the hydroxide group. |
How to calculate molecular weight
- Write the chemical formula with correct capitalization and numerical subscripts.
- Use balanced parentheses when a repeated group contains more than one element.
- Enter the formula and select Calculate Molecular Weight.
- Review the total molar mass and element-by-element contribution for accuracy.
Molecular weight calculator FAQ
Are molecular weight and molar mass the same?
They share the same numerical value for a substance in ordinary chemistry. Relative molecular weight is dimensionless, while molar mass is conventionally reported in grams per mole.
How are parentheses handled in a chemical formula?
A subscript after a closing parenthesis multiplies every atom count inside that group. For Ca(OH)2, both oxygen and hydrogen are counted twice.
Why does capitalization matter?
Every element symbol starts with an uppercase letter, and some have a lowercase second letter. Changing capitalization can create a different set of elements or make the formula invalid.
Why might another table give a slightly different answer?
Standard atomic weights may be rounded to different decimal places and can be updated as isotope measurements improve. Small differences in the last displayed digits are usually due to those conventions.
Can this calculate an isotope's exact mass?
No, this calculator uses average standard atomic weights for naturally occurring elements. Isotope-specific calculations need the exact nuclide masses and isotope counts.