Home
Login

Color

Indigo
Red
Green
Teal
Blue
Purple
Rose

Mode

Light
বাং

Same atoms, different shapes: hydrocarbons and their isomers

A hydrocarbon contains only carbon and hydrogen. With single bonds only, the formula is CₙH₂ₙ₊₂ (alkanes); one double bond gives CₙH₂ₙ (alkenes); one triple bond gives CₙH₂ₙ₋₂ (alkynes). Butane, C₄H₁₀, has 2 structural isomers, pentane has 3 and hexane has 5: same atoms, different skeletons, different molecules.

CarbonHydrogen

The molecule spins by itself; pause it to hold still. Change the carbons and the bond type, then step through the isomers of the C₄ to C₆ alkanes.

IUPAC names are international, so they stay in English spelling.

Speed

Controls

4

Bond type

Pick a structural isomer

Readings

Molecular formula
C₄H₁₀
General formula
CₙH₂ₙ₊₂
IUPAC name
butane
Condensed formula
CH₃–CH₂–CH₂–CH₃
Carbon atoms
4
Hydrogen atoms
10
Chain isomers (alkanes)
2
Sigma (σ) bonds
13
Pi (π) bonds
0

How to use this simulation

  1. Start with the slider on 4 and the bond type on alkane. The molecule in the middle is butane, C₄H₁₀, spinning slowly. Dark balls are carbon, pale balls are hydrogen, and the sticks are bonds.
  2. On the right you see two thumbnails: butane and 2-methylpropane. Both are C₄H₁₀. Click the isomer buttons below the canvas to move the large model from one to the other and watch the name, the condensed formula and the shape change while the formula stays put.
  3. Slide the carbons up to 6. The hydrogens follow the rule 2n + 2, and the number of isomers jumps to five.
  4. Switch the bond type to alkene, then alkyne. Count the hydrogens in the readings panel: two fewer each time. The pi (π) bond counter goes up to 1, then 2.
  5. Tick “Hide hydrogens” to see only the carbon skeleton. This is how organic chemists sketch structures in an exam.

The gas in the kitchen cylinder

The orange LPG cylinder in many kitchens is full of just two molecules, propane and butane. Petrol is a mix of larger ones. The candle wax, the plastic bag and the tar on a road are hydrocarbons too. All of them are built from the same two elements, carbon and hydrogen.

If it is only two elements, why are there thousands of compounds? Because carbon atoms can join to each other in chains, in branches and with single, double and triple bonds, and the same set of atoms can be arranged in more than one way. This page lets you build those arrangements and turn them around.

What a hydrocarbon is, and the three families

A hydrocarbon is a compound made of carbon and hydrogen only. If every carbon–carbon bond is single, it is saturated: each carbon is holding as many hydrogens as it can. These are the alkanes. If there is a double bond, it is an alkene, and if there is a triple bond, an alkyne. The last two are unsaturated, because they could take extra hydrogen atoms if the multiple bond were opened up.

The three families follow neat counting rules. For n carbons: alkanes have 2n + 2 hydrogens, alkenes have 2n, and alkynes have 2n − 2. Each extra bond in the carbon chain costs two hydrogens.

CₙH₂ₙ₊₂alkanes, single bonds only

CₙH₂ₙalkenes, one C=C

CₙH₂ₙ₋₂alkynes, one C≡C

CarbonsAlkaneFormulaAlkeneFormulaAlkyneFormula
1methaneCH₄––––
2ethaneC₂H₆etheneC₂H₄ethyneC₂H₂
3propaneC₃H₈propeneC₃H₆propyneC₃H₄
4butaneC₄H₁₀but-1-eneC₄H₈but-1-yneC₄H₆
5pentaneC₅H₁₂pent-1-eneC₅H₁₀pent-1-yneC₅H₈
6hexaneC₆H₁₄hex-1-eneC₆H₁₂hex-1-yneC₆H₁₀

Reading the animation

The big model in the middle is built by the program from just the carbon skeleton. For each carbon it works out how many hydrogens are needed to make four bonds, then places everything in 3D using real bond lengths and angles. The scene is then tilted, given perspective, and sorted by depth so that near atoms hide far ones, and it spins slowly so you can see the shape from all sides.

