Molar Mass Calculator
Calculate molar mass, molecular weight, and element mass percentages from any chemical formula. Free chemistry calculator for H2O, NaCl, C6H12O6, and more.
Molar Mass Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Molar Mass = Σ (Number of Atoms × Atomic Mass) for each element
Worked example — Molar mass: 18.015 g/mol | H: 11.19% | O: 88.81%
Formula
Molar Mass = Σ (Number of Atoms × Atomic Mass) for each element
Sum the products of each element's atomic mass (from the periodic table in g/mol) and the number of atoms of that element in the chemical formula. Mass percentage for each element is calculated as (element contribution / total molar mass) × 100.
Worked Examples
Example 1: Molar Mass of Water (H₂O)
Problem:Calculate the molar mass and percent composition of water (H₂O).
Solution:Hydrogen: 2 × 1.008 = 2.016 g/mol Oxygen: 1 × 15.999 = 15.999 g/mol Total molar mass = 2.016 + 15.999 = 18.015 g/mol %H = (2.016/18.015) × 100 = 11.19% %O = (15.999/18.015) × 100 = 88.81%
Result:Molar mass: 18.015 g/mol | H: 11.19% | O: 88.81%
Example 2: Molar Mass of Glucose (C₆H₁₂O₆)
Problem:Calculate the molar mass of glucose, a key biological molecule.
Solution:Carbon: 6 × 12.011 = 72.066 g/mol Hydrogen: 12 × 1.008 = 12.096 g/mol Oxygen: 6 × 15.999 = 95.994 g/mol Total = 72.066 + 12.096 + 95.994 = 180.156 g/mol
Result:Molar mass: 180.156 g/mol | C: 40.00% | H: 6.71% | O: 53.29%
Frequently Asked Questions
What is molar mass and why is it important in chemistry?
Molar mass is the mass of one mole (6.022 × 10²³ particles) of a substance, expressed in grams per mole (g/mol). It serves as a bridge between the atomic scale and the macroscopic world, allowing chemists to weigh out precise amounts of substances for reactions. For example, the molar mass of water (H₂O) is approximately 18.015 g/mol, meaning 18.015 grams of water contains exactly one mole of water molecules. Molar mass is essential for stoichiometric calculations, preparing solutions of known concentration, and determining empirical and molecular formulas from experimental data.
How do you calculate molar mass from a chemical formula?
To calculate molar mass, identify each element in the chemical formula and its subscript (number of atoms). Multiply each element's atomic mass (from the periodic table) by the number of atoms of that element in the formula, then sum all the contributions. For example, for glucose (C₆H₁₂O₆): carbon contributes 6 × 12.011 = 72.066 g/mol, hydrogen contributes 12 × 1.008 = 12.096 g/mol, and oxygen contributes 6 × 15.999 = 95.994 g/mol. The total molar mass is 72.066 + 12.096 + 95.994 = 180.156 g/mol. Always use the most current atomic mass values for precise results.
What is the difference between molecular mass and molar mass?
Molecular mass (or molecular weight) refers to the mass of a single molecule measured in atomic mass units (amu or u), while molar mass refers to the mass of one mole of molecules measured in grams per mole (g/mol). Numerically, they are equivalent — water has a molecular mass of 18.015 amu and a molar mass of 18.015 g/mol. The distinction is in scale and units: molecular mass describes individual molecules at the atomic level, while molar mass relates to bulk quantities that can be measured on a laboratory balance. Both are calculated the same way from the chemical formula.
Why do mass percentages matter in chemical analysis?
Mass percentages (also called percent composition) tell you what fraction of a compound's total mass comes from each element. This information is crucial for several applications: determining empirical formulas from combustion analysis data, verifying the purity of synthesized compounds, understanding nutritional content of foods, and assessing environmental pollutant compositions. For instance, knowing that iron(III) oxide (Fe₂O₃) is 69.94% iron by mass helps metallurgists calculate how much pure iron can be extracted from a given amount of ore. Mass percentages also help identify unknown compounds in forensic and analytical chemistry.
How does molar mass relate to environmental science and green chemistry?
Molar mass plays a vital role in environmental science and green chemistry. Environmental scientists use molar mass to calculate pollutant concentrations in water and air, determine reaction rates for atmospheric chemistry processes, and assess the environmental impact of chemical spills. In green chemistry, understanding molar mass helps optimize atom economy — the fraction of reactant atoms incorporated into the desired product. Higher atom economy means less waste. Molar mass calculations are also essential for carbon footprint assessments, as converting between moles of CO₂ and grams requires knowing that CO₂ has a molar mass of 44.01 g/mol.
How do pharmacists and lab technicians use molar mass in practice?
Pharmacists use molar mass to convert a prescribed dose in millimoles to the milligrams that actually get weighed on a balance, and to calculate osmolarity for IV fluids. A lab technician preparing 250 mL of 0.1 M NaOH needs to know that NaOH's molar mass is 39.997 g/mol, so 0.025 mol requires 0.9999 g of solid NaOH dissolved to volume. Getting the molar mass wrong by even one atomic mass unit compounds into a measurably wrong concentration, which is why molar mass calculations are double-checked before any titration or dosing step.
Why do hydrates and impure samples need adjusted molar mass calculations?
Hydrated salts like CuSO4·5H2O include water of crystallization in their formula mass — you must add 5 × 18.015 g/mol (90.075 g/mol) to anhydrous CuSO4's 159.61 g/mol for a hydrate molar mass of 249.68 g/mol, or a stoichiometry calculation will be off by nearly 36%. Similarly, an impure reagent's labeled molar mass only applies to the pure compound; chemists correct for percent purity separately (see the Percent Purity Calculator) before using molar mass to weigh out reagents for a reaction.
Why are periodic-table atomic masses not whole numbers?
The tabulated value is an abundance-weighted average over an element's natural isotopes, not the mass of one nucleus. Chlorine sits near 35.45 g/mol because natural chlorine is roughly three parts chlorine-35 to one part chlorine-37, and the average lands between them. Carbon is close to 12.011 rather than exactly 12 because a small share of carbon-13 accompanies the dominant carbon-12. Even a pure isotope is not an exact integer, since binding energy slightly reduces nuclear mass relative to the sum of its protons and neutrons.
How do you handle parentheses and polyatomic groups in a formula?
The subscript outside a bracket multiplies every atom inside it before you add anything up. For calcium nitrate, Ca(NO₃)₂, the nitrate group has a mass of 14.007 + 3 × 15.999 = 62.004 g/mol, two of them contribute 124.008, and adding calcium's 40.078 gives 164.086 g/mol. Forgetting to distribute the outer subscript is the most frequent molar-mass error, and it always understates the result. The same applies to a dot in a hydrate formula, where the coefficient multiplies the whole water unit.
What is formula mass, and when is it used instead of molecular mass?
Ionic solids such as sodium chloride contain no discrete molecules — the crystal is an extended lattice of Na⁺ and Cl⁻ ions — so chemists quote the mass of one formula unit instead. NaCl works out to 22.990 + 35.453 = 58.443 g/mol, which is a formula mass rather than a molecular mass, even though it is used identically in mole calculations. Molecular mass is reserved for substances made of true molecules, and polymers need a further distinction between number-average and weight-average molar mass because chain lengths vary.
References
Background & Theory
History
Reviewed for accuracy by Manoj Kumar, Mathematics Educator · Editorial policy
Related Calculators
🧮Atomic Mass Calculator
Calculate atomic mass with inputs, formulas, and instant results.
🧮Average Atomic Mass Calculator
Calculate average atomic mass with inputs, formulas, and instant results.
🧮Mass Percent Calculator
Calculate mass percent with inputs, formulas, and instant results.
🧮Mass Defect Calculator
Calculate mass defect with inputs, formulas, and instant results.
🧮Chemical Equation Balancer
Balance chemical equations by adjusting coefficients to satisfy the law of conservation of mass.
⚛️Molecular Weight
Calculate molecular weight of compounds
🧮Molar Ratio Calculator
Calculate molar ratio with inputs, formulas, and instant results.
🧮Green Chemistry Atom Economy Calculator
Calculate green chemistry atom economy with inputs, formulas, and instant results.