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

For example C32H26N2O2Ni.

Results

Formula as entered C9H8O4
Read as C9H8O4
Elemental contributions
C108.0966 g/mol
H8.0635 g/mol
O63.9976 g/mol
Molecular weight 180.1578 g/mol
Elemental analysis
C60 %
H4.48 %
O35.52 %