A solvent will be more likely to promote ionization of a dissolved acidic molecule in the following circumstances:
# It is a protic solvent, capable of forming hydrogen bonds.
# It has a high donor number, making it a strong Lewis base.
# It has a high dielectric constant (relative permittivity), making it a good solvent for ionic species.
pK values of organic compounds are often obtained using the aprotic solvents dimethyl sulfoxide (DMSO) and acetonitrile (ACN).
DMSO is widely used as an alternative to water because it has a lower dielectric constant than water, and is less polar and so dissolves non-polar, hydrophobic substances more easily. It has a measurable pK range of about 1 to 30. Acetonitrile is less basic than DMSO, and, so, in general, acids are weaker and bases are stronger in this solvent. Some pK values at 25 °C for acetonitrile (ACN) and dimethyl sulfoxide (DMSO). are shown in the following tables. Values for water are included for comparison.
Ionization of acids is less in an acidic solvent than in water. For example, hydrogen chloride is a weak acid when dissolved in acetic acid. This is because acetic acid is a much weaker base than water.
Compare this reaction with what happens when acetic acid is dissolved in the more acidic solvent pure sulfuric acid:
The unlikely geminal diol species  is stable in these environments. For aqueous solutions the pH scale is the most convenient acidity function. Other acidity functions have been proposed for non-aqueous media, the most notable being the Hammett acidity function, H, for superacid media and its modified version H for superbasic media.
In aprotic solvents, oligomers, such as the well-known acetic acid dimer, may be formed by hydrogen bonding. An acid may also form hydrogen bonds to its conjugate base. This process, known as homoconjugation, has the effect of enhancing the acidity of acids, lowering their effective pK values, by stabilizing the conjugate base. Homoconjugation enhances the proton-donating power of toluenesulfonic acid in acetonitrile solution by a factor of nearly 800.
In aqueous solutions, homoconjugation does not occur, because water forms stronger hydrogen bonds to the conjugate base than does the acid.