Enter a chemical formula to calculate its molecular weight (molar mass) in g/mol. Supports parentheses, e.g. Ca(OH)₂.
| Symbol | Element | Count | Atomic Wt | Contribution | % |
|---|---|---|---|---|---|
| H | Hydrogen | 2 | 1.0080 | 2.0160 | 11.2% |
| O | Oxygen | 1 | 15.9990 | 15.9990 | 88.8% |
| Total | 18.0150 | 100% | |||
| Compound | Formula | MW (g/mol) |
|---|---|---|
| Water | H2O | 18.015 |
| Carbon Dioxide | CO2 | 44.01 |
| Salt (NaCl) | NaCl | 58.443 |
| Sulfuric Acid | H2SO4 | 98.079 |
| Glucose | C6H12O6 | 180.16 |
| Ethanol | C2H5OH | 46.068 |
| Ammonia | NH3 | 17.031 |
| Methane | CH4 | 16.043 |
Lena has weighed out 90 g of glucose and her lab sheet asks for moles. Daniel needs 1.461 g of sodium chloride to make 250 mL of a 0.100 M solution. Both answers start from one number, the molar mass of the compound, which is just the atomic weights of every atom in the formula added together. Enter C6H12O6 or NaCl here and you get grams per mole plus a table showing how much mass each element contributes.
Molecular weight M = Σ (atomic weight × atom count), taken over every element in the formula. Subscripts give the counts, and an element with no subscript counts once. A number after a closing parenthesis multiplies everything inside it, so Ca(OH)2 contains 1 Ca, 2 O and 2 H.
Once you have M, the two conversions you usually need are moles = mass ÷ M and mass = moles × M. The atomic weights used here are the conventional values to three or four significant decimals, for example H 1.008, C 12.011, O 15.999, Na 22.990 and Cl 35.453. They are averages over natural isotope mixtures, which is why the result is a molar mass in g/mol and not the mass of one specific molecule.
Worked example, Ca(OH)2. Calcium contributes 40.078. Oxygen contributes 2 × 15.999 = 31.998. Hydrogen contributes 2 × 1.008 = 2.016. The total is 40.078 + 31.998 + 2.016 = 74.092 g/mol, displayed as 74.0920. Mass percents come out at 54.1% Ca, 43.2% O and 2.7% H. A 7.4 g sample is then 7.4 ÷ 74.092 = 0.0999 mol.
Case tells the parser where one element ends. CO is carbon plus oxygen at 28.0100 g/mol; Co is the single element cobalt at 58.9330. If you type everything lowercase, such as nacl, no element is recognized and you will see 0.0000 g/mol.
Not with the dot. The parser skips the dot and the coefficient, so CuSO4·5H2O returns 177.6220, which is wrong. Write the water as a group instead: CuSO4(H2O)5 gives 249.6820 g/mol.
The built-in table has 58 elements, not the whole periodic table. Tungsten (W), for instance, is missing, so WO3 gets that error. Check for a typo first, then for a rarer element.
The numbers are identical. Molecular weight is the older name for covalent molecules, formula mass is the term usually used for ionic compounds like NaCl, and molar mass is the same value expressed in g/mol.
Match your balance. Atomic weights for some elements are now published by IUPAC as ranges, so the third or fourth decimal can differ between textbooks. Rounding the molar mass to one or two decimals is fine for most lab arithmetic.