Molecular Weight

Science

Calculate molecular weight from formula

Molecular weight — also called molar mass — tells you how many grams one mole of a compound weighs. It's the conversion factor that links the microscopic world of atoms and molecules to the macroscopic world of grams you can actually measure on a balance. Every stoichiometry problem, every solution you prepare, and every reaction yield calculation in chemistry starts with knowing a compound's molecular weight.

Calculating it by hand means looking up the atomic weight of every element in the formula, multiplying by how many atoms of each element appear, and adding it all together — a process that's simple for water but tedious and error-prone for complex organic molecules or hydrates. Our molecular weight calculator does this instantly: enter a chemical formula like H2O, C6H12O6, or NaCl, and it parses the formula, pulls standard atomic weights, and sums them to give you the exact molar mass in g/mol.

Whether you're balancing equations, preparing a solution of known molarity, or checking a lab report, this tool eliminates arithmetic errors from one of chemistry's most repeated calculations.

Why Molecular Weight Matters

Molecular weight is the bridge between moles (the unit chemists think in) and grams (the unit you actually weigh out on a scale), making it foundational to virtually every quantitative chemistry task. Stoichiometry problems ask you to convert grams of a reactant to moles using its molar mass before you can find how much product forms. Molarity calculations require molar mass to convert a measured mass of solute into moles before dividing by volume. Even reading a chemical label or safety data sheet often requires molecular weight to interpret exposure limits or concentrations correctly.

Outside coursework, molecular weight calculations are essential in pharmacology (dosing is often calculated per unit body mass using a drug's molar mass to convert between mass and molar concentration), materials science (formulating polymers and alloys), and environmental science (converting pollutant concentrations between mass-based and molar units for regulatory reporting). Getting molecular weight wrong cascades into every downstream calculation — an error of a few percent in molar mass can mean a solution is meaningfully off-target in concentration, which is why careful use of standard atomic weights (as published by IUPAC) matters even in routine lab work.

The Molecular Weight Formula, Explained

MW = Σ (atomic weight of each element × number of atoms of that element)

Where: MW = molecular weight (molar mass) of the compound in grams per mole (g/mol), and the sum Σ runs over every distinct element in the chemical formula, multiplying each element's standard atomic weight (from the periodic table) by the number of times that element's atom appears in the formula.

For example, water (H₂O) contains 2 hydrogen atoms and 1 oxygen atom. Using standard atomic weights H = 1.008 g/mol and O = 15.999 g/mol: MW = (2 × 1.008) + (1 × 15.999) = 2.016 + 15.999 = 18.015 g/mol.

For compounds with polyatomic groups in parentheses, such as Ca(OH)₂, multiply everything inside the parentheses by the subscript outside before summing — here that means 2 oxygens and 2 hydrogens from the hydroxide group, plus 1 calcium.

How to Use the Molecular Weight: Step by Step

  1. Write out the chemical formula

    Enter the compound's molecular formula exactly, including subscripts for atom counts (e.g., C6H12O6 for glucose, not just 'glucose').

  2. Let the calculator identify each element

    The tool parses the formula into its constituent elements and how many atoms of each appear, including elements grouped inside parentheses.

  3. Atomic weights are applied automatically

    Each element is matched to its standard atomic weight from the periodic table (e.g., C = 12.011, H = 1.008, O = 15.999) and multiplied by its atom count.

  4. Read the total molar mass

    The calculator sums all the element contributions and returns the molecular weight in grams per mole (g/mol), ready to use in molarity or stoichiometry calculations.

Molecular Weight Examples: Real-World Scenarios

1

Molecular Weight of Water (H₂O)

Find the molar mass of water, the most common compound in chemistry problems.

Formula:H2O
H atoms:2 × 1.008 g/mol
O atoms:1 × 15.999 g/mol

Calculation

MW = (2 × 1.008) + (1 × 15.999) = 2.016 + 15.999

Result

MW = 18.015 g/mol. One mole of water (about 18 mL at room temperature) weighs 18.015 grams.

2

Molecular Weight of Glucose (C₆H₁₂O₆)

Glucose is a simple sugar central to biochemistry and metabolism. Find its molar mass.

Formula:C6H12O6
C atoms:6 × 12.011 g/mol
H atoms:12 × 1.008 g/mol
O atoms:6 × 15.999 g/mol

Calculation

MW = (6 × 12.011) + (12 × 1.008) + (6 × 15.999) = 72.066 + 12.096 + 95.994

Result

MW = 180.156 g/mol, commonly rounded to 180.16 g/mol — the value used in preparing dextrose and glucose solutions in labs and hospitals.

3

Molecular Weight of Sulfuric Acid (H₂SO₄)

Sulfuric acid is one of the most widely produced industrial chemicals. Calculate its molar mass.

Formula:H2SO4
H atoms:2 × 1.008 g/mol
S atoms:1 × 32.06 g/mol
O atoms:4 × 15.999 g/mol

Calculation

MW = (2 × 1.008) + (1 × 32.06) + (4 × 15.999) = 2.016 + 32.06 + 63.996

Result

MW = 98.072 g/mol, the standard molar mass used when preparing sulfuric acid solutions of known molarity in a lab setting.

Common Mistakes to Avoid

  • Misreading subscripts — confusing C6H12O6 (glucose) with C12H22O11 (sucrose) or similar formulas produces a completely different, incorrect molar mass, so double-check every subscript.
  • Forgetting to multiply groups in parentheses by their outer subscript — in Ca(OH)₂, both the O and H inside the parentheses must be doubled, not just counted once.
  • Using outdated or overly rounded atomic weights — rounding every atomic weight to a whole number (e.g., O = 16 instead of 15.999) is fine for quick estimates but introduces meaningful error in precise lab calculations.

Tips & Tricks

  • Molecular weight and molar mass are the same number with different names — molecular weight is technically unitless (a ratio) while molar mass carries units of g/mol, but both refer to the same computed value in practice.
  • For hydrates like CuSO₄·5H₂O, remember to add the molar mass of the water molecules (5 × 18.015 = 90.075 g/mol) to the anhydrous compound's molar mass to get the total.

Molecular weight turns a chemical formula into a number you can actually weigh on a balance, making it the essential first step in nearly every quantitative chemistry task. Use this calculator to check formula weights for lab prep, homework, or dosage calculations. Pair it with our molarity calculator to go from mass directly to solution concentration.

Molecular Weight — Frequently Asked Questions

Related Calculators

Authoritative References

External links open in a new tab. OmniCalc.us is not affiliated with these organisations.

Related Calculators