Degree of Unsaturation Calculator | DoU & IHD Calculator
This tool finds a molecule's degree of unsaturation (DoU) from its formula, showing how many rings and double or triple bonds it must contain.
Degree of Unsaturation Calculator
Enter a molecular formula like C6H12O6 or CH3COOH (results appear automatically)
How to Enter Formulas
Documentation
What Is Degree of Unsaturation?
The degree of unsaturation (DoU) is a number that shows how many rings and π-bonds (double or triple bonds) a molecule contains, calculated only from its molecular formula. It is also called the index of hydrogen deficiency (IHD), because it measures how many hydrogen atoms are missing compared to a fully saturated molecule with the same carbon count. A chemist who knows a compound's formula but not its structure can use DoU as a first clue about what that structure might look like.
For example, the molecular formula of caffeine is C₈H₁₀N₄O₂. Its DoU works out to 6, which tells a chemist that the molecule must contain six rings and/or multiple bonds in total, before any spectroscopy is done.
Degree of Unsaturation Formula
The standard formula, valid for molecules built from carbon, hydrogen, nitrogen, phosphorus, halogens, and monovalent metals, is:
- C = number of carbon atoms
- N = number of nitrogen atoms
- P = number of phosphorus atoms
- H = number of hydrogen atoms
- X = number of halogen atoms (F, Cl, Br, I)
- M = number of monovalent metal atoms (Li, Na, K, Rb, Cs, Fr)
Oxygen and sulfur are left out of the formula. Both are divalent (they form two bonds), so adding one to a formula does not change how many hydrogens the molecule can hold (LibreTexts). C₂H₆O (ethanol) and C₂H₆ (ethane) therefore have the same DoU.
The formula comes from atomic valence, the number of bonds an atom normally forms. Carbon forms four bonds, nitrogen three, oxygen two, and hydrogen one. Every carbon adds two "bonding slots" beyond a chain atom, every nitrogen adds one, and every hydrogen, halogen, or monovalent metal removes one. A ring or a double bond uses up two of those slots that would otherwise be filled by two more hydrogens, so each one adds exactly 1 to the DoU (OpenStax). A triple bond uses up four slots, so it adds 2.
This calculator also accepts silicon and germanium, which behave like carbon (four bonds each), and boron and aluminium, which behave like nitrogen (three bonds each). Selenium behaves like oxygen and sulfur and does not affect the result. Elements without a fixed valence, such as most transition metals, are not supported and produce an error.
How to Calculate Degree of Unsaturation
- Count every atom of each element in the molecular formula.
- Insert the counts into DoU = (2C + N + P − H − X − M + 2) / 2.
- Read the result: 0 means no rings or multiple bonds, 1 means one ring or one double bond, and so on. Each triple bond counts as 2.
The total is the sum of every ring and π-bond in the molecule, but it does not say where they are or what type they are. A DoU of 4 could mean a benzene ring (one ring plus three double bonds), four separate double bonds, or two rings plus two double bonds. Further data, such as NMR or infrared spectroscopy, is needed to tell these apart. As LibreTexts puts it, the number "only gives the sum of double bonds, triple bonds and/or rings."
Worked Examples
Ethane, C₂H₆. C = 2, H = 6. DoU = (2×2 − 6 + 2) / 2 = 0. Ethane is a saturated hydrocarbon with no rings or multiple bonds.
Ethene, C₂H₄. C = 2, H = 4. DoU = (2×2 − 4 + 2) / 2 = 1. This matches ethene's single C=C double bond.
Cyclohexane, C₆H₁₂. C = 6, H = 12. DoU = (2×6 − 12 + 2) / 2 = 1. Cyclohexane has one ring and no double bonds.
Benzene, C₆H₆. C = 6, H = 6. DoU = (2×6 − 6 + 2) / 2 = 4. Benzene has one ring plus three double bonds, which add up to 4.
Caffeine, C₈H₁₀N₄O₂. C = 8, H = 10, N = 4 (O is ignored). DoU = (2×8 + 4 − 10 + 2) / 2 = 6. Caffeine's fused-ring structure accounts for all six degrees.
Common Mistakes
A fractional result, such as 2.5, signals an error in the formula, because a neutral molecule with normal bonding always gives a whole number. A negative result usually means an extra hydrogen or a mistyped subscript. The calculator reports both cases as an invalid formula instead of showing a number. A result of 0 is not an error. It means the compound is fully saturated, like propane (C₃H₈).
The formula assumes every atom uses its usual valence. Some real compounds break that rule. Phosphorus pentachloride (PCl₅) has phosphorus forming five bonds, so the formula gives (1 − 5 + 2) / 2 = −1 (one phosphorus, five halogens) even though the compound exists. The calculator rejects such formulas.
Using the Calculator
Type a molecular formula into the input field, such as C6H12O6 or CH3COOH, using standard capitalization: element symbols start with an uppercase letter, and a second letter, if present, is lowercase (for example Cl, not CL). Numbers follow each element and can be left off when there is only one atom. The result, the element counts, and a short explanation appear as soon as a valid formula is entered. An invalid element or a malformed formula produces an error message describing the problem.
Uses in Chemistry
DoU is most useful right after a molecular formula becomes known, for instance from mass spectrometry, but before the structure has been worked out. It sets an upper bound on how many rings and multiple bonds must be present, which narrows down the possible structures before spectroscopy begins. NMR spectroscopy then shows where the double bonds and hydrogens sit; infrared spectroscopy identifies functional groups, such as the carbonyl group of a simple ketone, which absorbs strongly at about 1706–1720 cm⁻¹ (LibreTexts IR table); and X-ray crystallography can give a complete three-dimensional structure when crystals are available. Chemists commonly use DoU as a quick check that a proposed structure is consistent with the formula: if the calculated DoU does not match the rings and multiple bonds in a proposed structure, the structure is wrong.
History
The idea behind DoU depends on knowing how many bonds each atom forms. In 1857 August Kekulé proposed that carbon is tetravalent, meaning it forms four bonds. In 1858 Kekulé and Archibald Scott Couper independently recognized that carbon atoms can link to one another in chains (Science History Institute). Kekulé later proposed a ring structure for benzene. With these ideas, chemists could treat rings and double bonds as countable parts of a molecule.
Frequently Asked Questions
What is the degree of unsaturation in chemistry? It is the total number of rings and π-bonds (double or triple bonds) in a molecule, calculated from its molecular formula. A DoU of 0 means a fully saturated molecule with no rings or multiple bonds.
How is degree of unsaturation calculated from a molecular formula? Count the atoms of each element, then apply DoU = (2C + N + P − H − X − M + 2) / 2, where X is the total halogen count and M is the total count of monovalent metals such as sodium or potassium.
Can the degree of unsaturation be a fraction? Not for a neutral molecule with normal bonding. A fractional result usually means the atom counts in the formula are wrong, and the calculator reports it as an invalid formula.
Can the degree of unsaturation be negative? Not for an ordinary organic molecule. A negative result usually means the formula has too many hydrogens for its carbon count. Compounds where an atom forms more bonds than usual, such as PCl₅, are the exception, and the calculator rejects them.
Why isn't oxygen included in the formula? Oxygen and sulfur are divalent, forming exactly two bonds, so adding one to a formula never changes the hydrogen count needed for saturation. Ethanol (C₂H₆O) and ethane (C₂H₆) have the same DoU.
How much does a triple bond add to the degree of unsaturation? A triple bond adds 2, twice as much as a ring or a double bond. Acetylene (C₂H₂), which has one triple bond, has a DoU of 2.
Is index of hydrogen deficiency the same as degree of unsaturation? Yes. DoU and IHD are two names for the same quantity, calculated with the same formula. The OpenStax organic chemistry textbook, for example, uses the name "degree of unsaturation" (OpenStax).
References
- OpenStax. Organic Chemistry, 7.2 Calculating the Degree of Unsaturation. openstax.org — each ring or double bond removes two hydrogens; halogen, oxygen, and nitrogen rules.
- Chemistry LibreTexts. Degree of Unsaturation. chem.libretexts.org — the formula, why oxygen and sulfur are ignored, and that DoU gives only the sum of rings and π-bonds.
- Chemistry LibreTexts. Infrared Spectroscopy Absorption Table. chem.libretexts.org — C=O stretch of aliphatic ketones at 1720–1706 cm⁻¹.
- Science History Institute. August Kekulé and Archibald Scott Couper. sciencehistory.org — Kekulé's 1857 proposal that carbon is tetravalent and the 1858 recognition of carbon chains.