Double-bond E/Z in InChI

A drawn double bond is E or Z. A label says whether the sample really is, is one of the two without knowing which, or is a mixture. This page shows how abs, or and & on a double bond become an InChI.

One drawing of fumaric acid, three different samples. With enhanced stereochemistry each one gets its own InChI:

Standard InChI takes every drawn double bond as known and gives all three /b2-1+.

The three labels on a double bond

The labels are the same as for stereocentres, but they sit on the bond. Bonds with the same label and number form a group and change together.

abs

The sample has exactly the drawn geometry.

A double bond drawn E or Z with no label counts as abs too. InChI writes it as in standard InChI.

2

or1, or2, …

One isomer: the drawn geometry or the other one. Nobody knows which.

fumaric acid (E)
or
maleic acid (Z)
3

&1, &2, …

A mixture of both geometries.

fumaric acid (E)
+
maleic acid (Z)

The digit is what InChI writes before an or or & group in its /b layer. abs gets no digit.

Same sample, same InChI

Fumaric acid labelled &1 and maleic acid labelled &1 are the same sample: the E/Z mixture. Both drawings give one InChI. Standard InChI gives two different strings, /b2-1+ and /b2-1-.

fumaric acid, &1
maleic acid, &1
/b3(2-1-)

Why there is no /m

E and Z are not mirror images, so there is no enantiomer to pick. Double bonds never use /m. Flipping a group's geometry needs no record.

From drawing to InChI, step by step

