Molar Mass Calculator

Calculate the molar mass of any chemical formula, with the mass percent of each element and moles from grams.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Molar Mass Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Molar Mass Calculator does

    Calculate the molar mass of any chemical formula, with the mass percent of each element and moles from grams.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Type a formula such as Ca(OH)2, Fe2(SO4)3 or CuSO4·5H2O. The calculator gives the molar mass in g/mol, a table of the elements with their counts, atomic weights and mass percent, and, if you enter a mass in grams, the amount in moles and the number of molecules.

Formula syntax

Use element symbols with capital first letters (Na, Cl), numbers for counts, round or square brackets for groups and a dot or · for hydrates, as in CuSO4·5H2O. Charges and state symbols are not part of the formula.

Atomic weights

Standard atomic weights from IUPAC (abridged) are used. Elements with no stable isotopes use the mass number of the longest-lived isotope. Moles = grams ÷ molar mass; molecules = moles × 6.02214076 × 10²³.

Worked example

Ca(OH)2 has a molar mass of 74.092 g/mol: Ca 54.09 %, O 43.19 %, H 2.72 %. CuSO4·5H2O is 249.677 g/mol.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

Can it handle hydrates?

Yes, write CuSO4·5H2O or CuSO4.5H2O.

How accurate are the masses?

They use standard atomic weights to 3–5 significant figures, as in a periodic table.

Does case matter?

Yes: Co is cobalt but CO is carbon monoxide.

Can I get moles?

Enter grams to get moles and molecules.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages