xraytools.

CHN Calculator

The molecular weight a formula implies and the elemental analysis it predicts — the percentages a combustion analysis is compared against.

You supply
A chemical formula. Brackets nest and may carry a fractional multiplier (Cu(NO3)2, K3[Fe(CN)6], (SiO2)0.5), and a charge may be written after a caret (SO4^2-) or as a bare sign (Na+). The charge is noted and left out of the arithmetic: every quantity here is a sum over atoms, and an electron is one part in 105 of a carbon.
Reading it
Percentages are by mass, which is how elemental analysis is reported. An unrecognised element symbol is refused rather than dropped, because dropping it would renormalise the rest and still look right.

Worked examples: aspirin · a nickel complex · copper nitrate

Input

Results

Formula as entered Cu(NO3)2
Read as CuN2O6
Elemental contributions
Cu63.546 g/mol
N28.0134 g/mol
O95.9964 g/mol
Molecular weight 187.5559 g/mol
Elemental analysis
Cu33.88 %
N14.94 %
O51.18 %