Molar Mass Calculator: Molecular Weight, Grams and Moles
By FindMySum · Last reviewed
Molar mass connects the formula of a substance with the amount you can weigh on a balance. It answers how many grams one mole of a compound weighs, and from there how many moles, molecules or atoms are in a sample. This calculator reads a chemical formula, adds up the standard atomic weights and converts between grams, moles and particles in one step.
What molar mass means
A mole is a fixed number of particles: exactly 6.022 140 76 × 10²³, the Avogadro constant. The molar mass of a substance is the mass of one mole of its formula units, in grams per mole (g/mol). Because the atomic mass unit and the mole are defined consistently, the molar mass in g/mol has the same number as the molecular weight in daltons: a water molecule weighs about 18.015 u, and a mole of water weighs 18.015 g.
How to calculate it
Write out how many atoms of each element the formula contains, multiply each count by that element's standard atomic weight and add them up.
For glucose, C₆H₁₂O₆, the calculator's default:
- carbon: 6 × 12.011 = 72.066
- hydrogen: 12 × 1.0080 = 12.096
- oxygen: 6 × 15.999 = 95.994
The total is 180.156 g/mol. Each line divided by the total gives the mass percent: glucose is 40.0% carbon, 6.7% hydrogen and 53.3% oxygen by mass. The chart and table on the page show the same split for any formula you enter.
Brackets and hydrates
A number after a closing bracket multiplies everything inside it. Calcium phosphate, Ca₃(PO₄)₂, has 3 calcium, 2 phosphorus and 8 oxygen atoms, for a molar mass of 310.174 g/mol. Square brackets work the same way and can be nested, as in potassium ferrocyanide, K₄[Fe(CN)₆].
Hydrates carry water inside their crystals. Copper(II) sulfate pentahydrate is written CuSO₄·5H₂O: the 5 after the dot multiplies the whole water molecule. If your keyboard has no centred dot, type an asterisk or a full stop (CuSO4*5H2O). The pentahydrate weighs 249.677 g/mol, against 159.602 g/mol for the anhydrous salt, which is why heating the blue crystals loses over a third of their mass.
Converting grams, moles and particles
Once the molar mass is known, three relationships do the rest:
- moles from mass: n = m ÷ M
- mass from moles: m = n × M
- particles from moles: N = n × Nₐ
With the default 10 g of glucose: n = 10 ÷ 180.156 = 0.0555 mol. Multiplying by the Avogadro constant gives 3.34 × 10²² glucose molecules, and since each molecule has 24 atoms, 8.02 × 10²³ atoms in all.
Choose "Moles" to go the other way, for example to find that 2.5 mol of water weighs 45.04 g, or "Number of particles" to start from a count of molecules or formula units.
Where the atomic weights come from
Standard atomic weights are set by IUPAC's Commission on Isotopic Abundances and Atomic Weights (CIAAW). The calculator uses the abridged 2024 table, which quotes most elements to five significant figures. For elements whose isotopic make-up varies in nature, such as hydrogen, lithium, boron, carbon, nitrogen, oxygen, sulfur and chlorine, the abridged value is a conventional one chosen to cover ordinary terrestrial samples. That is why chlorine is 35.45, not a longer number: real samples differ in the third decimal place.
Elements without stable isotopes, such as technetium, promethium and those after bismuth except thorium, protactinium and uranium, have no standard atomic weight. The calculator says so rather than inventing a value.
Common mistakes
- Capitalisation. Co is cobalt; CO is carbon monoxide. Type symbols exactly.
- Forgetting brackets. Mg(OH)₂ has two oxygen and two hydrogen atoms; MgOH2 would be read as one oxygen and two hydrogens.
- Mixing up hydrate water. Using the anhydrous molar mass for a hydrate you weighed out makes every concentration too high.
- Rounding too early. Keep the full molar mass until the final answer; rounding 180.156 to 180 changes the third significant figure of later results.
Using the result
The molar mass is the starting point for most quantitative chemistry. Use it in the molarity calculator to make up a solution of known concentration, in the percent yield calculator to convert reactant and product masses into moles, or in the ideal gas law calculator to find the mass of a gas from its pressure, volume and temperature.
More questions
What is the difference between molar mass and atomic mass?
Atomic mass usually means the mass of one particular isotope, such as carbon-12 at exactly 12 u. The standard atomic weight is the average over the isotopes found in nature, weighted by how common each one is: 12.011 for carbon. Molar masses of compounds are built from standard atomic weights, so they describe ordinary samples rather than a single isotope.
Why does my textbook give a slightly different molar mass?
Older tables gave more digits for some elements (oxygen as 15.9994, hydrogen as 1.00794) or used different rounding. CIAAW now gives conventional values such as 15.999 and 1.0080 because natural samples vary in the last digits. Differences in the second or third decimal place come from the table, not from your arithmetic.
How do I find the empirical formula from mass percent?
Work backwards: assume 100 g of compound, so each mass percent becomes grams. Divide each by its atomic weight to get moles, divide all the mole numbers by the smallest one and round to whole numbers (multiply through if you get halves or thirds). Then compare the empirical formula mass with a measured molar mass to find the molecular formula.
Does the molar mass change with temperature or state?
No. Molar mass depends only on which atoms are present. One mole of water has the same mass as ice, liquid or steam; what changes is the volume it occupies.
What molar mass should I use for air?
Dry air is a mixture, not a compound, so it has an average molar mass of about 28.96 g/mol, worked out from the mole fractions of nitrogen, oxygen, argon and carbon dioxide. Enter the components separately and combine them with the mole fraction calculator if you need a specific mixture.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.