Home / Mental health / Sleep / Sleep and mood
Mental health
Sleep, mood and anxiety
How sleep, depression and anxiety affect each other, why insomnia can raise the risk of depression, and how treating insomnia can lift your mood.
Sleep and mood are closely tied. When you feel low or worried, sleep often gets worse. When you sleep badly for weeks, your mood and nerves often get worse too. Experts call this a two-way link.1,2
This matters because the link can work in your favor. Treating long-term sleep trouble can ease depression and anxiety, and it may even help prevent depression in some people. This page explains how the link works and what helps.
Key points
- Poor sleep and mental health problems feed each other. Depression and anxiety disturb sleep, and poor sleep makes mood and worry harder to manage.1,2
- People with insomnia (long-term trouble falling or staying asleep) are about twice as likely to develop depression later as people who sleep well.3,4
- Insomnia often needs its own treatment. It does not always go away when depression or anxiety gets better.10
- CBT for insomnia (CBT-I), a short talk therapy for sleep, improves sleep and can also ease depression symptoms.7,9 Strong evidence
- In a large trial of adults 60 and older, treating insomnia with CBT-I cut the chance of developing depression roughly in half.6 Promising
How sleep and mood affect each other
Think of sleep and mood as two wheels joined by a chain. When one turns, the other turns too.
Mental health problems can disturb sleep. Depression is a common cause of insomnia. It can make it hard to fall asleep or cause you to wake up very early and not get back to sleep. Trouble falling asleep is also common with anxiety disorders. Bipolar disorder can change sleep a great deal.2
Poor sleep can strain your mental health. Not getting enough sleep makes it harder to control your emotions and cope with change. Over time, it has been linked to depression, risk-taking and suicide.1
Sleep loss turns up worry. In one set of studies, a night without sleep raised anxiety the next day. Brain scans showed that a part of the brain that helps calm emotions worked less well. Deep sleep seemed to help settle anxiety, and even small night-to-night drops in sleep went along with more anxiety the next day.5
This can become a cycle. Worry keeps you awake. Lost sleep makes you more worried and tired. Then you worry more about not sleeping.
Does insomnia lead to depression?
Insomnia does not cause depression in everyone. But it is a strong warning sign.
Researchers have followed large groups of people for years to see who develops depression. One review combined 34 of these studies, with more than 170,000 people. People with insomnia were about 2.3 times as likely to develop depression later.3
Another review looked at insomnia and several mental health conditions. People with insomnia were more likely to develop:4
- Depression: about 2.8 times the risk
- Anxiety: about 3.2 times the risk
- Alcohol problems and psychosis: a smaller rise in risk, based on only a few studies
These studies show a link, not proof of cause. Still, they suggest that long-term sleep trouble deserves attention, not just patience.
Does treating insomnia help mood?
Yes, for many people. This is the hopeful part.
Better sleep, better mood. A 2022 review pooled 22 studies of CBT-I in people with both insomnia and a mental health condition. CBT-I improved sleep in every group studied. It also eased depression symptoms by a moderate amount, and it helped PTSD symptoms even more.7 The mood benefits were clear right after treatment. They were less certain at later follow-ups, so more research is needed.7 Moderate evidence
Preventing depression in later life. A U.S. trial included 291 adults aged 60 and older who had insomnia but no recent depression. Half took part in CBT-I groups. The other half took sleep education classes. Over three years, about 1 in 8 people in the CBT-I group (12%) developed depression. In the education group, it was about 1 in 4 (26%).6 People whose insomnia stayed in remission had the lowest risk of all.6 Promising
Calmer thinking. A very large UK trial gave online CBT-I to more than 3,700 university students with insomnia. Their sleep improved a lot. Paranoid thoughts (feeling that others mean you harm) and hallucinations (hearing or seeing things others don't) went down a little. Better sleep seemed to explain part of that change.8
In daily life, this means sleep is worth treating directly. It is not just a side issue that will sort itself out.
Why insomnia needs its own treatment
Doctors used to think insomnia was only a symptom of depression or anxiety. The idea was that if you treat the main problem, sleep will follow.
Now, expert guidelines say insomnia should be treated alongside other conditions, not just seen as a sign of them.10 Sleep trouble often hangs on after depression lifts. In bipolar disorder, insomnia that remains between mood episodes may raise the chance of a relapse.13
What helps
Sleep medicines. Some sleep medicines may help for a time. But guidelines suggest trying CBT-I first.10 The same guideline advises against some medicines often used for sleep, such as benzodiazepines and diphenhydramine (the sleep aid in many "PM" products).10 Read sleep medicines: what to know, and talk with your doctor or pharmacist before changing anything.
If you have PTSD. Almost everyone with PTSD has trouble sleeping, and nightmares are common. CBT-I improves sleep for about 7 in 10 people who finish it, and it can reduce nightmares.11 See coping with trauma symptoms and medicines for PTSD.
If you have bipolar disorder. Changes in sleep can both set off and signal a manic episode.13 Part of CBT-I involves limiting time in bed for a while. For people with bipolar disorder, CBT-I should be adapted by a trained clinician.10 Do not cut back your sleep on your own. See living well with bipolar disorder.
Sleep and mood in later life
Sleep often changes with age. To learn what is normal and what is not, see sleep in later life.
These normal changes are not the same as insomnia. If poor sleep goes on for months and leaves you tired, cranky or low during the day, it is worth treating. The trial in adults 60 and older suggests that treating insomnia may protect mood as well as sleep.6 If low mood comes with poor sleep, see depression in later life.
Other sleep problems can also affect mood. Sleep apnea (pauses in breathing during sleep) can cause irritability, trouble concentrating and memory problems. It is also linked to depression.12 Loud snoring, gasping at night or heavy daytime sleepiness are reasons to ask about sleep apnea.
When to get help
Talk with your doctor if:
- Sleep trouble happens 3 or more nights a week and has lasted more than a few weeks. See insomnia.
- You feel down, hopeless or worried most days for two weeks or more. Our check-in can help you put feelings into words.
- You suddenly need much less sleep but feel full of energy, or your thoughts are racing. This can be a sign of mania.
- You snore loudly, stop breathing in your sleep, or fall asleep during the day without meaning to.
- You are using alcohol or extra pills to get to sleep. See alcohol in later life.
Get help now if you are thinking about suicide or feel you cannot stay safe. Call or text 988 to reach the 988 Suicide & Crisis Lifeline, any time. If someone is in immediate danger, call 911. You can also make a safety plan or see get help.
Is it normal to sleep badly when I am depressed?
Yes. Depression is a common cause of insomnia. It often makes it hard to fall asleep or stay asleep.2 Tell your doctor about sleep changes, because they help guide treatment.
Will my sleep get better once my depression is treated?
Sometimes, but not always. Insomnia can stay after mood improves. Guidelines recommend treating it directly, often with CBT-I.10
Can CBT-I help if I also take an antidepressant?
CBT-I can be used along with other treatments. Tell both your therapist and your doctor what you are using. Do not stop or change a medicine without talking with your doctor first.
Is it safe for older adults?
CBT-I has been tested in adults 60 and older, including the depression-prevention trial described above.6 Your clinician may adjust the steps if you have a fall risk, heart disease or other health problems.
Sources
- National Heart, Lung, and Blood Institute. Sleep deprivation and deficiency: how sleep affects your health. NIH, 2022. NHLBI
- American Academy of Sleep Medicine. Insomnia. Sleep Education, accessed October 2026. sleepeducation.org
- Li L, et al. Insomnia and the risk of depression: a meta-analysis of prospective cohort studies. BMC Psychiatry, 2016. BMC Psychiatry
- Hertenstein E, et al. Insomnia as a predictor of mental disorders: a systematic review and meta-analysis. Sleep Med Rev, 2019. PubMed
- Ben Simon E, et al. Overanxious and underslept. Nat Hum Behav, 2020. Nature
- UCLA Health. New study shows that treating insomnia with cognitive behavioral therapy can prevent major depression in older adults (on Irwin MR, et al., JAMA Psychiatry). UCLA Health, 2021. UCLA Health
- Hertenstein E, et al. Cognitive behavioral therapy for insomnia in patients with mental disorders and comorbid insomnia: a systematic review and meta-analysis. Sleep Med Rev, 2022. University of Bern repository
- Freeman D, et al. The effects of improving sleep on mental health (OASIS): a randomised controlled trial with mediation analysis. Lancet Psychiatry, 2017. White Rose repository
- 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
- U.S. Department of Veterans Affairs, National Center for PTSD. Sleep problems and PTSD. VA, accessed October 2026. VA
- American Academy of Sleep Medicine. Obstructive sleep apnea. Sleep Education, accessed October 2026. sleepeducation.org
- Plante DT, Winkelman JW. Sleep disturbance in bipolar disorder: therapeutic implications. Am J Psychiatry, 2008. Am J Psychiatry
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.