Not sure which lesson to do first? Find your level and get a plan →

Chemistry · Structure of Matter · Grade 9-12

Hydrocarbon

A hydrocarbon is an organic compound made only of carbon and hydrogen atoms.


Quick Answer

A hydrocarbon is an organic compound made only of carbon and hydrogen atoms. Use the idea to classify fuels and simple organic molecules, name them by family, and write their combustion equations. In open chains, alkanes have only single C–C bonds (CnH2n+2), alkenes have one C=C double bond (CnH2n), and alkynes have one triple bond (CnH2n−2). Burned completely in oxygen, every hydrocarbon gives carbon dioxide and water.

Why This Matters

Hydrocarbons are most of what we burn for energy: natural gas, propane, petrol, diesel, jet fuel, and candle wax. Knowing they contain only C and H lets you write the combustion equation, work out how much CO₂ and water a fuel produces, and see why burning with too little air makes carbon monoxide. The double bond in alkenes is also what lets ethene link up into polyethylene.

Intuitive Explanation

Start with one carbon and give it four hydrogens: methane, CH₄, the main gas in a kitchen stove. Link two carbons and fill the remaining bonds with hydrogen: ethane, C₂H₆. Three carbons give propane, C₃H₈. Each extra carbon adds a CH₂ unit, so alkanes follow CnH2n+2; for octane, n=8 gives C₈H₁₈. Longer chains have stronger dispersion forces, so alkanes move from gases (1 to 4 carbons) to liquids like petrol (roughly 5 to 12) to waxy solids (about 20 and above).

If two neighbouring carbons share a double bond, each needs one fewer hydrogen: ethene is C₂H₄, and alkenes follow CnH2n. A triple bond removes two more: ethyne (acetylene, the welding gas) is C₂H₂. These are the unsaturated hydrocarbons. Their multiple bonds can open and add other atoms, which is why ethene quickly turns orange bromine water colourless while ethane leaves it orange.

The definition is strict: only carbon and hydrogen. Ethanol, C₂H₅OH, has a chain much like ethane's, but its oxygen makes it an alcohol, not a hydrocarbon. Glucose and PVC are carbon-based too, but their oxygen or chlorine rules them out. Read every symbol in the formula before you apply the label.

Think of it like this. A hydrocarbon is a carbon chain dressed only in hydrogen: carbons hold hands in a line, and every spare hand grabs a hydrogen. Where two carbons hold on with two hands at once (a double bond), each has one fewer hand free for hydrogen, which is why alkenes carry fewer H atoms than alkanes. Add any other element and it stops being a hydrocarbon.

Core idea. A hydrocarbon contains only carbon and hydrogen; its carbon-carbon bonds (single, double, or triple) set its family and its hydrogen count, and complete combustion of any hydrocarbon gives carbon dioxide and water.


When to Use

Use hydrocarbon when a formula contains only C and H, or when a question asks you to classify a molecule as an alkane, alkene, or alkyne, name it, or write a fuel's combustion equation. Compare the hydrogen count with 2n+2, 2n, and 2n−2. If the formula also contains O, N, or a halogen, the molecule belongs to a functional-group family, such as alcohols or carboxylic acids, instead.

Tip. Ask: Does the molecule contain carbon and hydrogen and no other element at all?

How to Recognize It

Hydrocarbon is a test of composition, so read the formula atom by atom before deciding, then let the carbon-carbon bonds tell you the family.

  1. Does the formula contain any element besides C and H, such as O, N or Cl?

    A yes rules it out: ethanol, C2H5OH, is organic but not a hydrocarbon, because its –OH is a Functional Group. Only C and H means it is one.

  2. Does the formula fit CnH2n+2, as C3H8 does?

    Yes makes it an open-chain alkane with only single bonds. Two hydrogens fewer, as in C3H6, means one double bond or a ring, and four fewer suggests a triple bond.

  3. Is the question about what forms when the substance burns?

    Then you also need Combustion: complete burning of any hydrocarbon gives carbon dioxide and water, while limited oxygen can give carbon monoxide or soot.

  4. Is the molecule a long chain made by joining many small repeating units?

    Then Polymer is the better label, even when the chain is all carbon and hydrogen, as in polyethylene; hydrocarbon only describes what it is made of.

Hydrocarbon vs Organic Chemistry vs Functional Group vs Combustion

Fuels are hydrocarbons, hydrocarbons are organic, and one added oxygen atom changes the label, so these blur. Ask whether you are checking composition, the whole field, an added group of atoms, or a burning reaction.

Hydrocarbon

