xraytools.

CHN Calculator

No diffraction data

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+). Adducts and hydrates are written with a dot or an asterisk, with the count in front of the part it multiplies (CuSO4·5H2O, KAl(SO4)2*12H2O); a full stop is a decimal point here and not a separator, since CuSO4.5H2O is also a formula with a count of 4.5 in it. 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
Every element in the formula is reported, not only C, H and N, so a CHNS analysis is covered by the same table. 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 · blue vitriol

See also: Absorption Coefficient Calculator · Isotope Pattern · Crystal Density Calculator

Input

The percentages are rounded by the largest-remainder method so that they add up to exactly 100 % — every figure is first rounded down, then the leftover units go to the values whose discarded fraction was largest. Where that prints an element one unit away from its own rounded value, the table says which one, nothing moves by more than that one unit, and every cell keeps its exact percentage in a tooltip.

Results

Formula as entered C9H8O4
Read as C9H8O4
Elemental contributions
C108.0954 g/mol[12.0096,12.0116]
H8.0638 g/mol[1.00784,1.00811] m
O63.9976 g/mol[15.99903,15.99977] m
Molecular weight 180.157(5) g/mol
Elemental analysis
C60.00 %± 0.0012
H4.48 %± 0.0004
O35.52 %± 0.0011
Total100.00 %± 0

The ± figures come from the uncertainty of the atomic weights themselves. They are strongly correlated and must not be added up — the same atomic weight enters every row, so the total is exactly 100 % whatever the weights turn out to be.

The ± figures are standard uncertainties derived from the IUPAC standard atomic weights — the spread of normal terrestrial materials, not the precision of a measurement. Where the weight is published as an interval, the figure here is its half-width divided by 3, which is what a rectangular distribution over that interval has as its standard deviation — carbon's [12.0096,12.0116] is half-width 0.001 and enters as 0.00058, which is that over 3. Without knowing which of the two a figure is, it cannot be propagated at all. For an ordinary organic compound they are a few thousandths of a percentage point, far below what a combustion analysis can resolve, so they decide how many digits are worth printing rather than whether a sample matches. Where an element's weight is published as an interval, the value used here is its midpoint, which is why carbon enters as 12.0106 rather than the abridged 12.011 a textbook table prints. The two differ in the fourth decimal and the midpoint is the one that carries the interval it came from.

Where this comes from