IntroductionQuisqualis indica L. (QIL) has a long history as a traditional Chinese herb in China, but the study of volatile components in QIL from different geographical sources has been relatively rare.ObjectivesTo establish an optimal headspace gas chromatography–mass spectrometry (HS‐GC‐MS) method to comprehensively analyse the volatile component profile and screen quality markers of QIL from different origins.MethodsResponse surface methodology (RSM) was used to optimise the conditions for headspace analysis. The volatile components of QIL from four main origins of southwest China were analysed and identified by HS‐GC‐MS. The similarity of all samples of QIL was evaluated by fingerprint. The differences of the volatile components in QIL from different origins were distinguished by chemometrics.ResultsAccording to the optimal conditions of RSM, a total of 31 volatile components were identified, including fatty acids, aldehydes, alcohols, alkyl pyrazines, and other volatile components. Similarity evaluation presented that there were 26 common volatile components with different contents in all samples. Principal component analysis (PCA) showed that QIL from four different origins could be roughly divided into four categories. Hierarchical cluster analysis (HCA) and orthogonal partial least squares discriminant analysis (OPLS‐DA) indicated that QIL from different origins had obvious regional characteristics.ConclusionThe optimised HS‐GC‐MS method provided a strategy to rapidly, effectively, and accurately elucidate the volatile component profile of QIL from different origins, and seven important differential components were screened for quality evaluation and origin traceability.