Meaning
A hydrocarbon is a compound containing only carbon and hydrogen, sorted into alkanes, alkenes and alkynes by its carbon-carbon bonds.
Key test
Only C and H appear in the formula.
Formula
CnH2n+2
Example
Octane, C8H18, a main part of petrol, is an alkane.

Organic Chemistry

Meaning
Organic chemistry is the study of carbon compounds with carbon-hydrogen frameworks, including those that also contain oxygen, nitrogen or halogens.
Key test
Wider: other elements are allowed.
Example
Glucose, C6H12O6, is organic but not a hydrocarbon.

Functional Group

Meaning
A functional group is a cluster of atoms that gives a molecule typical reactions, such as the C=C of alkenes or the –OH of alcohols.
Key test
Groups with O, N or halogens end the hydrocarbon label; C=C does not.
Example
Swapping one H in ethane for –OH turns the hydrocarbon into ethanol, an alcohol.

Combustion

Meaning
Combustion is a fast reaction of a fuel with oxygen that releases energy as heat and light.
Key test
A reaction, not a type of molecule.
Formula
CH4+2O2→CO2+2H2O
Example
A gas stove burns methane to heat a pan, making carbon dioxide and water vapour.

Worked Examples

Example 1 — Classify four formulas

Easy

Classify each as an alkane, alkene, alkyne, or not a hydrocarbon: C₄H₁₀, C₃H₆, C₂H₂, C₂H₆O. Assume open chains.
Show the steps and the answer
  1. C₂H₆O contains oxygen, so it is not a hydrocarbon.

    A hydrocarbon may contain only C and H; this is the formula of ethanol (or dimethyl ether).

  2. C₄H₁₀: n=4 and 2n+2=10, so it is an alkane (butane).

    A hydrogen count of 2n+2 means every C–C bond is single.

  3. C₃H₆: n=3 and 2n=6, so it is an alkene (propene).

    Two hydrogens fewer than the alkane C₃H₈ means one C=C double bond.

  4. C₂H₂: n=2 and 2n−2=2, so it is an alkyne (ethyne).

    Four hydrogens fewer than ethane, C₂H₆, means a C≡C triple bond.

Answer: C₄H₁₀ alkane; C₃H₆ alkene; C₂H₂ alkyne; C₂H₆O not a hydrocarbon.

Takeaway: Check for other elements first, then compare the H count with 2n+2, 2n, and 2n−2.

Example 2 — One formula, two structures

Standard

Two colourless liquids both have the formula C₆H₁₂. One turns orange bromine water colourless at once; the other leaves it orange. Identify what kind of hydrocarbon each is.
Show the steps and the answer
  1. Compare with the alkane formula: n=6 gives C₆H₁₄, so C₆H₁₂ has 2 hydrogens fewer.

    Two missing hydrogens mean either one C=C double bond or one ring, and the formula alone cannot say which.

  2. The liquid that decolourises bromine water has a C=C double bond, so it is an alkene such as hex-1-ene.

    Bromine adds across the double bond, using up the orange Br₂.

  3. The other liquid has only single bonds arranged in a ring: cyclohexane.

    Closing a chain into a ring also costs two hydrogens but leaves no double bond for bromine to add to.

Answer: The liquid that decolourises bromine water is an alkene (for example hex-1-ene); the other is cyclohexane, a ring alkane.

Takeaway: The formula CnH2n fits both alkenes and ring alkanes; a test for the double bond, not the formula, decides.

Example 3 — Find the mistake: the missing water

Application

Noah writes the complete combustion of propane as C3H8+3 O2→3 CO2. Find the mistake and correct it.
Show the steps and the answer
  1. Count atoms: the left has 3 C, 8 H, and 6 O; the right has 3 C, 0 H, and 6 O.

    Carbon and oxygen balance, but 8 hydrogen atoms have vanished, which is impossible.

  2. Add the missing product, water: the hydrogen in propane burns to H₂O.

    Complete combustion of a hydrocarbon gives CO₂ from its carbon and H₂O from its hydrogen.

  3. Balance H: 8 H atoms make 4 H2O.

    Every H₂O carries two hydrogens, so 8 hydrogens fill 8÷2=4 water molecules.

  4. Balance O: the right now has 3×2+4×1=10 O atoms, so use 5 O2.

    Oxygen gas comes in pairs, and 10÷2=5.

Answer: C3H8+5 O2→3 CO2+4 H2O

Takeaway: Burning a hydrocarbon always makes water as well as CO₂; balance C first, then H, and O last.

