Molecular weight and molar mass
Calculate molar mass from a chemical formula, including bracketed groups and hydrates.
Molar mass from a formula
Multiply each element's atom count by its atomic weight, then add the contributions to obtain molar mass in g/mol. For H2O, two hydrogen atoms and one oxygen atom give 18.015 g/mol. A number after a bracket multiplies every atom count inside that group.
Entering formulas
Groups such as Ca(OH)2 and K4[Fe(CN)6] are supported. Use · or * for hydrates, as in CuSO4·5H2O. Do not prefix the first formula with a reaction coefficient. The calculation uses abridged standard atomic weights from 2024. Isotopically enriched material, exact ion masses and solids with fractional stoichiometry are outside scope. Displayed digits do not imply measurement accuracy.
Check atom counts first
Verify the formula before examining the digits of the molar mass. Uppercase and lowercase letters have different meanings in element symbols. A subscript applies to the preceding atom, while a number after a closing bracket multiplies the whole group. Enter one compound's formula unit, not an entire reaction equation.
For example, in Ca3(PO4)2 the outer 2 multiplies both phosphorus and oxygen. Calcium count is 3, phosphorus 2 and oxygen 8. Total atoms are 3+2+8 = 13. The molar mass contribution is 3·M(Ca)+2·M(P)+8·M(O). Counting only 4 oxygen atoms changes both formula and result. The atom count output helps identify such input mistakes.
In a hydrate, the number after the separator multiplies the entire water group. Do not confuse it with a reaction coefficient before the first compound. Do not try to bypass an unsupported element or syntax warning by adding spaces. Check the source formula. The result is an average molar mass per formula unit. It does not determine sample purity, mixture composition or isotopic distribution.
Frequently asked questions
How do you calculate the molecular weight of H₂SO₄?
In this example, the formula H2SO4 has a molar mass of 98.072 g/mol and contains 7 atoms per formula unit. Multiply each element’s atomic weight by its atom count and add the contributions, noting that average atomic weights may not represent an isotopically enriched sample.
Related calculators
-
Chemistry
Mole and mass converter
Convert between mass and amount of substance using molar mass. -
Chemistry
Molarity and molality calculator
Find molarity from solution volume or molality from solvent mass. -
Chemistry
Acid and base neutralization
Find the acid or base solution volume needed for a specified equivalence point. -
Chemistry
BOD and COD Load Calculator
Calculate pollutant mass loads from measured flow and concentration, and removal from influent and effluent loads. -
Chemistry
Carbon Emissions and Fuel CO₂ Equivalent
Estimate CO₂ equivalent from electricity or fuel use with your own emission factor, including fuel use calculated from travel distance. -
Chemistry
Chemical Equation Balancer
Balance reactions of neutral species by conserving atoms. Unique ratios are returned as the smallest positive integer coefficients.
Found a mistake or something missing?
If a value looks wrong, a size is missing or you need a feature, write to us and we will fix it.