MolBasis
logppartition-coefficienthydrophobicityqspr4 min read

logP, the octanol-water partition coefficient as a target

logP is the log10 ratio of a neutral compound's concentration in water-saturated octanol to that in water. Here is how it is measured, modelled and misread.

Updated November 28, 2026

logP is the base-10 logarithm of the partition coefficient P, the ratio of a compound's concentration in octanol to its concentration in water when the two liquids are at equilibrium and the compound is in its neutral form. It measures hydrophobicity on a scale where each unit is a factor of ten, and it is the most widely used single number in medicinal chemistry and in environmental fate.

The definition, and the three words that matter in it

P = [X]octanol / [X]water, measured with octanol that has been saturated with water and water that has been saturated with octanol, at a temperature near 25 °C. Three parts of that definition cause most of the confusion. Neutral means the measurement refers to the un-ionised species, otherwise the quantity is logD. Octanol means wet octanol, which holds a substantial amount of dissolved water and so is a more polar phase than a dry alkane. Equilibrium means the two phases were given time to reach it, which for very hydrophobic compounds can take days.

If a compound reaches 1000 times the concentration in octanol that it reaches in water, P = 1000 and logP = 3. A compound that prefers water, such as a small polyol, has P below 1 and a negative logP. Most drugs sit between 0 and 5. Agrochemicals and persistent pollutants reach 6 and above, where measurement becomes unreliable.

How logP is measured and how noisy the numbers are

The classical shake-flask method works well between about −2 and 4. Above that, the water-phase concentration becomes too small to quantify, and emulsions or adsorption to glass bias the result. Slow-stir methods, reversed-phase HPLC retention calibrated against standards, and potentiometric titration for ionisable compounds extend the range. Values for the same compound from different laboratories commonly differ by a few tenths of a log unit, and by more at the extremes.

The Sangster compilation gathers critically evaluated logP values from the literature and grades their quality. The guide on the Sangster logP dataset describes what that file holds. A model fitted on a compilation inherits its quality grades, so a residual of 0.3 may be measurement disagreement rather than model error.

logP is a difference of two solvation free energies

Partitioning is a transfer from one solvent to another, so logP can be written from the solvation free energies of the solute in the two phases, logP = (ΔGhyd − ΔGoct) / (2.303 RT). At 298 K the denominator is 1.364 kcal/mol per log unit. A solute with ΔGhyd = −5.0 kcal/mol and ΔGoct = −7.0 kcal/mol has ΔΔG = 2.0 kcal/mol and logP = 2.0 / 1.364 = 1.47. The relation is approximate for wet octanol, since that phase contains water, but it explains why solvation models and logP models share descriptors. The guide on solvation free energy in organic solvents develops the point.

Three ways to estimate logP from structure

Atom and fragment contribution. Each atom type carries a fixed increment and the increments are summed. The Wildman and Crippen scheme is the one shipped in RDKit, and it takes three lines.

from rdkit import Chem
from rdkit.Chem import Crippen

mol = Chem.MolFromSmiles("CC(=O)Oc1ccccc1C(=O)O")
print(round(Crippen.MolLogP(mol), 2))

Fingerprint and machine-learning models. Random forests, gradient boosting or graph networks fitted on tens of thousands of values. They do well inside their training distribution and degrade on new scaffolds, and the guide on quantum descriptors versus fingerprints compares the two representations.

Physics-based descriptors. Quantities from a continuum-solvent quantum calculation, such as the polar solvation energy and the surface charge moments, describe the same interactions that set the two solvation free energies above. mfsig computes nine such descriptors from one DFT calculation per molecule, and MolBasis fits one- and two-term equations on them.

How MolBasis reports its logP kernels

Three logP kernels are published, each fitted on a different dataset. The pages at /kernels/sangster-logp, /kernels/llinas-logp and /kernels/aqueous-logp each state the held-out Pearson r on a 25 % scaffold-blind split, the number of held-out molecules behind it, and the in-sample figure as a secondary value. A separate blind benchmark on logP with stored per-molecule predictions is the only place where the site has recomputed statistics itself.

None of the three has an external validation set. None is compared with another method on the same molecules. The coefficients are not published, so a kernel page tells you what the research record found and not what your molecule's logP is.

logP or logD

A dataset labelled logP may hold logD values measured in buffer, and a model fitted on the mixture learns neither quantity well. Check which one you have before you fit. The guide on logP versus logD as QSPR targets sets out the arithmetic and the consequences.

Key points

  • logP is the base-10 logarithm of the neutral-species concentration ratio between water-saturated octanol and water.
  • Shake-flask measurements are reliable up to about logP 4, and literature values commonly disagree by a few tenths.
  • logP is a difference of two solvation free energies divided by 1.364 kcal/mol at 298 K, which is why solvation descriptors predict it.
  • The MolBasis logP kernel pages state held-out figures and molecule counts, with no external validation and no published coefficients.
  • Confirm that a dataset holds logP and not logD before fitting.

Questions people ask

What exactly does logP measure?
logP is the base-10 logarithm of the partition coefficient, the ratio of a compound's concentration in octanol to its concentration in water at equilibrium, for the neutral form of the molecule. A ratio of 1000 to 1 gives logP = 3. Negative values mean the compound prefers water.
How reliable are experimental logP values?
Shake-flask measurements work well between about −2 and 4. Above that the aqueous concentration is too small to quantify and emulsions or adsorption bias the result. Values for the same compound from different laboratories commonly differ by a few tenths of a log unit, and more at the extremes.
How is logP related to solvation free energy?
Partitioning is a transfer between two solvents, so logP equals the difference between the hydration free energy and the octanol solvation free energy divided by 2.303 RT, which is 1.364 kcal/mol at 298 K. A 2.0 kcal/mol difference corresponds to logP of about 1.47.
Which logP kernels does MolBasis publish?
Three, fitted on the Sangster compilation, the Llinas challenge set and an aqueous cosolvent set. Each kernel page states its held-out Pearson r on a scaffold-blind split and the number of molecules behind it. None has an external validation set and the coefficients are not published.

Further reading

In practice: Each property here has a kernel page that states the equation shown, its held-out result on the scaffold-blind split and the number of molecules it rests on. The guides explain the property; the kernel page carries the figures and their caveats.

See the kernels themselves

Every kernel is shown with its held-out result, the number of molecules it rests on and what it cannot be trusted for.