The header shows the molecular formula and the IUPAC name. Underneath the model is the condensed formula, a one-line way to write the structure. The panel under the canvas lists the formula, the general formula, the number of carbons and hydrogens, the number of chain isomers, and the count of sigma and pi bonds.

Shapes and bonds: why the sticks look the way they do

A carbon atom with four single bonds points them to the corners of a tetrahedron, about 109.5° apart. That is why a chain of single bonds is a zigzag in 3D and not a flat line. When a carbon has a double bond, its three neighbours lie flat in a plane about 120° apart. With a triple bond, the carbon and its two neighbours line up straight, 180°.

The bonds also get shorter as they get multiple. In the model a C–C single bond is 1.54 Å, C=C is 1.34 Å and C≡C is 1.20 Å. A double bond is one sigma bond (σ, head-on overlap, the bond that holds the skeleton together) plus one pi bond (π, sideways overlap above and below). A triple bond is one σ plus two π. Look at the readings panel: every single connection is a σ bond, and the π counter only counts the extra ones.

Naming: the IUPAC recipe

The naming rules are short enough to memorise. Find the longest continuous carbon chain and use its stem. Number the chain from the end that gives the lowest numbers to the branches. Name each branch (one carbon is methyl, two is ethyl), put its number in front, and list the branches in alphabetical order. If the same branch appears twice, use di; three times, tri.

Take the branched C₄H₁₀ in the animation. The longest chain has three carbons, so the stem is propane, with one methyl branch on carbon 2: 2-methylpropane (written CH₃–CH(CH₃)–CH₃). The five-carbon one with a carbon at the centre holding four others is 2,2-dimethylpropane (CH₃–C(CH₃)(CH₃)–CH₃): the longest chain is again three carbons, and there are two methyl groups on carbon 2.

Structural isomers: same formula, different skeleton

Structural isomers are compounds with the same molecular formula but different connectivity. Butane and 2-methylpropane are both C₄H₁₀. In butane the four carbons are in a row; in 2-methylpropane one carbon sits in the middle with three others attached. They are different compounds with different properties, even though a formula would not tell them apart.

The number of alkane isomers climbs fast: 2 for C₄H₁₀, 3 for C₅H₁₂, 5 for C₆H₁₄, and then 9 for heptane and 18 for octane. Pick an alkane from 4 to 6 carbons in the simulation and click through the isomers. The six-carbon family is hexane, 2-methylpentane, 3-methylpentane, 2,2-dimethylbutane, 2,3-dimethylbutane.

In general, the more branched an isomer is, the more compact and spherical the molecule becomes, so it has less surface to stick to its neighbours. That is why a branched isomer usually boils at a lower temperature than its straight-chain cousin.

FormulaIUPAC nameCommon nameCondensed formula
C₄H₁₀butanen-butaneCH₃–CH₂–CH₂–CH₃
C₄H₁₀2-methylpropaneisobutaneCH₃–CH(CH₃)–CH₃
C₅H₁₂pentanen-pentaneCH₃–CH₂–CH₂–CH₂–CH₃
C₅H₁₂2-methylbutaneisopentaneCH₃–CH(CH₃)–CH₂–CH₃
C₅H₁₂2,2-dimethylpropaneneopentaneCH₃–C(CH₃)(CH₃)–CH₃
C₆H₁₄hexanen-hexaneCH₃–CH₂–CH₂–CH₂–CH₂–CH₃
C₆H₁₄2-methylpentane–CH₃–CH(CH₃)–CH₂–CH₂–CH₃
C₆H₁₄3-methylpentane–CH₃–CH₂–CH(CH₃)–CH₂–CH₃
C₆H₁₄2,2-dimethylbutane–CH₃–C(CH₃)(CH₃)–CH₂–CH₃
C₆H₁₄2,3-dimethylbutane–CH₃–CH(CH₃)–CH(CH₃)–CH₃

Try it yourself in the simulation

