MathUpdated December 2025

Molecular Weight Calculator

Calculate the molar mass (molecular weight) of any chemical compound from its formula. Supports parentheses, hydrates, and shows the percent composition of each element.

100% Free
No Signup
Works Offline
Updated 2025

Molecular Weight Calculator

Use this free molecular weight calculator to find the molar mass of any chemical compound from its formula. Includes 118 elements and handles parentheses, hydrates.
i

How Molecular Weight Works

1

Parse the formula

Break the formula into elements and their counts. Handle parentheses, subscripts, and hydrates.

2

Look up atomic masses

Use IUPAC standard atomic weights from the periodic table. Multiply each mass by its count.

3

Sum the total

Add up all element contributions. The result is the molecular weight in g/mol.

Common Applications

  • Stoichiometry: Convert grams to moles or vice versa for any balanced reaction.
  • Solution prep: Calculate how many grams of a compound to dissolve to make a given molarity.
  • Percent yield: Compare actual product mass to theoretical mass from a balanced equation.
  • Elemental analysis: Verify a compound's composition matches the theoretical formula.
  • Drug dosage: Convert between dose (mg/kg) and moles per body weight.
i

How our molecular weight calculator works

1

Enter a chemical formula

Type the formula using standard notation: H2O, C6H12O6, Ca(OH)2, CuSO4.5H2O. We parse parentheses, nested groups, and hydrates automatically.

2

We fetch atomic masses

For each element, we look up the standard atomic weight from the periodic table. The calculator also shows the count of each atom in the formula.

3

Get the molar mass

See the total molecular weight in g/mol plus a per-element breakdown. Useful for stoichiometry, solution preparation, and chemistry homework.

Key things to know about our molecular weight calculator:

  • Common notations: Ca(OH)2 = calcium hydroxide, 74 g/mol. CuSO4.5H2O = copper(II) sulfate pentahydrate, 250 g/mol. The dot separates the hydrate water from the salt.
  • For solutions: To make 1 liter of 1 M solution, multiply molecular weight by 1 to get grams per liter. M = moles per liter, m = moles per kg solvent.
  • Use across chemistry: Molecular weight is fundamental to stoichiometry, limiting reagent problems, yield calculations, and titration math.

For related calculations, try our proportion calculator.

FAQ

Frequently asked questions

Everything you need to know about this calculator. Can't find what you're looking for? Email our team.

A molecular weight calculator is a free chemistry tool that finds the molar mass of any chemical compound from its formula. Our molecular weight calculator uses the IUPAC standard atomic weights from the periodic table and supports parentheses, hydrates, and nested groups. The molecular weight calculator also shows the percent composition of each element.

How it works

How to calculate the molecular weight of a compound

Our molecular weight calculator lets you find the molar mass of any chemical compound from its formula, with full breakdown by element, in three steps.

  1. 1

    Enter the chemical formula

    Type the formula using element symbols and subscripts. Examples: H2O, C6H12O6, NaCl, H2SO4, Ca(OH)2, CuSO4.5H2O for hydrates. Element symbols are case-sensitive: Co is cobalt, CO is carbon monoxide. The Quick examples row gives common formulas.

  2. 2

    Calculate the molecular weight

    Press Calculate. The result shows the molar mass in g/mol, the total number of atoms, and the count of unique elements. The breakdown card shows each element's count, mass contribution, and percent of the total mass.

  3. 3

    Optionally enter a mass in grams

    Type a mass in grams to also see how many moles that mass represents. Useful for solution prep: enter 5 g to see 5/180.16 = 0.0277 mol of glucose. The share button creates a link with both the formula and the mass pre-filled.

Related Articles