DigitHelm

Molar Mass Calculator | Molecular Weight

Calculate the molar mass of common chemical elements and simple compounds.

Case-sensitive · Brackets supported: Ca(OH)₂, (NH₄)₂SO₄ · 70+ elements covered (IUPAC 2021 standard atomic weights)

Common compounds

What Is the Molar Mass Calculator | Molecular Weight?

The Molar Mass Calculator computes the molecular weight of any chemical compound by parsing the formula and summing the standard atomic masses of all atoms. Enter any formula, from simple H₂O to complex compounds like Al₂(SO₄)₃, and get the molar mass in g/mol with a complete element-by-element breakdown and percent composition by mass.

  • 70+ elements: covers the full periodic table through uranium, using IUPAC 2021 standard atomic weights from ciaaw.org.
  • Bracket parsing: handles nested brackets, Ca(OH)₂, (NH₄)₂SO₄, Al₂(SO₄)₃, with unlimited nesting depth.
  • Percent composition: each element row shows its mass contribution and percentage of total molar mass as a visual bar.
  • Quick presets: one-click access to 12 common compounds including water, glucose, aspirin, and sulfuric acid.

Formula

M = Σ (Aᵢ × nᵢ)
Sum of (standard atomic weight × atom count) for each element, result in g/mol
Common ElementSymbolAtomic Mass (g/mol)Source
HydrogenH1.008IUPAC 2021
CarbonC12.011IUPAC 2021
NitrogenN14.007IUPAC 2021
OxygenO15.999IUPAC 2021
SodiumNa22.990IUPAC 2021
ChlorineCl35.453IUPAC 2021
IronFe55.845IUPAC 2021
CalciumCa40.078IUPAC 2021

Atomic masses sourced from the IUPAC Commission on Isotopic Abundances and Atomic Weights (ciaaw.org), standard atomic weights 2021.

How to Use

  1. 1Type a chemical formula in the input field. Element symbols are case-sensitive: H, not h; Fe, not FE.
  2. 2For subscript numbers, type them directly after the element: H2O, C6H12O6, NaHCO3.
  3. 3For groups in brackets, type parentheses: Ca(OH)2, (NH4)2SO4, Al2(SO4)3.
  4. 4Press Enter or click Calculate to compute the molar mass.
  5. 5Read the total molar mass at the top in g/mol.
  6. 6Check the element breakdown table for each element's contribution and percent composition.
  7. 7Click a preset compound button to load it instantly.

Example Calculation

Example 1, Water (H₂O)

Formula: H2O H × 2: 1.008 × 2 = 2.016 g/mol (11.19%) O × 1: 15.999 × 1 = 15.999 g/mol (88.81%) Molar mass = 18.015 g/mol

Example 2, Glucose (C₆H₁₂O₆)

Formula: C6H12O6 C × 6: 12.011 × 6 = 72.066 g/mol (40.00%) H × 12: 1.008 × 12 = 12.096 g/mol (6.71%) O × 6: 15.999 × 6 = 95.994 g/mol (53.29%) Molar mass = 180.156 g/mol

Example 3, Calcium hydroxide Ca(OH)₂

Formula: Ca(OH)2 → Ca + 2×(O + H) Ca × 1: 40.078 g/mol O × 2: 31.998 g/mol H × 2: 2.016 g/mol Molar mass = 74.092 g/mol

Formula entry rules

