The invention provides a method for detecting volatile components in a medicinal preparation, which adopts an HS-GC / MS (headspace-gas chromatography / mass spectrometry) method to simultaneously detect22 material components including methyl eugenol, safrole, 3, 5-dimethoxytoluene, 1, 2, 3-trimethoxy-5-methyl benzene, myristyl ether, elemenin, 2-Undecenal, 9-decenal, tetradecanoic acid, borneol, isoborneol, palmitic acid, oleic acid, beta-sitosterol, triundecane, 2,3-dihydro-3,5-dihydroxy-6-methyl-4-hydropyrone, 1-iodododecane, caryophyllene, caryophyllene oxide, isopsoralen, tonic Osteostatin,bakuchiol. The detection method can achieve the effect of comprehensively detecting the internal quality of the medicine, so that the safety and effectiveness of the medicine use of the product are ensured.