Enter a chemical formula to parse brackets, hydrates and coefficients, then compute molar mass, total atoms, element count and mass fractions
Not a lookup table: element symbols, numeric subscripts and bracket levels are parsed recursively, so nested formulas such as Ca(OH)2 and K4[Fe(CN)6] expand correctly
The hydrate dot can be written as ., *, or the interpunct, and leading coefficients like 5H2O are multiplied into every atom so crystal water is never missed
Molar mass (g/mol), total atoms per formula unit and the number of distinct elements appear together, ready for solution preparation or formula checks
Each element is listed with atom count, atomic weight, contributed mass and mass fraction, directly usable for elemental analysis or batch calculations
Standard atomic weights from H through Og are built in; radioactive elements use the mass number of their most stable isotope, so obscure elements need no manual lookup
Results update as you type with no network requests, so formulas and recipes never leave your device; Enter and one-click example chips are supported
Enter it the way you would write it, for example H2O, NaCl or Ca(OH)2. Element symbols are case-sensitive; a number after an element or bracket is its count. Results refresh as you type.
Brackets (), [] and {} can nest; hydrates use a dot (·, ., or *); an overall coefficient goes first, as in 5H2O or 2Al2(SO4)3. The example chips below fill the input for you.
The first card shows molar mass in g/mol, numerically equal to relative molecular mass. Paste it into the M field of our molarity calculator when preparing a solution.
The expanded form shows atom counts after multiplication; the table lists atomic weight, contributed mass and mass fraction for checking the share of any element
Get 249.677 g/mol for CuSO4·5H2O, then use the molarity calculator to weigh out a 0.1 mol/L solution
After hand-computing Ca(OH)2 or K4[Fe(CN)6], verify that every bracket and subscript was multiplied correctly
Find the percentage of a given element in fertilizers, minerals or complexes straight from the breakdown table
Bottles come in anhydrous and hydrate grades; compare CuSO4 with CuSO4·5H2O to see how much the molar mass differs
Produce a set of reference values before writing an Excel template or batch script, confirming your own atomic weight table
Demonstrate in class how hydrate parts add and bracketed groups multiply; the expanded form and table are ready to screenshot for slides
Molar mass M is the mass per unit amount of substance, usually in g/mol; relative molecular mass Mr is a dimensionless ratio to 1/12 of the mass of a ¹²C atom. They share the same numerical value but differ in dimension. For ionic compounds such as NaCl the strict term is formula mass; this tool computes per formula unit, so both cases work.
Standard atomic weights are abundance-weighted averages of natural isotopes: Cl is 35.45 (about 75.8% ³⁵Cl and 24.2% ³⁷Cl) and C is 12.011. That is why NaCl comes out as 58.440 rather than 58. Radioactive elements have no stable isotopic composition and are usually quoted at the mass number of their most stable isotope, which this tool follows.
A subscript outside a bracket multiplies every atom inside: Ca(OH)2 has 1 Ca, 2 O and 2 H. Brackets may nest; in K4[Fe(CN)6] the square brackets contain Fe(CN)6 and the outer coefficient applies to the whole group, giving 4 K, 1 Fe, 6 C and 6 N. Parsing expands from the inside out.
CuSO4·5H2O means five water molecules accompany each copper sulfate unit. The dot means addition, not multiplication, so molar mass = 159.602 + 5 × 18.015 = 249.677 g/mol. Weighing a hydrate reagent while using the anhydrous value 159.602 makes the actual concentration far too low, one of the most common solution-prep errors.
An element's mass fraction is its total mass in the formula divided by molar mass × 100%; in H2O, hydrogen is 2.016/18.015 ≈ 11.19%. It describes mass share, not atom share: hydrogen is 2 of 3 atoms but only about 11% of the mass. Fertilizer grades, ore assays and elemental analysis all use mass fraction.
| Formula | Name | M (g/mol) | Note |
|---|---|---|---|
| H2O | Water | 18.015 | Most common solvent |
| NaCl | Sodium chloride | 58.440 | Saline baseline |
| NaOH | Sodium hydroxide | 39.997 | Strong base, hygroscopic |
| HCl | Hydrogen chloride | 36.458 | Solute of hydrochloric acid |
| H2SO4 | Sulfuric acid | 98.072 | Diprotic strong acid |
| C6H12O6 | Glucose | 180.156 | Monosaccharide |
| CuSO4·5H2O | Copper(II) sulfate pentahydrate | 249.677 | Hydrate, not 159.602 |
| CaCO3 | Calcium carbonate | 100.086 | Formula mass near 100 |