Pesticide residues have always been one of the food safe issues troubling consumers. Agricultural production is usually accompanied by a mixture of pesticides, and pesticide residues are not only present on plants but also contaminate soil in the environment. In this study, 15 pesticides commonly found in cowpea and soil were analyzed by optimizing QuEChERS and combining GC-MS/MS and HPLC. Various extractants and different methanol water ratios were evaluated to extract the pesticides from cowpea and soil.C18, PSA and GCB were used to purify the cowpea extracts, while in soil the ratios of de-watering agent and NaCl were optimized. The average recoveries were 91.81-109.95% and 89.89-104.08% in cowpea and soil at spiked levels of 0.0-1.0 mg/kg and 0.1-10.0 mg/kg, respectively. This method is suitable for the detection of pesticides in different types of soil (red soil, yellow soil, sandy soil, sandy loam soil, paddy soil) and different cowpea tissues. In addition, pesticide residues were detected and analyzed in the cowpea- sandy loam soil system. This demonstrates that the developed method can be used to detect the multiple pesticide in various types of soils and crops, and provides the necessary technical support for agricultural product pesticide detection and safety supervision.