Where You'll See It

  • Filling a car or lawnmower with gasoline

    Gasoline, diesel, propane, and natural gas are all hydrocarbons (carbon and hydrogen only); burning them with oxygen releases energy and produces carbon dioxide and water.

  • A propane grill flame

    Propane (C3H8) is a hydrocarbon; its complete combustion produces CO2 and H2O, which is why a clean blue flame leaves no soot but the back of a pan can still collect water droplets.

  • Candle wax and crayons

    Paraffin wax is a mixture of long-chain hydrocarbons; the wick burns the wax with oxygen, again giving carbon dioxide and water as the main products.

Common Mistakes

  1. The slip: Any molecule containing carbon counts as a hydrocarbon.

    Why it's tempting: Hydrocarbons are the most common organic example, so students stretch the term.

    Instead: A hydrocarbon contains ONLY carbon and hydrogen. Add oxygen (like in alcohols or sugars) or nitrogen and it is no longer a hydrocarbon, even though it is still organic.

  2. The slip: All hydrocarbons have only single bonds between carbons.

    Why it's tempting: Alkanes (single bonds) are taught first and feel like the default.

    Instead: Hydrocarbons can be alkanes (single C-C bonds), alkenes (a C=C double bond), or alkynes (a C triple-bond C), and the bond type changes their reactivity.

  3. The slip: Burning a hydrocarbon produces only carbon dioxide.

    Why it's tempting: CO2 is the famous combustion product students remember.

    Instead: Complete combustion of a hydrocarbon produces BOTH carbon dioxide and water, because the molecule contains hydrogen too. Incomplete combustion can also produce carbon monoxide or soot.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Which of these are hydrocarbons: C3H8, C2H5OH, C2H4, CCl4?

    Hint: A hydrocarbon may contain only two elements.

  2. Classify each as an alkane (CnH2n+2), alkene (CnH2n) or alkyne (CnH2n−2): C4H10, C3H6, C2H2.

    Hint: Find n from the carbons, then test each formula pattern.

  3. Balance the complete combustion of methane: CH4+O2→CO2+H2O.

    Hint: Balance C, then H, then O last.

  4. How many moles of CO2 and of H2O form when 1 mole of propane, C3H8, burns completely?

    Hint: Every carbon ends up in CO2. Every two hydrogens make one water.

  5. Polyethylene contains only C and H, but it is built from thousands of repeated C2H4 units. When describing how it is built, is "hydrocarbon" or "polymer" the more useful idea?

    Hint: Which word describes the repeating structure?

  6. A student writes the only product of burning ethane, C2H6, as CO2. What is missing?

    Hint: Where do the hydrogen atoms end up?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why are short hydrocarbons gases while long ones are waxy solids?

Hydrocarbon molecules are nonpolar, so they attract each other only through dispersion forces, which grow with chain length. Methane, with one carbon, boils at −162∘C-162^\circ\text{C}; octane, with eight, boils at 126∘C126^\circ\text{C}; and chains of about 20 or more carbons are solids such as candle wax. Oil refineries use exactly this to separate crude oil by boiling point.

Why do alkenes react more easily than alkanes?

A C=C double bond contains a second bond that is weaker and more exposed than an ordinary single bond, so other molecules can add across it. Orange bromine water turns colourless when shaken with an alkene, because bromine adds to the double bond, but it stays orange with an alkane. This is the standard lab test for a double bond.

Can two hydrocarbons have the same formula but be different substances?

Yes, these are isomers. C4H10\text{C}_4\text{H}_{10} can be butane, a straight chain of four carbons, or methylpropane, with three carbons in a row and one branching off the middle. The branched form is more compact, so its molecules touch less, and it boils at about −12∘C-12^\circ\text{C} against −1∘C-1^\circ\text{C} for butane.

Is benzene a hydrocarbon, even though it fits none of the alkane, alkene or alkyne formulas?

Yes. Benzene, C6H6\text{C}_6\text{H}_6, contains only carbon and hydrogen, arranged as a flat ring of six carbons whose bonding electrons are shared around the whole ring. It belongs to a fourth family, the aromatic hydrocarbons, which react far less readily than alkenes despite having fewer hydrogens. Many dyes, plastics and medicines are built on benzene rings.

Learning Path

← Before

Organic Chemistry
Hydrocarbon

You are here

Next →

Polymer
You need Organic Chemistry: carbon forms four bonds and builds chains and rings. Hydrocarbons are the simplest organic molecules, carbon and hydrogen only, sorted into alkanes, alkenes, and alkynes by their carbon-carbon bonds. Next, Polymer shows how alkenes such as ethene and propene link through their double bonds into polyethylene and polypropylene.

See Also