Degree of unsaturation

The degree of unsaturation (also known as the Index of Hydrogen Deficiency or IHD) formula is used in organic chemistry to help draw chemical structures. The formula lets the user determine how many rings, double bonds, and triple bonds are present in the compound to be drawn. It does not give the exact number of rings or double or triple bonds, but rather the sum of the number of rings and double bonds plus twice the number of triple bonds. The final structure is verified with use of NMR, mass and IR spectroscopy, as well as inspection. The formula for degree of unsaturation is


 * $$\frac{2C+2-H-X+N}{2}$$

where $$C$$ is the numbers of carbon atoms, $$H$$ is the numbers of hydrogen atoms, $$X$$ is the numbers of halide atoms, and $$N$$ is the numbers of nitrogen atoms. Do not count group VI elements such as oxygen and sulfur atoms (but count H groups attached to oxygen atoms, such as hydroxyl groups). Halide atoms count as 'hydrogen' atoms for degree of unsaturation calculations.

The degree of unsaturation is used to calculate the number of rings and pi bonds, where
 * Rings count as one degree of unsaturation
 * Double bonds count as one degree of unsaturation
 * Triple bonds count as two degrees of unsaturation