Molar mass from a formula
Use the Molecular Weight Calculator to find molar mass and element mass fractions from a molecular formula with groups and hydrates.
How the calculation works
The calculator multiplies each element’s atomic weight by its atom count and sums the contributions. Radioactive elements without standard weights use a representative isotope mass number.
Element breakdown
See atom counts and each element's mass share.
Parentheses apply a subscript to every element in the group. Ca(OH)2 contains one calcium, two oxygen and two hydrogen atoms, with a molar mass of about 74.092 g/mol.
Worked example
Example inputs include Chemical formula CuSO4·5H2O. The result is 249.677 g/mol.
How to read the result
Molar mass describes grams per mole of the compound. The element percentages show how much of that mass comes from each element in the formula.
Write a complete molecular formula
Use uppercase and lowercase letters correctly. For example, Co is cobalt, while CO contains carbon and oxygen. Add subscripts immediately after an element or group. For a grouped expression, multiply the element counts inside the parentheses by the subscript outside. Check the element breakdown after calculation to confirm the formula was interpreted as intended.
Check the element counts before using the result
The element breakdown is useful when a formula includes several components. For example, H2O has two hydrogen atoms and one oxygen atom. When a substance is a hydrate, use the formula that includes its water of hydration if you need the molar mass of that supplied form. Check the formula against the label before using the result in another calculation.
Trace the total from its elements
Enter the formula as written or choose a common-compound preset. CO2 has one carbon atom and two oxygen atoms. The molar mass is the carbon contribution plus twice the oxygen contribution, about 44.009 g/mol with the listed weights.
Check group and hydrate counts in the result. A number after parentheses multiplies the complete group. If you need the mass of a known number of moles, multiply the molar mass by that number.
Common questions
Separate the water portion with a dot, as in CuSO4·5H2O. The coefficient multiplies the entire water formula.
Yes. Capitalize the first letter and use lowercase for the second letter where present.
It multiplies every element count in that group.
The calculator reports molar mass, which is the mass of one mole of the compound.
Each element's contribution is divided by the total molar mass and multiplied by 100.