A system for an automatic sample preparation procedure followed by on-line injection of the sample extract into a gas chromatography-mass spectrometry (GC-MS) system was developed for the simultaneous analysis of seven barbiturates in human urine. Sample clean-up was performed by a solid-phase extraction (SPE) on a C18 disposable cartridge. A SPE cartridge was preconditioned with methanol and 0.1 M phosphate buffer. After loading a 1.5 ml volume of a urine sample into the SPE cartridge, the cartridge was washed with 2.5 ml of methanol-water (1:9, v/v). Barbiturates were eluted with 1.0 ml of chloroform-isopropanol (3:1, v/v) from the cartridge. The eluate (1 microl) was injected into a GC-MS system. The calibration curves, using an internal standard method, demonstrated a good linearity throughout the concentration range from 0.02 to 10 microg/ml for all barbiturates extracted. The proposed method was applied to several clinical cases. The total analysis time for 20 samples was approximately 14 h.