CalcMountain

Molar Mass Calculator

Find the molar mass (molecular weight) of a chemical compound by entering the atomic masses and number of atoms for each element. Essential for stoichiometry, solution preparation, and chemical analysis.

Molar mass is the bridge between molecules (which you can't weigh) and grams (which you can). One mole of a substance contains Avogadro's number of molecules — 6.022 × 10²³ — and its mass in grams equals the sum of the atomic masses of the atoms in the molecular formula. So one mole of water (H₂O) weighs about 18.015 g. One mole of glucose (C₆H₁₂O₆) weighs about 180.16 g. The molar mass is what lets you convert "I need 0.5 moles of NaCl" into "I need 29.22 g" and pour it onto a balance.

This calculator takes up to three element atomic masses and their counts and sums them. For most chemistry problems — homework, lab prep, stoichiometry — that covers any binary or simple ternary compound. For larger molecules (proteins, polymers, organic chemistry with 5+ unique elements), repeat the calculation in pieces and add them up.

The atomic masses used are the standard IUPAC values, which are weighted averages of the natural isotopic distribution. Carbon, for example, is mostly C-12 (12.000 amu) but contains a few percent C-13 (13.003 amu) and a tiny amount of C-14, making the average atomic mass 12.011. For natural-abundance chemistry, the standard atomic masses are what you want; for isotope-labeled work (mass spec, NMR with labeled compounds), use the specific isotope mass instead.

Inputs

e.g. Carbon = 12.011

e.g. Hydrogen = 1.008

e.g. Oxygen = 15.999

Results

Molar Mass

180.156 g/mol

Element 1 %

40.0%

Element 2 %

6.7%

Molar Mass Breakdown

ParameterValue
Element 1 Contribution72.0660 g/mol
Element 1 Mass %40.00%
Element 2 Contribution12.0960 g/mol
Element 2 Mass %6.71%
Element 3 Contribution95.9940 g/mol
Element 3 Mass %53.28%
Total Molar Mass180.1560 g/mol
Mass of 1 mmol0.180156 g
Moles in 1 g5.5507e-3 mol
Last updated:

Formula

**Molar mass:** M = Σ (atomic_mass_i × count_i) For a compound made of elements with atomic masses A₁, A₂, … Aₙ and counts c₁, c₂, … cₙ: M = A₁·c₁ + A₂·c₂ + … + Aₙ·cₙ Units: grams per mole (g/mol). **Common element atomic masses (IUPAC 2021):** | Element | Symbol | Atomic mass (g/mol) | |---|---|---| | Hydrogen | H | 1.008 | | Carbon | C | 12.011 | | Nitrogen | N | 14.007 | | Oxygen | O | 15.999 | | Sodium | Na | 22.990 | | Magnesium | Mg | 24.305 | | Aluminum | Al | 26.982 | | Phosphorus | P | 30.974 | | Sulfur | S | 32.06 | | Chlorine | Cl | 35.45 | | Potassium | K | 39.098 | | Calcium | Ca | 40.078 | | Iron | Fe | 55.845 | | Copper | Cu | 63.546 | | Zinc | Zn | 65.38 | | Bromine | Br | 79.904 | | Iodine | I | 126.904 | **Worked example: glucose (C₆H₁₂O₆)** - C: 12.011 × 6 = 72.066 - H: 1.008 × 12 = 12.096 - O: 15.999 × 6 = 95.994 - Total: **180.156 g/mol** **Worked example: sodium chloride (NaCl)** - Na: 22.990 × 1 = 22.990 - Cl: 35.45 × 1 = 35.45 - Total: **58.44 g/mol** **Worked example: sulfuric acid (H₂SO₄)** - H: 1.008 × 2 = 2.016 - S: 32.06 × 1 = 32.06 - O: 15.999 × 4 = 63.996 - Total: **98.07 g/mol** **Convert grams ↔ moles:** - moles = mass (g) ÷ molar_mass (g/mol) - mass (g) = moles × molar_mass (g/mol) **Avogadro's number:** 1 mole = 6.022 × 10²³ entities. Multiplying or dividing by this number converts between molecules and moles.

How to use this calculator

  1. Identify each unique element in the compound and its count from the chemical formula.
  2. Look up the atomic mass from the periodic table (or use the values in the calculator's help text).
  3. Enter each element's mass and count in one of the input slots.
  4. Read the total molar mass. For solution prep: mass needed = molarity × volume × molar_mass.
  5. For compounds with more than three elements, calculate the molar mass for a subset, then add to the rest manually.
  6. For hydrates (e.g., CuSO₄·5H₂O), add the water of hydration: 5 × 18.015 = 90.075 added to the anhydrous CuSO₄.

Worked examples

Preparing 100 mL of 0.5 M NaCl

**Scenario:** You need 100 mL of a 0.5 M NaCl solution for an experiment. **Calculation:** Molar mass NaCl: Na (22.990) + Cl (35.45) = 58.44 g/mol. Mass needed = 0.5 mol/L × 0.100 L × 58.44 g/mol = 2.922 g. **Result:** Weigh 2.922 g of NaCl on a balance with ±0.001 g precision. Dissolve in ~80 mL of water in a 100 mL volumetric flask, then fill to the mark. Final concentration: exactly 0.5 M.

Counting atoms in a sample

**Scenario:** How many molecules of glucose are in a 5 g sample? **Calculation:** Molar mass glucose (C₆H₁₂O₆) = 180.156 g/mol. Moles = 5 / 180.156 = 0.02776 mol. Molecules = 0.02776 × 6.022 × 10²³ = 1.672 × 10²² molecules. **Result:** A 5 g pile of glucose contains about 1.7 × 10²² individual molecules — 17,000 billion-billion. The number is unwieldy, which is exactly why moles exist as a counting unit.

Limiting reagent in a reaction

**Scenario:** You have 10 g of CaCO₃ and 10 g of HCl. Which is the limiting reagent for CaCO₃ + 2 HCl → CaCl₂ + H₂O + CO₂? **Calculation:** CaCO₃: Ca (40.078) + C (12.011) + 3 × O (15.999) = 100.087 g/mol → 10/100.087 = 0.0999 mol. HCl: H (1.008) + Cl (35.45) = 36.46 g/mol → 10/36.46 = 0.274 mol. Required: 2 mol HCl per mol CaCO₃ → for 0.0999 mol CaCO₃ need 0.1998 mol HCl. We have 0.274, so HCl is in excess; CaCO₃ is limiting. **Result:** CaCO₃ runs out first. Maximum yield is limited to 0.0999 mol of products. Always check both reagents in moles, not grams — the apparent "equal masses" hides very different mole counts because molar masses differ.

When to use this calculator

**Use molar mass calculation for:**

- **Solution preparation**: weighing out the right grams to dissolve in a target volume. - **Stoichiometry**: balancing chemical equations and determining limiting reagents. - **Yield calculations**: theoretical vs actual yield in synthesis problems. - **Empirical formula determination**: combustion analysis gives mass percentages that reduce to atom ratios. - **Mass spec interpretation**: peaks at specific m/z values correspond to specific molecular fragments. - **Industrial process design**: scaling reactions from milligram lab work to kilogram or ton plant production. - **Pharmaceutical dosing**: drug doses are sometimes specified in mg, sometimes in mmol — molar mass converts.

**Practical contexts:**

- **Lab homework**: nearly every quantitative chemistry problem uses molar mass somewhere. - **Brewing and chemistry kits**: when specs say "add 5 mM of X," you need molar mass to convert to grams. - **Aquarium chemistry**: ammonia, nitrite, and nitrate quantification all use molar mass conversions. - **Soil testing**: lime requirement, fertilizer N-P-K ratios — molar mass behind the scenes. - **Medication formulation**: pharmacist calculations of dose, dilution, and stability.

**Be careful about:**

- **Formula vs molecular mass**: for ionic compounds (NaCl, MgO), the "formula unit" is the smallest whole-number ratio of ions; "molecular mass" is the same thing but the term is technically inappropriate (these don't exist as molecules). - **Empirical vs molecular formula**: glucose (C₆H₁₂O₆, 180 g/mol) has empirical formula CH₂O (30 g/mol); always know which you're calculating. - **Hydrates**: copper(II) sulfate exists as CuSO₄ (anhydrous, 159.6 g/mol) and CuSO₄·5H₂O (pentahydrate, 249.7 g/mol). Make sure your formula matches your starting material. - **Average vs monoisotopic mass**: for mass spectrometry of small molecules, use monoisotopic masses (most abundant isotope of each element); for everyday chemistry, use IUPAC average atomic masses.

Common mistakes to avoid

  • Forgetting subscripts in the formula. C₆H₁₂O₆ ≠ CHO. Read formulas carefully and count each element.
  • Mixing up atomic mass and atomic number. Atomic number is the number of protons (an integer); atomic mass is the weighted average mass (decimal).
  • Forgetting the water of hydration in hydrate compounds. CuSO₄·5H₂O is 5 water molecules heavier than CuSO₄.
  • Using the wrong atomic mass for an isotope. Standard atomic mass is the natural-abundance average; specific isotopes (like ¹³C for NMR) need their own values.
  • Confusing molar mass with molecular weight. They're numerically identical, but molar mass has units of g/mol; molecular weight (older term) is dimensionless or in amu.
  • Rounding intermediate steps. Carry 4–5 significant figures through; round at the end. Each rounding step adds error.
  • Using formula mass for covalent molecules and molecular mass for ionic. The terms are loosely interchangeable today but technically formula mass is for ionic, molecular mass for covalent.

Frequently Asked Questions

Sources & further reading

SponsoredShop Top Deals on AmazonSupport CalcMountain — browse top-rated products at no extra cost to you.

Related Calculators