The Calc Guide › Calculator
Molar Mass Calculator
Molar Mass Calculator: type your chemical formula and get its molar mass from CIAAW standard atomic weights: water H2O is 18.015 g/mol and glucose C6H12O6 is 180.156 g/mol. Checked November 18, 2026.
Last updated: November 29, 2026
Molar Mass Calculator: the mass of one mole from the formula you type
Write element symbols exactly as the periodic table does, first letter capital and second letter small: Co is cobalt, CO is carbon with oxygen. Counts go straight after a symbol, and parentheses group, as in Ca(OH)2. The table behind this tool holds the 84 elements that have a standard atomic weight; anything outside it is refused in plain words, never guessed.
How this is worked out
C: 6 × 12.011 = 72.066 (40.002%) · H: 12 × 1.008 = 12.096 (6.71418%) · O: 6 × 15.999 = 95.994 (53.2838%).
Adding the parts: 72.066 + 12.096 + 95.994 = 180.156 g/mol.
Next: put that mass to work in a concentration with the Molarity Calculator
Free. No sign-up. Calculated in your browser; nothing is sent to our servers.
What this calculator does
Type a chemical formula and this calculator adds up the mass of one mole of it: it counts the atoms of each element in the formula, multiplies each count by that element’s standard atomic weight, and totals the parts, showing the breakdown and each element’s share of the mass as a percentage. The headline states: water, H2O, is 18.015 g/mol, and glucose, C6H12O6, is 180.156 g/mol. Parentheses work the way chemistry writes them, so Ca(OH)2 counts one calcium, two oxygens and two hydrogens. One boundary is worth stating at the top: this page computes the mass itself. Turning that mass into a concentration, how many grams to dissolve for a molarity in a volume, is the molarity calculator’s job, and the molar mass you get here is the input that calculation starts from. A conversion between mass and volume for a named substance is the mg to ml calculator, which uses the substance’s density.
Molar masses are shown to six significant figures: water shows as 18.015 g/mol.
Worked examples: five formulas, each added up in the open
The tool opens on glucose. The middle column of each row is the whole method; nothing is hidden inside the total:
Scroll sideways to see all columns →
| Formula | How it adds up | Molar mass |
|---|---|---|
| H2O | 2 × 1.008 + 15.999 | 18.015 g/mol |
| CO2 | 12.011 + 2 × 15.999 | 44.009 g/mol |
| NaCl | 22.990 + 35.45 | 58.44 g/mol |
| Ca(OH)2 | 40.078 + 2 × (15.999 + 1.008) | 74.092 g/mol |
| C6H12O6 | 6 × 12.011 + 12 × 1.008 + 6 × 15.999 | 180.156 g/mol |
The Ca(OH)2 row is the one to study if parentheses are new to you: the 2 outside the bracket doubles everything inside it, one oxygen and one hydrogen becoming two of each, and the bracket’s contents are priced once (15.999 + 1.008 = 17.007) and then doubled inside the total. Glucose shows the other half of the tool, the percentage breakdown: its carbon contributes 72.066 of the 180.156, which is 40.002 percent of the mass, hydrogen contributes 12.096 (6.71418 percent) and oxygen 95.994 (53.2838 percent). Those shares are the percent composition of the compound, and they are printed with every result, because many molar mass questions are really questions about the shares.
Reference: molar masses of common compounds
Scroll sideways to see all columns →
| Formula | Molar mass | Formula | Molar mass |
|---|---|---|---|
| H2O (water) | 18.015 g/mol | NaOH (sodium hydroxide) | 39.997 g/mol |
| NH3 (ammonia) | 17.031 g/mol | CaCO3 (calcium carbonate) | 100.086 g/mol |
| CH4 (methane) | 16.043 g/mol | H2SO4 (sulfuric acid) | 98.072 g/mol |
| CO2 (carbon dioxide) | 44.009 g/mol | CuSO4 (copper sulfate) | 159.602 g/mol |
| NaCl (table salt) | 58.44 g/mol | Fe2O3 (iron oxide) | 159.687 g/mol |
| Ca(OH)2 (calcium hydroxide) | 74.092 g/mol | C6H12O6 (glucose) | 180.156 g/mol |
Every value in this table is the same arithmetic as the worked examples, from the same atomic weights: sulfuric acid, for instance, is 2 × 1.008 + 32.06 + 4 × 15.999 = 98.072. Type any of these formulas into the tool and it returns the same mass as the table, which is the point of printing the table: the tool and the page cannot quietly disagree. Two useful neighbors in the table: copper sulfate and iron oxide sit within a tenth of a gram of each other (159.602 against 159.687) despite sharing almost nothing but oxygen, a reminder that a molar mass identifies nothing by itself.
How a molar mass is built, and the two reading rules
The method is one line: M = Σ (atoms of each element × its atomic weight), summed over the elements in the formula. Two reading rules do all the work. The first is the parentheses rule from the worked examples: a count after a closing parenthesis multiplies everything inside the group, and groups can nest, so Fe2(SO4)3 holds two irons, three sulfurs and twelve oxygens, for 399.858 g/mol. The second is the case rule, and it is the one that changes answers: element symbols are case-sensitive, with a capital first letter and a small second letter where there is one. CO, capital C and capital O, is carbon monoxide, one carbon and one oxygen, 28.010 g/mol. Co, capital C and small o, is the single element cobalt, 58.933 g/mol. The calculator reads what you type exactly, and refuses a symbol it cannot find rather than guessing which one you meant.
A word on what the number means. One mole is a counting unit: since the 2019 revision of the SI it is exactly 6.02214076 × 10²³ particles (about 6.022 × 10²³), and the molar mass is the mass of that many formula units in grams. The same addition gives the relative molecular mass, a pure number with no unit, which IUPAC defines as the ratio of the mass of a molecule to the unified atomic mass unit. The two carry the same number for all practical purposes, so water is 18.015 as a relative mass and 18.015 g/mol as a molar mass. Because a standard atomic weight is an average over an element’s natural isotopes, a molar mass is the mass of an average mole of the substance as it occurs on Earth, which is the usual figure for laboratory and school work; a single molecule’s exact mass is a different quantity built from individual isotopes, and this page does not compute it.
Sources and method
Every atomic weight behind this tool comes from one family of tables: the standard atomic weights published by the Commission on Isotopic Abundances and Atomic Weights (CIAAW) of IUPAC. The table is based on the Atomic Weights 2021 report (IUPAC Technical Report, Pure and Applied Chemistry, 2022), and the CIAAW table includes the 2024 revisions for gadolinium, lutetium and zirconium. The tool’s lutetium, 174.97, is the current abridged value. Three values in the tool’s table are not the current figures: gadolinium is shown as 157.25, the abridged figure, where the 2024 revision at full precision is 157.249; zirconium is shown as 91.224, the value before the 2024 revision to 91.222; and argon is shown as 39.948 where the abridged value is 39.95. Each difference affects only formulas containing that element. For elements whose standard atomic weight is published as an interval, hydrogen, carbon, oxygen and chlorine among them, the tool uses the single value CIAAW gives for general use in its abridged table, argon excepted as noted above; for the others it uses the abridged value as well. The table covers the 84 elements that carry a standard atomic weight. The other 34, technetium and promethium among them, have none: every isotope is radioactive and none occurs in a fixed natural mix. Thorium, protactinium and uranium are the radioactive elements that do have a value, because each has a characteristic natural composition. A formula naming an element without a value is refused in plain words, and no isotope mass is ever substituted in its place. Anchor values on this page, such as H 1.008, C 12.011, O 15.999, Na 22.990, Cl 35.45 and Ca 40.078, are the abridged CIAAW values. The mole is defined by the exact Avogadro constant, and relative molecular mass by the IUPAC Gold Book. Sources read November 18, 2026.
Related calculators
The Molarity Calculator is the natural next step and the other side of this page’s boundary: it takes a molar mass as an input and works out concentrations, moles and volumes, so the figure you compute here is the figure you carry there. The Ohms Law Calculator is another science tool on this site, solving the four-quantity circuit wheel. The Circumference Calculator covers the circle formulas from any one measurement.
Change log
November 18, 2026: Rewrote the meta description. Corrected the Sources section: the gadolinium, zirconium and argon figures the tool still differs on are stated openly, the elements without a standard weight are described accurately, links and read date added. Added the exact mole value and the IUPAC definition of relative molecular mass. Removed two unsupported phrases. Updated the date lines.
Frequently asked questions
How is molar mass calculated?
Count the atoms of each element in the formula, multiply each count by that element’s standard atomic weight, and add the products. For glucose, C6H12O6: carbon contributes 6 × 12.011 = 72.066, hydrogen contributes 12 × 1.008 = 12.096 and oxygen contributes 6 × 15.999 = 95.994, and the total is 180.156 g/mol. A count written after a closing parenthesis multiplies everything inside the group, so the (OH)2 in Ca(OH)2 means two oxygens and two hydrogens. This calculator does the counting and the adding, and shows each element’s contribution and its percentage of the total.
What is the molar mass of water?
18.015 g/mol. Water is H2O: two hydrogens at the conventional atomic weight 1.008 contribute 2.016, and one oxygen at 15.999 contributes 15.999, totaling 18.015. Coarser rounding gives other figures: hydrogen 1.01 and oxygen 16.00 give 18.02, and hydrogen 1.008 with oxygen 16.00 gives 18.016. This calculator uses the CIAAW standard atomic weights throughout, hydrogen 1.008 and oxygen 15.999, so its figure is 18.015, and the same precision carries to every other formula it accepts.
Why does capitalization matter in a chemical formula?
Because element symbols are case-sensitive codes, not abbreviations to be read loosely. A symbol is one capital letter, or a capital followed by one small letter, and changing the case changes the element: Co is cobalt, a metal with atomic weight 58.933, while CO is two elements, carbon and oxygen, forming carbon monoxide at 28.010 g/mol. NACl is read as N, then A, and A is not an element, so the tool refuses it; NaCl is the formula you want. This calculator refuses a symbol it cannot match in plain words instead of correcting your capitals silently, because a silent correction could just as easily turn the compound you meant into a different one.
Why did the calculator refuse my formula?
One of three reasons, and the message on the tool says which. The formula may contain a symbol that is not an element in the standard table, which is usually a capitalization slip. It may name an element that has no standard atomic weight, technetium, promethium, polonium and the other elements whose isotopes are all radioactive and have no fixed natural mix: the CIAAW table gives those elements no value, and the calculator will not invent one or substitute a single isotope’s mass. Or the formula may be written in a form the parser does not accept, such as a hydrate dot in CuSO4·5H2O, an unbalanced parenthesis, or a count of zero. Nothing is ever guessed.
Is molar mass the same as molecular weight?
Numerically, yes for practical purposes; in strict terms, they are two views of one addition. Molecular weight, more precisely relative molecular mass, is the sum of the atomic weights as a pure ratio, with no unit. Molar mass is that same sum expressed as the mass of one mole, in grams per mole. Water’s relative molecular mass is 18.015 and its molar mass is 18.015 g/mol. The g/mol form is the one laboratory work uses, because it converts directly: multiply moles by the molar mass to get grams, or divide grams by it to get moles, which is the step the molarity calculator builds on.
Educational tool only. Results are estimates based on the numbers you enter and the assumptions explained on this page, not financial advice.