Insomnia
Insomnia is ongoing trouble falling asleep, staying asleep or waking too early, which leaves you tired or struggling during the day despite having time to sleep.
Clinician view: includes diagnostic criteria, management and safety detail.

Overview
Insomnia means you have trouble getting to sleep, staying asleep, or you wake up much earlier than you want and can't get back to sleep. It happens even though you have the time and a comfortable place to sleep, and it affects how you feel and function during the day. Doctors group these problems under the medical name sleep initiation and maintenance disorders.
Almost everyone has a bad night now and then. Short-term insomnia, lasting days or a few weeks, often follows stress, illness, travel or a big life change. When sleep problems happen at least 3 nights a week for 3 months or longer, it is called chronic insomnia. About 1 in 10 adults has chronic insomnia, and many more have short spells of it.
Insomnia can happen on its own, or alongside another health problem such as depression, anxiety, chronic pain or another sleep disorder. The good news is that it is very treatable, most often without long-term medicine.
Symptoms
Insomnia affects both your nights and your days.
At night
- Lying awake for a long time before you fall asleep
- Waking up often during the night, or lying awake for long stretches
- Waking up too early and not being able to fall back to sleep
- Feeling that your sleep is light or not refreshing
- Worrying about sleep, or dreading going to bed
During the day
- Tiredness or low energy
- Trouble concentrating, paying attention or remembering things
- Irritability, low mood or feeling anxious
- Making more mistakes at work or school, or having near misses while driving
- Headaches or an upset stomach
People with insomnia often feel tired but "wired": exhausted, yet unable to switch off when they get into bed.
Causes
Insomnia usually has more than one cause. Doctors often think about it in three parts: things that make you more likely to have it, things that set it off, and things that keep it going.
Common triggers
- Stress, such as work pressure, money worries, grief or relationship problems
- Changes in routine, shift work or jet lag
- Illness, pain, or a hospital stay
- A new baby, caregiving, or a noisy or uncomfortable bedroom
Other health conditions
- Mental health conditions such as depression, anxiety, post-traumatic stress disorder (PTSD) or bipolar disorder
- Long-lasting pain, heartburn, asthma, an overactive thyroid, or needing to pass urine at night
- Menopause symptoms such as hot flashes and night sweats
- Other sleep disorders, such as obstructive sleep apnea (breathing pauses during sleep) or restless legs syndrome (an urge to move your legs at night)
Substances and medicines
- Caffeine, nicotine and alcohol (alcohol may help you fall asleep but disturbs sleep later in the night)
- Cannabis and other drugs, or stopping them
- Some medicines, including certain antidepressants, steroids, decongestants and medicines for asthma or high blood pressure
Why it keeps going
Even after the original trigger goes away, habits can keep insomnia going. Spending long hours in bed trying to sleep, napping, sleeping in, or worrying about not sleeping can teach your brain to link the bed with being awake. This cycle is a main target of treatment.
Very rarely, insomnia is caused by a serious brain disease. One example is fatal familial insomnia, an extremely rare inherited condition. Ordinary insomnia is not a sign of this.
Risk factors
Insomnia is more likely if you:
- Are a woman, especially during pregnancy or around menopause
- Are an older adult, as sleep naturally becomes lighter with age
- Have a mental health condition or a long-term physical illness
- Work night shifts or rotating shifts
- Are under ongoing stress or have a family history of insomnia
- Tend to worry a lot or find it hard to relax
Diagnosis
There is no single test for insomnia. Your doctor or nurse practitioner will mainly talk with you about your sleep and your health.
- Sleep history: when you go to bed and get up, how long it takes to fall asleep, how often you wake, and how you feel during the day.
- Sleep diary: you may be asked to record your sleep for 1 to 2 weeks. This often shows patterns you didn't notice.
- Questionnaires: short forms that measure how severe your insomnia is and check for low mood or anxiety.
- Health review: questions about other conditions, medicines, caffeine, alcohol and other substances.
- Blood tests: sometimes used to check for problems such as thyroid disease or low iron.
A sleep study (polysomnography), where your breathing, brain waves and movements are recorded overnight, is not needed for most people with insomnia. Your doctor may suggest one if they suspect sleep apnea, for example if you snore loudly, stop breathing in your sleep or are very sleepy in the daytime.
Treatment
Treatment depends on how long you have had insomnia and what is causing it. Treating any other condition that affects your sleep, such as pain, depression or sleep apnea, is an important part of the plan.
Cognitive behavioural therapy for insomnia (CBT-I)
CBT-I is the recommended first treatment for chronic insomnia in adults. It is a structured program, usually 4 to 8 sessions, with a trained therapist, in a group, or through a guided online program or app. Its benefits tend to last longer than those of sleeping pills. CBT-I usually includes:
- Sleep restriction: for a short time, limiting the time you spend in bed to match the time you actually sleep, then slowly increasing it. This builds a stronger drive to sleep.
- Stimulus control: using the bed only for sleep and sex, going to bed only when sleepy, and getting up if you can't sleep.
- Changing unhelpful thoughts: easing worries about sleep that keep you awake.
- Relaxation methods and good sleep habits.
The first couple of weeks can feel harder, as you may be more tired at first. Sticking with it is usually what makes it work.
Medicines
Medicines can help for a short time, for example during a stressful period, or when CBT-I is not available or has not worked well enough. Your clinician will weigh the benefits and risks with you. Options include:
- Orexin receptor antagonists such as daridorexant, lemborexant and suvorexant, which block a brain chemical that keeps you awake.
- "Z-drugs" such as zolpidem, zopiclone, eszopiclone and zaleplon, which calm brain activity to help you fall or stay asleep.
- Benzodiazepines such as temazepam, lorazepam and triazolam. These are now used less often because of risks such as dependence, falls and memory problems.
- Low-dose doxepin, which can help with waking during the night.
- Ramelteon or melatonin, which act on the body's sleep-timing signals. Prolonged-release melatonin is sometimes used in older adults.
- Trazodone, an antidepressant that is sometimes used for sleep, mainly when depression is also present. Evidence that it helps insomnia on its own is limited, so guidelines do not recommend it as a usual choice.
Over-the-counter sleep aids that contain antihistamines, such as diphenhydramine and doxylamine, are not recommended for chronic insomnia. They can cause next-day drowsiness, confusion, constipation and trouble passing urine, especially in older adults.
Sleeping pills can cause next-day sleepiness and, rarely, complex sleep behaviours such as sleepwalking or driving while not fully awake. Never drink alcohol with them, and don't drive if you feel drowsy. Don't stop a sleeping medicine suddenly after using it for a long time. Talk with your clinician about a plan to taper (slowly lower) it.
Living with insomnia
Simple habits can support better sleep, alongside other treatment:
- Get up at the same time every day, including weekends, even after a bad night.
- Go to bed only when you feel sleepy, not just tired.
- If you can't sleep after what feels like about 20 minutes, get up, do something calm in dim light, and go back to bed when sleepy.
- Avoid naps, or keep them short and early in the afternoon.
- Get daylight in the morning and be physically active during the day, but not right before bed.
- Cut back on caffeine after midday, and limit alcohol and nicotine, especially in the evening.
- Keep your bedroom dark, quiet and cool. Put screens away for the last hour before bed.
- Build a wind-down routine: a warm shower, reading, or gentle stretching.
- Avoid watching the clock at night.
It also helps to remember that one bad night won't harm you. Worrying less about sleep often makes sleep come more easily.
Complications
Long-lasting insomnia can affect your health and safety. It is linked with a higher risk of depression and anxiety, accidents at work and on the road, falls in older adults, and poorer control of conditions such as high blood pressure and diabetes. It can also affect relationships, work and quality of life. Getting help early lowers these risks.
Outlook
Short-term insomnia often improves on its own once the trigger passes. Chronic insomnia can come and go over the years, but most people sleep noticeably better with CBT-I, and the skills they learn help them manage future rough patches. Treating related health conditions often improves sleep as well.
Prevention
You can't always prevent insomnia, but you can lower the chance that a few bad nights turn into a long-term problem. Keep a regular wake-up time, avoid spending extra hours in bed to "catch up", limit caffeine and alcohol, find healthy ways to manage stress, and get help early for mood, pain or breathing problems at night.
In the United States
In the United States, the FDA requires a boxed warning on zolpidem, eszopiclone and zaleplon about rare but serious complex sleep behaviours. Melatonin is sold as a dietary supplement, so its content and quality are not checked the way prescription medicines are. Ramelteon, suvorexant, daridorexant and lemborexant are prescription options. Coverage for CBT-I varies by health plan, and digital CBT-I programs are increasingly available. If you are in crisis, call or text 988.
Diagnosis
Chronic insomnia disorder (ICSD-3, DSM-5-TR): difficulty initiating or maintaining sleep or early-morning awakening, despite adequate opportunity, with daytime impairment, at least 3 nights per week for at least 3 months. Short-term insomnia lasts under 3 months. Diagnosis is clinical, based on sleep history and a 1 to 2 week sleep diary; the Insomnia Severity Index is a useful baseline and outcome measure. Screen for depression, anxiety, substance and alcohol use, pain, nocturia, menopause, and contributory medicines. Polysomnography is not indicated routinely; refer when obstructive sleep apnea, periodic limb movement disorder, parasomnia or narcolepsy is suspected, or with treatment failure. Consider ferritin when restless legs symptoms are present, and thyroid tests if clinically suggested.
Management
CBT-I (sleep restriction, stimulus control, cognitive therapy, sleep hygiene education, relaxation) is first-line for chronic insomnia per the American College of Physicians (2016), the AASM behavioural guideline (2021), the European Insomnia Guideline (2023) and NICE. Digital CBT-I is an effective scalable option. Sleep hygiene alone is insufficient as a monotherapy. Treat comorbid conditions concurrently.
Pharmacotherapy is adjunctive or for short-term use, chosen by symptom pattern and patient factors (AASM 2017 pharmacologic guideline). Options include dual orexin receptor antagonists (daridorexant, lemborexant, suvorexant), Z-drugs (zolpidem, eszopiclone, zopiclone, zaleplon), low-dose doxepin for maintenance insomnia, and ramelteon for sleep onset. Benzodiazepines are generally avoided, particularly in older adults (Beers criteria). Trazodone, sedating antipsychotics and antihistamines are not recommended for primary insomnia because of limited evidence and adverse effects; the AASM recommends against diphenhydramine, melatonin, tryptophan and valerian for chronic insomnia. Prolonged-release melatonin is licensed in some regions for adults 55 and older.
Cautions: next-day impairment (lower zolpidem doses advised for women and older adults), complex sleep behaviours with Z-drugs, falls, cognitive impairment, respiratory depression with opioids or alcohol, dependence and withdrawal. Use the lowest effective dose for the shortest time; plan supervised tapering, ideally combined with CBT-I, for long-term hypnotic users. Avoid in untreated sleep apnea where possible.
Red flags: suicidality, mania, witnessed apneas, dream enactment, excessive daytime sleepiness, and rapidly progressive insomnia with neurological signs (consider prion disease such as fatal familial insomnia). Prognosis: chronic insomnia often persists or relapses without treatment; CBT-I produces durable gains.
When to get medical help
See your doctor or nurse practitioner if:
- Trouble sleeping lasts more than a few weeks or keeps coming back
- Poor sleep is affecting your mood, work, school or relationships
- You feel very sleepy during the day or nod off while driving
- Someone notices you snore loudly, gasp or stop breathing in your sleep
- You have an urge to move your legs at night, or act out dreams
- You think a medicine is affecting your sleep, or you want to stop a sleeping pill
Call emergency services or go to the nearest emergency department if you have thoughts of harming yourself or ending your life, if you have done something risky while asleep after taking a sleeping medicine, or if someone is very hard to wake after taking sleeping pills, alcohol or other drugs.
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Sleep Initiation and Maintenance Disorders. meshb.nlm.nih.gov
- MedlinePlus: Insomnia. medlineplus.gov/insomnia.html
- NHLBI: Insomnia. nhlbi.nih.gov/health/insomnia
- NHS: Insomnia. nhs.uk/conditions/insomnia/
- Qaseem A et al. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Ann Intern Med 2016. doi.org/10.7326/M15-2175
- Sateia MJ et al. Clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults: an AASM guideline. J Clin Sleep Med 2017. doi.org/10.5664/jcsm.6470
- Edinger JD et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an AASM clinical practice guideline. J Clin Sleep Med 2021. doi.org/10.5664/jcsm.8986