MolDraw › Chemistry tools › Isomer Generator and Counter

Isomer Generator and Counter

In short: enter a molecular formula to count and draw every structural isomer, with IUPAC names, grouped by class. Add cis/trans and R/S stereoisomers with one tick. It is free, works in your web browser and needs no download.

Type a formula such as C4H10O. The tool builds every possible structure, removes duplicates and unstable forms, and lists the rest as alkanes, alkenes, alcohols, ethers, amines and so on.

Quick answer: C4H10O has 7 structural isomers: 4 alcohols and 3 ethers. Counting stereoisomers gives 8, because butan-2-ol exists as R and S. C5H10 has 10 (13 with stereoisomers) and C4H8 has 5 (6 with cis/trans but-2-ene).

Elements: C, H, N, O, S, F, Cl, Br, I with their usual valences (C 4, N 3, O 2, S 2, halogens 1). Up to 8 carbon atoms and 12 atoms other than hydrogen.

How to use the isomer generator

  1. Type a molecular formula such as C4H10O, C5H10 or C3H9N, or press an example button.
  2. Tick Include stereoisomers to count cis/trans and R/S forms. Keep Exclude unstable structures ticked for textbook counts. Tick Benzene ring only for aromatic questions like "isomers of C7H8O containing a benzene ring".
  3. Read the total and the class chips. Click a chip to show one class, such as the alcohols or the secondary amines.
  4. Press Open in MolDraw under any structure to edit it, check it in 3D or export an image.

Types of structural isomerism

Structural (constitutional) isomers have the same molecular formula but their atoms are joined in a different order. School courses split them into five kinds.

TypeWhat changesExample
ChainThe carbon skeleton (straight or branched)Butane and 2-methylpropane (C4H10)
PositionWhere a group or multiple bond sits on the same skeletonPropan-1-ol and propan-2-ol; but-1-ene and but-2-ene
FunctionalThe functional group itselfEthanol and methoxymethane (C2H6O); propanal and propanone (C3H6O); propanoic acid and methyl ethanoate (C3H6O2)
MetamerismThe alkyl groups on either side of an O, S, NH or C=OEthoxyethane and 1-methoxypropane; pentan-2-one and pentan-3-one; N-ethylethanamine and N-methylpropan-1-amine
Ring–chainA ring in place of a double bondPropene and cyclopropane (C3H6); prop-2-en-1-ol and cyclopropanol

Tautomers, such as a ketone and its enol, are also structural isomers. They turn into each other quickly, so the unstable form (the enol) is left out of the count unless you untick the filter.

The degree of unsaturation comes first

The degree of unsaturation (DoU) tells you how many rings plus π bonds every isomer must have. For CcHhNnOoXx:

DoU = (2c + 2 + n − h − x) / 2

Oxygen and sulfur do not change it.

C4H10O has DoU 0, so every isomer is open-chain and saturated: only alcohols and ethers. C3H6O has DoU 1, so each isomer has one C=C, one C=O or one ring. Use the degree of unsaturation calculator to check.

Stereoisomers: cis/trans, R/S and meso forms

Stereoisomers have the same bonds but a different arrangement in space. Tick Include stereoisomers to list them under each structure.

Geometrical (cis/trans, E/Z) isomers

A C=C double bond gives two isomers only when each carbon carries two different groups. But-2-ene has cis (Z) and trans (E) forms. But-1-ene and 2-methylpropene do not, because one carbon has two hydrogens. A ring with two substituted carbons also has cis and trans forms, for example 1,3-dimethylcyclobutane.

Optical isomers (R/S)

A carbon with four different groups is a stereocentre. It gives two mirror-image forms, R and S, called enantiomers. They are counted as two stereoisomers. Butan-2-ol and 2-chlorobutane each have one stereocentre, so each gives a pair. Use the R/S chirality finder to assign R or S to a drawn structure.

Meso forms and the 2n rule

A molecule with n stereocentres has at most 2n stereoisomers. It has fewer when the molecule is symmetric. A meso form has stereocentres but also an internal mirror plane, so it equals its mirror image and is counted once. Butane-2,3-diol has 2 stereocentres but 3 stereoisomers: (2R,3R), (2S,3S) and the meso (2R,3S) form. In the same way cis-1,2-dimethylcyclopropane is meso, while the trans form is a pair of enantiomers.

Nitrogen in an amine is not counted as a stereocentre. It flips (inverts) too fast for the two forms to be separated.

Worked examples (JEE and NEET style)

C4H10O

DoU 0, so alcohols and ethers only. Alcohols: butan-1-ol, butan-2-ol, 2-methylpropan-1-ol, 2-methylpropan-2-ol. Ethers: 1-methoxypropane, 2-methoxypropane, ethoxyethane.

7 structural; 8 with stereoisomers (butan-2-ol R and S)

C5H10

DoU 1. Alkenes: pent-1-ene, pent-2-ene, 2-methylbut-1-ene, 3-methylbut-1-ene, 2-methylbut-2-ene. Cycloalkanes: cyclopentane, methylcyclobutane, ethylcyclopropane, 1,1- and 1,2-dimethylcyclopropane.

