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 C32H26N2O2Ni
Read as C32H26N2O2Ni
Elemental contributions
C384.3435 g/mol
H26.2065 g/mol
N28.0134 g/mol
O31.9988 g/mol
Ni58.6933 g/mol
Molecular weight 529.2556 g/mol
Elemental analysis
C72.62 %
H4.95 %
N5.29 %
O6.05 %
Ni11.09 %