A gas chromatography-mass spectrometry (GC/MS) method for the determination of hexabromocyclododecane (HBCD) in expanded polystyrene and extruded polystyrene foam (EPS/XPS) was developed. The EPS/XPS samples were ultrasonically extracted with acetone and the extracts were purified by filtration through a microporous membrane (0.22 μm) and solid-phase extraction. The samples were analyzed using a GC/MS using the selected ion monitoring mode. The ions 157, 319 and 401 were selected as the qualitative ions, while ion 239 was chosen as the quantitative ion. An HBCD standard working solution with a concentration range of 1.0–50.0 mg/L showed good linearity. The detection limit of HBCD was 0.5 mg/kg, meeting the LPC limit (<100 or 1000 mg/kg). Six laboratories were selected to verify the accuracy of the method, and 10 samples were tested. The interlaboratory relative standard deviation range was 3.68%–9.80%. This method could play an important role in controlling HBCD contamination in EPS/XPS.