Objectives -The present paper summarizes and compares data from our studies on subjective and objective sleep quality and pain thresholds in tension-type headache (TTH), migraine, and controls. Material and methods -In a blinded controlled explorative study, we recorded polysomnography (PSG) and pressure, heat, and cold pain thresholds in 34 controls, 20 TTH, and 53 migraine patients. Sleep quality was assessed by questionnaires, sleep diaries, and PSG. Migraineurs who had their recordings more than 2 days from an attack were classified as interictal while the rest were classified as either preictal or postictal. Interictal migraineurs (n = 33) were also divided into two groups if their headache onsets mainly were during sleep and awakening (sleep migraine, SM), or during daytime and no regular onset pattern (non-sleep migraine, NSM). TTH patients were divided into a chronic or episodic group according to headache days per month. Results -Compared to controls, all headache groups reported more anxiety and sleep-related symptoms. TTH and NSM patients reported more daytime tiredness and tended to have lower pain thresholds. Despite normal sleep times in diary, TTH and NSM had increased slow-wave sleep as seen after sleep deprivation. Migraineurs in the preictal phase had shorter latency to sleep onset than controls. Except for a slight but significantly increased awakening index SM, patients differed little from controls in objective measurements. Conclusions -We hypothesize that TTH and NSM patients on the average need more sleep than healthy controls. SM patients seem more susceptible to sleep disturbances. Inadequate rest might be an attack-precipitating-and hyperalgesia-inducing factor.