Molar Mass Calculator
Type a formula and get its molar mass in g/mol, with each element's share of the mass.
https://flxcode.com/molar-mass-calculator/
Capital letters start each element: Co is cobalt, CO is carbon monoxide. Use brackets, and a dot or · for water of crystallisation.
Example Molar mass
Molar mass of Fe2(SO4)3
| Element | Atoms | Atomic weight | Mass (g/mol) | Mass % |
|---|---|---|---|---|
| Fe (Iron) | 2 | 55.845 | 111.690 | 27.93% |
| S (Sulfur) | 3 | 32.06 | 96.180 | 24.05% |
| O (Oxygen) | 12 | 15.999 | 191.988 | 48.01% |
| Molar mass | 399.858 g/mol |
|---|---|
| Moles in 10 g | 0.02501 mol |
| Mass of 1 mmol | 399.86 mg |
The steps, with your numbers
Fe: 2 × 55.845 = 111.690
S: 3 × 32.06 = 96.180
O: 12 × 15.999 = 191.988
Total = 111.690 + 96.180 + 191.988 = 399.858 g/mol
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
Quick start
- Type the formula with capital letters for each element, like Fe2(SO4)3.
- Read the molar mass in g/mol. The table shows how each element adds up.
- Use the percent column for composition questions, or the steps to show your work.
Worked examples
| Formula | Molar mass | Note |
|---|---|---|
| H2O | 18.02 g/mol | Water |
| NaCl | 58.44 g/mol | Table salt |
| CO2 | 44.01 g/mol | Carbon dioxide |
| C6H12O6 | 180.16 g/mol | Glucose |
| Ca(OH)2 | 74.09 g/mol | Slaked lime, brackets |
| Fe2(SO4)3 | 399.86 g/mol | Iron(III) sulfate |
| CuSO4·5H2O | 249.68 g/mol | Copper sulfate pentahydrate, a hydrate |
| K4[Fe(CN)6] | 368.35 g/mol | Potassium ferrocyanide, square brackets |
How it is worked out
The formula is read into counts of each element. Each count is multiplied by that element's atomic weight and the results are added:
molar mass = Σ (atoms of element × atomic weight)
For Fe2(SO4)3 there are 2 Fe, 3 S and 12 O. That is 2 × 55.845 + 3 × 32.06 + 12 × 15.999 = 111.69 + 96.18 + 191.988 = 399.858, shown as 399.86 g/mol. The percent by mass of an element is its part divided by the total.
Hydrates and dots
A dot in a formula, as in CuSO4·5H2O, means the second part is added once for each unit, multiplied by the number in front of it. You can type the dot as ·, . or *. The number applies to the whole group after it, so CuSO4.5H2O is five waters, not five hydrogens.
Common mistakes
- Lowercase symbols. NaCl works, nacl does not, and the tool will suggest the likely symbol.
- Forgetting that a number after a bracket multiplies everything inside it.
- Mixing up Co (cobalt) and CO (carbon monoxide), or Cl and CI (letter i).
- Using the molar mass of the anhydrous form when the bottle says hydrate. The water changes the answer by up to 40%.
Need grams for a solution? The molarity calculator uses this molar mass to give the mass to weigh, and the dilution calculator handles stock solutions. To check a reaction first, use the equation balancer.
Atomic weights used, elements 1 to 36
| No. | Symbol | Name | Atomic weight |
|---|---|---|---|
| 1 | H | Hydrogen | 1.008 |
| 2 | He | Helium | 4.0026 |
| 3 | Li | Lithium | 6.94 |
| 4 | Be | Beryllium | 9.0122 |
| 5 | B | Boron | 10.81 |
| 6 | C | Carbon | 12.011 |
| 7 | N | Nitrogen | 14.007 |
| 8 | O | Oxygen | 15.999 |
| 9 | F | Fluorine | 18.998 |
| 10 | Ne | Neon | 20.18 |
| 11 | Na | Sodium | 22.99 |
| 12 | Mg | Magnesium | 24.305 |
| 13 | Al | Aluminium | 26.982 |
| 14 | Si | Silicon | 28.085 |
| 15 | P | Phosphorus | 30.974 |
| 16 | S | Sulfur | 32.06 |
| 17 | Cl | Chlorine | 35.45 |
| 18 | Ar | Argon | 39.95 |
| 19 | K | Potassium | 39.098 |
| 20 | Ca | Calcium | 40.078 |
| 21 | Sc | Scandium | 44.956 |
| 22 | Ti | Titanium | 47.867 |
| 23 | V | Vanadium | 50.942 |
| 24 | Cr | Chromium | 51.996 |
| 25 | Mn | Manganese | 54.938 |
| 26 | Fe | Iron | 55.845 |
| 27 | Co | Cobalt | 58.933 |
| 28 | Ni | Nickel | 58.693 |
| 29 | Cu | Copper | 63.546 |
| 30 | Zn | Zinc | 65.38 |
| 31 | Ga | Gallium | 69.723 |
| 32 | Ge | Germanium | 72.63 |
| 33 | As | Arsenic | 74.922 |
| 34 | Se | Selenium | 78.971 |
| 35 | Br | Bromine | 79.904 |
| 36 | Kr | Krypton | 83.798 |
All 118 elements are built into the calculator.
Numbers this uses
Every constant the tool uses is listed here with its source. Where a number varies, you can edit it in the tool.
- Atomic weights is the 118 values in the table above and the calculator. IUPAC 2021 standard atomic weights, abridged (CIAAW). Elements without a stable isotope use the mass number of their longest-lived isotope..
- Hydrogen and oxygen is H 1.008 and O 15.999. IUPAC 2021 abridged. The full interval for H is 1.00784 to 1.00811, so 1.008 is the conventional value.
- Display rounding is the total to 2 decimals, parts to 3. The two-decimal rule matches the usual textbook answer. Check your own course for the digits it expects.
- Charges is ignored for mass. An electron weighs 0.00055 g/mol, which is below the rounding.
Nothing you type is uploaded. We count events without cookies (details).
FAQ
What is molar mass?
It is the mass of one mole of a substance, in grams per mole. For a compound you add up the atomic weights of every atom in the formula. Water, H2O, is 2 × 1.008 + 15.999 = 18.015 g/mol.
What is the difference between molar mass, molecular weight and formula weight?
The numbers are the same. Molecular weight is a unitless ratio to carbon-12, formula weight is used for ionic compounds like NaCl that have no molecules, and molar mass is the same number in g/mol. For homework they are interchangeable.
How do I calculate the molar mass of CuSO4·5H2O?
The dot means five water molecules come with each CuSO4. Add Cu 63.546, S 32.06, O 4 × 15.999, and 5 × H2O at 18.015. The total is 249.68 g/mol. The water is 36.1% of it, which is why the crystals lose that much mass when heated.
Why do my answer and the textbook differ in the last digit?
Atomic weights are rounded differently. This tool uses IUPAC 2021 abridged values (H 1.008, O 15.999, S 32.06, Cl 35.45). Older books use H 1.0079 or Cl 35.453. The difference is usually below 0.05 g/mol.
Why is Co different from CO?
Element symbols are one capital letter and at most one lowercase letter. Co is cobalt. CO is carbon and oxygen. NaCl and NACl are different things too, and the tool tells you when a symbol does not exist.
How do I use brackets and multipliers?
Ca(OH)2 means one Ca and two OH groups, so 1 Ca, 2 O and 2 H. You can nest them and mix (), [] and {}. For Al2(SO4)3 the 3 multiplies everything inside the bracket: 3 S and 12 O.
Which elements are not stable and what weight is used?
Elements with no stable isotope, like technetium, radon and everything past bismuth except thorium, protactinium and uranium, have no fixed atomic weight. IUPAC lists the mass number of the longest-lived isotope in brackets, and this tool uses that number.
Is my formula sent anywhere?
No. The calculation runs in your browser. What you type is not put in the address bar, not stored and not counted.
More from FLXCode
Molarity CalculatorNew
Solve for molarity, mass, moles or volume. Type a formula for the molar mass and see every step with your numbers.
Chemical Equation BalancerNew
Balance any chemical equation, with charges and hydrates. Whole-number coefficients and an atom count for each side.
Dilution Calculator (C1V1 = C2V2)New
Solve C1V1 = C2V2 for any one value. Units in M, mM, µM, % and mg/mL, L to µL. Shows the solvent to add.
Water Eject SoundNew
A 165 Hz pulsed tone you can play on a wet phone speaker: 20 seconds a cycle, 3 cycles at most, with a stop button.