What is molar mass?
Molar mass is the mass of one mole of a substance: the number that turns grams into moles and back. Water's molar mass is 18.015 grams per mole, so 18.015 grams of water is one mole, 36.03 grams is two moles, and 9 grams is half a mole. It is the conversion factor at the heart of every stoichiometry calculation, and it comes straight from the formula and the periodic table.
This calculator works it out from any chemical formula you type. It uses a built-in table of all 118 elements with their standard atomic masses, handles parentheses — Ca(OH)2, Al2(SO4)3 — and shows the molar mass, the total number of atoms, and how many different elements the formula contains. Type a formula and the answer appears at once.
The share and print buttons sit with every tool on this site. Share sends the page link, not your numbers, so whoever opens it starts from the same defaults you saw. Print gives you a clean copy for a lab notebook, a recipe folder, or a classroom handout, with the formula and the worked example included.
Students use tools like this one for homework and exam practice, teachers use them to check answers quickly in class, and working cooks and lab staff use them because a fast, correct conversion beats doing the same arithmetic by hand for the twentieth time. The tool does not replace understanding the method — it removes the arithmetic so the understanding is what you spend your time on.
How molar mass is calculated
The method is a sum. For each element in the formula, multiply its atomic mass by the number of atoms of that element, then add the results together. Water is H2O: two hydrogens at 1.008 each, plus one oxygen at 15.999, which is 2.016 plus 15.999, or 18.015 grams per mole. The atomic masses are the standard values from the periodic table, stated to three decimals where they are known that precisely.
Parentheses multiply everything inside them. In Ca(OH)2, the OH group appears twice, so there are two oxygens and two hydrogens: 40.078 for calcium, plus 2 times 15.999 for oxygen, plus 2 times 1.008 for hydrogen, which is 74.092 grams per mole. The calculator expands the brackets for you, so you can type the formula exactly as it is written in your textbook.
The constants used on this page are the standard values taught in textbooks: the gas constant, Avogadro's number, and the atomic masses from the standard periodic table. They are stated where they are used, so you can check them against your own textbook and see that they match. If your course uses a rounded constant — 22.4 litres per mole at STP, for example — the difference from the precise value is small, and it is noted in the worked example.
The answers on this page are rounded for display, usually to two decimal places, while the maths underneath keeps full precision. That means a result shown as 2.28 may really be 2.2814, and the reverse check may differ in the last digit for the same reason. That is rounding, not an error, and it never changes the answer by more than a fraction of a percent.
Reading a formula: the input that matters
The input people get wrong is the formula itself — usually the case of the letters. Element symbols have an uppercase first letter and a lowercase second letter where there is one: Co is cobalt, CO is carbon monoxide, and the calculator treats them as different things, because they are. Type Cl for chlorine, not CL, and Fe for iron, not FE.
The second trap is the subscript. A missing subscript means one atom, and a subscript after a bracket multiplies the whole bracket, not just the last element. In Al2(SO4)3 there are two aluminiums, three sulfurs, and twelve oxygens — the 3 after the bracket multiplies the 4 inside it. Read the formula slowly, and check the atom count the calculator reports against what you expect.
The most common mistake with any calculator is typing a number and trusting it without a glance at the label beside it. The second is copying a result with more digits than the inputs justify — if your inputs are good to two digits, the answer is good to two digits, however many the screen shows. Round the answer to match the precision of what you measured.
A worked example: water, H2O
Take the default example: H2O. Two hydrogen atoms at 1.008 grams per mole each give 2.016, and one oxygen at 15.999 gives 15.999. Add them and the molar mass is 18.015 grams per mole. The formula has 3 atoms in total and 2 different elements — hydrogen and oxygen.
Try the others: CO2 is one carbon at 12.011 plus two oxygens at 15.999, which is 44.009 grams per mole. Ca(OH)2 is 74.092, as shown above. Glucose, C6H12O6, is 6 times 12.011 plus 12 times 1.008 plus 6 times 15.999, which is 180.156 grams per mole. The same addition, every time, with the table doing the looking up.
Before you rely on a result, run a quick sanity check on it. Convert a value you already know — one large egg should come out near 57 grams, one mole of water near 18 grams — and see that the tool agrees. If it does, your inputs are right and the rest of the answers will be too. If it does not, the input is usually the problem, not the tool.
The one habit that prevents nearly every wrong answer here is checking the units before you trust the result. Grams are not ounces, millilitres are not cups, and a value typed in the wrong unit gives a confident-looking wrong answer. Read the label next to each box, match it to the unit on your recipe or your lab sheet, and only then read the result.
Why molar mass matters
Students use molar mass in every stoichiometry problem, because it is the step that turns a weighed mass into moles. Without it, a mass in grams is just a number on a balance; with it, the mass becomes a count of molecules, and the balanced equation can take over.
Lab workers use it to prepare solutions: a 1 molar solution needs one mole of solute per litre, and the molar mass tells you how many grams that mole weighs. It is also the check on a synthesis — if the product's molar mass does not match the formula, the product is not what you think it is.
This site has a full set of related tools, and the links in this article point to the ones people reach for next. They all work the same way — type your numbers, read the answer, nothing uploaded — so once you know one of them, you know all of them. The "More free tools" section at the bottom of the page lists three close neighbours.
Everything on this page runs in your browser. Nothing you type is uploaded, stored, or sent to a server, and there is no account to create and no sign-up step. You can use the tool as many times as you like, close the tab, and come back later — your inputs are never saved anywhere.
Two related tools worth knowing are the percentage calculator and density calculator.
Molar mass calculator vs molar mass converter
A molar mass converter changes the unit of a molar mass you already have — grams per mole to kilograms per mole, for example — while this calculator works the molar mass out from a formula. If you know the formula and need the mass, use this page; if you know the mass and need it in another unit, use the converter.
A mole calculator takes a molar mass and a mass and returns moles, which is the next step after this calculation. The two tools are used in sequence: this one gives the molar mass from the formula, and the mole tool turns a weighed amount into moles with it.
This site has a full set of related tools, and the links in this article point to the ones people reach for next. They all work the same way — type your numbers, read the answer, nothing uploaded — so once you know one of them, you know all of them. The "More free tools" section at the bottom of the page lists three close neighbours.
Common mistakes with molar mass
The most common mistake is the case of the symbols — typing CL for chlorine or CO for cobalt, which the calculator reads as different elements or rejects. The second is forgetting that a subscript after a bracket multiplies the whole bracket. The third is using the mass number of an isotope instead of the standard atomic mass.
A fourth mistake is counting the water of crystallisation wrong in a hydrate: CuSO4.5H2O is written with a dot, and this calculator does not parse the dot form — work out the hydrate's mass as the anhydrous salt plus five waters, or enter the expanded formula. A fifth is rounding the atomic masses too far: use three decimals, as the table does, and round only at the end.
The most common mistake with any calculator is typing a number and trusting it without a glance at the label beside it. The second is copying a result with more digits than the inputs justify — if your inputs are good to two digits, the answer is good to two digits, however many the screen shows. Round the answer to match the precision of what you measured.
How to use this molar mass calculator
Type a chemical formula, using uppercase for the first letter of each element and lowercase for the second — H2O, CO2, Ca(OH)2. The molar mass appears instantly, with the total atom count and the number of different elements alongside. Change the formula and the answers update at once.
If the calculator shows a dash, the formula could not be read: check the case of every symbol, check the brackets balance, and make sure every character is a letter, a digit, or a bracket. Hydrates written with a dot are not supported — expand them by hand first.
The share and print buttons sit with every tool on this site. Share sends the page link, not your numbers, so whoever opens it starts from the same defaults you saw. Print gives you a clean copy for a lab notebook, a recipe folder, or a classroom handout, with the formula and the worked example included.