Online sample concentration or stacking of basic drugs by transient isotachophoresis with the injection of an acid in co-electroosmotic flow capillary zone electrophoresis was studied experimentally and with computer simulation. The acid stacking strategy afforded an order of magnitude improvement in concentration sensitivity for model tricyclic antidepressant and β blocker drugs.