Guides / Properties and drug-likeness

rotatable-bondsflexibilityconformersveberrdkit

Rotatable bonds and molecular flexibility in drug design

A rotatable bond is a non-ring single bond between two non-terminal heavy atoms. The count is a quick flexibility measure linked to bioavailability and binding.

Updated 4 min read

A rotatable bond is a single bond, outside any ring, between two heavy atoms that both have other heavy-atom neighbours. Counting them gives a quick measure of molecular flexibility. Flexible molecules tend to show lower oral bioavailability, pay an entropy cost when they bind and are harder to model. Veber's rules use 10 rotatable bonds as the upper limit for oral drug candidates.

What counts as a rotatable bond

Most definitions share four conditions:

The last condition is where programs disagree most. Some definitions also exclude ester bonds, bonds to an atom in a triple bond or bonds between two rings held apart by bulky ortho groups.

RDKit gives more than one answer

RDKit offers several definitions through NumRotatableBondsOptions. The default, called strict, excludes amide and ester bonds. The non-strict option counts them. Both ignore bonds to terminal atoms and to atoms in triple bonds.

from rdkit import Chem
from rdkit.Chem import rdMolDescriptors as rd

opts = rd.NumRotatableBondsOptions
drugs = {
    "paracetamol": "CC(=O)Nc1ccc(O)cc1",
    "aspirin": "CC(=O)Oc1ccccc1C(=O)O",
    "ibuprofen": "CC(C)Cc1ccc(cc1)C(C)C(=O)O",
    "atorvastatin": "CC(C)c1c(C(=O)Nc2ccccc2)c(-c2ccccc2)"
                    "c(-c2ccc(F)cc2)n1CC[C@@H](O)C[C@@H](O)CC(=O)O",
}
for name, smi in drugs.items():
    mol = Chem.MolFromSmiles(smi)
    print(name,
          rd.CalcNumRotatableBonds(mol, opts.Strict),
          rd.CalcNumRotatableBonds(mol, opts.NonStrict),
          round(rd.CalcPhi(mol), 2))
# paracetamol 1 2 2.11
# aspirin 2 3 2.64
# ibuprofen 4 4 3.89
# atorvastatin 12 13 9.7

Paracetamol keeps only its N-aryl bond under the strict definition and adds the amide C-N bond under the non-strict one. Aspirin's ester bond behaves the same way. Ibuprofen has neither group, so both counts agree. Report the definition with the number, because a difference of one can move a compound across a threshold. The last column is Kier's flexibility index, phi. It is built from Kier's shape indices, which encode size, branching and rings, and it grows with flexibility.

Flexibility and oral bioavailability

Veber and colleagues found in 2002 that fewer rotatable bonds predicted good oral bioavailability in the rat, independently of molecular weight. More rotatable bonds also slowed permeation through an artificial membrane. Their analysis set the limit at 10, alongside a polar surface area of 140 Ų, and the guide to Veber's rules covers it in full.

Atorvastatin has 12 rotatable bonds under the strict count. Seven of them sit in its dihydroxy heptanoic acid side chain, the part of the molecule that mimics the substrate of its target enzyme, HMG-CoA reductase. The drug is taken by mouth, which shows that the limit marks a trend, not a wall.

Conformers multiply with every rotatable bond

Each rotatable bond between two sp3 atoms has roughly three low-energy staggered positions. The number of combinations therefore grows like 3 raised to the number of bonds. One bond gives 3 combinations, 10 bonds give 59,049 and 12 bonds give 531,441. Most combinations clash or sit high in energy, but the search space still grows exponentially. Conformer generators such as RDKit's ETKDG sample that space instead of enumerating it.

Docking feels the same growth. Each rotatable bond is a degree of freedom the search must explore. AutoDock Vina also divides its score by a term that grows with the number of rotatable bonds. Docking in Advanced Modeling uses AutoDock Vina, and the guide to ligand preparation for docking explains how to prepare a flexible ligand.

Flexibility and binding

A flexible ligand must freeze into one conformation when it binds. That loss of conformational entropy reduces the free energy gained from binding. Rigidification is therefore a classic optimisation step. Chemists close rings, add a double bond or place ortho groups that restrict a biaryl twist. The tactic works only when the locked shape matches the bound pose. Locking the wrong conformation can remove all activity.

Rigidity has side effects. Fewer rotatable bonds often come with more rings, and more aromatic rings bring their own problems, described in the guide to aromatic ring count and Fsp3.

What a simple count misses

Key points

Questions people ask

What counts as a rotatable bond?
A rotatable bond is a single bond, outside any ring, joining two heavy atoms that each have at least one other heavy-atom neighbour. Bonds to methyls, hydroxyls and halogens are excluded because turning them does not change the heavy-atom skeleton. Most programs also exclude amide C-N bonds, which have partial double-bond character.
How many rotatable bonds should an oral drug have?
Veber and colleagues found in 2002 that compounds with 10 or fewer rotatable bonds, together with a polar surface area of 140 Ų or less, more often had good oral bioavailability in the rat. The limit marks a trend in data, and approved oral drugs with more rotatable bonds exist.
Why do rotatable bond counts differ between programs?
Definitions differ. RDKit's default strict definition excludes amide and ester bonds and its non-strict option counts them, so paracetamol scores 1 or 2 depending on the option. Other programs make their own choices about amides, triple bonds and bonds between rings.
Do rotatable bonds affect binding affinity?
Each rotatable bond that must freeze on binding costs conformational entropy, which reduces the free energy gained. Rigidifying a flexible lead, for example by closing a ring, can raise potency when the locked shape matches the bound pose. A locked shape that does not match the pose can remove all activity.

Further reading

In practice: The ADMET dashboard computes the RDKit property profile and the Lipinski flags for any compound; the numbers in these guides are the ones it shows.

← All guides