A procedure is described for measuring pKa values in a short time, e.g., 4 min/assay. Samples, as 10 mM solutions, are prepared in DMSO in 96-well plates. A flowing pH gradient is produced by mixing two buffer solutions containing mixtures of weak acids and bases that do not absorb significantly in the UV above 250 nm. The sample solution is diluted with water and then injected directly into the flowing gradient, which then passes through a diode array spectrophotometer measuring in the UV wavelength range. The buffer has been formulated so that its acid-base titration curve is linear over a wide pH range, such that the pH of the gradient is a linear function of time. The solution pH in the measurement flow cell is therefore proportional to the time elapsed since the start of gradient generation. The sample's pKa values are calculated from the change in UV absorbance at multiple wavelengths as a function of pH. The pKa values of 71 drugs have been measured, and results compare well with values measured by pH-metric or traditional UV methods. Rules are suggested for the rapid inspection of data and the choice of method for the calculation of pKa from the data.