Background: We compared ICD-10 psychiatric disorders in female patients with fibromyalgia ( n=45) or functional dyspepsia ( n=18) with age-matched random sample controls ( n=49). Method: Version 2 of The Schedules for Clinical Assessment in Neuropsychiatry (SCAN) was used for present state examination and lifetime diagnoses. Results: Current psychiatric disorders (somatoform pain disorder and specific phobia omitted) were diagnosed in 80% of fibromyalgia patients (OR=8.3), 83% of functional dyspepsia patients (OR=10.3) and 33% controls. Among fibromyalgia patients 27% had lifetime panic disorder. Lifetime mood disorders were found in 83% of functional dyspepsia patients. First-degree relatives with psychiatric disorder were found in 16% of the fibromyalgia patients, 50% of functional dyspepsia patients and 20% of controls. Conclusions: Fibromyalgia is associated with panic disorder and functional dyspepsia with mood disorders in substantial subgroups. Psychiatric symptoms and somatic complaints are closely related in these disorders.