A novel tandem extraction method based on electromembrane extraction (EME) and slug flow microextraction (SFME) was developed for the extraction of some narcotics (methamphetamine, methadone, tramadol, and buprenorphine) from biological samples. The analytes were quantified by corona discharge-ion mobility spectrometry (CD-IMS). In this method, initially, analytes were extracted using an EME procedure (step-1). After that, the acceptor solution of the first step containing target analytes was applied in an SFME procedure (step-2) as a donor solution for further preconcentration. In the second step, analytes were extracted from an aqueous solution into an organic extractant. The optimum EME and SFME conditions were as follows: type of supported liquid membrane: 2-nitrophenyl octyl ether containing 10% v/v di-(2-ethylhexyl) phosphate, acceptor solution pH: 1.0, sample solution pH: 4.0, voltage: 248 V, extraction time: 17.5 min, tilting number of glass capillary tube: 10 times, type of the organic extractant: toluene, the concentration of NaOH solution: 400 mM. Under optimum extraction conditions, good linearity was obtained in the range of 0.50-750.0 ng/mL with coefficients of determination (r2) ≥ 0.991. The limits of detection and quantification were achieved in the range of 0.15-3.5 ng/mL and 0.50-12.0 ng/mL, respectively. The inter-day and intra-day precisions (n = 3) provided RSDs lower than 12.8% and 12.7%, respectively. Enrichment factors and extraction recoveries of the analytes were in the range of 255.7 to 505.4 and 37.6-78.3%, respectively. Comparing the EME/HPLC-UV with EME-SFME/CD-IMS showed that using the tandem extraction method improved the enrichment factors by more than 2.7 times and limits of detection and quantification by more than 15 times. Finally, this procedure was used to quantify target analytes in plasma and urine samples.