A new method for the detection of β2 adrenergic agonists was developed based on the chemiluminescence (CL) reaction of β2 adrenergic agonist with potassium ferricyanide-luminol CL. The effect of β2 adrenergic agonists including isoprenaline hydrochloride, salbutamol sulfate, terbutaline sulfate and ractopamine on the CL intensity of potassium ferricyanide-luminol was discovered. Detection of the β2 adrenergic agonist was carried out in a flow system. Using uniform design experimentation, the influence factors of CL were optimized. The optimal experimental conditions were 1 mmol/L of potassium ferricyanide, 10 µmol/L of luminol, 1.2 mmol/L of sodium hydroxide, a flow speed of 2.6 mL/min and a distance of 1.2 cm from 'Y2 ' to the flow cell. The linear ranges and limit of detection were 10-100 and 5 ng/mL for isoprenaline hydrochloride, 20-100 and 5 ng/mL for salbutamol sulfate, 8-200 and 1 ng/mL for terbutaline sulfate, 20-100 and 4 ng/mL for ractopamine, respectively. The proposed method allowed 200 injections/h with excellent repeatability and precision. It was successfully applied to the determination of three β2 adrenergic agonists in commercial pharmaceutical formulations with recoveries in the range of 96.8-98.5%. The possible CL reaction mechanism of potassium ferricyanide-luminol-β2 adrenergic agonist was discussed from the UV/vis spectra.