Molar Mass Calculator

This molar mass calculator gives the molecular weight in g/mol of any chemical formula you type. It reads nested brackets such as Ca(OH)2 and K4[Fe(CN)6], and hydrates written with a dot, star or period such as CuSO4·5H2O, then shows how many atoms of each element there are, the mass each contributes and the percent composition by mass. It uses IUPAC standard atomic weights for all elements up to lawrencium. Students checking homework and lab staff preparing reagents can paste or drop a list of formulas and every one is calculated at once, ready to download as CSV. It is free, runs entirely in your browser, and nothing you type is sent to a server. Element symbols are case-sensitive, so Co is cobalt while CO is carbon monoxide.

Molar masses of common lab reagents

CompoundFormulag/mol
Sodium chlorideNaCl58.44
Potassium chlorideKCl74.55
Sodium hydroxideNaOH40.00
GlucoseC6H12O6180.16
Calcium chloride dihydrateCaCl2·2H2O147.01
Magnesium sulfate heptahydrateMgSO4·7H2O246.47
Copper sulfate pentahydrateCuSO4·5H2O249.68
Sulfuric acidH2SO498.07

When to use it

  1. Find the molar mass of a hydrate before weighing it for a solution.
  2. Check a chemistry homework answer for percent composition.
  3. Work out the oxygen content of a compound by mass.
  4. Build a reagent list with molecular weights for a lab manual.
  5. Confirm the formula weight printed on a reagent bottle.

How to Use

  1. Type the chemical formula with correct capitalization.
  2. Use brackets for groups and a dot for hydrates.
  3. Read the molar mass and percent composition.
  4. Paste a list of formulas for batch mode and download the results.

Features

  1. Nested (), [] and {} groups
  2. Hydrates with ·, * or .
  3. IUPAC standard atomic weights
  4. Percent composition by element
  5. Atom counts
  6. CSV list of formulas
  7. 100% client-side

FAQs

How do I calculate molar mass?

Multiply each element's atomic weight by how many atoms of it are in the formula, then add them up. Water is 2 × 1.008 + 15.999 = 18.015 g/mol.

How do I enter a hydrate?

Use a dot, star or period before the water, such as CuSO4·5H2O, CuSO4*5H2O or CuSO4.5H2O.

Is molar mass the same as molecular weight?

Numerically yes: molar mass in g/mol equals the molecular (formula) weight in daltons.

Why does capitalization matter?

Element symbols start with a capital letter. CO is carbon and oxygen; Co is cobalt.

Is anything uploaded?

No. All calculations run in your browser.

Technical Details

The formula is parsed left to right into element symbols (a capital letter and an optional lowercase letter) with optional counts. Groups in (), [] or {} can be nested and multiplied by the number after the closing bracket. Hydrates and adducts are split on ·, * or a period, and each part can start with a coefficient, so CuSO4·5H2O adds five waters. Each element's count is multiplied by its IUPAC standard atomic weight (abridged values, with the longest-lived isotope's mass number for elements that have no stable isotope) and summed for the molar mass in g/mol. Mass percent composition is each element's share of that total.

Education Tools

Education Tools

  • Molarity Calculator
  • Dilution Calculator
  • Final Grade Calculator
  • Weighted Gradebook
  • Rubric Maker
  • Seating Chart Generator
  • Attendance Register and Percentage Calculator
  • Math Worksheet Generator