Calculate the concentration of hydrogen ions with the formula [H+] = 1/(10^pH). The units for concentration are moles per liter, where a mole is a set of particles whose quantity equals 6.02 x 10^23. For example, if the pH of the solution is 2.29, the concentration is [H+] = 1/(10^2.29) = 5.13 x 10^-3 moles/liter.
Find the dissociation constant with the formula Ka = [H+]²/([HA] - [H+]), where Ka is the dissociation constant, and [HA] is the concentration of the acid before dissociation. For example, if the initial concentration is 0.15 moles/liter, Ka = (5.13 x 10^-3)²/(0.15 - (5.13 x 10^-3)) = 1.82 x 10^-4.
Calculate the pKa with the formula pKa = -log(Ka). For example, pKa = -log(1.82 x 10^-4) = 3.74.