Molar Mass Calculator: Formula Mass, Grams, and Mole Checks
Molar mass helps identify the mass of one mole of a chemical substance by adding the atomic masses of its elements. The molar mass calculator reads a formula value of H2O with an atom count value of 3.
A molar mass calculator sample gives an exact sum value of 18.015 g/mol for H2O. The same sample gives a rounded mass value of 18.02 g/mol. These values show how the atomic masses of hydrogen and oxygen combine to give the total molar mass of water.
Molar Mass Calculator
Enter a chemical formula to get its molar mass, element breakdown, gram and mole conversions, and a claimed-mass check. It does not read labels or judge purity.
Use plain numbers for subscripts, such as H2O, Ca(OH)2, C6H12O6, and H2SO4. Parentheses and square brackets multiply the group inside. A dot joins hydrate parts, such as CuSO4.5H2O. Enter one formula unit without a leading coefficient.
Using the Molar Mass Calculator
Open the molar mass calculator and enter a formula, moles, grams, or a claimed mass before choosing a mode.
Use the four available modes as follows:
Molar Mass: Enter a chemical formula to calculate molar mass in g/mol.
Mass from Moles: Enter a formula and moles to calculate grams.
Moles from Mass: Enter a formula and grams to calculate moles.
Check Mass: Enter a formula and claimed molar mass to compare the result.
What Formula Parts Mean
Think of the molar mass calculator as a formula ledger: each element keeps its own count before the masses are added.
A chemical formula contains element symbols and subscripts. Each symbol identifies an element, while its subscript shows how many atoms of that element are present. When no subscript appears, the count is one.
An element share value of 88.81% for oxygen in H2O comes from 15.999 divided by 18.015.
A total atom value of 24 for C6H12O6 comes from 6 plus 12 plus 6.
Parentheses also affect atom counts. A subscript outside parentheses multiplies every element inside them. A missing bracket can make Ca(OH2) look short of one oxygen, but Ca(OH)2 has two oxygen atoms and two hydrogen atoms.
The periodic table number becomes grams per mole because molar mass is measured for one mole, not for one atom.
The tool uses a chemical formula you enter and does not read labels or judge purity.
How to Read Chemical Formulas
Chemical formulas use element symbols, subscripts, brackets, and sometimes dot-separated parts to describe the composition of a substance. Reading these parts correctly helps prevent mistakes when calculating total mass.
Element Symbols
Each element has a unique one- or two-letter symbol. The first letter is always uppercase, and the second letter, when present, is lowercase.
A symbol case value of Co gives cobalt at 58.93 g/mol, while CO gives carbon monoxide at 28.01 g/mol.
Check capitalization carefully because changing a letter's case can change the meaning of a formula and its calculated mass.
Subscripts and Brackets
A subscript directly after an element symbol shows how many atoms of that element are present. A subscript outside parentheses multiplies every atom inside the bracket group.
The molar mass calculator applies a bracket group value of 2 to both oxygen and hydrogen in Ca(OH)2.
For Ca(OH)2, the calculation includes one calcium atom, two oxygen atoms, and two hydrogen atoms. Always check the position of each subscript before calculating.
Hydrate Parts
Hydrates contain water molecules as part of their chemical structure. A centered dot separates the main compound from its associated water molecules, and the number after the dot indicates how many water molecules are included.
A hydrate water value of 5 in CuSO4.5H2O adds 10 hydrogen atoms and 5 oxygen atoms.
Include the water portion when calculating the complete formula mass. Leaving it out produces an incorrect result for the hydrated compound.
Atomic weights come from the CIAAW abridged standard atomic weights 2024 table.
Formula length runs from 1 to 120 characters, each atom count runs from 1 to 10000, total atoms run to at most 10000, moles run above 0 to 1000000 mol, mass runs above 0 to 1000000 g, and claimed molar mass runs above 0 to 100000 g/mol. AP Chemistry students read formulas the same way when they estimate an AP Chemistry score from practice results.
Molar Mass Results
The results show how a chemical formula relates to molar mass, sample mass, and the amount of substance. Each mode provides a different calculation based on the values entered.
Each mode of the molar mass calculator keeps the entered formula visible before showing a result.
Molar Mass
This mode adds the atomic masses of all elements in the entered formula to calculate the total molar mass in g/mol. The result represents the mass of one mole of the substance.
Mass from Moles
Enter a formula and an amount in moles to calculate the corresponding mass in grams. A mole amount value of 0.5 mol for C6H12O6 gives 90.078 g.
Moles from Mass
Enter a formula and a sample mass in grams to determine the amount of substance in moles. A gram amount value of 100 g for NaCl gives 1.711 mol.
Check Mass
Enter a formula and a claimed molar mass to compare the supplied value with the calculated result. A claimed mass value of 74.09 g/mol matches Ca(OH)2.
Worked Examples
Worked examples demonstrate how formulas, atomic masses, and conversion calculations produce different results. A conversion result value of 2 mol comes from 36.03 g of H2O.
Reading the Result
Review the displayed molar mass, converted quantity, or comparison status according to the selected mode. A check result value of Matches comes from 74.09 g/mol for Ca(OH)2.
The molar mass calculator gives 18.02 g/mol for H2O, with an exact sum of 18.015 g/mol.
| Formula | Exact | Rounded | Atoms |
|---|---|---|---|
| H2O | 18.015 | 18.02 | 3 |
| CO2 | 44.009 | 44.01 | 3 |
| NaCl | 58.44 | 58.44 | 2 |
| Ca(OH)2 | 74.092 | 74.09 | 5 |
| C6H12O6 | 180.156 | 180.16 | 24 |
| H2SO4 | 98.072 | 98.07 | 7 |
Mass from Moles Results
The molar mass calculator gives 90.078 g for 0.5 mol of C6H12O6.
| Formula | Moles | Grams |
|---|---|---|
| C6H12O6 | 0.5 | 90.078 |
| NaCl | 2 | 116.88 |
| H2O | 2 | 36.03 |
| Ca(OH)2 | 0.25 | 18.523 |
| CO2 | 1.5 | 66.0135 |
| NH3 | 3 | 51.093 |
Moles from Mass Results
The molar mass calculator gives 1.711 mol for 100 g of NaCl.
| Formula | Grams | Moles |
|---|---|---|
| NaCl | 100 | 1.711 |
| H2O | 36.03 | 2 |
| Ca(OH)2 | 25 | 0.3374 |
| C6H12O6 | 90 | 0.4996 |
| CO2 | 44.009 | 1 |
| H2SO4 | 49.036 | 0.5 |
Check Mass Results
The molar mass calculator checks 74.09 g/mol against Ca(OH)2 and returns Matches.
| Formula | Claim | Check | Correct | Difference |
|---|---|---|---|---|
| Ca(OH)2 | 74.09 | Matches | 74.09 | 0.00 |
| H2O | 18.02 | Matches | 18.02 | 0.00 |
| C6H12O6 | 180.15 | Mass error | 180.16 | 0.01 |
| NaCl | 58.45 | Mass error | 58.44 | 0.01 |
| CO2 | 44.01 | Matches | 44.01 | 0.00 |
| NH3 | 17.04 | Mass error | 17.03 | 0.01 |
Reading the Result
Each result should be interpreted according to the selected calculation mode. A molar mass is expressed in g/mol, sample mass in grams, and the amount of substance in moles.
For a formula calculation, check the total molar mass and atom count. For conversions, compare the entered quantity with the calculated output. For a claimed mass check, review the comparison status and difference to identify possible errors.
The molar mass calculator flags a mass slip when 180.15 g/mol is claimed for C6H12O6.
Common Mistakes
Small input errors can change the calculated result. Check element symbols, subscripts, brackets, units, and decimal placement before accepting an answer.
Formula Errors
Incorrect capitalization, missing subscripts, and misplaced brackets can produce the wrong chemical composition.
A formula slip gives Ca(OH)2 only one oxygen atom, but the bracket gives two oxygen atoms.
A claim of 180.15 g/mol for C6H12O6 is corrected to 180.16 g/mol.
A claim of 17.007 g/mol for H2O is corrected to 18.015 g/mol.
A claim of 58.933 g/mol for CO is corrected to 28.01 g/mol.
Conversion Errors
Mole-to-gram and gram-to-mole calculations use different operations. Always check whether the entered quantity represents mass or amount of substance.
A claim of 5844 mol for 100 g of NaCl is corrected to 1.711 mol.
Check Errors
A comparison can identify a difference between the claimed value and the calculated molar mass. Make sure both values use the same units and appropriate decimal precision.
| Claim | Error type | Correct result |
|---|---|---|
| claim H2O 17.007 | Formula error | 18.015 |
| claim Ca(OH)2 58.093 | Formula error | 74.092 |
| claim CO 58.933 | Symbol error | 28.01 |
| claim NaCl moles 5844 | Conversion error | 1.711 |
| claim C6H12O6 grams 0.002775 | Conversion error | 90.078 |
| claim CuSO4.5H2O 159.602 | Hydrate error | 249.677 |
Checking a Claimed Mass
The molar mass calculator checks a claimed mass by rounding the exact sum to two decimal places.
The sample claim of 74.09 g/mol matches Ca(OH)2, because 74.092 g/mol rounds to 74.09 g/mol.
A claim of 180.15 g/mol for C6H12O6 is corrected to 180.16 g/mol.
| Formula | Exact | Claim | Check | Correct |
|---|---|---|---|---|
| Ca(OH)2 | 74.092 | 74.09 | Matches | 74.09 |
| H2O | 18.015 | 18.02 | Matches | 18.02 |
| C6H12O6 | 180.156 | 180.15 | Mass error | 180.16 |
| NaCl | 58.44 | 58.45 | Mass error | 58.44 |
| Al2(SO4)3 | 342.132 | 342.13 | Matches | 342.13 |
| CuSO4.5H2O | 249.677 | 249.68 | Matches | 249.68 |
When a class expects a set digit count, run an atomic weight rounding check before reporting the final mass.
Quick Answers
These quick answers mirror the molar mass calculator defaults for formulas, grams, moles, and checks.
Why does H2O give 18.02 g/mol? The exact sum is 18.015 g/mol, which rounds to 18.02 g/mol.
Why does Ca(OH)2 have two oxygen atoms? The bracket multiplier 2 applies to oxygen and hydrogen.
Why does 0.5 mol of C6H12O6 give 90.078 g? 0.5 × 180.156 is 90.078.
Why does 100 g of NaCl give 1.711 mol? 100 ÷ 58.44 is 1.711 after rounding.
Why is 180.15 g/mol corrected for C6H12O6? The exact sum is 180.156 g/mol, which rounds to 180.16 g/mol.
Why does CO differ from Co? CO is carbon plus oxygen at 28.01 g/mol, while Co is cobalt at 58.93 g/mol.
Frequently Asked Questions
Final Thought
Accurate results depend on entering the chemical formula correctly and checking the calculated values carefully. Before trusting a result, compare the formula, atom counts, exact sum, rounded mass, grams, moles, and claim. Remember that the tool does not read labels or judge purity. Use the molar mass calculator to recheck brackets and subscripts, since a bracket changes the atom counts behind the sum. Keep element symbol capitalization exact, and separate the sum from the rounded mass before converting between grams and moles. If a claimed mass looks close, compare each element contribution instead of accepting the total at a glance.
