The combination of benzoyl peroxide and erythromycin is used for the local treatment of acne and available as a commercial preparation. Because of the stability problems of erythromycin an extempore preparation is required. The influence of storage temperature and non active ingredients on the stability of benzoyl peroxide and erythromycin in topical gel preparations for extempore compounding is described. A microbiological and an HPLC method were used to determine the erythromycin and the benzoyl peroxide concentrations, respectively. For a formulation compounded with hydroxyethylcellulose no stability problems were observed. For the formulation containing Carbopol 940, the levels of erythromycin varied over a wide range due to precipitation and aggregation of the drug during compounding.