Hydrogen deficiency is a count, not a structure
A neutral acyclic alkane with carbons has hydrogens. A ring closure or an extra bond reduces the hydrogen count by two; a triple bond adds two π bonds and reduces it by four. Degree of unsaturation, also called the index of hydrogen deficiency or double-bond equivalents, counts those reductions.
For a connected neutral closed-shell molecule with ordinary carbon, hydrogen, nitrogen, oxygen, and halogen valences:
where counts all halogen atoms. Oxygen does not enter this formula. It can still participate in a carbonyl double bond, which contributes one degree.
Why heteroatoms change the bookkeeping
A halogen replaces one hydrogen, so count it with H when finding the hydrogen deficit. A trivalent nitrogen permits one more hydrogen in the corresponding saturated formula, so N enters with a plus sign. An ordinary divalent oxygen can be inserted into a bond without changing the saturation hydrogen count.
Do not apply this expression mechanically to charged ions, radicals, disconnected formulas, or unusual valence states. A negative or noninteger result is a reason to check the formula and assumptions.
A new example: C₅H₁₀O
Two different compatible candidates are:
- Pentanal: CH₃–CH₂–CH₂–CH₂–C(=O)H. Its one carbonyl π bond uses the one degree.
- Cyclopentanol: a five-carbon ring with one OH substituent and no π bond. Its ring uses the one degree.
Both have five carbons, ten hydrogens, and one oxygen. The same formula and DoU do not tell you whether the missing pair of hydrogens represents a ring or a double bond.
Use the count to test proposed structures
Count independent rings, count each double bond once and each triple bond twice, and compare their sum with the formula-derived value. Then separately recount atoms and check valence. A matching DoU is necessary for these candidates but cannot prove a unique structure.
Infrared, NMR, and other experimental evidence can narrow the possibilities. Without that evidence, present compatible candidates and state the remaining ambiguity.
Related question
Apply this knowledge
Use the concept guide to understand the reasoning, then return to the complete question and worked answer.
Degree of Unsaturation: Draw Structures for C4H8, C4H6, and C3H4Sources
These references support the core concepts and interpretation boundaries explained above.