Skip to content

Molar Mass Calculator

Find the molar mass (molecular weight) of any chemical formula, including brackets and hydrates, with mass percent by element and grams ↔ moles ↔ particles.

Calculator Details

Molar mass of C₆H₁₂O₆:180.156 g/molSee results ↓

Case matters: Co is cobalt, CO is carbon monoxide. Brackets and hydrates work: Ca3(PO4)2, CuSO4·5H2O (or CuSO4*5H2O)

The amount you have: a mass, a number of moles or a number of particles

Mass weighed out

Your Results

Molar mass of C₆H₁₂O₆: 180.156 g/mol

Molar mass of C₆H₁₂O₆

180.156 g/mol

Molecular weight 180.156 u (Da)

Amount

0.0555074 mol

n = m ÷ M

Formula units (molecules)

3.34274 × 10²²

N = n × Nₐ

Atoms

8.02257 × 10²³

24 atoms per formula unit

C₆H₁₂O₆ has a molar mass of 180.156 g/mol, so 10 g is 0.0555074 mol, or 3.3427 × 10²² formula units.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Mass percent by element in C₆H₁₂O₆

Mass percent by element in C₆H₁₂O₆

Detailed Breakdown

Composition of C₆H₁₂O₆Standard atomic weights from the CIAAW 2024 abridged table.
ElementAtomsAtomic weightMass (g/mol)Mass %
C (carbon)612.01172.06640.002%
H (hydrogen)121.00812.0966.714%
O (oxygen)615.99995.99453.284%
Total (molar mass)24180.156100%

How This Calculator Works

How It’s Calculated

M = Σ (atoms of each element × its standard atomic weight)
n = m ÷ M · m = n × M · N = n × Nₐ, Nₐ = 6.022 140 76 × 10²³ mol⁻¹

Your calculation: M(C₆H₁₂O₆) = 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol. 10 g ÷ 180.156 g/mol = 0.0555074 mol. That is 3.34274 × 10²² formula units, or 8.02257 × 10²³ atoms.

Frequently Asked Questions

How do you calculate molar mass?

Multiply the standard atomic weight of each element by the number of its atoms in the formula and add the results. Water, H₂O, is 2 × 1.008 + 15.999 = 18.015 g/mol; carbon dioxide, CO₂, is 12.011 + 2 × 15.999 = 44.009 g/mol.

Is molar mass the same as molecular weight?

Numerically, yes. Molar mass is the mass of one mole in grams per mole (g/mol); molecular weight (relative molecular mass) is the mass of one molecule relative to 1/12 of a carbon-12 atom and has no unit, or is quoted in daltons (u). Water is 18.015 g/mol and 18.015 u. For ionic compounds such as NaCl, which form lattices rather than molecules, "formula mass" is the precise term.

How do I convert grams to moles?

Divide the mass by the molar mass: n = m ÷ M. 36 g of water is 36 ÷ 18.015 = 1.9983 mol. To go the other way, multiply moles by the molar mass.

How do I enter a hydrate such as copper sulfate pentahydrate?

Type the dot between the parts as ·, * or a full stop: CuSO4·5H2O, CuSO4*5H2O or CuSO4.5H2O. The number after the dot multiplies the water. Anhydrous CuSO₄ is 159.602 g/mol; the pentahydrate is 249.677 g/mol, so the blue crystals are about 36% water by mass.

Why does capitalisation matter?

Element symbols start with a capital letter and may have one lower-case letter. CO is carbon monoxide (28.01 g/mol), but Co is cobalt (58.933 g/mol). Likewise NO is nitric oxide and No is nobelium. The calculator reads the formula exactly as typed and says which symbol it doesn't recognise.

Where do the atomic weights come from?

From the abridged table of standard atomic weights published by IUPAC’s Commission on Isotopic Abundances and Atomic Weights (CIAAW), 2024 edition, quoted to five significant figures where natural variation allows. Some elements (hydrogen, carbon, oxygen, chlorine) vary slightly with their source, so their standard weight is a conventional value.

Why can’t I calculate the molar mass of technetium or plutonium?

Elements with no stable isotopes have no standard atomic weight: their mass depends on which isotope you have. Use the mass number of the isotope (for example 239 for plutonium-239) as an approximation, or its exact isotopic mass from a nuclear data table.

How many molecules are in a mole?

Exactly 6.022 140 76 × 10²³, the Avogadro constant, fixed by the 2019 redefinition of the SI. One mole of water (18 g, about a tablespoon) contains that many molecules, and three times as many atoms.

Uses the CIAAW abridged standard atomic weights (2024) and the exact Avogadro constant (CODATA 2022). The result is the average molar mass for natural isotopic composition; it leaves out isotope-labelled compounds, exact (monoisotopic) masses for mass spectrometry, charges on ions (the mass of the electrons is negligible), elements with no standard atomic weight (technetium, promethium and most elements after bismuth), and formulas written with abbreviations such as Me, Et or Ph. Molar masses are shown to 4 decimal places; other results to 6 significant figures.

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.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy