The probable carcinogenic nitrosamine impurities, such as N -nitrosodiethylamine (NDEA) and N -nitrosodimethylamine (NDMA), have been detected from various pharmaceuticals in recent years. The sensitive chromatographic methods, including liquid chromatography (LC) and gas chromatography (GC), have been applied for analyzing nitrosamines in the pharmaceutical substrates, such as sartans, ranitidine and metformin. In comparison of LC, the efficacy of GC for analyzing multiple nitrosamines in diverse pharmaceuticals will be limited or attenuated owing to the chemical properties of target analytes or matrix hinderance of pharmaceutical substrates. To extend the applicability of GC analysis for multiple nitrosamines in pharmaceuticals, this study presented a gas chromatograph tandem mass (GC-MS/MS) method for monitoring 14 nitrosamines within 44 pharmaceuticals, whereas the headspace-solid phase microextraction (HS-SPME) sampling mode was introduced. Chromatographic separation was achieved on a DB-heavyWax column column (30 m × 0.25 mm; i.d., 0.25 μm), whereas the HS-SPME sampling mode with a 50/30 μm DVB/CAR/PDMS extracting fiber was applied for comparison of the direct injection mode. Meanwhile, the HS-SPME conditions were optimized to evaluate the effects of the parameters on analyzing total nitrosamines in pharmaceuticals by GC-MS/MS. The optimal conditions of HS-SPME were as follows: extracting solution of 90% NaCl, HS incubation time 1 min, SPME adsorbing at 80 ℃ for 30 min, and desorbing at 250 ℃ for 5 min. The limit of quantification (LOQ) for 14 nitrosamines in pharmaceutical matrices under the optimal conditions was 0.05 μg/g for the optimal HS-SPME, whereas the value was 0.05˗0.25 μg/g for direct injection. • GC-MS/MS • Multiple nitrosamines monitoring • Headspace-solid phase microextraction