Add the atomic weights of every atom in the formula. For aluminum sulfate, Al2(SO4)3: 2 Al + 3 S + 12 O = 2 x 26.9815 + 3 x 32.06 + 12 x 15.999 = 342.131 g/mol. A subscript outside parentheses multiplies everything inside them.
Calculate the molar mass of any formula, including hydrates and ions, with the percent composition of each element, conversion between grams, moles and particles, and the empirical formula.
Molar mass is the mass of one mole (6.02214076 x 10^23 entities) of a substance, in g/mol, and is numerically equal to the molecular mass in atomic mass units (u). It is the sum of the atomic weights of every atom in the formula: in H2SO4, 2 x 1.008 + 32.06 + 4 x 15.999 = 98.072 g/mol. The weights come from the CIAAW (IUPAC) Standard Atomic Weights 2024 table. For the 14 elements whose weight varies in nature (H, Li, B, C, N, O, Mg, Si, S, Cl, Ar, Br, Tl and Pb), the CIAAW publishes an interval and this tool uses the conventional value (for example H = 1.008, C = 12.011, O = 15.999, Cl = 35.45), marking it with an asterisk. Elements with no stable isotope use the mass number of the most stable isotope. The arithmetic uses exact fractions, and rounding happens only at the end, to the number of decimals you choose. The parser understands nested parentheses and square brackets, hydrates (CuSO4.5H2O adds 5 waters: 249.677 g/mol, of which 36.08% is water), charges, deuterium (D) and isotopes such as [13C]. The mass percent of each element is (subtotal / molar mass) x 100. The Rounded mode uses exam values (H = 1, O = 16, Cl = 35.5), with which water is 18 g/mol instead of 18.015.
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframe
src="https://jkit.tools/embed/en-US/molar-mass-calculator"
width="100%"
height="600"
style="border:0"
loading="lazy"
title="Molar Mass and Percent Composition Calculator"
></iframe>These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
Add the atomic weights of every atom in the formula. For aluminum sulfate, Al2(SO4)3: 2 Al + 3 S + 12 O = 2 x 26.9815 + 3 x 32.06 + 12 x 15.999 = 342.131 g/mol. A subscript outside parentheses multiplies everything inside them.
Accepts parentheses and square brackets, hydrates (CuSO4.5H2O), ions (SO4^2-, Fe3+, NH4+), deuterium (D2O) and isotopes like [13C]O2. Case matters: Co is cobalt, CO is carbon monoxide.
| Element | Atoms | Atomic mass | Subtotal (g/mol) | Mass % |
|---|---|---|---|---|
| C | 6 | 12.011* | 72.066 | 40.00% |
| H | 12 | 1.008* | 12.096 | 6.71% |
| O | 6 | 15.999* | 95.994 | 53.28% |
| Molar mass | 180.156 | 100% | ||
Working: 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol
* CIAAW conventional value for elements whose atomic weight is an interval: C [12.0096, 12.0116] / H [1.00784, 1.00811] / O [15.99903, 15.99977]. The mass of a real sample varies within the interval.
The mass of electrons gained or lost in an ion (about 0.00055 u each) is neglected, as in lab practice.
See also: equation balancer · electron configuration · periodic table
All the work happens in your browser. No formula is sent to any server.