Partition coefficient calculator
This partition coefficient calculator finds P and log P from the concentrations of a solute in two immiscible phases, usually 1-octanol and water, converts log P into the pH-dependent distribution coefficient log D for weak acids and bases, and shows how much solute a single extraction removes at that pH.
Partition coefficient calculator: P and log P
Partition coefficient calculator for log D at any pH
How to use the partition coefficient calculator
The first panel turns a measurement into P and log P. Enter the two equilibrium concentrations, or, for a shake-flask experiment, the amount added, the amount left in the water and the two phase volumes; the third mode simply converts a tabulated log P to P. The second panel converts log P into the distribution coefficient log D at any pH for a weak acid or base and draws the whole log D–pH curve; with the optional volume ratio it also gives the fraction removed by one extraction. To compare one extraction with several smaller portions of solvent, use the crosscurrent mode of the Extraction Calculator. “Show the working” lists every step the partition coefficient calculator takes.
What is a partition coefficient?
When a solute is shaken with two immiscible liquids, it distributes between them until its chemical potential is the same in both. For dilute solutions the ratio of the concentrations is then a constant at a given temperature, the partition coefficient. In chemistry and pharmacology the standard pair is 1-octanol and water, so P is also written Kow; because values span more than ten orders of magnitude, they are reported as log P. By definition P refers to one chemical species, the neutral molecule.
log P = 0 means equal concentrations in both phases; log P = 2 means 100 times more in the octanol; log P = −1 means ten times more in the water. log P is the most used single descriptor of hydrophobicity: it predicts how well a drug crosses membranes, how far a pesticide bioaccumulates and how easily a solute can be extracted.
Worked example with the partition coefficient calculator
In a shake-flask test, 100 mg of phenol dissolved in 50 mL of water is shaken with 50 mL of 1-octanol. After the layers separate, the water still holds 3.36 mg. The organic phase therefore holds 96.64 mg, and P = (96.64/50)/(3.36/50) = 28.8, so log P = 1.46, the tabulated value for phenol. Equivalently, if you measure 46.0 mg/L in the octanol and 1.60 mg/L in the water, P = 46.0/1.60 = 28.75 and log P = 1.459. Both are defaults of the first panel of the partition coefficient calculator.
Octanol-water log P values to use in the partition coefficient calculator
All values are experimental (shake-flask or equivalent, about 25 °C), not computed: each one is the octanol-water log Kow listed under Experimental Properties, LogP, in the compound’s PubChem record (checked 31 October 2026). Most come from the compilation of Hansch, Leo and Hoekman (1995); ibuprofen and propranolol are Avdeef’s (1997) values and paracetamol is from Sangster’s LOGKOW database. Where PubChem lists more than one experimental value (ibuprofen 3.97 and 3.28, DDT 6.91 and 6.36, acetone −0.24 and −0.17), the table gives the Hazardous Substances Data Bank value. PubChem also shows a computed XLogP3 for every compound; it is an estimate and can differ from the measured log P by several tenths. Values for acids and bases refer to the neutral form, which is what the partition coefficient calculator expects when you enter log P.
| Compound | log P | P | What it means |
|---|---|---|---|
| Methanol | −0.77 | 0.17 | Strongly prefers water |
| Ethanol | −0.31 | 0.49 | Mostly in water |
| Acetone | −0.24 | 0.58 | Miscible with water, slightly hydrophilic |
| Acetic acid | −0.17 | 0.68 | Neutral form only; ionized above pH ≈ 4.8 |
| Caffeine | −0.07 | 0.85 | Almost evenly split |
| Paracetamol (acetaminophen) | 0.46 | 2.9 | Mildly lipophilic, well absorbed |
| Aspirin | 1.19 | 15 | Neutral form; pKa ≈ 3.5 |
| Phenol | 1.46 | 29 | Easily extracted from water |
| Benzene | 2.13 | 135 | Hydrophobic |
| Toluene | 2.73 | 540 | Hydrophobic |
| 1-Octanol | 3.00 | 1,000 | Reference solvent itself |
| Naphthalene | 3.30 | 2,000 | Accumulates in fatty tissue |
| Propranolol | 3.48 | 3,000 | Neutral base; pKa 9.42 |
| Ibuprofen | 3.97 | 9,300 | Neutral acid; pKa 4.91 |
| DDT | 6.91 | 8.1 × 10⁶ | Strongly bioaccumulating |
Distribution coefficient log D: how the partition coefficient calculator handles pH
Most drugs are weak acids or bases. Their ions are far more water-soluble than the neutral molecule, so the measured ratio of total concentrations, the distribution coefficient D, depends on pH. If only the neutral form partitions:
Base: log D = log P − log₁₀(1 + 10pKa − pH)
At pH = pKa half the solute is ionized, so log D = log P − 0.30. Each pH unit further into the ionized region lowers log D by about one unit. Ibuprofen (log P 3.97, pKa 4.91) is the default of the second panel: at the blood pH of 7.4, pH − pKa = 2.49, so log D = 3.97 − log(1 + 102.49) = 3.97 − 2.49 = 1.48, while in the stomach (pH 1.2) log D ≈ log P = 3.97. Propranolol, a base with log P 3.48 and pKa 9.42, gives log D7.4 = 3.48 − 2.02 = 1.46. The same equation, written as D = KD[H₃O⁺]/([H₃O⁺] + Ka), is used in Harvey’s Analytical Chemistry 2.1, section 7.7. Its Example 7.7.3 (KD = 3.00, Ka = 1.00 × 10⁻⁵, equal 50 mL volumes) extracts 75 % at pH 3, 60 % at pH 5 and 3 % at pH 7; enter log P = 0.477, pKa = 5.00 and a volume ratio of 1 in the partition coefficient calculator to reproduce all three.
Log P vs log D worked example for the partition coefficient calculator: ibuprofen
Ibuprofen is a weak carboxylic acid with log P = 3.97 and pKa = 4.91. Its log P never changes; its log D falls as the pH rises and more of it becomes the water-loving anion. Step 1: find pH − pKa. Step 2: compute 10pH − pKa, the ratio of ionized to neutral acid. Step 3: subtract log₁₀(1 + that ratio) from log P. At pH 7.4: pH − pKa = 2.49, 102.49 = 309, log₁₀(310) = 2.49, so log D = 3.97 − 2.49 = 1.48 and D = 30. Only 1/(1 + 309) = 0.32 % of the ibuprofen is neutral at that pH. The partition coefficient calculator gives the same numbers in its second panel.
| pH | pH − pKa | Neutral fraction | log D | D |
|---|---|---|---|---|
| 1.2 (stomach) | −3.71 | 99.98 % | 3.97 | 9,330 |
| 2.0 | −2.91 | 99.88 % | 3.97 | 9,320 |
| 4.91 (= pKa) | 0 | 50.0 % | 3.67 | 4,670 |
| 6.0 | +1.09 | 7.5 % | 2.85 | 700 |
| 7.4 (blood) | +2.49 | 0.32 % | 1.48 | 30 |
Two patterns are worth remembering. Well below the pKa (two or more units), log D ≈ log P because almost all the acid is neutral. Well above it, log D ≈ log P − (pH − pKa): every extra pH unit lowers log D by one. For a base the picture is reversed, with log D close to log P at high pH.
One extraction or several smaller ones?
For a fixed total volume of solvent, several small extractions remove more solute than one large one. With D = 3, 100 mL of water and 90 mL of solvent, a single 90 mL extraction removes 73.0 %, while three 30 mL portions remove 85.4 %. This is why lab procedures say “extract three times with 30 mL” rather than “once with 90 mL”. The partition coefficient calculator gives you D for the chosen pH; the Extraction Calculator then handles repeated (crosscurrent) and countercurrent extractions, solvent rates and the Kremser equation.
Where partition coefficients are used
Drug design. Lipinski’s rule of five flags oral drug candidates with log P above 5, and log D7.4 between about 1 and 3 is often considered best for absorption. Environmental fate. Chemicals with log Kow above about 4.5 are screened for bioaccumulation, and Kow feeds soil-sorption and bioconcentration estimates. Separations. Choosing the pH so the target is neutral and impurities are ionized is the basis of acid-base extraction in organic labs; the Buffer Calculator (Henderson-Hasselbalch) helps set that pH, and the Weak Acid Calculator gives the degree of ionization.
Common mistakes with a partition coefficient calculator
Inverting the ratio. P is organic over aqueous; the opposite convention flips the sign of log P. Mixing units. Both concentrations must be in the same unit; for a mass-ratio K used in process design, convert with the phase densities. Using log P for an ionized compound. At physiological pH ibuprofen is over 99 % ionized, so log D, not log P, describes its real distribution. Confusing pKa of a base. For bases, enter the pKa of the conjugate acid BH⁺ (for example 9.42 for propranolol), not pKb.
Related calculators
For process-scale liquid-liquid extraction use the extraction calculator; for pH and ionization, the pH Calculator and the weak acid calculator.
- Extraction Calculator
- Weak Acid Calculator
- Weak Base Calculator
- Buffer Calculator (Henderson-Hasselbalch)
- pH Calculator
- Concentration Converter
- Chromatography Calculator
- All chemistry calculators
Frequently asked questions
What is the difference between log P and log D?
log P is the partition coefficient of the neutral molecule and does not depend on pH. log D is the ratio of all forms (neutral plus ionized) and changes with pH; for a non-ionizable compound the two are equal.
How do you calculate log P from concentrations?
Divide the equilibrium concentration in octanol by the concentration in water and take log₁₀ of the result. For 46.0 mg/L and 1.60 mg/L, P = 28.75 and log P = 1.46.
What does a log P of 2 mean?
log P = 2 means P = 10² = 100: at equilibrium the concentration in octanol is 100 times the concentration in water. With equal volumes of the two phases, 100/101 = 99.0 % of the compound ends up in the octanol. The compound is moderately lipophilic, similar to benzene (log P 2.13), and is easy to extract from water with an organic solvent if it is not ionized. The third mode of the partition coefficient calculator converts any log P to P this way.
What does a negative log P mean?
The compound is more concentrated in water than in octanol, so it is hydrophilic. Ethanol (−0.31) and methanol (−0.77) are examples.
Why are several small extractions better than one?
Each extraction removes the same fraction of what is left, so the fraction remaining is multiplied by a factor below one at every step. Splitting 90 mL into three 30 mL portions raises the recovery from 73 % to 85 % when D = 3.
Can the partition coefficient calculator handle zwitterions or polyprotic compounds?
Not exactly. The log D equations used by the partition coefficient calculator cover a single acidic or basic group. Amino acids and other amphoteric molecules need both pKa values, and their log D curve has a maximum near the isoelectric point; use measured log D values for them.
Is this partition coefficient calculator free?
Yes. The partition coefficient calculator runs in your browser, needs no sign-up and does not store or send the values you enter.