Do these in order. Guess first, then check.

  • Experiment 1: set 1 carbon and watch methane. Count the hydrogens (4) and notice that all four bonds point to the corners of a tetrahedron.
  • Experiment 2: for the alkane, step n from 1 to 6 and write down the hydrogen count each time. You should get 4, 6, 8, 10, 12, 14: it climbs by 2 per carbon.
  • Experiment 3: set 2 carbons and switch between alkane, alkene and alkyne. Count the hydrogens (6, 4, 2). Ethane points its hydrogens in tetrahedral directions, ethene is flat, and ethyne is a straight line with the C–C bond getting shorter each time.
  • Experiment 4: set 5 carbons, alkane. Flip through the 3 isomers. Which one looks most like a ball? (It is 2,2-dimethylpropane.)
  • Experiment 5: set 6 carbons. Find all 5 isomers, and for each one write its longest chain length. Hexane keeps all six in a row; the others have a longest chain of five or four.

Solved problems

Every figure below is computed from the same rules as the animation.

Problem 1: formula of an alkane with 8 carbons

Use CₙH₂ₙ₊₂ with n = 8. Hydrogens = 2 × 8 + 2 = 18. The formula is C₈H₁₈.

Problem 2: an alkene has 10 hydrogens. How many carbons?

For an alkene the hydrogens equal 2n, so n = 10 ÷ 2 = 5. The formula is C₅H₁₀, the alkene pentene.

Problem 3: how many σ and π bonds are in propyne?

Propyne is C₃H₄, written CH≡C–CH₃. It has 2 carbon–carbon connections and 4 carbon–hydrogen bonds, so 6 σ bonds in total. The triple bond contributes two extra π bonds, so there are 2 π bonds. The simulation shows the same count in the readings panel when you pick 3 carbons and alkyne.

Problem 4: how unsaturated is C₆H₁₂?

A saturated hydrocarbon with 6 carbons would be C₆H₁₄, which has 14 hydrogens. Here there are only 12. The shortfall of 2 hydrogens equals one double bond (or one ring). Degrees of unsaturation = (2 × 6 + 2 − 12) ÷ 2 = 1. So C₆H₁₂ is a hexene or a cyclohexane.

Problem 5: name CH₃–CH(CH₃)–CH₃ and CH₃–C(CH₃)(CH₃)–CH₃

For CH₃–CH(CH₃)–CH₃: the longest chain is three carbons, so propane; one methyl branch on carbon 2, so 2-methylpropane. For CH₃–C(CH₃)(CH₃)–CH₃: the longest chain is again three carbons and carbon 2 carries two methyl groups, so 2,2-dimethylpropane. The dimethyl prefix has the number 2 twice because both methyls are on the same carbon.

Mistakes everybody makes

These cost marks every year.

  • Counting hydrogens by eye instead of using the rule: every carbon needs four bonds in total.
  • Choosing the wrong main chain. The longest continuous chain counts even when it bends around the page, so draw the skeleton carefully.
  • Thinking a rotated drawing is a new isomer. If you can turn one structure into the other without breaking any bond, it is the same molecule.
  • Forgetting that methane cannot have a double or triple bond, so the first alkene is ethene and the first alkyne is ethyne.
  • Saying a double bond is two σ bonds. It is one σ and one π.
  • Numbering the chain from the wrong end: the branches must get the lowest possible numbers.

Where you meet these molecules

Hydrocarbons are everywhere in everyday life.

  • Cooking gas: methane, propane and butane burn cleanly and release a lot of heat.
  • Petrol and diesel: mixtures of chains from about five to over a dozen carbons. A branched isomer burns more smoothly in an engine, which is why branching raises the octane number.
  • Plastics: ethene is joined into long chains to make polythene, and propene to make polypropylene.
  • Fruit ripening: ethene is a plant hormone, and a ripe banana in a bag speeds up the unripe ones around it.
  • Welding: ethyne (acetylene) burns in oxygen with a very hot flame.

Exam corner

Try these without looking, then compare.

  • Write the molecular formula of an alkane with 8 carbons (answer: C₈H₁₈) and an alkene with 5 carbons (answer: C₅H₁₀).
  • Draw all 2 isomers of C₄H₁₀ and name them (answer: butane and 2-methylpropane).
  • How many structural isomers does C₆H₁₄ have? Name them (answer: 5; hexane, 2-methylpentane, 3-methylpentane, 2,2-dimethylbutane, 2,3-dimethylbutane).
  • Why are alkenes more reactive than alkanes? (The π bond is weaker and exposed, so it breaks easily to add other atoms.)
  • What is the difference between a saturated and an unsaturated hydrocarbon? Give an example of each.

Revision: the whole page in a minute

