Chemistry · Organic Chemistry
Degree of unsaturation calculator icon showing a benzene ring with its double bonds

Degree of unsaturation calculator

This degree of unsaturation calculator finds the number of rings plus π bonds in a molecule, also called the index of hydrogen deficiency (IHD) or double bond equivalent (DBE), straight from its molecular formula. Type a formula such as C8H10N4O2, or enter the atom counts, and it shows the working and what the number tells you about the structure.

Write element symbols with the right capitals (Cl, not CL). Halogens count like hydrogen, nitrogen and phosphorus add half a degree each, and oxygen and sulfur are ignored, exactly as in the textbook formula.

Degree of unsaturation calculator from a molecular formula

DBE = 1 + ½ Σ nᵢ(vᵢ − 2), which reduces to C − H/2 − X/2 + N/2 + 1 for C, H, N, O and halogens.
Condensed formulas such as CH3CH2OH and brackets work too. A trailing + or − marks an ion.

Index of hydrogen deficiency from atom counts

Enter the numbers of atoms, or find how many hydrogens a formula needs for a given number of rings and π bonds.

How to use the degree of unsaturation calculator

Type a molecular formula into the first panel. The degree of unsaturation calculator reads it with the same parser as our Molar Mass Calculator, so condensed formulas (CH3CH2OH), brackets and Unicode subscripts all work. It sorts the atoms by valence, applies the formula, and explains the result: how many rings plus π bonds the molecule has and what that suggests. The second panel does the same from atom counts and can also run backwards, giving the number of hydrogens a formula must have for a chosen number of rings and π bonds, which is handy when you build candidate structures.

What is the degree of unsaturation?

An acyclic, saturated hydrocarbon has the formula CnH2n+2: every carbon is joined by single bonds and carries as many hydrogens as possible. Each ring or each π bond (one in a double bond, two in a triple bond) removes two hydrogens. Counting the missing pairs therefore tells you how many rings and π bonds a molecule contains, before you know anything else about its structure. The number goes by several names: degree of unsaturation (DoU), index of hydrogen deficiency (IHD), double bond equivalents (DBE) and, in mass spectrometry, rings plus double bonds (RDB).

DBE = C − H/2 − X/2 + N/2 + 1
General form: DBE = 1 + ½ Σ ni(vi − 2)

C, H, X and N are the numbers of carbon, hydrogen, halogen and nitrogen atoms, and in the general form ni and vi are the number and valence of each element. Halogens are monovalent, so they replace a hydrogen and count like one. Nitrogen is trivalent, so a saturated amine carries one extra hydrogen per N, which adds ½ to the count. Oxygen and sulfur are divalent; inserting them into a chain does not change the number of hydrogens, so they drop out. Silicon counts like carbon and phosphorus like nitrogen. LibreTexts (Organic Chemistry, section 7.2) derives these rules step by step.

Worked example with the degree of unsaturation calculator: caffeine

Caffeine, C8H10N4O2, is the default. DBE = 8 − 10/2 + 4/2 + 1 = 8 − 5 + 2 + 1 = 6. The oxygen atoms are ignored. The structure confirms it: caffeine has two fused rings (2), two C=O groups (2), one C=C (1) and one C=N (1), six in total. The textbook exercises in the LibreTexts section give the same answers as the degree of unsaturation calculator: C9H20 = 0, C7H8 = 4, C5H7Cl = 2 and C9H9NO4 = 6.

What the degree of unsaturation calculator result tells you

DBEPossible structural featuresExample
0Saturated, no ringsEthane C₂H₆, ethanol C₂H₆O, diethylamine C₄H₁₁N
1One ring or one double bond (C=C, C=O, C=N)Ethene C₂H₄, cyclohexane C₆H₁₂, acetone C₃H₆O, glucose C₆H₁₂O₆ (ring)
2One triple bond, two double bonds, two rings, or a ring plus a double bondAcetylene C₂H₂, cyclohexene C₆H₁₀, C₅H₇Cl
4Often a benzene ring (one ring + three C=C)Benzene C₆H₆, toluene C₇H₈, pyridine C₅H₅N, phenol C₆H₆O
5Benzene ring + one ring or double bondBenzaldehyde C₇H₆O, ibuprofen C₁₃H₁₈O₂, nicotine C₁₀H₁₄N₂
6Benzene ring + two more, or several rings and C=OAspirin C₉H₈O₄, caffeine C₈H₁₀N₄O₂
7Two fused aromatic ringsNaphthalene C₁₀H₈
9Polycyclic structuresMorphine C₁₇H₁₉NO₃ (5 rings + 4 C=C)

