A method for operating an ion mobility spectrometer that comprises a measuring tube, a substance collector and a membrane inlet, the measuring tube, the substance collector and the membrane inlet defining a closed internal gas circuit, comprising separating the closed internal gas circuit from an external sample gas flow through the membrane inlet, transferring circulating gas containing an analyte substance from the membrane inlet to the substance collector, the analyte substance accumulated in the substance collector, releasing the accumulated analyte substances, and transferring the released analyte substances to the measuring tube.