Read this before the exam.

  • Hydrocarbons contain only C and H. Alkane CₙH₂ₙ₊₂, alkene CₙH₂ₙ, alkyne CₙH₂ₙ₋₂.
  • Stems: meth, eth, prop, but, pent, hex. Endings: -ane, -ene, -yne.
  • Carbon always makes four bonds. Single bond is tetrahedral (109.5°), double is planar (120°), triple is linear (180°).
  • Double bond = 1 σ + 1 π. Triple bond = 1 σ + 2 π.
  • Structural isomers share a formula but differ in how the carbons are joined: 2 for C₄H₁₀, 3 for C₅H₁₂, 5 for C₆H₁₄.
  • IUPAC: longest chain, lowest numbers for branches, branches in alphabetical order.

Frequently asked questions

What is the general formula of alkanes, alkenes and alkynes?

Alkanes are CₙH₂ₙ₊₂, alkenes are CₙH₂ₙ and alkynes are CₙH₂ₙ₋₂, where n is the number of carbon atoms.

What are structural isomers?

Compounds with the same molecular formula but a different order of bonding between the atoms. Butane and 2-methylpropane, both C₄H₁₀, are the simplest example.

How many isomers do butane, pentane and hexane have?

Butane (C₄H₁₀) has 2, pentane (C₅H₁₂) has 3, and hexane (C₆H₁₄) has 5.

What is the difference between saturated and unsaturated hydrocarbons?

Saturated hydrocarbons (alkanes) have only single bonds, so each carbon holds the maximum number of hydrogens. Unsaturated ones (alkenes, alkynes) have a double or triple bond and can add more atoms.

Why does ethene have the first double bond and not methene?

A double bond needs two carbons to link. Methane has one carbon, so the smallest alkene must have two carbons: ethene, C₂H₄.

How many sigma and pi bonds are in a double bond?

A double bond has one sigma (σ) bond and one pi (π) bond. A triple bond has one sigma and two pi bonds.

Keep studying this topic

The animation made the idea click; now turn it into marks. Syllabus, suggestions, textbooks and admission-test guides are below.

More chemistry animations

Grade 8–11

Structure of the atom

Structure of the atom explained with an interactive simulation: protons, neutrons, electrons, atomic and mass number, isotopes and electron configuration, with solved examples.

Grade 8–11

Acids, Bases and the pH Scale

What is pH and what does the pH scale show? Drip a base into an acid, watch the indicator change colour and trace a live titration curve, with worked pH problems.

Grade 9–11

Electron configuration

How to write electron configurations: Aufbau order, Pauli and Hund rules, the Cr and Cu exceptions, ions and noble-gas shorthand. Watch electrons fill, Z 1–36.

Grade 9–11

Gas laws: Boyle, Charles, Gay-Lussac, Avogadro and PV = nRT

Push a piston and heat a gas: Boyle's, Charles's, Gay-Lussac's and Avogadro's laws, the ideal gas law PV = nRT, graphs, R values and solved problems.

Grade 8–11

How an Ionic Bond Forms

What is ionic bonding, and how does a metal atom transfer electrons to a non-metal to form ions? Drop NaCl, MgO or CaCl2 into the simulation and watch charge balance derive the formula, with worked examples.

Grade 9–12

Electrolysis and Faraday’s Laws

What is electrolysis, what forms at the cathode and anode, and how does Faraday's law compute the mass deposited? Choose molten NaCl, CuSO2 or acidified water and watch, with worked examples.

Grade 9–12

Covalent Bond

What is a covalent bond? Build H₂O, NH₃, CH₄ and CO₂ atom by atom in a dot-and-cross simulation: single, double and triple bonds, lone pairs, the octet rule and bond polarity, with worked examples.

Grade 9–11

Periodic Trends

What are periodic trends? See how atomic radius, ionization energy, electronegativity and metallic character change across a period and down a group, on a heat map of the first 36 elements, with the real exceptions.

Grade 9–12

Reaction rate and collision theory

What decides how fast a reaction goes? Run a collision-theory simulation: change temperature, concentration and a catalyst, and watch the activation-energy graph and the product curve respond.

Grade 8–10

States of matter: solid, liquid, gas and the heating curve

Watch particles vibrate in a solid, slide in a liquid and fly free in a gas. A live heating curve for water, melting, boiling, latent heat, sublimation, and Q = mcΔT and Q = mL worked out.

