The degree of unsaturation (DoU), also called the index of hydrogen deficiency (IHD), turns a bare molecular formula like C6H6 into a quick structural clue: how many rings and multiple bonds must the molecule contain? It's one of the first checks organic chemistry students and researchers run before proposing a structure from spectroscopic data.
How the degree of unsaturation is calculated
The formula is DoU = (2C + 2 + N โ H โ X) / 2, where C, N, H, and X are the number of carbon, nitrogen, hydrogen, and halogen atoms in the molecular formula. It compares the actual hydrogen count against the fully saturated, acyclic reference formula CnH2n+2 (for a molecule with n carbons and no nitrogen or halogens). Every pair of hydrogens 'missing' from that reference corresponds to either one ring or one double bond, so the formula counts those pairs directly.
Oxygen and sulfur are left out of the equation entirely. Both are divalent โ they insert into an existing bond (as in an ether, alcohol, or ketone) without changing how many hydrogens the rest of the molecule needs, so they have zero effect on the result.
Inputs and what they mean
You can enter raw atom counts (carbon, hydrogen, nitrogen, and halogens) directly, or type a molecular formula like C8H10N4O2 and let the calculator parse it. Halogens (F, Cl, Br, I) are treated exactly like hydrogen in the formula, because each one occupies a single bonding position the way a hydrogen would โ so a chlorine atom lowers the DoU by the same amount a hydrogen would.
Nitrogen has the opposite effect of hydrogen: trivalent nitrogen can support one extra hydrogen compared to carbon, so each nitrogen atom adds 1 inside the formula (the +N term) rather than subtracting.
Limits and edge cases
The DoU tells you a count, not a structure โ a value of 4 could mean one aromatic ring (like benzene) or four separate double bonds with no ring at all; you need additional data (NMR, IR, mass spec, or known reaction chemistry) to pin down the actual structure. A negative or non-integer result almost always means the molecular formula itself is wrong (miscounted atoms or an impossible valence), not that the calculator failed โ double-check the formula against a reliable source before trusting the DoU. This calculator also assumes the simplified two-element correction (ignoring O and S); formulas with other polyvalent heteroatoms (like phosphorus in unusual oxidation states) may need a more detailed valence analysis.