Double Bond Equivalent Calculator

Find a molecule's double bond equivalent from its C, H, X and N counts.

Any non-negative whole-number counts, including formulas with no carbon at all.

Updated October 18, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

What the DBE counts

A molecular formula tells you which atoms are present, not how they are joined. The double bond equivalent closes part of that gap with a single number: the amount of unsaturation the formula forces on the structure, counting every double bond, every triple bond and every ring as one shared budget.

The same quantity appears in textbooks under other names — degree of unsaturation, index of hydrogen deficiency, rings plus pi bonds — and all of them mean this one count. It answers a question that comes up early in almost every structure problem: how much unsaturation must be in there, before any spectrum has been interpreted?

  • Students checking a formula against a structure they have drawn, or against the molecular ion in a mass spectrum.
  • Analysts who have an elemental analysis or a molecular formula and need to know how many rings and pi bonds the compound can hide.
  • Anyone planning a formula rather than analysing one: the count tells you how many hydrogens a given carbon skeleton is allowed to keep.

Only four counts go in — carbon, hydrogen, halogen and nitrogen. Oxygen is never asked for, and no unit conversion is involved: the answer is a plain count, exact for whole numbers of atoms.

Working a formula

Start from the molecular formula — the real one, with every atom in the molecule, not the simplified ratio. If all you have is a percentage breakdown by mass, turn it into a formula first with the empirical formula calculator, then come back: the two formulas do not always give the same count.

1

Count the carbon atoms

Enter the number of carbon atoms as C\mathrm{C}.

2

Count the hydrogen atoms

Enter the number of hydrogen atoms as H\mathrm{H}.

3

Count the halogens

Fluorine, chlorine, bromine, iodine and astatine all go in the same box, as X\mathrm{X}. Count them together with the hydrogens in your head: for this arithmetic they behave identically.

4

Count the nitrogen atoms

Enter the number of nitrogen atoms as N\mathrm{N}. Oxygen is not requested in any form.

5

Read the result

The double bond equivalent appears as the last box, worked out from the four counts. A zero means no ring and no pi bond; any whole number above zero is the number of rings and pi bonds combined.

Enter 0, not nothing, for a missing element

A formula with no halogens still has a halogen count — it is zero. Leaving that box empty leaves the calculation incomplete, while a typed 00 is a real count that releases the answer.

A first example

Benzene, C6H6\mathrm{C_6H_6}: six carbons, six hydrogens, no halogen and no nitrogen.

C=6\mathrm{C} = 6H=6\mathrm{H} = 6X=0\mathrm{X} = 0N=0\mathrm{N} = 0
DBE=6+1−3−0+0\mathrm{DBE} = 6 + 1 - 3 - 0 + 0==44

Four units. Benzene spends all four inside its ring: three carbon–carbon double bonds and the ring closure itself. That is the reading to keep in mind — the answer is a budget, and the structure is what spends it.

The formula and each element

DBE=C+1\mathrm{DBE} = \mathrm{C} + 1−H2- \frac{\mathrm{H}}{2}−X2- \frac{\mathrm{X}}{2}+N2+ \frac{\mathrm{N}}{2}

Every symbol is a count of atoms, so the whole equation only ever needs four numbers.

DBE\mathrm{DBE}Double bond equivalentthe count itself: rings plus pi bonds.
C\mathrm{C}Carbon atomsthe skeleton that rings and pi bonds have to be built from, which is why it carries the largest term.
H\mathrm{H}Hydrogen atomseach pair fills one bonding position a ring or a pi bond would otherwise take, so two hydrogens cost one unit.
X\mathrm{X}Halogen atomscounted exactly like hydrogen: they occupy the same bonding positions, so they subtract in the same way.
N\mathrm{N}Nitrogen atomseach one brings a bond more than it needs, so it adds half a unit instead of removing one.

A bromine for a hydrogen, and the count does not move

C10H16\mathrm{C_{10}H_{16}}→DBE=3\rightarrow \mathrm{DBE} = 3C10H15Br\mathrm{C_{10}H_{15}Br}→DBE=3\rightarrow \mathrm{DBE} = 3

Why oxygen is not in the equation

Oxygen forms two bonds, so it slots into a chain or hangs off a carbonyl without changing how much room the skeleton has for rings and pi bonds. A formula with one oxygen and a formula with six oxygens can carry exactly the same unsaturation.

The pi bond of a C=O\mathrm{C{=}O} group is still counted, because the count follows pi bonds wherever they sit — it simply arrives through the hydrogen total. Ethanol has six hydrogens, acetaldehyde has four, and that missing pair is the carbonyl's one unit.

The same oxygen count, one unit apart

C2H6O\mathrm{C_2H_6O}→DBE=0\rightarrow \mathrm{DBE} = 0C2H4O\mathrm{C_2H_4O}→DBE=1\rightarrow \mathrm{DBE} = 1

Working backwards on paper

The page takes four counts and returns the DBE. When you are planning a formula instead, the same equation answers the reverse questions: how many hydrogens may a skeleton carry for a target count?

Solved for hydrogen