Grade 11–12

Atomic orbitals: the shapes of s, p and d, quantum numbers and nodes

Rotate the 1s, 2s, 2p and 3d orbitals in 3D. Orbit versus orbital, the four quantum numbers, counting radial and angular nodes, subshell capacities and worked examples.

Grade 11–12

Molecular shapes and VSEPR theory: bond pairs, lone pairs and angles

Build molecules in 3D and rotate them. See how bond pairs and lone pairs set the shape, bond angle and hybridisation of CH4, NH3, H2O, PCl5, SF6 and more, with solved problems.

Grade 9–11

The mole concept: molar mass, Avogadro’s number and molar volume

What is a mole, what is Avogadro’s number, and how do you convert grams to moles to molecules? Weigh substances on a virtual balance, see 22.4 L at STP, and learn percentage composition with solved problems.

Grade 11–12

Diffusion and effusion: Graham’s law of gases

Watch ammonia and hydrogen chloride build a white ring in a tube, then race gases through a pinhole. Graham’s law of diffusion and effusion derived and solved with live numbers.

Grade 9–10

Balancing chemical equations: method, examples and practice

How do you balance a chemical equation? Change coefficients and watch the atom counts on both sides match. Five worked reactions (water, methane, rust, acid, propane) with the method and exam tips.

Grade 11–12

Chemical equilibrium: the equilibrium constant Kc and Le Chatelier’s principle

What is chemical equilibrium, how do you find Kc, and which way does a reaction shift when you change concentration, temperature or pressure? Watch the Haber process rate curves and see Le Chatelier at work.

Grade 9–12

Titration: finding an unknown concentration with a burette and an indicator

What is a titration? See how a burette and an indicator work, why the end point and equivalence point differ, and how to use V₁M₁ = V₂M₂ with the mole ratio. Run it yourself with a live pH curve.

Grade 11–12

Galvanic cell: the Daniell cell, EMF and the Nernst equation

How does a galvanic cell make electricity? See which way electrons and salt-bridge ions move in the Daniell cell, how the rod masses change, and what the standard and Nernst EMF are. Change the concentrations and watch.

Grade 9–11

Redox reactions: oxidation numbers, electron transfer and half-equations

What are oxidation and reduction, how do you find oxidation numbers, and which species is the oxidising agent? Watch electrons move in five redox reactions, with half-equations and worked examples.

Grade 10–12

Functional groups: alcohols, aldehydes, ketones, acids, esters and amines

What is a functional group, and how do you tell an alcohol, aldehyde, ketone, acid, ester or amine apart? Explore eight organic families with IUPAC names, lab tests and worked problems.

Grade 11–12

Polymerisation: addition and condensation polymers, polythene and nylon

What is a polymer, and how do addition and condensation polymerisation differ? Watch ethene become polythene and nylon-6,6 form, with chain molar masses and water released worked out.

Grade 9–11

Separation techniques: filtration, distillation, chromatography, crystallisation

Watch filtration, simple and fractional distillation, paper chromatography and crystallisation run. Compute Rf, read the boiling-point plateaus and work out crystal yield.

Grade 11–12

Crystal lattice: SC, BCC and FCC unit cells, packing efficiency and density

Rotate the simple, body-centred and face-centred cubic unit cells. Count atoms per cell, coordination number, packing efficiency (52.4%, 68%, 74%) and density.

Grade 11–12

Radioactivity: Alpha, Beta, Gamma Decay and Half-Life

Watch alpha, beta and gamma decay change A and Z, build balanced nuclear equations and see 100 atoms decay at random along the half-life curve, with a carbon-14 dating example. Free simulation.

Animations in other subjects

Physics

Refraction of light

Physics

Ohm's law

Physics

Projectile motion

Physics

Simple pendulum

Physics

Electric field

Physics

Wave interference

Physics

Free Fall

Physics

Lens ray diagrams

Physics

Newton's Laws of Motion

Physics

Spherical mirror ray diagrams

Physics

Electromagnetic Induction

Physics

Conservation of Momentum and Collisions

Physics

Work, Energy and Power

Physics

Inclined Plane

Physics

Uniform circular motion

Physics

Transverse and Longitudinal Waves

Physics

