On memorizing hydrocarbon formulas without losing your mind
The general formulas for hydrocarbons are not complicated, but they trip people up because students try to memorize every variant at once instead of understanding the pattern underneath. The core idea is simple: each carbon forms four bonds, and any bond not used to connect to another carbon gets filled with hydrogen. Once you see that, the formulas stop being arbitrary strings of letters.
Formulas Gerais dos Hidrocarbonetos
Aqui está o que você realmente precisa saber e saber usar: Alcanos (cadeia aberta, ligações simples): CnH2n+2
Alcenos (com uma dupla): CnH2n Alcinos (com uma tripla): CnH2n-2
Cicloalcanos (anel saturado): CnH2n Alcadienos (duas duplas): CnH2n-2
Arenos monocíclicos (anel aromático): CnH2n-6 That last one trips people up constantly. CnH2n-6 only applies to a single benzene ring with alkyl substituents. Add a second ring and the formula changes entirely. I once had a student submit C14H10 as the formula for naphthalene using the arenos rule and get it wrong because naphthalene is bicyclic and follows a completely different hydrogen count. Naphthalene is C10H8, not anything you'd get from CnH2n-6.
How the pattern actually works
Start with an open chain of n carbons connected only by single bonds. Each internal carbon uses two of its four valences to bond to neighboring carbons, leaving two for hydrogen. The two end carbons use only one valence for carbon-carbon bonding, leaving three each. So you get 2(n-2) hydrogens from the internals plus 6 from the ends, which simplifies to 2n+2. That is where the alkane formula comes from. It is not a trick. It is basic valence accounting. Now introduce a double bond. Two adjacent carbons each use an extra bond to each other, so they each lose one hydrogen. One double bond removes two hydrogens total from the alkane formula, giving you 2n+2 minus 2, which is 2n. That is the alkene formula. A triple bond removes four hydrogens, leaving 2n-2, which is the alkyne. Each pi bond or ring removes two hydrogens from the saturated baseline. That is the single rule that generates every formula on this list.
👉 Clique no botão abaixo para saber mais sobre o assunto!
The degree of unsaturation shortcut
Before I started writing this out fully, I used to calculate the degree of unsaturation for any molecular formula to quickly figure out what class of hydrocarbon it belonged to. The formula is: DU = (2C + 2 - H) / 2
Where C is the number of carbons and H is the number of hydrogens. For C6H12, that gives (12 + 2 - 12) / 2 = 1. One degree of unsaturation means either one double bond or one ring. You cannot tell which without more information, and that is an important limitation. If you get C6H10, that is two degrees — could be two double bonds, one triple bond, one double bond plus one ring, or two rings. The degree of unsaturation narrows it down but does not identify the structure uniquely. I used to skip drawing out the structures entirely and rely on this shortcut during exams. It works for quick checks but failed me once when a question gave me C7H8 and asked me to name the compound. The DU calculation gave 4, which for an aromatic context immediately suggests toluene, but I almost wrote cycloheptatriene because I did not force myself to check whether the structure was actually cyclic conjugated. A 30-second structure sketch would have prevented that mistake.
Common mistakes I still see people make
Applying the alkene formula CnH2n to cyclic compounds and calling it a day is the most frequent error. Cyclohexane and hexene both have the formula C6H12, but they are structurally different. The formula alone does not distinguish them. If a problem says "an acyclic hydrocarbon with formula C5H10," you know it must be an alkene because a saturated open chain with five carbons would be C5H12. Remove two hydrogens and you get one degree of unsaturation in an open chain, which means a double bond. Another mistake: using CnH2n-6 for any aromatic compound. This formula is specifically for monocyclic arenes with the benzene core. Polycyclic aromatics like anthracene (C14H10) or phenanthrene (also C14H10) do not follow that pattern. Benzene itself is C6H6, which fits: 2(6) - 6 = 6. But add another fused ring and the hydrogen count drops faster than the formula predicts.
A third one that costs points: writing CnH2n+2 for branched alkanes. Branching does not change the molecular formula. Isobutane is still C4H10, same as n-butane. The general formula applies to all acyclic saturated hydrocarbons regardless of branching. Only rings and pi bonds change the hydrogen count.
What the formulas cannot do for you
These general formulas tell you the molecular composition, not the structure. C4H8 could be but-1-ene, but-2-ene, 2-methylprop-1-ene, cyclobutane, or methylcyclopropane. All share the same general formula CnH2n, which covers both alkenes and cycloalkanes. If you need to distinguish between them, you need spectroscopic data or reaction behavior, not a general formula. Another hard limit: these formulas assume pure hydrocarbons. Add a heteroatom like nitrogen, oxygen, or a halogen and everything changes. Oxygen does not affect the hydrogen count in the degree of unsaturation calculation, but nitrogen adds one to the numerator. A halogen counts as hydrogen. These extensions exist but are outside the scope of the basic hydrocarbon formulas and add enough complexity that you should master the pure hydrocarbon cases first.
A practical way to work with these
When I am given a hydrocarbon name and need to write the formula, I no longer reach for memory first. I draw the carbon skeleton, add hydrogens to satisfy four bonds per carbon, and count. For small molecules this takes about 15 seconds and is less error-prone than relying on the formula, especially when rings and branches are involved. For larger molecules or when checking a molecular formula against a name, I use the degree of unsaturation as a verification step, not a replacement for structural thinking. The formulas are tools, not crutches. They work reliably within their domain. Outside that domain, they give you wrong answers quickly and confidently, which is worse than having no answer at all.