H=2(C+1−DBE)\mathrm{H} = 2\left(\mathrm{C} + 1 - \mathrm{DBE}\right)+N−X+ \mathrm{N} - \mathrm{X}

Solved for carbon

C=DBE−1+H+X−N2\mathrm{C} = \mathrm{DBE} - 1 + \frac{\mathrm{H} + \mathrm{X} - \mathrm{N}}{2}

The benzene target, worked from the hydrogen side

H=2 (6+1−4)\mathrm{H} = 2\,(6 + 1 - 4)==66→C6H6\rightarrow \mathrm{C_6H_6}

The parity rule the formula hides

Because the hydrogen, halogen and nitrogen totals are halved, the result comes out as a whole number only when H+X+N\mathrm{H} + \mathrm{X} + \mathrm{N} is even. An odd sum leaves a half-unit behind, and that fraction is meaningful rather than a rounding artefact: it is the signature of an odd number of electrons.

A whole number, or a signal

DBE∈Z\mathrm{DBE} \in \mathbb{Z}  ⟺  \iffH+X+N\mathrm{H} + \mathrm{X} + \mathrm{N} even\text{ even}

The fraction is not rounded away, and it is not an error in the arithmetic — see the two flagged results in the last section for what it means and how to clear it.

Spending the units

The result is a budget, not a picture. It says how many rings and pi bonds the structure must contain in total, and leaves it to you — or to the rest of the evidence — to decide where each unit goes.

DBE=nrings+nπ\mathrm{DBE} = n_{\mathrm{rings}} + n_{\pi}

Rings and pi bonds are interchangeable here: a double bond costs one unit, a triple bond costs two, and closing a ring costs one. That is why a single number can describe several very different structures.

DBEOne way to spend itMolecules that do
0No ring and no pi bondCH4\mathrm{CH_4}C2H6O\mathrm{C_2H_6O}
1One ring, or one pi bondC6H12\mathrm{C_6H_{12}}C2H4\mathrm{C_2H_4}CH2O\mathrm{CH_2O}
2One triple bond, or two pi bondsC2H2\mathrm{C_2H_2}C4H6\mathrm{C_4H_6}
3Three pi bonds, or two pi bonds plus a ringC6H8\mathrm{C_6H_8}C10H14Br2\mathrm{C_{10}H_{14}Br_2}
4A benzene ring: three pi bonds plus the ringC6H6\mathrm{C_6H_6}C7H8\mathrm{C_7H_8}
5A benzene ring plus one more unitC8H8\mathrm{C_8H_8}C9H10\mathrm{C_9H_{10}}
6A benzene ring plus two more unitsC9H8\mathrm{C_9H_8}C8H6\mathrm{C_8H_6}

Each row lists one arrangement out of many. A count of 2 is equally satisfied by a single triple bond and by two separate double bonds, and no arithmetic can tell those apart.

How to spend it in practice

Deduct the obvious group first

A benzene ring takes four units on its own, so a count of 4 or more in a formula with few oxygens usually starts there.

A triple bond takes two units at once

A remaining count of 2 with no rings points at a C≡C\mathrm{C{\equiv}C} or a C≡N\mathrm{C{\equiv}N} rather than two separate double bonds.

Re-derive the hydrogens before drawing

Moving a halogen in or out of a candidate structure changes the hydrogen count — and therefore the very number you started from.

Leave nothing unspent

A candidate structure that uses fewer units than the count demands is wrong, however stable it looks.

The count is necessary, never sufficient

Four units in C7H8\mathrm{C_7H_8} is the classic aromatic set, but it is not proof of a benzene ring: any arrangement of four rings and pi bonds fits the arithmetic. Treat the count as a filter that removes impossible candidates, not as an identification.

Worked examples

Oxygen does not enter, but it still matters

Glucose, C6H12O6

A biochemistry problem asks whether the open-chain form of glucose or its six-membered ring is the one to draw. The formula has six oxygens and the calculator never asks for them, which is the point being tested.

What you enter

Six carbon atoms, twelve hydrogen atoms, no halogen, no nitrogen. The oxygen count is not entered at all.

DBE=6+1−6−0+0\mathrm{DBE} = 6 + 1 - 6 - 0 + 0==11

One unit, spent either as the ring in the cyclic form or as the aldehyde C=O in the open chain. Both structures satisfy the same formula and the same count, and the DBE is what tells you that exactly one of those features is present.

Nitrogen adds to the total

Arginine, C6H14N4O2

An amino acid with four nitrogens, two oxygens and no rings. Anyone who drops the nitrogen term predicts a fully saturated skeleton and then cannot explain the carbonyl or the guanidine group.

What you enter

Six carbon atoms, fourteen hydrogen atoms, no halogen, four nitrogen atoms.

DBE=6+1−7−0+2\mathrm{DBE} = 6 + 1 - 7 - 0 + 2==22

Two units: the carboxyl C=O and the C=N of the guanidine group. Leave the nitrogens out of the arithmetic and the same formula reports 0, which would be wrong by two.

Checks and common mistakes

A second route to the same number

The count can also be reached from the most hydrogens the skeleton could possibly hold — the saturated, acyclic limit — which makes a good independent check when an answer surprises you.