Example: sorbic acid, CH₃–CH=CH–CH=CH–COOH. The C4=C5 bond is labelled abs, the C2=C3 bond &1. The sample is (2E,4E) mixed with (2Z,4E).

  1. You draw and label

    The drawing gives each double bond E or Z. Labels on the bonds say how much of it is known. The structure editor stores them in the V3000 molfile as STEBABS (abs), STEBRELn (orn) and STEBRACn (&n), the bond versions of the stereocentre labels.

    Only V3000 files carry labels. A V2000 file gives a standard InChI.

  2. InChI checks the labels

    • Each bond has at most one label.
    • There is at most one abs group, and each group number is used once.
    • Every labelled bond exists.
    • An or or & group stays within one molecule.

    If any check fails, InChI warns and drops all labels. The result is then the standard InChI, never a guess. Labels on single bonds, or on double bonds without a defined geometry, are ignored.

  3. InChI numbers the atoms

    Every atom gets a canonical number (grey), the same for every drawing. A double bond is named by its two atoms, higher number first: C4=C5 is 3-2, C2=C3 is 5-4.

    12345678
  4. InChI sorts the bonds into groups

    groupbondscontains
    absolute3-2 (C4=C5)every abs bond plus every drawn E/Z bond without a label
    &15-4 (C2=C3)the bonds labelled &1
  5. InChI flips each or and & group so its first bond reads −

    From the drawing, each double bond gets a sign, + or −. (The sign is InChI's parity, read from the canonical numbers of the neighbours. It is not E/Z, although here + happens to be E.) The drawing gives 3-2+ and 5-4+.

    In each or or & group, look at the lowest-numbered bond. If it is +, flip every bond in that group. The group stands for both geometries anyway, so nothing changes chemically. Absolute bonds keep their sign.

    groupbondas drawnwritten
    absolute3-2+keep+
    &15-4+flip−
  6. InChI writes the /b layer

    InChI=1B/C6H8O2/c1-2-3-4-5-6(7)8/h2-5H,1H3,(H,7,8)/b3-2+,3(5-4-)
    3-2+
    absolute bonds first, written as in standard InChI
    3(5-4-)
    then the groups: 3 says & (mixture), the brackets hold the group's bonds

    The prefix InChI=1B marks the string as enhanced (beta), so it is never mistaken for a standard InChI.

  7. Check: draw the other member of the mixture

    Draw C2=C3 the other way, (2Z,4E). Bond 5-4 is now − as drawn: no flip. Bond 3-2 is unchanged. Same sample, same InChI:

    /b3-2+,3(5-4-)

Rules at a glance

Absolute bonds stay as they were

abs bonds and unlabelled E/Z bonds are written exactly as in standard InChI, with no digit.

/b3-2+,5-4+

Groups get a digit and brackets

2 for or, 3 for &, then each group's bonds in brackets. Several groups of one class share the digit.

/b3(3-2-)(5-4-)

Order: absolute, then or, then &

Absolute entries first, then all or groups, then all & groups, joined by commas.

/b2(5-4-),3(3-2-)

First bond of a group reads −

The whole group flips until its first bond is −. So every drawing of the same sample gives the same string.

A group keeps relative geometry

The other bonds keep their sign relative to the first. In sorbic acid, (2E,4E) and (2Z,4Z) give one string, (2Z,4E) and (2E,4Z) another:

/b3(3-2-,5-4-) /b3(3-2-,5-4+)

No /m for double bonds

E and Z are not mirror images. Nothing records a flip.

Unknown geometry is not or

A crossed or wavy double bond has no geometry to group. It is written as standard InChI writes it, and its label is ignored.

Bad labels are dropped, not guessed

A bond in two groups, two abs groups, an unknown bond, or a group across two molecules: InChI warns and returns the standard InChI with prefix 1B.

Every row uses the same (2E,4E) drawing of sorbic acid. Only the labels change. The vials show what the sample contains. Strings are shown from /b on.

1 C2=C3 abs C4=C5 abs

Pure (2E,4E). Both bonds known.

(2E,4E)
Enhanced InChI
/b3-2+,5-4+
Standard InChI
/b3-2+,5-4+
2 C2=C3 or1 C4=C5 or1

One isomer, unknown which. Known: both bonds have the same geometry.

(2E,4E)
or
(2Z,4Z)
Enhanced InChI
/b2(3-2-,5-4-)
Standard InChI
/b3-2+,5-4+ cannot tell this sample apart
3 C2=C3 &1 C4=C5 &1

A mixture of both. Each molecule has two equal geometries.

(2E,4E)
+
(2Z,4Z)
Enhanced InChI
/b3(3-2-,5-4-)
Standard InChI
/b3-2+,5-4+ cannot tell this sample apart
4 C2=C3 &1 C4=C5 abs

C4=C5 is known (E); C2=C3 is an E/Z mixture.

(2E,4E)
+
(2Z,4E)
Enhanced InChI
/b3-2+,3(5-4-)
Standard InChI
/b3-2+,5-4+ cannot tell this sample apart
5 C2=C3 or1 C4=C5 abs

C4=C5 is known (E); C2=C3 is one geometry, unknown which.

(2E,4E)
or
(2Z,4E)
Enhanced InChI
/b3-2+,2(5-4-)
Standard InChI
/b3-2+,5-4+ cannot tell this sample apart
6 C2=C3 or1 C4=C5 or2

Any one of the four isomers. Each bond unknown on its own.

(2E,4E)
or
(2Z,4Z)
or
(2Z,4E)
or
(2E,4Z)
Enhanced InChI
/b2(3-2-)(5-4-)
Standard InChI
/b3-2+,5-4+ cannot tell this sample apart
7 C2=C3 &1 C4=C5 &2

All four isomers. Each bond a mixture on its own.

(2E,4E)
+
(2Z,4Z)
+
(2Z,4E)
+
(2E,4Z)
Enhanced InChI
/b3(3-2-)(5-4-)
Standard InChI
/b3-2+,5-4+ cannot tell this sample apart
8 C2=C3 none C4=C5 &1

C2=C3 is known (E, no label); C4=C5 is an E/Z mixture.

(2E,4E)
+
(2E,4Z)
Enhanced InChI
/b5-4+,3(3-2-)
Standard InChI
/b3-2+,5-4+ cannot tell this sample apart

Double bonds next to stereocentres

Bond groups and centre groups are independent. Double bonds go to /b, centres to /t, /m and /s, as on the stereocentre page.

256431

(2R,3E)-Pent-3-en-2-ol. Standard InChI: /b4-3+/t5-/m1/s1.

C3=C4C2enhanced InChI
&1abs/b3(4-3-)/t5-/m1/s1
none&1/b4-3+/t5-/s3
&2&1/b3(4-3-)/t5-/s3

/m1 stays only when the centre is absolute: it belongs to the centre, not the bond.

Several molecules in one record

A mixture or salt has one slot per molecule, separated by ;. Each molecule has its own groups.

5361247813421

Fumaric acid labelled &1 (E/Z mixture), (E)-but-2-ene without a label, water.

/b3(2-1-);4-3+;
butenedioic acidbut-2-enewater
/b3(2-1-)4-3+none

What InChI ignores or rejects

A group across two molecules

One &1 over the C=C of fumaric acid and of but-2-ene would link two separate molecules, which one slot per molecule cannot express.

Warning: V3000 collections: STEBRAC1 spans more than one component.
All labels dropped; result is the standard InChI: /b2-1+;4-3+
12345678

A label on a single bond

Here &1 is on the C3–C4 single bond. It has no E/Z, so the label is ignored and the result is the standard /b3-2+,5-4+.

A label on a crossed double bond

C2=C3 drawn crossed (geometry unknown) and labelled &1: the label is ignored. The bond keeps standard InChI's unknown mark ?:

/b3-2+,5-4?

A bond in two groups

Warning: V3000 collections: bond in more than one stereo collection.
All labels dropped; standard InChI.

Reading a real string

All-trans retinal with four stereo double bonds in the chain: one labelled &1, one or1, two without a label. Grey numbers are canonical.

318192045147101211161869172131521
/b9-6+,12-11+,2(17-13-),3(16-8-)
/b partmeaningbond
9-6+absoluteatoms 9 and 6
12-11+absoluteatoms 12 and 11
2(17-13-)or: one geometry, unknown whichatoms 17 and 13
3(16-8-)and: E/Z mixtureatoms 16 and 8

How to use it

Input. A V3000 molfile whose double bonds are drawn E or Z and listed in bond collections: STEBABS, STEBRELn, STEBRACn, each with BONDS=(…), the bond indices of the molfile.

Command line. Add -EnhancedStereochemistry. (2E,4E)-Sorbic acid, both bonds in one & group:

$ inchi-1 sorbic.mol -STDIO -AuxNone -Key -EnhancedStereochemistry
InChI=1B/C6H8O2/c1-2-3-4-5-6(7)8/h2-5H,1H3,(H,7,8)/b3(3-2-,5-4-)
InChIKey=WSWCOQWTEOXDQX-XZUSWEKDBA-N

Without the option the bond collections are ignored:

$ inchi-1 sorbic.mol -STDIO -AuxNone -Key
InChI=1S/C6H8O2/c1-2-3-4-5-6(7)8/h2-5H,1H3,(H,7,8)/b3-2+,5-4+
InChIKey=WSWCOQWTEOXDQX-MQQKCMAXSA-N

From a program, pass the option to the InChI library like any other, e.g. MakeINCHIFromMolfileText(molfile, "-EnhancedStereochemistry", &output) or in the options string of GetINCHI. The InChI starts with InChI=1B/: a beta feature, so the format can still change.