mfsig.com
logppartition-coefficientoctanol-wateractivity-coefficient5 min read

log P and partition coefficients from σ-profiles

A partition coefficient is a ratio of activity coefficients in two phases, so σ-profiles predict log P from the same model that predicts solubility.

Updated November 28, 2026

A partition coefficient is a solubility ratio in disguise. The solute in two immiscible liquids at equilibrium has one chemical potential, so the ratio of its concentrations is fixed by the ratio of its activity coefficients and by the molar volumes of the phases. A σ-profile model that gives activity coefficients therefore gives log P, octanol-water or any other pair, from the same inputs that give solubility. The fusion term drops out because the crystal is not involved.

The equation behind log P

Write the solute's chemical potential in phase A as its pure-liquid value plus RT ln(x_A γ_A), and the same in phase B. Equality at equilibrium gives x_A/x_B = γ_B/γ_A, because the pure-solute reference is the same on both sides. A sigma profile model such as COSMO-RS or COSMO-SAC gives γ_A and γ_B from the solute's profile and each phase's profile.

Experimenters report concentrations, not mole fractions. The conversion for a dilute solute is c = x / V_m, where V_m is the molar volume of the phase. So P = (c_A/c_B) = (γ_B/γ_A) × (V_B/V_A). For octanol and water, V_m of water is about 18 cm³/mol and that of octanol is several times larger, so the volume ratio contributes a constant of roughly minus one log unit to log P_ow in favour of water. Omitting it is the most common error in a home-made log P calculation. The guide on activity coefficients from σ-profiles explains where γ comes from.

Octanol is wet, and it matters

The octanol phase in a shake-flask experiment is saturated with water. That water is not a trace. It changes the σ-profile of the phase, adding strongly charged donor and acceptor segments to octanol's mostly neutral body. A polar solute sees a friendlier octanol phase than the pure liquid would offer, and its log P comes out lower than a dry-octanol calculation predicts.

In a σ-profile model the wet octanol phase is a mixture, so its profile is the mole-fraction-weighted sum of octanol's and water's profiles at the saturation composition. The model can predict that composition itself from the liquid-liquid equilibrium of the pair, or you can take the measured value from the literature. The water-rich phase holds only a trace of octanol and is usually treated as pure water. The guide on predicting liquid-liquid miscibility covers how a model finds the two coexisting compositions.

From the .mfsig file to the two activity coefficients

MFsig computes the solute's σ-profile from a SMILES in a water-like continuum of ε = 80, and the same for octanol and water. The σ written in each .mfsig file is raw, the screening charge per segment divided by its area. COSMO-RS and COSMO-SAC were parameterised on averaged profiles, so you must apply the model's averaging to the per-segment data before building any histogram. The guide on σ-averaging in COSMO-RS gives the formula and the effective radius.

Then the calculation is mechanical. Build the averaged profile of the solute, of water and of wet octanol. Solve the model for μ(σ) in each phase. Integrate the solute's profile to get ln γ in each. Apply the molar volume correction. A short snippet shows the last step.

import math

ln_g_water, ln_g_octanol = model_values   # from your COSMO-type model, dilute limit
V_water, V_wet_octanol = 18.07, 150.0     # cm3/mol, the second is a placeholder
log_P = (ln_g_water - ln_g_octanol) / math.log(10) + math.log10(V_water / V_wet_octanol)
print(round(log_P, 2))

The molar volume of wet octanol depends on its water content, so compute it from the composition and the densities rather than copying the dry value.

log P versus log D, and the species problem

log P describes one neutral species. Most drugs ionise, and the experimentally useful quantity at physiological pH is log D, the distribution coefficient summed over all species. A σ-profile model gives one log P per species. To reach log D you need the pKa values, the fraction of each species at the target pH and, for the ions, a treatment of ion-pair partitioning that is beyond a simple continuum picture. The guide on σ-profiles of ions and zwitterions explains why ionic σ-profiles are harder. For the neutral form, MFsig computes exactly the protonation state written in the SMILES, so write the neutral form explicitly.

Tautomers matter too. A compound that exists as two tautomers partitions as a mixture, and each tautomer has its own σ-profile. Decide which tautomer dominates in each phase before computing, or compute both and weight them.

Why log P is also a solubility ingredient

The general solubility equation of Yalkowsky, log S = 0.5 − 0.01 (T_m − 25) − log P with T_m in °C and S in mol/L, ties aqueous solubility to log P and the melting point with no other input. It is a correlation, not a theory, but it shows that log P and solubility share their physics. The hydrophobic surface that raises log P is the same surface that lowers aqueous solubility. Delaney's ESOL model uses log P the same way. A σ-profile model replaces the correlation with a calculation, and gives both quantities from one profile.

MFsig stops at the σ-profile and the descriptors. The partition and solubility predictions, with their accuracy statements, live on MolForge in the solubility matrix.

Key points

  • log P is the base-ten logarithm of a concentration ratio, which equals an activity coefficient ratio times a molar volume ratio.
  • The molar volume correction for octanol-water is about minus one log unit and is easy to forget.
  • Octanol in a shake-flask is wet, and the water changes its σ-profile and the predicted log P of polar solutes.
  • A σ-profile gives log P of one species. log D needs pKa values and a treatment of the ions.
  • Average the raw σ from each .mfsig file before any COSMO-RS or COSMO-SAC calculation.

Questions people ask

How is log P related to activity coefficients?
At equilibrium the solute has the same chemical potential in both phases, so the ratio of its mole fractions equals the inverse ratio of its activity coefficients. Converting mole fractions to concentrations brings in the molar volumes of the two phases. log P is the base-ten logarithm of that concentration ratio.
What is the difference between log P and log D?
log P refers to a single neutral species. log D is the distribution coefficient of all species of a compound at a given pH, including ions. A σ-profile describes one species, so a σ-profile model gives log P directly and needs pKa values and a treatment of the ionic forms to reach log D.
Does the octanol phase in a log P calculation need to contain water?
Yes if you want to match experiment. Octanol saturated with water holds a substantial mole fraction of water, which changes its σ-profile and its hydrogen-bonding capacity. The water-rich phase holds only a trace of octanol and is usually treated as pure water.
Can I predict log P from the raw σ in a .mfsig file?
Not directly with a COSMO-RS or COSMO-SAC model. Those models expect the averaged σ-profile. Apply the model's σ-averaging to the per-segment screening charges first, then build the histogram and compute the activity coefficients in each phase.

Further reading

In practice: MFsig provides the σ-profile and descriptors; the downstream solubility and compatibility predictions live on the MolForge platform (solubility matrix, polymer lab) and carry their own accuracy statements there.

Generate a σ-profile from your SMILES

Free converter for a profile you already have, a reference-grade DFT run with its provenance record when it has to be defensible.