Type any chemical formula — subscripts, parentheses, and hydrate dots included — to get its molar mass in g/mol, the per-element breakdown, percent composition, and an instant grams-to-moles converter.
Subscripts as plain numbers · brackets ( ) [ ] · hydrate dot · supported
= 0.5551 mol · 3.3427 × 10²³ molecules
| Element | Count | Mass | % |
|---|---|---|---|
| O | 6 | 95.994 | 53.28 |
| C | 6 | 72.066 | 40.00 |
| H | 12 | 12.096 | 6.71 |
Atomic weights are IUPAC standard values.
Molar mass is the bridge between the atoms a chemist writes on paper and the grams they weigh on a balance. It is the mass of one mole — 6.022 × 10²³ particles — of a substance, and it equals the sum of the atomic masses of every atom in the formula. Two ideas sit underneath it.
Four steps turn any formula into a number — the same procedure the calculator runs for you.
Note how many atoms of each element the formula has. A subscript multiplies the atom before it; a number after a bracket multiplies the whole group.
Find each element's standard atomic weight on the periodic table — the value printed under the symbol, in g/mol.
Multiply each element's atom count by its atomic mass to get that element's total contribution.
Sum every element's contribution. The total is the molar mass, in grams per mole.
The same add-it-up method scales from a two-atom salt to a bracketed compound to a hydrate — each figure below is computed live, not hardcoded.
One atom of each — just add the two atomic masses.
Once you know a compound's molar mass, it becomes a conversion factor that powers most of quantitative chemistry.
The molar masses students look up most often, computed from the same atomic weights as the tool. Filter by name or formula.
| Compound | Formula | Molar mass |
|---|---|---|
Water the reference solvent | H2O | 18.015 g/mol |
Sodium chloride table salt | NaCl | 58.44 g/mol |
Carbon dioxide exhaled gas, dry ice | CO2 | 44.009 g/mol |
Oxygen gas the air we breathe | O2 | 31.998 g/mol |
Glucose blood sugar | C6H12O6 | 180.156 g/mol |
Sucrose table sugar | C12H22O11 | 342.297 g/mol |
Sodium hydroxide lye, caustic soda | NaOH | 39.997 g/mol |
Hydrochloric acid stomach acid | HCl | 36.458 g/mol |
Sulfuric acid battery acid | H2SO4 | 98.072 g/mol |
Ammonia cleaning agent | NH3 | 17.031 g/mol |
Methane natural gas | CH4 | 16.043 g/mol |
Ethanol drinking alcohol | C2H5OH | 46.069 g/mol |
Calcium carbonate chalk, limestone | CaCO3 | 100.086 g/mol |
Calcium hydroxide slaked lime | Ca(OH)2 | 74.092 g/mol |
Sodium bicarbonate baking soda | NaHCO3 | 84.006 g/mol |
Potassium permanganate purple oxidizer | KMnO4 | 158.032 g/mol |
Copper(II) sulfate pentahydrate blue crystals | CuSO4·5H2O | 249.677 g/mol |
Aspirin acetylsalicylic acid | C9H8O4 | 180.159 g/mol |
The building blocks — IUPAC standard atomic weights in g/mol. These are the numbers every molar mass is summed from.
A handful of conventions keep molar-mass work consistent and head off the most common mistakes.
Several closely related terms describe almost the same number. Here is how they differ.

Learn how to calculate percent yield step-by-step using a simple formula. Perfect for beginners, this guide explains theoretical vs actual yield, provides easy examples, and shares common mistakes to avoid.

Calculate theoretical yield from a balanced equation, molar masses, and the limiting reactant, then compare it with percent yield.

Calculate percent error with the absolute-error formula, worked examples, and the mistakes that change the answer.