Last updated: July 3, 2026
Degree of Unsaturation Calculator
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Quick Answer
Degree of unsaturation, or index of hydrogen deficiency, is calculated as (2C + 2 + N − H − X) / 2 for neutral organic formulas. The result counts total rings and pi bonds: one double bond or ring equals one degree, and one triple bond equals two degrees. Oxygen is ignored, nitrogen is added, and halogens are subtracted.
To calculate degree of unsaturation, use two C plus two plus N minus H minus X, all divided by two. Each result unit is one ring or one pi bond; a triple bond counts as two.
Key Takeaways
- DoU = (2C + 2 + N − H − X) / 2 converts a molecular formula into ring and pi-bond equivalents.
- Each degree is one ring or one pi bond; a triple bond counts as two degrees.
- Halogens are subtracted because they replace hydrogens, while nitrogen is added and oxygen is ignored.
- Benzene, pyridine, and chlorobenzene all have DoU = 4 despite different heteroatom or halogen content.
- A DoU result gives constraints, not a complete structure; use spectroscopy or known chemistry to assign the actual rings and bonds.
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Formula
DoU = (2C + 2 + N − H − X) / 2
Where:
- DoU=Degree of unsaturation / index of hydrogen deficiency(dimensionless)
- C=Number of carbon atoms(atoms)
- H=Number of hydrogen atoms(atoms)
- N=Number of nitrogen atoms(atoms)
- X=Number of halogen atoms (F, Cl, Br, I)(atoms)
Worked Examples
Benzene (C6H6)
Benzene has four degrees of unsaturation: three C=C pi bonds plus one ring.
- 1Set C = 6, H = 6, N = 0, and X = 0 from C₆H₆.
- 2Substitute into DoU = (2C + 2 + N − H − X) / 2.
- 3DoU = (2×6 + 2 + 0 − 6 − 0) / 2 = (12 + 2 − 6) / 2 = 4.
- 4Interpret 4 as one benzene ring plus three double bonds.
Ethene (C2H4)
Ethene contains one C=C double bond and no ring.
- 1Read C = 2, H = 4, N = 0, X = 0.
- 2DoU = (2×2 + 2 − 4) / 2.
- 3DoU = (4 + 2 − 4) / 2 = 1.
- 4One degree corresponds to one double bond or one ring; ethene uses it as a double bond.
Acetonitrile (C2H3N)
The nitrile triple bond contributes two degrees of unsaturation.
- 1Set C = 2, H = 3, N = 1, X = 0.
- 2Nitrogen adds one hydrogen equivalent in the numerator.
- 3DoU = (2×2 + 2 + 1 − 3 − 0) / 2 = (4 + 2 + 1 − 3) / 2 = 2.
- 4Two degrees match one C≡N triple bond.
Ethane (C2H6)
Ethane is the saturated acyclic two-carbon reference formula.
- 1Read C = 2, H = 6, N = 0, and X = 0 from C₂H₆.
- 2Apply DoU = (2C + 2 + N − H − X) / 2.
- 3DoU = (2×2 + 2 + 0 − 6 − 0) / 2 = (4 + 2 − 6) / 2 = 0.
- 4A DoU of 0 means ethane requires no rings, double bonds, or triple bonds.
Pyridine (C5H5N)
Pyridine keeps the aromatic six-membered ring pattern after nitrogen is included.
- 1Set C = 5, H = 5, N = 1, and X = 0.
- 2Nitrogen adds one hydrogen equivalent in the numerator.
- 3DoU = (2×5 + 2 + 1 − 5 − 0) / 2 = (10 + 2 + 1 − 5) / 2 = 4.
- 4Four degrees match one aromatic heterocycle: one ring plus three pi bonds.
Chlorobenzene (C6H5Cl)
A halogen substituent replaces one hydrogen but does not change the benzene-ring DoU.
- 1Read C = 6, H = 5, N = 0, and X = 1 from C₆H₅Cl.
- 2Count chlorine as a halogen in X because it replaces a hydrogen.
- 3DoU = (2×6 + 2 + 0 − 5 − 1) / 2 = (12 + 2 − 5 − 1) / 2 = 4.
- 4The result is the same aromatic-ring total as benzene: one ring plus three double bonds.
Introduction
The degree of unsaturation (DoU), also called the index of hydrogen deficiency (IHD) or double-bond equivalents, counts how many rings and pi bonds a molecular formula must contain. It is a fast organic-chemistry screen: if a formula has fewer hydrogens than the corresponding saturated acyclic hydrocarbon, the missing hydrogen pairs reveal structural features. This calculator applies DoU = (2C + 2 + N − H − X) / 2 from the atom counts in a formula; oxygen and sulfur are ignored because divalent heteroatoms do not change the hydrogen count. Pair the result with the molar mass calculator or atomic mass calculator when you first decode an unknown formula.
What does one degree of unsaturation mean?
One degree of unsaturation equals one ring or one pi bond. A C=C double bond uses one degree, a carbonyl C=O uses one degree, and any ring closure also uses one degree. A triple bond contains two pi bonds, so it counts as two degrees. That is why benzene, C₆H₆, has DoU = 4: the Kekulé description is three double bonds plus one ring. The IUPAC Gold Book defines the structural terminology behind double bonds, triple bonds, and cyclic compounds.
- DoU 0:
saturated acyclic formula such as ethane, C₂H₆.
- DoU 1:
one double bond or one ring, such as ethene or cyclopropane.
- DoU 2:
one triple bond, two double bonds, two rings, or a mixed combination.
- DoU 4:
common aromatic-benzene pattern, one ring plus three pi bonds.
Formula and atom-count rules
Use DoU = (2C + 2 + N − H − X) / 2 for formulas containing carbon, hydrogen, nitrogen, oxygen, and halogens. The expression starts from the saturated alkane limit CₙH₂ₙ₊₂. Nitrogen can support one extra hydrogen in a saturated amine, so N is added. Halogens (F, Cl, Br, I) replace hydrogens one-for-one, so X is subtracted. Oxygen, sulfur, and other divalent atoms are normally ignored. The same convention is taught in open organic-chemistry resources such as LibreTexts/07%3A_Alkenes_-_Structure_and_Reactivity/7.02%3A_Calculating_Degree_of_Unsaturation).
If the result is fractional or negative, re-check the formula, charge state, isotope notation, or atom counts before interpreting the structure.
Worked examples for common formulas
Benzene C₆H₆ gives (12 + 2 − 6) / 2 = 4, which matches three double bonds and one ring. Ethane C₂H₆ gives (4 + 2 − 6) / 2 = 0, so it is saturated and acyclic. Pyridine C₅H₅N gives (10 + 2 + 1 − 5) / 2 = 4, showing that one ring and three pi bonds are still required after accounting for nitrogen. Chlorobenzene C₆H₅Cl gives (12 + 2 − 5 − 1) / 2 = 4 because chlorine replaces one hydrogen. Acetonitrile C₂H₃N gives (4 + 2 + 1 − 3) / 2 = 2, consistent with a nitrile triple bond.
After computing DoU, sketch the simplest ring/pi-bond combinations that sum to the same number and compare them with spectroscopy or known functional groups.
How heteroatoms affect IHD
Halogens are counted together as X because a C–Cl or C–Br bond consumes the same valence position as a C–H bond. Nitrogen increases the saturated hydrogen count by one because neutral saturated amines can carry an extra hydrogen equivalent. Oxygen is ignored because replacing CH₂ by O in an ether or alcohol does not change the hydrogen deficiency. When the formula contains several heteroatoms, it is often helpful to verify atom counts with the molar mass calculator before interpreting the IHD result.
F, Cl, Br, and I all count in X.
Each neutral nitrogen adds +1 in the numerator.
Oxygen and sulfur normally contribute 0 to the IHD formula.
Charged salts, radicals, and organometallic formulas may need expert interpretation.
Using DoU with spectra and structure proposals
DoU does not tell you exactly where the unsaturation is; it tells you the minimum total number of rings and pi bonds. Organic chemists combine this count with IR, NMR, and mass-spectrometry evidence. For example, DoU = 1 plus a strong carbonyl IR band points to C=O, while DoU = 4 plus aromatic proton NMR signals points to an aromatic ring. For electrochemical or acid-base follow-up work, related chemistry tools such as the pKa calculator and Nernst equation calculator can help characterize functional groups and redox systems.
A DoU value of 4 is suggestive of an aromatic ring only when supported by spectroscopy; nonaromatic structures can also total four degrees.
Common mistakes to avoid
The most common mistakes are forgetting to include halogens, subtracting oxygen, or treating a triple bond as only one degree. Another frequent error is calculating from a condensed structure but missing implicit hydrogens. Always begin with a complete molecular formula, not just a skeletal drawing. If your value is odd, fractional, or inconsistent with the compound class, compare against primary teaching references such as OpenStax Organic Chemistry and re-check the atom count.
Do not subtract oxygen atoms in the standard DoU formula.
Do count every halogen atom in X.
Do add every nitrogen atom in N.
Do remember that C≡C and C≡N triple bonds count as two degrees.
Quick Reference Card
Degree of Unsaturation — Quick Reference
Quick reference • Degree of Unsaturation Calculator
DoU = (2C + 2 + N − H − X) / 2; O and S are ignoredValid range: Best for neutral closed-shell organic formulas containing C, H, N, O, S, and halogens.
Common Values
⚠ Watch Out
- •A fractional DoU usually signals an incorrect atom count or a formula outside the simple neutral-organic model.
- •Do not include oxygen in X; X means halogens only: F, Cl, Br, and I.
- •Do not forget implicit hydrogens when converting a skeletal structure to a molecular formula.
- •Do not conclude aromaticity from DoU alone; confirm with structure and spectroscopy.
Pro Tips
- →Compute DoU before drawing isomers to know how many rings and pi bonds must be placed.
- →Treat every halogen as a hydrogen replacement before applying the formula.
- →For formulas with nitrogen, add one hydrogen equivalent per nitrogen atom in the numerator.
- →Use DoU with IR carbonyl peaks, NMR aromatic signals, and mass-spectrometry formula assignments for faster structure solving.
FAQs
What is degree of unsaturation?
Degree of unsaturation is the number of rings plus pi-bond equivalents required by a molecular formula. One double bond or one ring counts as one degree; one triple bond counts as two degrees.
What is the formula for IHD or DoU?
For ordinary neutral organic formulas, DoU = (2C + 2 + N − H − X) / 2, where C is carbon atoms, H is hydrogen atoms, N is nitrogen atoms, and X is the total number of halogens.
Why is oxygen ignored in degree of unsaturation?
Oxygen is divalent and does not change the maximum hydrogen count in the same way carbon, nitrogen, or halogens do. Alcohols and ethers can be saturated without changing the CnH2n+2 comparison after oxygen is included.
How many degrees does a triple bond count for?
A triple bond contains two pi bonds, so it counts as two degrees of unsaturation. Acetonitrile, C2H3N, has DoU = 2 from its C≡N triple bond.
Does DoU prove a compound is aromatic?
No. DoU = 4 is common for a benzene ring, but the value alone only says the formula requires four ring/pi-bond equivalents. Aromaticity needs additional structural or spectroscopic evidence.
What if my DoU is fractional or negative?
A fractional or negative DoU usually means the formula, charge state, or atom counts were entered incorrectly for the simple neutral-organic formula. Re-check hydrogens, halogens, nitrogen count, and whether the compound is a radical or salt.