Mixtures of the cationic surfactants benzalkonium chloride (BKC) and cetylpyridinium chloride (CPC) were quickly resolved and reproducibly and reliably determined by using background electrolytes (BGEs) containing 80 mM borate, pH 8.5, bile salts and large concentrations of an organic solvent. When the bile salt is present, the separation mechanism changes from capillary zone electrophoresis (CZE) to a mixed micellar electrokinetic chromatography (MEKC)-CZE, with predominant MEKC interactions, which lead to an excellent resolution of all the solutes, including the C12-C18 homologues of BKC and CPC. A BGE containing 50 mM sodium deoxycholate and 30% ethanol for an extreme resolution, or 20% tetrahydrofuran for an adequate resolution within a much shorter analysis time, is recommended. The procedure was applied to the determination of the surfactants in industrial and household formulations, with excellent resolution between the homologues, detection limits of a few microg ml(-1) and reproducibilities below 2%.