Free Molecular Weight Calculator — Every Step Shown
Type any chemical formula — Ca(OH)2, K4[Fe(CN)6], CuSO4·5H2O — and get its molar mass in g/mol with the full working: every atomic mass, every multiplication, and percent composition by element. Then convert grams to moles (or back) on the same page.
Molecular weight
Type a chemical formula. Parentheses, hydrates (CuSO4·5H2O), leading coefficients (2H2O) and charges (SO4^2-) all work. Case matters: Co is cobalt, CO is carbon monoxide.
Molar mass of CuSO4·5H2O
249.68 g/mol
Full table precision: 249.6770 g/mol
| Element | Atomic mass (g/mol) | Count | Subtotal (g/mol) | % of mass |
|---|---|---|---|---|
| Cu copper | 63.5460 | 1 | 63.5460 | 25.45% |
| S sulfur | 32.0600 | 1 | 32.0600 | 12.84% |
| O oxygen | 15.9990 | 9 | 143.9910 | 57.67% |
| H hydrogen | 1.0080 | 10 | 10.0800 | 4.04% |
| Total | 21 | 249.6770 | 100.00% |
Read the formula.
- CuSO4 — the main formula unit
- 5H2O — hydrate part: 5 extra H2O units attached per formula unit (the dot means "plus", not "times")
Look up each element's atomic mass (IUPAC standard atomic weights).
Cu (copper) = 63.5460 g/molS (sulfur) = 32.0600 g/molO (oxygen) = 15.9990 g/molH (hydrogen) = 1.0080 g/molMultiply each atomic mass by its count, then add — one part at a time.
CuSO4:Cu: 1 × 63.5460 = 63.5460S: 1 × 32.0600 = 32.0600O: 4 × 15.9990 = 63.9960sum = 159.6020 g/molH2O:H: 2 × 1.0080 = 2.0160O: 1 × 15.9990 = 15.9990sum = 18.0150 g/mol
× 5 → 5 × 18.0150 = 90.0750 g/molAdd the parts and state the answer with units.
159.6020 + 90.0750 = 249.6770 g/molM = 249.6770 g/mol ≈ 249.68 g/mol
Grams ⇄ moles
Converts using the molar mass computed above (M = 249.6770 g/mol).
n = m ÷ M = 25 g ÷ 249.6770 g/mol
0.1001 mol
Shown to 4 decimal places — round to your measurement's significant figures.
What molecular weight actually is
The molecular weight of a compound is the mass of one mole of it, in grams per mole. You get it by adding up the standard atomic mass of every atom in the formula. That is the whole calculation — the only skill involved is reading the formula correctly and not losing track of any atoms.
You will see three names for nearly the same number: molecular weight, molar mass, and formula mass. Molar mass is the modern, general term and always carries units of g/mol. "Formula mass" is preferred for ionic compounds like NaCl, which do not exist as discrete molecules — but the arithmetic is identical. Your teacher may insist on one name; the number does not change.
The atomic masses come from the IUPAC standard atomic weight table, which averages each element's naturally occurring isotopes. That is why carbon is 12.011 g/mol, not 12: about 1% of natural carbon is carbon-13. This calculator uses the current IUPAC values to four decimal places.
How to read a chemical formula
Most wrong answers come from misreading the formula, not from bad arithmetic. Four rules cover almost everything:
- A subscript counts only the symbol directly in front of it. In H2O, the 2 belongs to H alone: two hydrogens, one oxygen.
- A subscript after a closing bracket multiplies everything inside. Ca(OH)2 is one calcium, two oxygens, and two hydrogens — the 2 distributes over both the O and the H. Brackets nest: K4[Fe(CN)6] has one iron, six carbons, and six nitrogens inside the square brackets.
- The dot in a hydrate means "plus", not "times". CuSO4·5H2O is one CuSO4 unit plus five whole water molecules: add 5 × 18.015 to the mass of CuSO4. Type the dot as ·, a period, or an asterisk — all three work here.
- Capitalization is meaning, not style. Co is cobalt (58.93 g/mol); CO is carbon monoxide (28.01 g/mol). This calculator never changes your capitalization, and it will tell you exactly which symbol it could not read rather than guessing.
Worked example: CuSO4·5H2O
Copper(II) sulfate pentahydrate is the classic exam formula because it tests brackets-free reading, the hydrate dot, and careful addition all at once. Here is the full working, the same way the calculator lays it out.
Step 1 — read the formula. There are two parts: CuSO4 (the main unit) and 5H2O (five water molecules attached to the crystal).
Step 2 — look up the atomic masses: Cu = 63.5460, S = 32.0600, O = 15.9990, H = 1.0080 g/mol.
Step 3 — multiply and add, one part at a time. CuSO4: (1 × 63.5460) + (1 × 32.0600) + (4 × 15.9990) = 63.5460 + 32.0600 + 63.9960 = 159.6020 g/mol. Water: (2 × 1.0080) + 15.9990 = 18.0150 g/mol, and five of them is 5 × 18.0150 = 90.0750 g/mol.
Step 4 — add the parts: 159.6020 + 90.0750 = 249.6770 g/mol, which you would report as 249.68 g/mol. If your textbook says 249.69, it is using an older atomic-weight table — see the FAQ; both are acceptable answers.
Once you have the molar mass, grams-to-moles is one division. Dissolving 25.0 g of CuSO4·5H2O: n = 25.0 g ÷ 249.677 g/mol = 0.100 mol.
The mistakes that actually cost marks
- Forgetting to distribute a bracket subscript. Al2(SO4)3 has three entire sulfate groups: 3 sulfurs and 12 oxygens, not 3 sulfurs and 4 oxygens. Correct answer: 342.13 g/mol.
- Multiplying instead of adding at the hydrate dot. The ·5H2O in CuSO4·5H2O adds 90.075 g/mol; it does not multiply anything.
- Dropping the water entirely. If a problem gives you the pentahydrate, its molar mass is 249.68, not 159.60. Using the anhydrous mass makes every downstream mole calculation wrong by 36%.
- Case errors. Typing CO when you mean Co, or NA when you mean Na. A calculator that "helpfully" fixes capitalization can silently compute a different substance — this one refuses and tells you why.
- Ambiguous ion notation. Mg2+ could mean Mg²⁺ (one ion, 24.31 g/mol) or Mg₂⁺ (two atoms, 48.61 g/mol). This calculator rejects it and asks you to write Mg^2+ — the charge itself never changes the mass, but which digits are atom counts does.
- Rounding too early. Round once, at the end. If you round each atomic mass to whole numbers first, K4[Fe(CN)6] comes out at 368 instead of 368.35 — enough to lose a mark in a multi-step problem.
How to check your answer
Three quick checks catch nearly every slip:
- Count atoms before you add masses. Write out the tally (CuSO4·5H2O → Cu 1, S 1, O 9, H 10) and confirm it against the formula. The calculator's breakdown table is exactly this tally — if its counts differ from yours, you misread a bracket or the hydrate dot.
- Use percent composition as a sanity check. The percentages must add to 100, and the biggest contributor should make chemical sense: in CuSO4·5H2O, oxygen is 57.7% of the mass because there are nine of them. If an element's percentage looks absurd, its count is wrong.
- Compare against anchor values you know: H2O = 18.02, CO2 = 44.01, NaCl = 58.44, glucose C6H12O6 = 180.16. If your method reproduces those, your method is sound — any remaining disagreement is a lookup or copying error, not a concept error.
Related free tools
Frequently Asked Questions
Is molecular weight the same as molar mass?
Numerically, yes. Molecular weight (relative molecular mass) is a unitless ratio, while molar mass is the same number with units of g/mol — 18.015 for water either way. For ionic compounds like NaCl, which do not form discrete molecules, the strictly correct term is formula mass, but the calculation is identical: add up the standard atomic masses of every atom in the formula unit.
How do I type a hydrate like CuSO4·5H2O?
Use any of three separators: a middle dot (CuSO4·5H2O), a period (CuSO4.5H2O), or an asterisk (CuSO4*5H2O). All three give 249.68 g/mol. The number after the dot multiplies the whole water part — the dot means the waters are added to the formula unit, and the steps panel shows the 5 × 18.0150 = 90.0750 line explicitly.
Why does the calculator reject Mg2+ but accept NH4+?
Because Mg2+ is genuinely ambiguous: it could be Mg²⁺ (one magnesium ion, 24.31 g/mol) or Mg₂⁺ (two magnesium atoms, 48.61 g/mol) — the answers differ by a factor of two, so the calculator refuses to guess and asks you to write Mg^2+ or Mg2^+. NH4+ is accepted as ammonium, (NH4)⁺, with a note showing how it was read. The caret notation (SO4^2-, Fe^3+) is always unambiguous, so prefer it for any charged species.
Which atomic masses does this use, and why does my textbook give a slightly different answer?
The current IUPAC standard atomic weights (2021 revision), to four decimal places. Older textbooks use older tables — for example, oxygen was long listed as 15.9994 but is now 15.999, and sulfur moved from 32.065 to 32.06. That is why this calculator gives 249.68 g/mol for CuSO4·5H2O while some books print 249.69. The difference is far smaller than lab measurement error, and either value earns full marks; if your course mandates specific values, use theirs consistently.
How do I convert grams to moles with the molar mass?
Divide the mass by the molar mass: n = m ÷ M. For 25.0 g of CuSO4·5H2O, n = 25.0 ÷ 249.677 = 0.100 mol. Going the other way, multiply: m = n × M, so 0.500 mol of water is 0.500 × 18.015 = 9.01 g. The converter panel below the main result does both directions using the exact molar mass it just computed, and shows the substitution line so you can copy the working into your homework.
Does the charge on an ion change its molecular weight?
Not at any precision you will ever need in a chemistry course. A charge means the species gained or lost electrons, and an electron weighs about 0.00055 g/mol — several thousand times smaller than the uncertainty in the atomic weights themselves. So SO4^2- is calculated with the same 96.06 g/mol as neutral SO4. The calculator records the charge you typed and notes explicitly that it was ignored for the mass.
