Thus, insomnia is most often thought of as both a sign  and a symptom that can accompany several sleep, medical, and psychiatric disorders, characterized by persistent difficulty falling asleep and/or staying asleep or sleep of poor quality. Insomnia is typically followed by functional impairment while awake. One definition of insomnia is difficulties initiating and/or maintaining sleep, or nonrestorative sleep, associated with impairments of daytime functioning or marked distress for more than 1 month."
Insomnia can be grouped into primary and secondary, or comorbid, insomnia. Primary insomnia is a sleep disorder not attributable to a medical, psychiatric, or environmental cause. A complete diagnosis will differentiate between:
- insomnia as secondary to another condition,
- primary insomnia co-morbid with one or more conditions, or
- free-standing primary insomnia.