Molar Mass Calculator
ChemistryCalculate molar mass of any compound from its elements. Select up to 3 elements and enter atom counts to get total molecular weight and percent composition.
Reviewed by the thecalcu.com team · Last updated May 15, 2026
Molar Mass
What is a Molar Mass?
The Molar Mass Calculator computes the molar mass of a compound from its elemental composition. Select up to three elements and enter the number of atoms of each. The calculator sums nᵢ × Aᵢ for each element and returns the total molar mass in g/mol along with the mass percentage of each element.
Molar mass is the most fundamental conversion factor in chemistry, it is the bridge between the macroscopic (grams, which you weigh on a balance) and the microscopic (moles of molecules, which you count by Avogadro's number). Without molar mass, no stoichiometric calculation is possible. For H₂O: molar mass = 2×1.008 + 15.999 = 18.015 g/mol tells you that 18 g of water contains 6.022 × 10²³ molecules. For glucose C₆H₁₂O₆: molar mass = 180.156 g/mol (the default example showing three elements).
The Percent Composition Calculator focuses on elemental percentages and serves as the complementary tool to this one, together they cover both the total mass and the distribution across elements. The Grams to Moles Calculator uses molar mass to convert measured masses to moles for reaction calculations.
Why Use a Molar Mass Calculator?
Adding atomic masses seems simple, but errors accumulate across multiple elements with multiple atoms each. For H₂SO₄: 2×1.008 + 32.06 + 4×15.999 = 98.072 g/mol, easy to miss a factor of 4 on oxygen or confuse S's atomic mass (32.06) with its mass number (32). This calculator uses IUPAC standard atomic masses (not rounded mass numbers) for accuracy.
For organic compounds (C, H, N, O, S), three elements suffice to cover most molecules. For inorganic salts (NaCl, CaCO₃, MgSO₄), two or three elements cover essentially all common examples in NCERT Class 11 and 12 stoichiometry chapters.
Who Should Use This Calculator?
Class 11 and 12 chemistry students solving stoichiometry problems: molar mass is required for every mole↔gram conversion, concentration calculation, and yield problem in NCERT.
JEE Main and Advanced aspirants where molar mass appears in virtually every chemistry calculation, stoichiometry, solution chemistry, electrochemistry, and organic reactions all require accurate molar masses.
Pharmacy students and technologists preparing solutions and calculating drug doses where molar mass determines the weight to dissolve for a target molar concentration.
Industrial chemists and quality control analysts performing batch calculations for chemical synthesis where yield and purity assessments require precise molar masses.
What Insights Does the Molar Mass Calculator Give You?
Molar Mass (g/mol) is the primary output, the mass of one mole of the compound. Used in n = m/M for mole calculations, C = n/V for molarity, and all stoichiometric ratio calculations.
Element 1 (%), Element 2 (%), Element 3 (%) show the mass fraction of each element, the percent composition. Elements high in the compound (by mass) have large percentages. For water: H = 11.19%, O = 88.81%.
How to use this Molar Mass calculator
- Select Element 1 from the dropdown (contains all common elements with atomic masses shown). For H₂O, select H.
- Enter Atom Count 1, the subscript number in the formula. For H₂O, count = 2.
- Select Element 2 and enter Atom Count 2. For H₂O: O, count = 1.
- For three-element compounds (H₂SO₄, C₆H₁₂O₆): select Element 3 and enter count.
- Read Molar Mass in g/mol. Cross-check: H₂O ≈ 18, NaCl ≈ 58, H₂SO₄ ≈ 98, CaCO₃ ≈ 100.
Show formula & methodology ↓Show less ↑
Formula & Methodology
Molar mass from elemental composition:M = n₁×A₁ + n₂×A₂ + n₃×A₃ nᵢ = atom count for element i Aᵢ = standard atomic mass (g/mol) from IUPAC 2021 tablePercent composition:%element_i = (nᵢ × Aᵢ / M) × 100Worked example, Aspirin (C₉H₈O₄): C×9, H×8, O×4, three elements.C: 9 × 12.011 = 108.099 H: 8 × 1.008 = 8.064 O: 4 × 15.999 = 63.996 M = 108.099 + 8.064 + 63.996 = 180.159 g/mol %C = 108.099/180.159 × 100 = 60.00% %H = 8.064/180.159 × 100 = 4.48% %O = 63.996/180.159 × 100 = 35.52%Aspirin's molar mass of 180.16 g/mol means a 500 mg tablet contains 500/180.16 = 2.78 millimoles of aspirin. Indian generic manufacturers (including the world's largest aspirin producers in Hyderabad's pharma cluster) use this calculation for batch sheet preparation.
Frequently Asked Questions