A DBE of 4 or more in a molecule with at least six carbons is a strong hint of an aromatic ring, which you can confirm with ¹H NMR signals near 7 ppm or IR bands near 1600 and 1500 cm⁻¹. A DBE of 1 with an IR band near 1715 cm⁻¹ points to a carbonyl rather than a ring or C=C. Cholesterol, C27H46O, gives 5: four rings and one C=C.

Half-integer and negative results in the degree of unsaturation calculator

For any neutral, closed-shell molecule the sum H + X + N is even and the degree of unsaturation is a whole number. If the degree of unsaturation calculator returns x.5, the formula is either mistyped or describes a radical or an ion. Mass spectrometrists use this on purpose: a protonated molecule [M+H]⁺ such as pyridinium, C5H6N⁺, gives 3.5, and adding 0.5 recovers the value 4 of neutral pyridine. Type the formula with a trailing + or − and the calculator suggests the corrected value. A negative result is impossible for a real molecule and means the formula has more hydrogens than the saturated skeleton can hold; the calculator stops with an explanation.

Limits of any degree of unsaturation calculator

Hypervalent atoms. The calculator treats P as trivalent and S as divalent, as most textbooks do. Bonds such as P=O in triphenylphosphine oxide or S=O in sulfones are then not counted: C18H15OP gives 12, the three benzene rings only. Metals and salts. Ionic compounds have no meaningful degree of unsaturation, so the calculator refuses formulas with metals other than Li, Na and K, which it treats as monovalent like hydrogen (as in butyllithium). It does not say which. A DBE of 1 cannot distinguish a ring from a double bond; for that you need spectroscopy or a hydrogenation test (H₂ adds to C=C but does not open rings).

Common mistakes when calculating the degree of unsaturation

Subtracting oxygen. Oxygen and sulfur are simply ignored. Adding halogens. Halogens are subtracted, like hydrogens. Subtracting nitrogen. Nitrogen is added (½ per atom). Counting a triple bond as one. It contributes two degrees. Using the empirical formula. CH (benzene’s empirical formula) gives 1.5, not 4; always start from the molecular formula, which the Empirical Formula Calculator can give you from percent composition and molar mass. The degree of unsaturation calculator avoids the first four automatically.

Related calculators

To get the molecular formula in the first place, use the empirical formula calculator and the molar mass calculator; the Oxidation Number Calculator helps with redox questions on the same formula.

Frequently asked questions

How do you calculate the degree of unsaturation?

Use DBE = C − H/2 − X/2 + N/2 + 1: count carbons, subtract half the hydrogens and halogens, add half the nitrogens, add one, and ignore oxygen and sulfur. For benzene, C₆H₆, that gives 6 − 3 + 1 = 4.

Is the index of hydrogen deficiency the same as the degree of unsaturation?

Yes. Index of hydrogen deficiency (IHD), degree of unsaturation, double bond equivalents (DBE) and rings plus double bonds all mean the number of rings plus π bonds, and the degree of unsaturation calculator returns all of them.

Why do halogens count as hydrogens?

A halogen atom forms one bond, so it takes the place of a hydrogen on the carbon skeleton. C₂H₅Cl therefore has the same degree of unsaturation (0) as C₂H₆.

Why is oxygen ignored in the degree of unsaturation?

Oxygen forms two bonds, so inserting it into a C–H or C–C bond does not change the number of hydrogens. Ethane C₂H₆ and ethanol C₂H₆O both have DBE = 0.

Can the degree of unsaturation calculator tell a ring from a double bond?

No. It counts rings and π bonds together. Catalytic hydrogenation adds H₂ only to π bonds, so the number of H₂ taken up, compared with the degree of unsaturation calculator result, gives the number of rings.

Is this degree of unsaturation calculator free?

Yes. The degree of unsaturation calculator runs in your browser, needs no sign-up and does not store or send the formulas you enter.

Results are for study, homework and lab preparation; check important results against your own data, and follow your lab’s safety rules. Back to chemistry calculators or CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: