Codeine (written Cod) is a weak base:
Cod+H2O⇌CodH++OH−,Kb=[Cod][CodH+][OH−]
Given: c=0.005 mol L−1, pH = 9.95. At 298 K,
pOH=14−9.95=4.05,[OH−]=10−4.05=8.91×10−5 mol L−1
[CodH+]=[OH−], and since 8.91×10−5 is only 1.8 % of 0.005, [Cod]≈0.005 M:
Kb=0.005(8.91×10−5)2=0.0057.94×10−9=1.59×10−6
pKb=−log(1.59×10−6)=6−0.20=5.80
The ionization constant of codeine is 1.6×10−6 and its pKb is 5.80.