Home / Mental health / Sleep
Mental health
Sleep and insomnia
How sleep affects mood and health, the signs of insomnia, sleep apnea and other sleep problems, what treatments help, and when to see a doctor.
Good sleep helps your mood, your memory and your heart. Poor sleep can make almost every health problem harder to handle, including depression, anxiety and pain. Trouble sleeping is very common, and it often becomes more common later in life.
The good news is that most sleep problems can be treated. This page gives you the big picture, with links to more detail on each topic.
Key points
- Most adults need 7 or more hours of sleep a night. For people 65 and older, the goal is about 7 to 8 hours.1
- About 1 in 10 people has chronic insomnia: trouble sleeping at least 3 nights a week for at least 3 months.2
- Sleep and mood affect each other. In long-term studies, people with insomnia were about twice as likely to develop depression later.3
- The first treatment doctors recommend for long-lasting insomnia is a short talk therapy called CBT-I, not a sleeping pill.4,5 Strong evidence
- Loud snoring with gasping, an urge to move your legs at night, or acting out dreams can be signs of other sleep disorders that need a checkup.6,7,8
Why sleep matters
While you sleep, your brain stores what you learned during the day, and your heart and blood vessels get time to repair.9
Too little sleep can leave you more stressed and more likely to get sick. Over time, it is linked to type 2 diabetes, heart disease, high blood pressure and stroke. It also hurts attention and memory.1 Small losses add up: losing just 1 to 2 hours of sleep a night for several nights can affect you about as much as staying up a full day or two.9
Sleepiness is also a safety problem. In 2024, crashes involving drowsy drivers killed 644 people in the United States, and experts believe the true number is higher.10 If you nod off, drift across lane lines or hit a rumble strip, pull over somewhere safe.
Sleep, mood and anxiety
Sleep and mental health work in both directions. Poor sleep is linked to depression, suicide and risky behavior. It also makes it harder to manage your emotions and cope with change.9 In turn, depression, anxiety and bipolar disorder are common causes of insomnia.2
One large review pulled together 21 studies that followed people over time. People who had insomnia at the start were about twice as likely to develop depression later as people who slept well.3
Read more in Sleep, mood and anxiety. See also Depression, Anxiety and Living well with bipolar disorder.
Insomnia
Insomnia means having trouble falling asleep, staying asleep or getting restful sleep, even when you have enough time and a good place to sleep. It also affects your days. You may feel tired, cranky, low on energy, or have trouble focusing or remembering.2
Doctors talk about two kinds:2
- Short-term insomnia lasts up to 3 months. It often follows stress, a loss, an illness or a change in routine. About 15 to 20 out of every 100 people have it at any one time.
- Chronic insomnia happens at least 3 nights a week for at least 3 months. About 1 in 10 people has it.
Common triggers include stress, grief, pain, menopause, other sleep disorders, some medicines, caffeine, late alcohol, noise, shift work and an irregular schedule. Older adults and women are affected more often.2
Insomnia can last long after its first cause is gone. Worry about sleep and long hours awake in bed can keep it going. Learn more in Insomnia.
Other common sleep disorders
Some sleep problems need their own tests and treatment.1
| Condition | What you might notice | Learn more |
|---|---|---|
| Obstructive sleep apnea (the airway keeps closing during sleep) | Loud snoring, choking or gasping, pauses in breathing, daytime sleepiness, morning headaches, waking to urinate11 | Sleep apnea |
| Restless legs syndrome | A strong urge to move your legs, with crawling or aching feelings that ease when you move. Worse in the evening and at rest.7 | Restless legs syndrome |
| REM sleep behavior disorder | Acting out dreams while asleep, such as shouting, punching or kicking. Often goes unnoticed until someone gets hurt.8 | Lewy body dementia |
Sleep apnea is common, and many people who have it do not know it.6,11 Without treatment, it can raise the risk of stroke and heart attack. It can also cause problems with focus, memory and decisions.6 A doctor can check for it with a sleep study, either in a sleep lab or with a small monitor you use at home.11
Restless legs syndrome may be linked to low iron in the brain, so doctors often check iron levels with a blood test.7
REM sleep behavior disorder is often tied to an underlying brain condition, such as Parkinson's disease or dementia with Lewy bodies.8 If someone in your home acts out dreams, tell a doctor.
Sleep in later life
Sleep often changes with age. It may feel lighter, and you may wake more during the night. But feeling tired most days is not something you just have to accept. Older adults still need about 7 to 8 hours of sleep.1
Insomnia is more common in older adults. Pain, health conditions and medicines can all play a part.2 Getting up often to urinate can even be a sign of sleep apnea.11
Many sleep medicines carry extra risks for older adults (see below).12 Read more in Sleep in later life. For people living with dementia, see Sleep problems in dementia, Sundowning and Sleep medicines in dementia.
What helps
The badges show how strong the research is (see how we rate evidence).
CBT for insomnia (CBT-I)
Strong evidenceCBT-I is a short, structured therapy. It changes the habits and thoughts that keep insomnia going. It includes a sleep diary, a regular sleep schedule, relaxation and new ways to handle worry about sleep.2 The American College of Physicians strongly recommends it as the first treatment for all adults with chronic insomnia.4 VA and Defense Department guidelines from 2025 also strongly recommend it.5 You can do it in person, by video or through online programs.2 Start with CBT for insomnia and our five lessons.
Treating sleep apnea
Strong evidenceA CPAP machine blows gentle air through a mask to keep your airway open. It is the main treatment for sleep apnea.11 Other choices include a mouth device made by a dentist and surgery. An implanted device that keeps the airway open while you sleep is another option.5,11 See Sleep apnea.
Healthy sleep habits
Limited researchA steady wake-up time, morning light, less caffeine and alcohol, and a dark, quiet bedroom help everyone sleep better. But habits alone rarely fix chronic insomnia. The 2025 VA/DoD guideline suggests not using sleep-habit advice as the only treatment.5 See Healthy sleep habits.
Sleep medicines
Moderate evidenceFor people whose insomnia does not improve with CBT-I alone, the American College of Physicians says doctors may consider a short course of medicine. You and your doctor should weigh the benefits, harms and costs first.4 All sleep medicines have side effects. See Sleep medicines: what to know.
Melatonin
Limited researchThere is not enough strong evidence to recommend melatonin for chronic insomnia. Supplement labels are often wrong. In a 2023 study, 22 of 25 melatonin gummies did not contain the amount listed on the label.13 Ask your doctor or pharmacist before using it.
To calm your body before bed, try a body scan, muscle relaxation or the cyclic sigh.
A word of caution about sleeping pills
Some sleep aids are riskier than people think, especially for older adults.
- In 2019, the FDA added its strongest warning, a boxed warning, to zolpidem (Ambien), eszopiclone (Lunesta) and zaleplon (Sonata). These drugs can cause sleepwalking, sleep driving and other actions while not fully awake. The FDA found 66 cases of serious injury, including 20 deaths.14
- Experts in older adult care advise older adults to avoid benzodiazepines and the drugs above. They can cause falls and confusion that may last into the next day. They also advise avoiding diphenhydramine (in Benadryl and many "PM" pain relievers), which can cause confusion, constipation and trouble urinating.12
- The 2025 VA/DoD guideline suggests against benzodiazepines, diphenhydramine and trazodone for chronic insomnia.5
- Do not stop a sleep medicine on your own. Talk with your doctor or pharmacist before changing anything.12
Pages in this section
- Insomnia: what it is, why it lasts, and why CBT-I comes first.
- Sleep medicines: what to know: the main types, their risks, and safer choices for older adults.
- Sleep apnea: signs, home sleep tests, CPAP and other treatments.
- Sleep in later life: normal changes, naps, nighttime bathroom trips, pain and dementia.
- Sleep, mood and anxiety: how sleep and mental health affect each other.
- Restless legs syndrome: symptoms, iron and treatment choices.
- Healthy sleep habits: tips checked against the research, and what they can and cannot do.
CBT-I lessons: 1. Sleep diary, 2. Sleep window, 3. Bed and sleep, 4. Sleep thoughts, 5. Wind-down.
In this section
Insomnia
What insomnia is, why it can last for months or years, and why CBT for insomnia (CBT-I) is the first treatment experts recommend.
Read →Sleep apnea
Signs of sleep apnea, how it affects the heart, stroke risk and memory, home and lab sleep tests, and treatments from CPAP to Zepbound and Inspire.
Read →Sleep medicines
How common sleep medicines work, how much they help, and their risks for older adults, from Z-drugs and orexin blockers to melatonin and Benadryl.
Read →Sleep in later life
How sleep normally changes with age, and what helps with naps, night bathroom trips, pain and dementia, plus a safer way to handle sleep problems.
Read →Sleep and mood
How sleep, depression and anxiety affect each other, why insomnia can raise the risk of depression, and how treating insomnia can lift your mood.
Read →Sleep habits
Evidence-checked sleep tips on wake time, daylight, caffeine, alcohol, screens and your bedroom, plus what good sleep habits can and cannot fix.
Read →Restless legs
What restless legs syndrome feels like, why iron matters, why doctors now avoid dopamine drugs first, and which treatments work best.
Read →When to get help
- You have trouble sleeping most nights for several weeks, and it affects your days.
- You snore loudly, gasp or choke at night, or someone sees you stop breathing.
- You feel very sleepy during the day, or you nod off while driving or in other unsafe places.
- You act out dreams, or you or your bed partner have been hurt during sleep.
- An urge to move your legs keeps you from falling asleep.
It helps to bring a sleep diary for about two weeks. Note bedtimes, wake times, naps, caffeine, alcohol, exercise and medicines.1,2 Our sleep diary lesson shows you how.
If poor sleep comes with low mood, hopelessness or thoughts of suicide, call or text 988 any time to reach the 988 Suicide & Crisis Lifeline. If someone is in danger right now, or if a person stops breathing or cannot be woken, call 911. For more ways to reach help, see Get help.
Sources
- Centers for Disease Control and Prevention. About sleep. CDC. CDC
- American Academy of Sleep Medicine. Insomnia. Sleep Education. Sleep Education
- Baglioni C, et al. Insomnia as a predictor of depression: a meta-analytic evaluation of longitudinal epidemiological studies. J Affect Disord, 2011. DOI
- 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. ACP Journals
- U.S. Department of Veterans Affairs and Department of Defense. VA/DoD clinical practice guideline for the management of chronic insomnia disorder and obstructive sleep apnea, provider summary, version 3.0. VA, 2025. VA
- National Heart, Lung, and Blood Institute. Sleep apnea. NIH. NHLBI
- National Institute of Neurological Disorders and Stroke. Restless legs syndrome. NIH. NINDS
- American Academy of Sleep Medicine. New guideline provides treatment recommendations for people who act out their dreams while asleep. AASM, 2023. AASM
- National Heart, Lung, and Blood Institute. Sleep deprivation and deficiency: how sleep affects your health. NIH. NHLBI
- National Highway Traffic Safety Administration. Drowsy driving. NHTSA. NHTSA
- American Academy of Sleep Medicine. Obstructive sleep apnea. Sleep Education. Sleep Education
- American Geriatrics Society, Health in Aging Foundation. Ten medications older adults should avoid or use with caution. HealthInAging.org. HealthInAging
- National Center for Complementary and Integrative Health. Melatonin: what you need to know. NIH. NCCIH
- U.S. Food and Drug Administration. FDA adds Boxed Warning for risk of serious injuries caused by sleepwalking with certain prescription insomnia medicines. FDA, 2019. FDA
Education only. This page is general information written from the sources listed. It is not medical, legal or financial advice and does not replace a doctor, therapist or lawyer who knows your situation. How we write and check pages.