Skip to main content

Degree of Unsaturation Calculator

Ready to calculate
(2C + 2 + N − H − X) / 2.
Rings + π-Bonds.
15 Reference Compounds.
100% Free.
No Data Stored.

How it Works

01Count C and H

Enter the carbon and hydrogen counts from your molecular formula — the two required inputs

02Add N and X

Nitrogen atoms and halogens (F, Cl, Br, I) — both default to 0. Oxygen and sulfur are ignored (divalent)

03Apply the IHD Formula

DoU = (2C + 2 + N − H − X) / 2 — counts the H atoms missing vs the saturated reference CₙH₂ₙ₊₂

04Read Rings + π-Bonds

DoU equals the total count of rings + double bonds (triple bond = 2). Compare against 15 reference compounds

What is a Degree of Unsaturation Calculator?

The degree of unsaturation (DoU), also known as the Index of Hydrogen Deficiency (IHD) or Double Bond Equivalents (DBE), is the single most useful quick check in organic structure elucidation. From just a molecular formula — no spectra, no extra information — you can compute exactly how many rings + π-bonds (double or triple bonds) the molecule contains. The formula is one of the first things every organic chemistry student learns: DoU = (2C + 2 + N − H − X) / 2, where C is carbon count, H is hydrogen count, N is nitrogen count, and X is halogen count (F, Cl, Br, I). Oxygen and sulfur are correctly absent from the formula because they are divalent and don't change the saturation balance. Our Degree of Unsaturation Calculator implements this universal IHD formula with full validation (catches negative or non-integer results that signal an invalid formula), provides a 5-band classification, gives a structural interpretation, and shows how your DoU compares to 15 textbook reference compounds.

Just enter the four atom counts: carbon, hydrogen, nitrogen, and halogen. The calculator computes 2C + 2 (the maximum H count for a saturated acyclic alkane CₙH₂ₙ₊₂), adds the nitrogen contribution (each N adds 1 to the saturated reference because nitrogen is trivalent), subtracts your actual H count and halogen count (X behaves like H in the formula), and divides by 2. The result is a whole number that represents the count of rings plus π-bonds in the molecule. Each unit of DoU = 1 ring OR 1 double bond; a triple bond contributes 2 (it has two π-bonds). Famous values: methane = 0; ethylene = 1; acetylene = 2; cyclohexane = 1; benzene = 4 (1 ring + 3 C=C); naphthalene = 7; caffeine = 6; cholesterol = 5.

Designed for organic chemistry students learning structural elucidation, instrumental analysis labs interpreting molecular formulas from mass spectrometry, natural product chemists characterizing newly isolated compounds, computational chemists validating molecular sketches, and pharmaceutical scientists checking drug-like scaffolds, the tool runs entirely in your browser — no data is stored or transmitted.

Pro Tip: Pair this with our Molecular Weight Calculator to verify a proposed formula matches the observed mass-spec M⁺ peak, or our Combustion Analysis Calculator to derive the empirical formula from CHN combustion data first.

How to Use the Degree of Unsaturation Calculator?

Enter Carbon Count (C): The total number of carbon atoms in the molecular formula. Required input. Examples: methane CH₄ has C = 1; benzene C₆H₆ has C = 6; cholesterol C₂₇H₄₆O has C = 27.
Enter Hydrogen Count (H): The total number of hydrogen atoms. Required input. Examples: methane has H = 4; benzene has H = 6; ammonia NH₃ has H = 3.
Enter Nitrogen Count (N): Optional — defaults to 0 if blank. Each nitrogen atom adds 1 to the saturated reference count (because N is trivalent: it can hold one fewer H than C in the saturated formula). Examples: pyridine C₅H₅N has N = 1; caffeine C₈H₁₀N₄O₂ has N = 4.
Enter Halogen Count (X): Optional — defaults to 0 if blank. The total of F + Cl + Br + I atoms (combine them). In the IHD formula halogens behave exactly like H: subtract one from the reference. Examples: chloroform CHCl₃ has X = 3; CFC-11 (CCl₃F) has X = 4.
Press Calculate: The calculator computes 2C + 2 + N (the saturated reference), subtracts H + X (the actual atoms), divides by 2, and reports the integer DoU. Negative or fractional results indicate an invalid molecular formula and trigger an error.