10 structural; 13 with stereoisomers

C4H8

But-1-ene, but-2-ene, 2-methylprop-1-ene, cyclobutane, methylcyclopropane. Only but-2-ene has cis and trans forms.

5 structural; 6 with cis/trans

C3H6O

Propanal, propanone, prop-2-en-1-ol, methoxyethene, oxetane, 2-methyloxirane and cyclopropanol. The two enols (prop-1-en-1-ol and prop-1-en-2-ol) are left out.

7 stable structures (9 with the enols); 8 with stereoisomers (2-methyloxirane R and S)

C4H9Cl

1-Chlorobutane, 2-chlorobutane, 1-chloro-2-methylpropane, 2-chloro-2-methylpropane. 2-Chlorobutane is chiral.

4 structural; 5 with stereoisomers

C3H9N and C4H11N

C3H9N: two 1° amines, one 2° (N-methylethanamine) and one 3° (trimethylamine). C4H11N: four 1°, three 2°, one 3°.

4 and 8 structural isomers

C7H8O with a benzene ring

Phenylmethanol (benzyl alcohol), methoxybenzene (anisole) and 2-, 3- and 4-methylphenol (the cresols).

5 aromatic isomers (tick Benzene ring only)

C8H10 with a benzene ring

Ethylbenzene and 1,2-, 1,3- and 1,4-dimethylbenzene (o-, m- and p-xylene).

4 aromatic isomers

How the generator works

  1. It reads the formula and works out the degree of unsaturation.
  2. It builds every saturated skeleton one atom at a time, giving each atom its usual valence (C 4, N 3, O 2, S 2, halogens 1).
  3. It then adds the unsaturation one unit at a time, either as an extra bond in a C=C, C=O or C≡C, or as a new bond that closes a ring.
  4. After each step it compares the structures by a canonical code, so the same molecule drawn in two ways is kept once. Kekulé forms of a benzene ring count as one structure.
  5. It removes unstable structures (rules below), sorts the rest by class and names them.
  6. For stereoisomers it finds every stereocentre and stereogenic double bond, tries each arrangement and keeps the distinct ones. A meso form is kept once and two enantiomers count twice.

This is a real enumeration, not a stored list, so it also works for formulas that are not in textbooks. Names come from MolDraw's own naming rules: the main chain has the most principal groups, then the most multiple bonds, then the most carbons (as in most school textbooks), and a ring beats a chain when it carries as many principal groups. When the tool is not sure of a name it shows the SMILES instead of guessing.

Which structures count as unstable?

With Exclude unstable structures ticked (the default), these are left out:

Every atom always gets its full valence, so carbenes, radicals and ions never appear. Strained but real molecules, such as cyclopropene and bicyclo[1.1.0]butane, are kept. For stereoisomers, ring fusions that cannot exist (a trans fusion of very small rings, or in/out bridgeheads) are not counted. Untick the filter to see every valence-correct structure; the left-out ones are listed under the results.

Common mistakes when counting isomers

Want to draw your own isomer? Open the MolDraw editor to sketch any structure, check its name and view it in 3D.

Open MolDraw editor

Frequently asked questions

How many structural isomers does C4H10O have?

Seven. There are four alcohols (butan-1-ol, butan-2-ol, 2-methylpropan-1-ol and 2-methylpropan-2-ol) and three ethers (1-methoxypropane, 2-methoxypropane and ethoxyethane). Counting stereoisomers gives eight, because butan-2-ol has an R and an S form.

How many isomers does C5H10 have?

C5H10 has 10 structural isomers: 5 alkenes and 5 cycloalkanes. Counting stereoisomers gives 13. Pent-2-ene has cis and trans forms, and 1,2-dimethylcyclopropane has a cis (meso) form and a pair of trans enantiomers.

What is the difference between structural isomers and stereoisomers?

Structural (constitutional) isomers have the same formula but their atoms are joined in a different order, like butane and 2-methylpropane. Stereoisomers have the same bonds but a different arrangement in space, like cis- and trans-but-2-ene or the R and S forms of butan-2-ol.

How do you count the isomers of a molecular formula?

Work out the degree of unsaturation first. It tells you how many rings and pi bonds each structure must have. Then go through carbon chains (straight and branched), rings, the positions of double bonds and functional groups, and the different functional groups the heteroatoms can form. Draw each one and remove any that are the same molecule drawn another way.

Why are enols not counted as isomers?

An enol (an O-H on a carbon of a C=C) changes into its keto form almost at once, so it cannot be kept as a separate compound. Textbook counts leave enols out, as well as gem-diols, hemiacetals and peroxides. Untick Exclude unstable structures to see them.

How are meso compounds counted?

A meso compound has stereocentres but also an internal mirror plane, so it is identical to its mirror image. It is counted once. Butane-2,3-diol has two stereocentres but only three stereoisomers: the (R,R) and (S,S) enantiomers and one meso form.

Does the tool give IUPAC names?

Yes, for chains and single rings with the common functional groups. The main chain is chosen as in school textbooks: most principal groups, then most multiple bonds, then the longest chain. When the tool is not sure of a name it shows the SMILES instead of guessing.

Related chemistry tools

Last updated: