# How can I find all possible isomers of a given molecule?

I attend a course on combinatorics (mathematics) which contains many examples related to chemistry. Unfortunately, I don't have enough chemistry knowledge to feel comfortable with the examples.

For example, how can I be sure that I have produced all isomers of a given molecule?

The example I am struggling with at the moment is $$\ce{C_nH_{2n+1}OH}$$ for $$n = 3$$. There are two isomers given:

How do I know these are all there are?

Why is the molecule with $$\ce{OH}$$ at the bottom left (bottom of left most $$\ce{C}$$ atom) not another isomer?

• Because it's the same thing as the first one. Jan 24 at 10:10
• Indeed, it takes some knowledge of chemistry to tell which things are the same and which are different. You need to know that the real molecules are 3D, not flat, and that a carbon is tetrahedral, and that single bonds allow rotation, and possibly more than that. Jan 24 at 10:17
• Welcome to the site. Note, chemical information may be advantageously formatted using on ChemSE with mhchem. Take moment to familiarize with this. You are encouraged to use it in the body of questions, answers, and comments. Because it is something special not all web browsers understand well, do not use it in the title of questions or answers. Jan 24 at 11:02
• Are you looking for a procedure to generate the isomers? Like SMOG by Molchanova et al. (J. Chem. Inf. Comput. Sci. 1996, 36, 888–899; doi.org/10.1021/ci950393z), MOLGEN, MAYGEN (each of them has pros and cons)? Or the use of generating the isomers to explore chemical space like Reymond's GDB databases? Jan 24 at 11:10
• @Buttonwood Another recent contender to this is Surge : github.com/StructureGenerator/surge (full disclosure - I know some of the authors) Jan 24 at 16:51

As drawn, there are 8 positions where the OH could replace an H, but only 3 structurally unique arrangements:

1. Two positions: on the centre-C (above or below are a symmetric reflection).
2. Two positions: on the middle of either end-C (left or right are a symmetric reflection).
3. Four positions: above or below at either end-C (two-way symmetry).

The diagrams for these three configurations can be rotated or reflected to match all possibilities.

To answer the question, one only has to determine how many distinct locations there are. If there were 6 C atoms (pentane), the choices would be at an end or at the 1st, 2nd or 3rd position from an end: 4 possibilities.

There's a problem with this though, one that mathematicians will be oblivious to, but which chemists will be instinctively aware of.

Anyone not familiar with organic chemistry will observe that the C atoms have four arms branching off at 90° angles within a plane, since that's how they are represented in the diagram.

A chemist though will know that C atom arms aren't all in a plane; they spread themselves out to be equally separated in 3 dimensions. The C is at the centre of a tetrahedron with one arm extending to each of its four corners.

For instance, a methane molecule, CH4 would shape itself as a completely symmetrical tetrahedron:

In the given propane molecule, the two C atoms at either end have four arms that are symmetrically located in 3 dimensions, again in the form of a tetrahedron.

That means that the 3 attached Hs are all symmetrically equivalent. Rather than forming a T-shape, they are actually arranged in a triangle, whose plane is perpendicular to the diagram. Each of the thee H positions are equivalent and indistinguishable.

So, it matters not which of the 3 Hs at the end gets replaced, in terms of the actual molecule the results will be identical. By convention though, it is the end location that is always used in the diagram, to keep the diagram as symmetric as possible.

As a further exercise, consider the C at the centre of the diagram in the question, whose four arms are attached to two Hs and two Cs. How many distinct ways can these connections be made? Perhaps surprisingly, the answer is that all arrangements will be identical. Attach one of the Hs anywhere. No matter where the second H goes, it will be adjacent to the first. No matter where the two Cs go, each will be adjacent to both of the Hs and to the other C.

• Once there are three positions where $\ce{-OH}$ could be; then, the listing mentions six positions; then you move to a molecule with six carbon atoms: all in the first paragraph. While I disagree to count the $\ce{-H}$ at the terminal $\ce{C}$ as different to those «on the upper or lower of either end C», I speculate the presentation of the first paragraph still is a bit confusing, possibly especially for a first encounter to organic chemistry. Jan 24 at 21:10

To do so, you need to know in advance the atoms by type (carbon, hydrogen, nitrogen, etc.), their number, and their valence. The later states how many bonds an atom may share with an adjacent atom. In your example, you consider hydrogen (only one bond), oxygen (up to two), and carbon (up to four).

You then introduce a constraint how these atoms are connected with each other. In the examples above, for example, you seem to use an explicit constraint; in the hydroxyl ($$\ce{-OH}$$) group oxygen binds to hydrogen, but this ensemble binds to carbon only via oxygen. An implicit constraint one may infer from the two illustrations you share is that you do not allow the formation of cycles for non-hydrogen atoms. Instead, you want to have them as chain.

Now to put this into perspective (literally), chemists convened how to draw molecular structures e.g., on paper while these are 3D objects. This is importance because often it does not suffice to know which atom binds to the next atom (constitutional isomer), but the spatial arrangement around e.g., carbon atoms (chirality, stereoisomers). Each of these levels is a potential pitfall for the exhaustive generation of the isomers possible; both for chemists who need training on this as well as for computer programs. Some generator programs (implicitly/explicitly) do not consider all of these levels.

In the examples shown by you, molecular symmetry reduces the number of isomers possible. On paper, you might assume that any of the six hydrogen atoms at the two terminal carbon atoms may be replaced by a $$\ce{-OH}$$ group which already would lead to six isomers. No, this is not the case as they are all symmetry equivalent:

Assume the three carbon atoms - symbolized by dark spheres - as a plane; the hydroxyl group (oxygen symbolized by a red, hydrogen by white spheres) may be once at this level, or above, or below. But the whole molecule (propan-1-ol) may be rotated; the rotation of the very same group binding to $$\ce{-OH}$$ may be again above, at level, or below of this imaginary plane.

The second structure you drew is a constitutional isomer of the first one, it is propan-2-ol. You might think that it would matter if the hydrogen replaced by $$\ce{-OH}$$ is above of this level of the three carbon atoms. Again, because of symmetry, this is not the case, the two are symmetry equivalent and you have to consider only one isomer:

Thus, if you are set to look for the isomers of alcohols with the sum formula $$\ce{C3H8O}$$, there are only two isomers in total.

There would be a third isomer, an ether, if one allows for the joining $$\ce{CH3CH2-O-CH3}$$: