---
title: "Isomer Generator & Counter: All Structural Isomers from a Formula | MolDraw"
url: https://www.moldraw.com/tools/free-chem-tools/isomer-generator.html
description: "Free isomer generator: enter a molecular formula such as C4H10O or C5H10 to count and draw every structural isomer with IUPAC names, grouped by class, plus cis/trans and R/S stereoisomers."
lang: en
publisher: LabCanvas Private Limited
generated: 2026-12-02
---
[MolDraw](https://www.moldraw.com/) › [Chemistry tools](https://www.moldraw.com/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).

Molecular formula

Include stereoisomers Exclude unstable structures Benzene ring only

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.

| Type | What changes | Example |
| --- | --- | --- |
| **Chain** | The carbon skeleton (straight or branched) | Butane and 2-methylpropane (C4H10) |
| **Position** | Where a group or multiple bond sits on the same skeleton | Propan-1-ol and propan-2-ol; but-1-ene and but-2-ene |
| **Functional** | The functional group itself | Ethanol and methoxymethane (C2H6O); propanal and propanone (C3H6O); propanoic acid and methyl ethanoate (C3H6O2) |
| **Metamerism** | The alkyl groups on either side of an O, S, NH or C=O | Ethoxyethane and 1-methoxypropane; pentan-2-one and pentan-3-one; N-ethylethanamine and N-methylpropan-1-amine |
| **Ring–chain** | A ring in place of a double bond | Propene 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](https://www.moldraw.com/tools/free-chem-tools/degree-of-unsaturation-calculator.html) 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](https://www.moldraw.com/tools/free-chem-tools/rs-chirality-finder.html) 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:

- Bonds between two heteroatoms: no peroxides (O–O), hydroxylamines or oximes (N–O), hydrazines (N–N), O–S or N–S bonds, and no halogen on N, O or S. Disulfides (S–S) are allowed.
- Enols, ynols and enethiols: no O–H or S–H on a carbon that carries a C=C or C≡C bond. This also removes allenic alcohols. Phenols are kept.
- Enamines and ynamines with an N–H. Fully substituted enamines are kept, like enol ethers, and so are anilines.
- Imidic acids: no O–H on a carbon that is double-bonded to nitrogen.
- Gem-diols, hemiacetals and hemiaminals: a saturated carbon may not carry an O–H (or S–H) together with another O, N, S or halogen. Likewise no N–H and a halogen on the same carbon.
- Oxygen on an sp carbon of a C≡C or C=C=C unit: no ynol ethers and no ketenes (C=C=O). Isocyanates (N=C=O) are kept.
- A triple bond in a ring of fewer than 8 atoms, or a C=C=C unit in a ring of fewer than 9 atoms.
- A double bond shared by two rings when one of them has 3 or 4 atoms, and a double bond at a bridgehead when the ring it sits in has fewer than 8 atoms (Bredt's rule).
- Cyclobutadiene rings, and three-membered rings with a C=C and an O, N–H or S (oxirene, 1H-azirine, thiirene).

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

- **Counting one molecule twice.** A chain drawn bent, or numbered from the other end, is the same molecule. 1-chloropropane and 3-chloropropane are one compound.
- **Forgetting rings.** C3H6 is propene *and* cyclopropane. Any formula with DoU 1 or more can have ring isomers.
- **Forgetting functional isomers.** Alcohols come with ethers, aldehydes with ketones, carboxylic acids with esters.
- **Counting enols or gem-diols.** They are not stable compounds, so textbook answers leave them out.
- **Giving cis/trans to the wrong double bond.** If one alkene carbon has two identical groups (but-1-ene, 2-methylpropene) there is no geometrical isomer.
- **Mixing up meso forms.** A meso form is one stereoisomer, not two. Enantiomers are two.
- **Reading the question.** "Structural isomers" means constitutional only. "Total isomers" or "stereoisomers included" means add cis/trans and R/S forms.

**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](https://www.moldraw.com/)

## 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.

**Free printable worksheet:** [Structural Isomers & Stereoisomers Worksheet](https://www.moldraw.com/education/materials/isomers-worksheet/). Customise the questions, then download an A4 PDF with an answer key.

## Related chemistry tools

[**R/S chirality finder**Assign R or S to stereocentres](https://www.moldraw.com/tools/free-chem-tools/rs-chirality-finder.html)[**Degree of unsaturation calculator**Rings plus π bonds from a formula](https://www.moldraw.com/tools/free-chem-tools/degree-of-unsaturation-calculator.html)[**Molecular formula finder**Formula from an exact mass](https://www.moldraw.com/tools/free-chem-tools/molecular-formula-finder.html)[**Structure to IUPAC name**Draw a structure, get its name](https://www.moldraw.com/tools/free-chem-tools/structure-to-iupac-name.html)[**SMILES to structure**Draw a structure from SMILES](https://www.moldraw.com/tools/free-chem-tools/smiles-to-structure.html)[**Molecular formula to structure**Known compounds for a formula](https://www.moldraw.com/tools/free-chem-tools/molecular-formula-to-structure.html)[**Point group finder**Molecular symmetry in 3D](https://www.moldraw.com/tools/free-chem-tools/point-group-finder.html)[**VSEPR geometry calculator**Shapes and bond angles](https://www.moldraw.com/tools/free-chem-tools/vsepr-molecular-geometry-calculator.html)[**3D molecular model viewer**Ball-and-stick and space-filling](https://www.moldraw.com/tools/free-chem-tools/3d-molecular-model-viewer.html)[**Stereoisomer enumerator**All R/S and E/Z isomers, meso forms found](https://www.moldraw.com/tools/free-chem-tools/stereoisomer-enumerator.html)[**Chair conformation and Newman projection drawer**Axial/equatorial, ring flips and dihedral energy](https://www.moldraw.com/tools/free-chem-tools/chair-conformation-newman-projection.html)

Last updated: October 18, 2026
