Type the chemical formula
Enter the compound the way your textbook writes it — C6H12O6, Ca(OH)2, CuSO4·5H2O. Capitalisation matters: CO is carbon monoxide, Co is cobalt.
Type a chemical formula and get the molar mass in g/mol, plus the mass and percent composition of every element in the compound. Parentheses and hydrates included. No signup, no email.
Type a chemical formula — the molar mass and the element-by-element breakdown update as you type.
Groups like Ca(OH)2 and hydrates like CuSO4·5H2O work too.
| Element | Atoms | Atomic weight | Mass | Mass % |
|---|---|---|---|---|
| g/mol | % |
Molar mass = = g/mol
This is a free molecular weight calculator: enter a chemical formula and the molar mass appears instantly in g/mol, along with how many grams each element contributes and its percent of the total. It handles parentheses like Ca(OH)2, hydrates like CuSO4·5H2O, and every element on the periodic table. The arithmetic runs in your browser — no AI model, no upload, nothing saved.
Enter the compound the way your textbook writes it — C6H12O6, Ca(OH)2, CuSO4·5H2O. Capitalisation matters: CO is carbon monoxide, Co is cobalt.
The total appears in g/mol as you type. There is no button to press and no page reload — the parser and the atomic weights both live in your browser.
The table below the input shows how many atoms of each element the formula contains, the grams each contributes, and its percent of the total mass — the working you can copy into an answer.
Three names your textbook uses for numbers that come out the same on this page. What differs is what the number describes.
The mass of one molecule relative to 1/12 of a carbon-12 atom. It is a ratio, so strictly it has no units — but the number is identical to the molar mass, which is why the two get used interchangeably in homework.
The mass of one mole — 6.022 × 10²³ particles — of a substance, in grams per mole. This is the number you actually weigh out on a balance, and the one the calculator labels g/mol.
The same sum for ionic compounds like NaCl, which have no discrete molecules — a crystal is a lattice, not a molecule. The arithmetic over the formula unit is unchanged, so the calculator handles it identically.
Two things trip students up more than the arithmetic does — bracketed groups and water of crystallisation.
A subscript after a bracket multiplies everything inside it, including nested groups. Ca(OH)2 is two oxygens and two hydrogens, not one of each — the single most common place a hand calculation goes wrong.
The dot in a hydrate means "plus", and the number in front of the water multiplies the whole H2O unit. Type the dot as · or a plain * — both parse. Leave the water out and your molar mass will be far too low.
Molecular weight is the sum of the atomic weights of every atom in the formula. Multiply each element's atomic weight by its subscript, then add the products together:
Molecular weight = Σ (atomic weight of element × number of atoms)
Worked example, water. H₂O has two hydrogens and one oxygen. Hydrogen weighs 1.008 and oxygen weighs 15.999, so the sum is (2 × 1.008) + (1 × 15.999) = 2.016 + 15.999 = 18.015 g/mol.
Worked example, calcium carbonate. CaCO₃ is one calcium, one carbon, and three oxygens: (1 × 40.078) + (1 × 12.011) + (3 × 15.999) = 40.078 + 12.011 + 47.997 = 100.086 g/mol.
Parentheses multiply everything inside them. Ca(OH)₂ is one calcium plus two OH units — so two oxygens and two hydrogens, not one of each: 40.078 + (2 × 15.999) + (2 × 1.008) = 74.092 g/mol.
Once you have the total, the share each element contributes is a second division:
Mass percent = (mass contributed by the element / total molecular weight) × 100
In water, hydrogen contributes 2.016 of 18.015 g/mol, which is 11.19% — oxygen carries the other 88.81%. The calculator prints this column next to every element so you can check a percent-composition question without a second pass.
Molar mass is the number the rest of a chemistry problem usually hangs on. These free tools pick it up from there:
The four compounds below are the ones homework asks for most often, pre-computed with the same math the calculator runs. Type any other formula above to get the same table for your compound.
Molar mass 18.015 g/mol
| Element | Atoms | Mass | Mass % |
|---|---|---|---|
| H Hydrogen | 2 | 2.016 g/mol | 11.19% |
| O Oxygen | 1 | 15.999 g/mol | 88.81% |
| Total | 3 | 18.015 g/mol | 100% |
Molar mass 58.44 g/mol
| Element | Atoms | Mass | Mass % |
|---|---|---|---|
| Na Sodium | 1 | 22.99 g/mol | 39.34% |
| Cl Chlorine | 1 | 35.45 g/mol | 60.66% |
| Total | 2 | 58.44 g/mol | 100% |
Molar mass 180.156 g/mol
| Element | Atoms | Mass | Mass % |
|---|---|---|---|
| C Carbon | 6 | 72.066 g/mol | 40% |
| H Hydrogen | 12 | 12.096 g/mol | 6.71% |
| O Oxygen | 6 | 95.994 g/mol | 53.28% |
| Total | 24 | 180.156 g/mol | 100% |
Molar mass 100.086 g/mol
| Element | Atoms | Mass | Mass % |
|---|---|---|---|
| Ca Calcium | 1 | 40.078 g/mol | 40.04% |
| C Carbon | 1 | 12.011 g/mol | 12% |
| O Oxygen | 3 | 47.997 g/mol | 47.96% |
| Total | 5 | 100.086 g/mol | 100% |
These are the standard atomic weights the calculator multiplies by each subscript. All 118 elements are supported — the table below is the short list that covers most school chemistry.
| Symbol | Element | Atomic number | Atomic weight (g/mol) |
|---|---|---|---|
| H | Hydrogen | 1 | 1.008 |
| C | Carbon | 6 | 12.011 |
| N | Nitrogen | 7 | 14.007 |
| O | Oxygen | 8 | 15.999 |
| Na | Sodium | 11 | 22.99 |
| Mg | Magnesium | 12 | 24.305 |
| Al | Aluminium | 13 | 26.982 |
| Si | Silicon | 14 | 28.085 |
| P | Phosphorus | 15 | 30.974 |
| S | Sulfur | 16 | 32.06 |
| Cl | Chlorine | 17 | 35.45 |
| K | Potassium | 19 | 39.098 |
| Ca | Calcium | 20 | 40.078 |
| Fe | Iron | 26 | 55.845 |
| Cu | Copper | 29 | 63.546 |
| Zn | Zinc | 30 | 65.38 |
| Ag | Silver | 47 | 107.87 |
| I | Iodine | 53 | 126.9 |
EduSolver's AI tutor balances the equation, works the stoichiometry, and explains each step — then turns it into flashcards for the test.