Hmax⁡=2 C+2+N−X\mathrm{H}_{\max} = 2\,\mathrm{C} + 2 + \mathrm{N} - \mathrm{X}\qquadDBE=Hmax⁡−H2\mathrm{DBE} = \frac{\mathrm{H}_{\max} - \mathrm{H}}{2}

Read it as: every pair of hydrogens the molecule is missing, compared with the fully saturated skeleton, is one unit. Benzene's limit is 2×6+2=142 \times 6 + 2 = 14 hydrogens; it has 6, so (14−6)/2=4(14 - 6)/2 = 4. That is the same 4 the main formula gives, reached from a different direction.

Use the molecular formula, not a simplified ratio

An empirical formula describes fewer atoms, so it answers a different question. Benzene's ratio is CH\mathrm{CH}, which reports 1.51.5 — not because the arithmetic failed, but because that ratio is not benzene. The trap is easy to miss elsewhere: glucose's ratio CH2O\mathrm{CH_2O} reports 1, exactly the same figure the real formula gives.

Check the halogens and the nitrogen every time

Halogens are the easiest atoms to forget, because they are often lumped into a structural drawing as a single letter. In C10H14Br2\mathrm{C_{10}H_{14}Br_2} the two bromines lower the count by one, from 4 to 3. Nitrogen moves it the other way, in half units before the halving cancels them out.

Match the formula against the analysis

If the formula came from combustion data or a reported elemental analysis, compare its calculated mass percentages with the measured ones using the percent composition calculator. A formula that is slightly off will still produce a plausible-looking whole number, and the DBE cannot warn you about that — it only checks the arithmetic inside the formula you gave it.

A worked sanity check

Hexane is C6H14\mathrm{C_6H_{14}}: the saturated limit for six carbons is 14, so the molecule is missing nothing and the count is 0. Cyclohexane is C6H12\mathrm{C_6H_{12}}, two hydrogens short of the same limit, so it carries exactly one unit — the ring. Same carbon count, different hydrogen count, different answer, and both make chemical sense.

Questions

Q

The molecule contains a C=O group — does the DBE count it?

Yes. The count follows pi bonds wherever they are, so a carbonyl, an imine (C=N\mathrm{C{=}N}) and a nitrile (C≡N\mathrm{C{\equiv}N}) all contribute, and a nitrile contributes two.

What oxygen does not do is appear in the arithmetic. The carbonyl's unit arrives through the hydrogen total instead: compare ethanol C2H6O\mathrm{C_2H_6O} at 0 with acetaldehyde C2H4O\mathrm{C_2H_4O} at 1, where the two missing hydrogens are precisely the C=O\mathrm{C{=}O} bond.

Q

Two different molecules can share a DBE — which one do I have?

The count cannot choose. C6H12\mathrm{C_6H_{12}} at 1 is cyclohexane, 1-hexene, or any other arrangement that uses one unit, and they are genuinely different compounds with different boiling points and different reactions.

Use the DBE the way it is meant to be used: to rule candidates out. A proposed structure that needs five units when the formula allows four is finished; the ones that survive are then separated by the other evidence you have.

Assumptions and limits

What the four boxes assume

  • One neutral, closed-shell molecule given by its molecular formula. Salts, hydrates and solvates should be taken apart first: run the count for the molecule you care about, not for the whole formula unit.
  • A count, not a structure. The result cannot say which atoms are bonded, cannot separate isomers such as cyclohexane and 1-hexene, and cannot identify a compound on its own.
  • No mass, no formula and no structure is produced here — the page only converts the formula you already have into an unsaturation budget. Once the formula is settled, the molar mass calculator turns it into grams per mole for weighing and solution work.

Two results that are not answers

A negative value

The formula as typed cannot exist: the hydrogen and halogen atoms together outnumber the bonding positions the carbon and nitrogen skeleton can offer. A five-carbon skeleton has a saturated limit of 12 hydrogens, and this one asks for eight more than that.

C5H20\mathrm{C_5H_{20}}→DBE=−4\rightarrow \mathrm{DBE} = -4

Recount the hydrogens and the halogens — this is almost always a transcription slip rather than a real species.

A half-unit value

H+X+N\mathrm{H} + \mathrm{X} + \mathrm{N} is odd, so the species has an odd number of electrons. That is either a radical, or an ion whose charge has not been accounted for: a cyclopentadienyl anion typed as its bare formula reports a half-unit for exactly this reason.

C5H5\mathrm{C_5H_5}→DBE=3.5\rightarrow \mathrm{DBE} = 3.5

Check whether the species is charged or a radical — the four boxes describe a neutral molecule.

Both cases keep their number on screen and are reported with an explanation rather than being replaced by a blank, because the size of the error is often the fastest clue to what went wrong in the count. Fix the input rather than interpreting the fraction.

In coursework, write out the substitution — C\mathrm{C}, H\mathrm{H}, X\mathrm{X} and N\mathrm{N} in the equation — rather than only the final figure. The bookkeeping of the monovalent atoms is where marks are lost, and it is also where a wrong count becomes obvious before the structure is built.

Double Bond Equivalent Calculator - Rings and Pi Bonds from a Formula