In the analysis of the molecular formula of organic molecules, the degree of unsaturation (DU) (also known as the index of hydrogen deficiency (IHD), double bond equivalents (DBE), or unsaturation index) is a calculation that determines the total number of rings and π bonds. A formula is used in organic chemistry to help draw chemical structures. It does not give any information about those components individually—the specific number of rings, or of double bonds (one π bond each), or of triple bonds (two π bonds each). The final structure is verified with use of NMR, mass spectrometry and IR spectroscopy, as well as qualitative inspection. It is based on comparing the actual molecular formula to what would be a possible formula if the structure were saturated—having no rings and containing only σ bonds—with all atoms having their standard valence. The formula for degree of unsaturation is: where ni is the number of atoms with valence vi. That is, an atom that has a valence of x contributes a total of x − 2 to the degree of unsaturation. The result is then halved and increased by 1. For certain classes of molecules, the general formula can be simplified or rewritten more clearly. For example: where a = number of carbon atoms in the compound b = number of hydrogen atoms in the compound c = number of nitrogen atoms in the compound f = number of halogen atoms in the compound or where C = number of carbons, H = number of hydrogens, X = number of halogens and N = number of nitrogens, gives an equivalent result. In either case, oxygen and other divalent atoms do not contribute to the degree of unsaturation, as 2 − 2 = 0. For hydrocarbons, the DBE (or IHD) tells us the number of rings and/or extra bonds in a non-saturated structure, which equals to the number of hydrogen pairs that are required to make the structure saturated, simply because joining two elements to form a ring or adding one extra bond in a structure reduces the need for two H's.