The invention belongs to the technical field of drug detection, in particular to a method for simultaneously detecting 12 kinds of alkaline drugs in hair. The method for simultaneously analyzing 12 kinds of psychoactive drugs in hair is simple, rapid and has a wide analysis range. Compared with the existing methods, the present invention saves the liquid-liquid extraction process in the sample pretreatment, and the whole process can be completed within 1 hour without increasing the time; on the contrary, when multiple samples are analyzed, it shows high-throughput Advantage. The technical solution provided by the invention can realize external pollution detection and real-time quantitative analysis of actual cases, and is convenient for data accumulation of positive cases. Therefore, the method for simultaneously detecting 12 kinds of basic drugs in hair of the present invention has excellent selectivity, linear correlation, precision and accuracy, and at the same time, the LOD and LOQ are low enough, so that it can successfully be used for inferring the source of drugs and correctly distinguishing them. It provides technical support for illegal abuse and clinical drug use, and has considerable market potential.