How is degree of unsaturation calculated?

The IHD formula is built from the saturated-alkane reference and a simple atom-balance argument. Once you understand WHERE the formula comes from, it becomes easy to remember and adjust for new heteroatoms. Here's the complete derivation:

For any organic molecule, count how many H atoms it should have if it were fully saturated and acyclic. Compare to how many it actually has. The shortfall, divided by 2 (each ring or π-bond removes 2 H's), gives the degree of unsaturation.

Step 1 — The Saturated Reference

For C carbon atoms in an acyclic, fully saturated alkane (every bond a single bond, no rings), the molecular formula is:

CₙH₂ₙ₊₂ — so the saturated H count is 2C + 2.

Step 2 — Adjust for Nitrogen (Trivalent)

Nitrogen has 3 bonds (vs C's 4). Replacing a CH₂ unit with NH adds N, removes C, and removes 1 H net. But because we're using a "per nitrogen, add one H" framework: each N adds 1 to the saturated reference. So the saturated reference becomes:

2C + 2 + N

Step 3 — Adjust for Halogens (Monovalent)

Halogens (F, Cl, Br, I) form 1 bond, exactly like H. Each halogen replaces a hydrogen in the formula, so in the saturation accounting they count as H. We subtract X in the same place we subtract H:

Effective H count = H + X

Step 4 — Oxygen and Sulfur Cancel

Both O and S are divalent — they have 2 bonds. Inserting an O or S between two atoms doesn't change the H count. Example: ethane C₂H₆ vs ethanol C₂H₆O — same H count. So O and S do not appear in the IHD formula. They're invisible to the saturation accounting.

Step 5 — The Hydrogen Deficit

Compute the difference between the saturated reference and the actual H + X count:

Numerator = 2C + 2 + N − H − X

This is the H "deficit" — the number of H atoms missing relative to the saturated reference.

Step 6 — Divide by 2

Each ring removes 2 H atoms (forming the ring closure costs 2 H's that would have been at the chain ends). Each π-bond also removes 2 H atoms (both carbons go from CH to CH=). Dividing the deficit by 2 gives the count of rings + π-bonds:

DoU = (2C + 2 + N − H − X) / 2

What Each DoU Means

  • Each unit = 1 ring OR 1 double bond.
  • 1 triple bond = 2 DoU (it has 2 π-bonds: one σ + two π).
  • 1 carbonyl (C=O) = 1 DoU (it's a double bond).
  • 1 nitrile (C≡N) = 2 DoU.
  • 1 benzene ring = 4 DoU (1 ring + 3 C=C double bonds).
  • 1 cyclohexane ring = 1 DoU (1 ring, no π-bonds).
  • 1 fused bicyclic ring = 2 DoU (2 rings).

Validity Checks

  • Negative DoU: Your formula is impossible. You can't have more H's than the saturated reference allows.
  • Fractional DoU: Your formula is invalid for a neutral closed-shell molecule. It might be a radical (odd-electron), an ion, or simply mistyped.
  • Zero DoU: Fully saturated, acyclic. Examples: alkanes, primary alcohols, simple amines.

Generalization to Other Elements. The full formula uses valence: DoU = 1 + ½ × Σᵢ (vᵢ − 2)·nᵢ, where vᵢ is the valence and nᵢ is the count of element i. For C (v=4): contributes 2C. For H (v=1): contributes −H. For N (v=3): contributes +N. For O, S (v=2): contributes 0 (invisible). For halogens (v=1): contributes −X. For P (v=3 or 5): treat case-by-case.

Real-World Example

Degree of Unsaturation Calculator – Worked Examples

Consider benzene (C₆H₆) — the canonical aromatic compound. Inputs: C = 6, H = 6, N = 0, X = 0.
  • Step 1 — Saturated reference: 2C + 2 + N = 2 × 6 + 2 + 0 = 14. (A saturated C₆ alkane, hexane, has formula C₆H₁₄.)
  • Step 2 — Effective H count: H + X = 6 + 0 = 6.
  • Step 3 — Numerator: 14 − 6 = 8.
  • Step 4 — DoU: 8 / 2 = 4.
  • Interpretation: 4 rings + π-bonds. The known structure of benzene: 1 ring + 3 C=C double bonds = 4. ✓ Always 4 for any compound with one benzene ring.

Now consider caffeine (C₈H₁₀N₄O₂). Inputs: C = 8, H = 10, N = 4, X = 0. (Oxygen is ignored.)

  • Saturated reference: 2 × 8 + 2 + 4 = 22.
  • Effective H: 10 + 0 = 10.
  • Numerator: 22 − 10 = 12.
  • DoU: 12 / 2 = 6.
  • Interpretation: 6 rings + π-bonds. Caffeine's known structure: 2 fused rings (purine) + 4 double bonds (2 C=O carbonyls, 2 C=N) = 2 + 4 = 6. ✓

Now cholesterol (C₂₇H₄₆O). Inputs: C = 27, H = 46, N = 0, X = 0.

  • Saturated reference: 2 × 27 + 2 + 0 = 56.
  • Effective H: 46 + 0 = 46.
  • Numerator: 56 − 46 = 10.
  • DoU: 10 / 2 = 5.
  • Interpretation: 5 rings + π-bonds. Cholesterol's known structure: 4 fused rings (steroid backbone — A, B, C, D) + 1 C=C double bond (Δ⁵,⁶) = 4 + 1 = 5. ✓

Halogen example — chloroform (CHCl₃): C = 1, H = 1, N = 0, X = 3. Saturated: 2 + 2 = 4. Effective H + X: 1 + 3 = 4. Numerator: 0. DoU = 0. Confirmed — chloroform is fully saturated, acyclic. ✓

Validity check — CH₅: C = 1, H = 5. Saturated: 4. Numerator: 4 − 5 = −1. DoU = −0.5. Negative AND fractional → impossible formula. The calculator flags this as an error.

Who Should Use the Degree of Unsaturation Calculator?

1
Organic Chemistry Students: First-week structural elucidation tool — derive how many rings and π-bonds before drawing structures, narrowing the structural possibilities dramatically.
2
Mass Spectrometry Labs: Convert M⁺ molecular formula (from high-resolution MS) into a quick saturation check — reveals aromatic rings, polycyclic systems, before NMR confirmation.
3
Natural Product Chemists: Characterize new isolates from plants/marine sources — DoU plus NMR/IR/UV gives the count of rings and π-bonds without needing crystals for X-ray.
4
Medicinal Chemists: Quickly verify drug-like scaffolds match expected DoU — most marketed drugs have DoU between 4 and 12 (Lipinski-compatible space).
5
Computational Chemists: Validate molecular sketches before submission to DFT or MD simulations — wrong DoU means wrong number of bonds in your input file.
6
Forensic / QC Labs: Check whether an unknown compound's molecular formula is consistent with a proposed structure — fast sanity check on SMILES or Mol files.

Technical Reference

Names and Synonyms. The same quantity has multiple names in the literature: Degree of Unsaturation (DoU), Index of Hydrogen Deficiency (IHD), Double Bond Equivalents (DBE), and (older) Number of Rings and Double Bonds (NRDB). All are computed identically by the formula above. Modern organic chemistry textbooks (Vollhardt, Clayden, Smith) prefer "Degree of Unsaturation"; mass spectrometry papers prefer "DBE."

Generalized Valence Formula. For any neutral closed-shell molecule with elements i (each with valence vᵢ and count nᵢ), the IHD generalizes to: DoU = 1 + ½ × Σᵢ (vᵢ − 2)·nᵢ. For C (v=4): contributes 2nᶜ. For H (v=1): contributes −nᴴ/2. For N (v=3): contributes +nᴺ/2. For O, S (v=2): contributes 0 (the "−2" cancels). For halogens (v=1): contributes −nˣ/2. Add the leading +1 and you recover (2C + 2 + N − H − X) / 2 exactly.

Why Each Ring or π-Bond Removes 2 H. A ring closure requires forming a new C-C bond between two atoms that would otherwise terminate the chain — each terminal CH₃ loses one H, total 2 H. A π-bond converts CH₂-CH₂ (4 H's on the two C's) to CH=CH (2 H's on the two C's), losing 2 H. So both rings and π-bonds reduce H count by 2 each — and the IHD count goes up by 1 each.

Reference DoU Values for Famous Molecules:

  • Methane (CH₄), ethane (C₂H₆), propane (C₃H₈) ... all alkanes: DoU = 0
  • Ethylene (C₂H₄): 1 — one C=C
  • Acetylene (C₂H₂): 2 — one C≡C (= 2 π-bonds)
  • Cyclohexane (C₆H₁₂): 1 — one ring
  • Benzene (C₆H₆): 4 — one ring + 3 C=C
  • Cyclohexene (C₆H₁₀): 2 — one ring + one C=C
  • Pyridine (C₅H₅N): 4 — same as benzene; nitrogen replaces CH
  • Acetone (C₃H₆O): 1 — one C=O carbonyl (oxygen invisible to formula)
  • Acetic acid (CH₃COOH = C₂H₄O₂): 1 — one C=O
  • Naphthalene (C₁₀H₈): 7 — 2 fused benzene rings
  • Anthracene (C₁₄H₁₀): 10 — 3 linearly fused benzene rings
  • Caffeine (C₈H₁₀N₄O₂): 6 — 2 fused rings + 4 double bonds
  • Cholesterol (C₂₇H₄₆O): 5 — 4 steroid rings + 1 C=C
  • Glucose (C₆H₁₂O₆) open-chain: 1 — one C=O (aldehyde); cyclic form: 1 — one ring
  • Aspirin (C₉H₈O₄): 6 — benzene (4) + ester C=O (1) + carboxyl C=O (1)
  • Morphine (C₁₇H₁₉NO₃): 9 — 5 rings + 4 double bonds in the morphine alkaloid skeleton

Limitations. (1) Doesn't distinguish between rings and π-bonds — DoU = 4 could be benzene (1 + 3) or cyclobutadiene + 2 rings (impossible) or cubane (5 rings, but DoU = 5). Always combine with NMR (¹H multiplicity, ¹³C count, DEPT) and IR. (2) Phosphorus requires special handling — P(III) and P(V) have different valence; treat case-by-case. (3) Charged species and radicals won't give integer DoU — adjust formula to neutral closed-shell first. (4) Tautomers have the same DoU even though they have different bond patterns — DoU is a count, not a structure.

Use in Mass Spectrometry. When high-resolution MS gives a molecular formula (e.g., C₁₃H₁₂NO₃ from m/z = 246.07), the first thing structural chemists compute is DoU (here: 8). DoU 8 immediately suggests an aromatic ring + side groups; DoU 1-2 suggests aliphatic/alicyclic; DoU > 10 suggests polycyclic natural products. The "DBE filter" in mass-spec software (e.g., Xcalibur, Compass, MZmine) auto-rejects formulas with implausible DoU values (negative, > 25, etc.) when assigning unknowns.

Key Takeaways

Degree of Unsaturation (Index of Hydrogen Deficiency, IHD) is the universal one-number summary of a molecule's structural complexity: DoU = (2C + 2 + N − H − X) / 2. Each unit equals one ring OR one π-bond (a triple bond contributes 2). Oxygen and sulfur are invisible — they're divalent and don't change the saturation balance. The classic landmark values to memorize: alkanes = 0; cyclohexane and ethylene = 1; acetylene = 2; benzene = 4; naphthalene = 7. Use the ToolsACE Degree of Unsaturation Calculator to compute DoU for any neutral organic molecule, validate your molecular formula (negative or fractional DoU indicates an invalid formula), interpret structural features, and compare against 15 reference compounds spanning saturated alkanes through complex alkaloids and steroids. Bookmark it for organic chemistry coursework, mass-spectrometry data interpretation, natural-product characterization, and any time you need a fast structural sanity check.

Frequently Asked Questions

What is the Degree of Unsaturation Calculator?
It computes the degree of unsaturation (DoU) — also called the Index of Hydrogen Deficiency (IHD) or Double Bond Equivalents (DBE) — from your molecular formula using DoU = (2C + 2 + N − H − X) / 2. The result is the total count of rings + π-bonds in the molecule. Inputs: carbon count C and hydrogen count H (required), nitrogen N and halogen X counts (optional, default 0). Oxygen and sulfur don't appear because they're divalent.

Output: DoU value, a 5-band classification (saturated → very high), structural interpretation (likely features at this DoU), full calculation breakdown, and a comparison table against 15 reference compounds (methane, benzene, naphthalene, caffeine, cholesterol, aspirin, etc.). Validates against negative DoU (impossible formula) and fractional DoU (radical, ion, or typo).

Pro Tip: Use our Molecular Weight Calculator to verify a proposed formula matches the observed M⁺ peak.

What's the formula for degree of unsaturation?
DoU = (2C + 2 + N − H − X) / 2, where C = carbon count, H = hydrogen count, N = nitrogen count, and X = halogen count (F, Cl, Br, I combined). Oxygen and sulfur are NOT in the formula — they're divalent and don't affect saturation. Each unit of DoU equals one ring OR one π-bond. A triple bond contributes 2 (it has two π-bonds: one σ-bond + two π-bonds). The full generalized version: DoU = 1 + ½ × Σᵢ (vᵢ − 2)·nᵢ, summed over all atom types with their valences vᵢ.
Why does the formula ignore oxygen and sulfur?
Both oxygen and sulfur are divalent — they form 2 bonds. Inserting an O or S between two atoms doesn't change the number of H atoms. Compare ethane (C₂H₆) and ethanol (C₂H₆O) — same H count, just an O inserted between C and H. Or hexane (C₆H₁₄) vs hexanol (C₆H₁₄O) — identical H count. The IHD formula counts how H differs from the saturated reference; since O/S don't change that, they're omitted. Phosphorus is more complicated (variable valence) and isn't handled by the simple formula.
What does each value of DoU mean?
DoU = 0: Fully saturated, acyclic — alkanes, alcohols, amines. DoU = 1: 1 ring OR 1 double bond OR 1 carbonyl C=O. Examples: cyclohexane, ethylene, acetone. DoU = 2: 1 triple bond, 2 double bonds, 2 rings, or 1 ring + 1 double bond. DoU = 4: Often a benzene ring (1 ring + 3 C=C). DoU = 5-7: Polycyclic aromatic, fused-ring drug scaffolds. DoU ≥ 8: Complex natural products, alkaloids, steroids, polyaromatics.
Why does benzene have DoU = 4?
Benzene is C₆H₆. Saturated reference for 6 carbons (no N, no X): 2(6) + 2 = 14. Numerator: 14 − 6 = 8. DoU = 8 / 2 = 4. Structurally: benzene has 1 ring + 3 C=C double bonds = 4 units of unsaturation. So any compound containing one benzene ring contributes DoU = 4. Naphthalene (2 fused benzene rings) has DoU = 7 (not 8 — they share an edge so count one less). Toluene (C₇H₈) has DoU = 4 — same benzene ring, methyl is just an alkyl group.
What if I get a fractional or negative DoU?
Both indicate an invalid molecular formula. Negative DoU means the formula has more H atoms than the saturated reference allows — physically impossible (you can't pack more H than 2C + 2 + N when N is trivalent and C is tetravalent). Fractional DoU means the molecule isn't a neutral closed-shell organic compound — likely a radical (odd-electron count), an ion (with implicit charge), or simply a typo in the formula. The calculator flags both cases and refuses to display a result.
How do halogens fit in?
Halogens (F, Cl, Br, I) form 1 bond — exactly like H. So in the IHD accounting they're treated identically to H: subtract one from the saturated reference. Just sum F + Cl + Br + I to get X, then plug into the formula. Examples: chloroform CHCl₃ has C = 1, H = 1, X = 3 → DoU = (2 + 2 + 0 − 1 − 3)/2 = 0 (saturated, acyclic). Bromobenzene C₆H₅Br: C = 6, H = 5, X = 1 → DoU = (12 + 2 − 5 − 1)/2 = 4 (still benzene-like). DDT (C₁₄H₉Cl₅): DoU = (28 + 2 − 9 − 5)/2 = 8 (two benzene rings = 4 + 4).
How do I count nitrogen contributions?
Each nitrogen atom adds +1 to the saturated reference (because N is trivalent — it can hold 1 fewer H than C in the saturated formula). Example: methylamine CH₃NH₂ = CH₅N. Saturated reference: 2(1) + 2 + 1 = 5. H + X = 5 + 0 = 5. DoU = 0 (fully saturated). Pyridine C₅H₅N: 2(5) + 2 + 1 = 13; H + X = 5; DoU = (13 − 5)/2 = 4 (just like benzene). Acetonitrile CH₃CN = C₂H₃N: 2(2) + 2 + 1 = 7; H = 3; DoU = (7 − 3)/2 = 2 (the C≡N triple bond contributes 2).
Can DoU tell me the structure?
No — DoU is a COUNT, not a STRUCTURE. It tells you the total number of rings + π-bonds, but not which combination. DoU = 4 could be: (a) benzene ring, (b) two cyclobutene rings (impossible — strained), (c) one ring + 3 double bonds, (d) one triple bond + 2 double bonds + 0 rings. To pin down the structure, combine DoU with NMR (¹H multiplicity gives chain connectivity; ¹³C count reveals symmetry; DEPT differentiates CH/CH₂/CH₃), IR (C=O ≈ 1700 cm⁻¹, aromatic C=C ≈ 1600 cm⁻¹), and UV-Vis (aromatic systems absorb).
Why is my DoU different from "degree of unsaturation" in a textbook?
Make sure you're using the right formula. Some older textbooks omit nitrogen (DoU = (2C + 2 − H − X)/2) which gives wrong answers for nitrogen-containing molecules. The modern IHD formula always includes +N. Also, double-check that you've ignored oxygen and sulfur (they're divalent and don't appear). If using a generalized calculator with phosphorus, note that P(III) and P(V) require different treatments. Finally, ions and radicals don't follow the standard formula — you need to neutralize them first (add or remove H⁺ to balance charges).
How is DoU used in mass spectrometry?
When high-resolution mass spectrometry (HRMS) returns a molecular formula like C₁₃H₁₂NO₃ (m/z = 246.0766), structural chemists immediately compute DoU = (26 + 2 + 1 − 12 − 0)/2 = 8.5 — wait, fractional, so this can't be a neutral closed-shell molecule. They'd recheck whether it's an [M+H]⁺ ion (subtract H to get C₁₃H₁₁NO₃, DoU = 9 — plausible alkaloid). Mass-spec software (Xcalibur, Compass, MZmine, MassHunter) uses a "DBE filter" to auto-reject formula assignments with negative or implausibly high DoU when matching unknowns from databases.

Author Spotlight

The ToolsACE Team - ToolsACE.io Team

The ToolsACE Team

Our chemistry tools team implements the universal Index of Hydrogen Deficiency (IHD) formula — also known as Degree of Unsaturation (DoU) or Double Bond Equivalents (DBE) — that every organic chemistry student learns in their first week of structural elucidation. The calculator counts the total number of rings + π-bonds in any neutral closed-shell organic molecule using DoU = (2C + 2 + N − H − X) / 2, where C is carbon, H is hydrogen, N is nitrogen, X is halogens (F, Cl, Br, I), and oxygen/sulfur are correctly omitted (divalent atoms don't change the saturation balance). Output includes the DoU value, a complete step-by-step breakdown, a 5-band classification (saturated → very high), an interpretation of the most likely structural features, and a comparison table against 15 well-known reference compounds (methane, benzene, naphthalene, caffeine, cholesterol, aspirin, glucose, etc.).

Organic Structural ChemistryIndex of Hydrogen DeficiencySoftware Engineering Team

Disclaimer

The IHD formula assumes a neutral closed-shell molecule containing only C, H, N, O, S, and halogens. Phosphorus has variable valence (III or V) and isn't handled directly; treat case-by-case. The formula gives the TOTAL count of rings + π-bonds; it does not distinguish among possible structural arrangements (DoU = 4 could be benzene, fused cyclics, etc.). Combine with NMR/IR/MS for unique structure determination. Negative or fractional results indicate an invalid formula (impossible, radical, ion, or typo).