Element symbols are case-sensitive, Mg for magnesium, not MG or mg. Numbers immediately follow the element or bracket: C6H12O6 ✓, C 6 H 12 O 6 ✗. Brackets must be balanced: Ca(OH)2 ✓, Ca(OH2 ✗.

Understanding Molar Mass | Molecular Weight

What Is Molar Mass and Why Does It Matter?

Molar mass is the mass of one mole (6.02214076 × 10²³ particles, Avogadro's number) of a substance, expressed in grams per mole (g/mol). It numerically equals the average atomic or molecular weight measured in atomic mass units (u or amu). Molar mass is the essential bridge between the macroscopic world of grams on a balance and the microscopic world of atoms and molecules.

In chemistry, almost every quantitative calculation, stoichiometry, solution preparation, yield calculations, begins with converting a mass measurement into moles using: moles = mass (g) ÷ molar mass (g/mol). Knowing the molar mass precisely is therefore fundamental to accurate experimental results.

  • Stoichiometry: use molar mass to convert between grams and moles in reaction equations.
  • Solution preparation: weigh out exactly the right mass of solute to achieve a target molarity.
  • Empirical vs molecular formula: use combustion analysis data and molar mass to find the molecular formula.
  • Gas law calculations: molar mass connects mass measurements to moles for PV = nRT applications.

Standard Atomic Weights, IUPAC 2021

The atomic masses used in this calculator are the 2021 IUPAC standard atomic weights, published by the Commission on Isotopic Abundances and Atomic Weights (CIAAW, ciaaw.org). These values reflect the natural isotopic composition of each element in terrestrial samples and are revised periodically as measurement precision improves.

  • Standard atomic weight reflects natural isotopic abundance, not the mass of a single isotope.
  • Hydrogen: 1.008 (range 1.00784–1.00811 in natural samples); conventional value used.
  • For radioactive elements with no stable isotopes, the mass of the most stable known isotope is used.
  • These values match NIST, CRC Handbook, and standard chemistry textbook data.

Percent Composition by Mass

Percent composition tells you what fraction of the compound's total molar mass comes from each element: % element = (mass contribution ÷ total molar mass) × 100. For water (M = 18.015 g/mol): %H = 2.016/18.015 × 100 = 11.19%; %O = 15.999/18.015 × 100 = 88.81%.

Percent composition is used to determine empirical formulas from combustion analysis data, to verify compound purity by elemental analysis, and in materials science to confirm alloy and ceramic compositions.

Molar Mass in Lab Practice

When preparing a standard solution, you need to weigh out the right number of moles of solute. The workflow is: target molarity × target volume (L) = moles needed; moles × molar mass = grams to weigh. For example, 500 mL of 0.1 M NaCl: 0.1 × 0.5 = 0.05 mol; 0.05 × 58.443 = 2.922 g of NaCl.

  • Use molar mass to 3–4 decimal places for accurate solution preparation.
  • Hydrated salts have a larger molar mass than anhydrous salts, CuSO₄·5H₂O ≠ CuSO₄.
  • For gases: moles = mass ÷ molar mass; volume at STP = moles × 22.414 L/mol.
  • Mass spectrometry measures molar mass experimentally via the molecular ion (M⁺) peak.

Frequently Asked Questions

What is molar mass and how is it different from molecular weight?

Molar mass is the mass of one mole of a substance in grams per mole (g/mol). Molecular weight is the mass of a single molecule in atomic mass units (u or amu). Numerically they are equal, water has molar mass 18.015 g/mol and molecular weight 18.015 u.

The distinction matters in context: molecular weight applies to single molecules; molar mass applies to bulk quantities. Modern chemistry increasingly prefers "molar mass" because it directly connects to lab measurements (grams, moles).

How do I calculate the molar mass of a compound like Ca(OH)₂?

Expand brackets by multiplying the subscript outside by each element inside, then sum the contributions:

Ca(OH)₂ = Ca + 2×O + 2×H Ca: 40.078 × 1 = 40.078 O: 15.999 × 2 = 31.998 H: 1.008 × 2 = 2.016 Total = 74.092 g/mol

This calculator handles bracket expansion automatically, just type Ca(OH)2 and click Calculate.

What is percent composition and how is it calculated?

Percent composition is the percentage of each element by mass in a compound:

% element = (mass contribution / total molar mass) × 100 H in H₂O: (2 × 1.008) / 18.015 × 100 = 11.19% O in H₂O: 15.999 / 18.015 × 100 = 88.81%

It is used to verify empirical formulas from combustion data, and to confirm compound purity by comparing calculated vs measured elemental analysis.

How do I convert between grams and moles?

  • Grams to moles: moles = mass (g) ÷ molar mass (g/mol)
  • Moles to grams: mass (g) = moles × molar mass (g/mol)
36.03 g H₂O ÷ 18.015 g/mol = 2.000 mol 3 mol NaCl × 58.443 g/mol = 175.329 g

Where do the atomic masses come from?

Standard atomic weights are published by IUPAC's Commission on Isotopic Abundances and Atomic Weights (CIAAW, ciaaw.org). They reflect the natural isotopic composition of each element in terrestrial materials, not the mass of any single isotope.

  • Carbon: ¹²C (98.89%) and ¹³C (1.11%) → standard weight 12.011
  • Chlorine: ³⁵Cl (75.77%) and ³⁷Cl (24.23%) → standard weight 35.453
  • Values are revised periodically; this calculator uses IUPAC 2021 values.

How do I use molar mass for solution preparation?

To prepare a solution of known molarity:

  • Calculate moles: moles = molarity (mol/L) × volume (L)
  • Calculate mass: mass (g) = moles × molar mass (g/mol)
  • Dissolve in less than target volume, then make up to exact volume
250 mL of 0.5 M NaOH (M = 39.997 g/mol): moles = 0.5 × 0.25 = 0.125 mol mass = 0.125 × 39.997 = 5.000 g

What formula syntax does this calculator support?

The calculator supports standard Hill notation with single and nested brackets:

  • Simple: H2O, NaCl, CO2, H2SO4, Fe2O3
  • Brackets: Ca(OH)2, Cu(NO3)2, Al2(SO4)3
  • Nested: (NH4)2SO4, (NH4)3PO4
  • Element symbols are case-sensitive: Na ✓, na ✗, NA ✗
  • Numbers directly follow the element or bracket: H2O ✓, H 2 O ✗

Related Calculators