HomeTools & Education › Molecular Weight

Molecular Weight Calculator

Molecular Weight
0.000 g/mol
Show the math
Enter values to see the worked formula.

What Your Result Means

How This Calculator Works

You type a chemical formula using standard notation — uppercase for the first letter of each element, lowercase for the second (if any), and numbers for subscripts. The parser walks through the string character by character, handles parenthesized groups recursively, and looks up each element's standard atomic weight from IUPAC 2021 values. It multiplies weight by atom count and sums the totals. Elements not in the built-in table will return "Invalid."

Quick Questions

What elements does this calculator support?

It includes the most common elements: H, C, N, O, Na, Cl, S, P, Fe, Ca, K, Mg, B, F, Br, I, Si, Al, Cr, Mn, Cu, Zn, Ar, and Ne. If you need a less common element, the calculator will return "Invalid" — you can compute it manually using IUPAC atomic weight tables.

How do I enter a formula with parentheses?

Type parentheses directly — for example, Ca(OH)2 for calcium hydroxide or Al2(SO4)3 for aluminum sulfate. The parser handles nested groups automatically. No subscript formatting is needed; just use regular numbers.

Are the atomic weights exact?

The calculator uses standard atomic weights rounded to 2–3 decimal places, which is accurate enough for most educational and general chemistry purposes. For research-grade precision, consult the IUPAC Commission on Isotopic Abundances and Atomic Weights.

What is the difference between molecular weight and formula weight?

Molecular weight applies to covalent compounds that exist as discrete molecules (like H₂O). Formula weight applies to ionic compounds (like NaCl) that form lattice structures rather than individual molecules. Numerically, the calculation is the same — sum of atomic weights times atom counts.

Sources

Method & review

MethodologyHow we calculate this Reviewed & Updated2026-04 Next review2027-04

Estimate only. Results reflect your inputs and standard formulas. Double-check important decisions independently.