Levers and moments

Physics

Centre of mass

Physics

Spring-mass SHM

Physics

Vector addition: triangle and parallelogram laws

Physics

Relative velocity: trains and river crossing

Physics

Kepler's laws and elliptical orbits

Physics

Newton’s law of gravitation, g and satellites

Physics

Standing waves in strings and pipes

Physics

Resonance tube and the speed of sound

Physics

Beats: when two close notes pulse

Physics

Doppler effect: moving sources, listeners and sonic booms

Physics

Prism, dispersion of light and the rainbow

Physics

Kirchhoff’s laws: junction rule and loop rule

Physics

Wheatstone bridge and metre bridge

Physics

Single-slit diffraction

Physics

Defects of the human eye and their correction

Physics

Polarisation of light: Malus’s law and Brewster’s law

Physics

Charging and discharging a capacitor: the RC time constant

Physics

Magnetic field lines: bar magnet, current-carrying wire and solenoid

Physics

AC generator

Physics

Transformer

Physics

Heat transfer: conduction, convection and radiation

Physics

Photoelectric effect: Einstein’s equation and the stopping potential

Physics

Motor effect: force on a current-carrying wire and the DC motor

Physics

Gas molecules and kinetic theory: pressure, temperature and speed

Physics

The semiconductor diode: p–n junction, I–V curve and rectifier

Physics

Radioactive decay: half-life, the decay law and penetration

Physics

The Bohr atom: orbits, energy levels and the hydrogen spectrum

Biology

Mitosis cell division

Biology

Diffusion and Osmosis

Biology

Photosynthesis

Biology

The human heart: structure and function

Biology

Mendelian Genetics

Biology

DNA Replication

Biology

Cellular Respiration

Biology

Enzyme Action

Biology

The Nerve Impulse and the Action Potential

Biology

The Nephron and Urine Formation

Biology

Meiosis Cell Division

Biology

Digestive System

Biology

Breathing Mechanism: Inhalation and Exhalation

Biology

Protein synthesis

Biology

Blood circulation: double circulation and cardiac output

Biology

Cell structure and organelles: plant cell vs animal cell

Biology

Reflex action and the reflex arc

Biology

The human eye: parts, image formation and accommodation

Biology

Muscle contraction and the sliding-filament model

Biology

Transport in plants: xylem, phloem and transpiration

Biology

Food chain and food web: energy flow and the 10 % rule

Biology

Population growth: exponential and logistic curves

Biology

Natural selection: peppered moths and the sooty tree

Biology

Immune response: primary and secondary antibody response

Biology

Pollination and fertilisation

Mathematics

Pythagorean Theorem

Mathematics

Trigonometric Ratios and the Unit Circle

Mathematics

Quadratic functions and their graphs

Mathematics

Circle theorems

Mathematics

Heights and distances: elevation and depression angles

Mathematics

Probability: experimental vs theoretical probability

Mathematics

Arithmetic and Geometric Sequences

Mathematics

Mean, Median and Mode

Mathematics

Sets and Venn Diagrams

Mathematics

Linear equations: graphs, slope and simultaneous pairs

Mathematics

Graphs of sin, cos and tan

Mathematics

Completing the Square and the Quadratic Formula

Mathematics

Area of a Circle: Proof, Formula and Solved Problems

Mathematics

Volume and Surface Area of Solids: Cube, Cuboid, Cylinder, Cone, Sphere

Mathematics

Similar Triangles: Scale Factor, AA, SSS, SAS and Shadow Heights

Mathematics

Coordinate Geometry: Distance, Midpoint, Slope, Section Formula and Locus

Mathematics

Conic Sections: Circle, Ellipse, Parabola and Hyperbola

Mathematics

Function Transformations: Shifts, Stretches and Reflections

Mathematics

Derivative as the Slope of a Tangent: Secant to Tangent

Mathematics

Riemann Sums and Integration: Area Under a Curve

Mathematics

Limits and the ε–δ Definition: A Visual Guide

Mathematics

3D Vectors: Sum, Dot Product and Cross Product

Mathematics

Matrix Transformations: Rotation, Reflection, Shear and the Determinant

Mathematics

Complex Numbers: Sum, Product, Powers and Roots on the Argand Plane

Mathematics

Binary Number System: Place Value, Conversion and Addition