On this page
Given a molecular formula such as C₈H₈O, can you say anything about the structure before drawing it? Yes. A two-line calculation tells you the total number of rings and π bonds, which cuts down the possible isomers and flags a likely benzene ring. This post derives the formula, works it for compounds with halogens, nitrogen and oxygen, and shows where it helps in exam questions.
Where does this fit in the syllabus?
The NCERT Class 11 chapter Hydrocarbons gives the general formulas CₙH₂ₙ₊₂ for alkanes, CₙH₂ₙ for alkenes and CₙH₂ₙ₋₂ for alkynes, and says that benzene's formula, C₆H₆, "indicates a high degree of unsaturation". It also describes the bromine and cold dilute KMnO₄ (Baeyer's reagent) tests for unsaturation. The JEE (Main) 2026 syllabus lists structural isomerism and empirical and molecular formulae, and the JEE (Advanced) 2026 brochure lists structural isomerism and the determination of molecular formulae. Check the syllabus for your exam year.
The degree of unsaturation formula is not printed in NCERT, but it is a direct consequence of those general formulas.
Where does the formula come from?
An open-chain alkane with n carbons has 2n + 2 hydrogens. Each double bond removes two hydrogens (CₙH₂ₙ). So does closing a ring: cyclohexane and hex-1-ene are both C₆H₁₂. A triple bond removes four (CₙH₂ₙ₋₂), so it counts as two.
So for a hydrocarbon:
Degree of unsaturation = (2C + 2 − H) ÷ 2
Then adjust for other atoms:
Halogens (X) take the place of a hydrogen, so count them as H.
Oxygen and sulphur sit inside chains without changing the hydrogen count, so ignore them.
Nitrogen brings one extra hydrogen with it, so subtract one H for each N.
DU = C − H/2 − X/2 + N/2 + 1
The result is the number of rings plus the number of π bonds. It must be a whole number; a half means the formula is wrong.
Worked examples
Formulas below are from PubChem.
Benzene, C₆H₆: 6 − 3 + 1 = 4. One ring and three C=C.
Cyclohexene, C₆H₁₀: 6 − 5 + 1 = 2. One ring and one C=C.
Chlorobenzene, C₆H₅Cl: 6 − 2.5 − 0.5 + 1 = 4. The Cl counts as an H, so this matches benzene.
Pyridine, C₅H₅N: 5 − 2.5 + 0.5 + 1 = 4. One ring and three double bonds, one of them C=N.
Acetophenone, C₈H₈O: 8 − 4 + 1 = 5. Benzene accounts for 4 and the C=O for 1. The oxygen does not enter the sum.
Naphthalene, C₁₀H₈: 10 − 4 + 1 = 7. Two fused rings and five C=C.
Caffeine, C₈H₁₀N₄O₂: 8 − 5 + 2 + 1 = 6. Two rings plus four double bonds (two C=O, one C=C and one C=N).
How does it help with isomer questions?
Take C₄H₆. DU = 4 − 3 + 1 = 2. Every structure must have two rings or π bonds in total, so the options include but-1-yne and but-2-yne (one triple bond), buta-1,3-diene (two C=C) and cyclobutene (one ring and one C=C). You can rule out anything with one double bond and no ring straight away.
Combined with the empirical formula from combustion data, this is often the first step in a structure problem. Our post on empirical and molecular formula problems covers getting that formula, and structural isomerism types covers drawing the isomers.
What can the formula not tell you?
It gives the total of rings and π bonds, not the split. C₆H₁₂ has DU = 1, which fits both hex-1-ene and cyclohexane. A chemical test separates them: in NCERT's bromine test, the alkene discharges the colour of bromine as it adds across the double bond, while the saturated ring does not.
Aromatic rings are a special case. NCERT notes that aromatic hydrocarbons, despite their unsaturation, mainly undergo substitution rather than addition, so the bromine test is not a reliable way to count benzene's double bonds.
Common mistakes
Counting oxygen as if it removed hydrogens.
Forgetting that a triple bond counts as two.
Adding, not subtracting, the halogen term.
Treating DU as the number of double bonds only, and forgetting rings.
If you can calculate DU but still struggle to turn it into a structure, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning.
A practice routine
Find the DU of C₇H₈, C₃H₃N, C₂H₃Cl and C₇H₆O₂. Check: 4, 3, 1 and 5.
For C₅H₈, draw four isomers that fit and say which have a ring.
Take five structures from your textbook, write their formulas, and check that DU matches the rings and π bonds you can see.
On every structure problem this week, write the DU before drawing anything.
Before your next organic test, practise the formula on ten molecular formulas until it takes under thirty seconds each.



