The day went fine. Then the light goes off and the mind starts in: the email you sent, the result you are waiting for, the thing you said three years ago.
If that is familiar, this article is for you. It covers how anxiety and sleep are connected, what official sources say about caffeine, alcohol and sleep habits, and the treatment that guidelines recommend when insomnia sets in. It does not explain why worry can feel stronger at night, because the official sources behind it do not say.
Why does anxiety get louder at night?
This article cannot give you a researched answer. If your worry seems strongest once the light is off, you are describing something that none of the official sources used here explains. So this article does not offer a mechanism.
What the sources do say is narrower. The American Academy of Sleep Medicine (AASM) notes that difficulty falling asleep is common in people with anxiety disorders, and that stress is a common cause of a night of poor sleep. The rest of this article covers what is documented: how anxiety and sleep are connected, and what helps.
How are anxiety and sleep connected?
Sleep trouble is part of how anxiety is described. The National Institute of Mental Health (NIMH) says people with generalized anxiety disorder may have trouble falling asleep or staying asleep, or feel fatigued. In NIMH's summary of how that disorder is diagnosed, problems with sleep are one of six listed symptoms, alongside feeling restless or on edge, fatigue, trouble concentrating, irritability and muscle tension.
The sources do not say which comes first, and this article will not guess. What NIMH does say is that healthy choices such as reducing caffeine intake and getting enough sleep can reduce anxiety symptoms when paired with standard care, and that a healthy lifestyle alone cannot replace treatment.
Trouble sleeping is one of several ways anxiety shows up in the body. Physical symptoms of anxiety covers the others.
What if you wake up in a panic?
Panic attacks can happen during sleep. NIMH says the attacks seen in panic disorder can occur "sometimes even during sleep," and it lists a pounding or racing heart, sweating, trembling, difficulty breathing and chest pain among the physical symptoms. NIMH also says that not everyone who experiences a panic attack will develop panic disorder.
Do not decide in the dark that chest pain is anxiety. The National Heart, Lung, and Blood Institute (NHLBI) says: "Any time you think you might be having a heart attack, don't ignore it. Call 9-1-1 for emergency medical care, even if you are not sure that you're having a heart attack." New, severe or unexplained chest pain or shortness of breath means calling 911. Panic is a conclusion reached after a medical evaluation, not before one. Panic attacks has more.
Do caffeine and alcohol make it worse?
Both can work against sleep. The AASM includes two plain instructions in its healthy sleep habits: "Avoid consuming caffeine in the afternoon or evening" and "Avoid consuming alcohol before bedtime."
Alcohol can look like help. NHLBI explains the catch: "Although alcohol can make it easier to fall asleep, it can cause you to have a sleep that tends to be lighter than normal."
On caffeine, NIMH names reducing caffeine intake as one of the healthy choices mentioned above.
Which sleep habits do sleep specialists recommend?
The AASM's healthy sleep habits include the caffeine and alcohol advice above and two more that matter for anxious nights:
- "Keep a consistent sleep schedule."
- "If you don't fall asleep after 20 minutes, get out of bed."
There is an honest limit to this advice. The AASM's 2021 clinical guideline suggests that clinicians not use sleep hygiene as a single-component therapy for chronic insomnia disorder in adults. It rates that suggestion conditional. Good habits are a reasonable place to begin. For long-running insomnia, the guideline points to a fuller treatment.
The AASM list also says to establish a relaxing bedtime routine. If you are looking for something calm to do in that time, the practice has a guide to mindfulness practices for anxiety.
What is CBT for insomnia?
Cognitive behavioral therapy for insomnia, or CBT-I, is the treatment guidelines recommend for chronic insomnia. NHLBI describes it as "a 6- to 8-week treatment plan to help you learn how to fall asleep faster and stay asleep longer" and says it "is usually recommended as the first treatment option for long-term insomnia." The AASM guideline makes a strong recommendation that clinicians use multicomponent CBT-I for chronic insomnia disorder in adults.
NHLBI says CBT-I can be done by a doctor, nurse or therapist, in person, by telephone or online. It is a specific treatment plan, so ask any provider whether they offer it. Dr. Rabin's anxiety page speaks of trouble sleeping as one of the things that come with anxiety. It does not say that she provides CBT-I.
When is it time to get help?
NHLBI defines chronic insomnia as trouble that "occurs 3 or more nights a week, lasts more than 3 months, and cannot be fully explained by another health problem." That is a clinician's definition, not a test to run on yourself, and you do not have to wait 3 months to mention poor sleep to your doctor. The last part of the definition is a reason to mention it: a doctor can look for other health problems behind it. The AASM's advice is to talk to your medical provider if a sleep problem persists.
If the thing keeping you awake is worry, the worry deserves attention in its own right. NIMH says that when anxiety starts to cause problems in everyday life, "it's time to seek professional help."
Dr. Rabin offers anxiety therapy in Brookline and by secure telehealth to clients anywhere in Massachusetts. Her approach is psychodynamic, attachment-based, trauma-informed and mindfulness-based. It looks at what drives the anxiety as well as how to respond to anxious thoughts and physical sensations in the moment. She also offers CBT. You can request a free consultation of about 15 minutes through the contact page, and Do I need therapy for anxiety? may help you decide.
Keep reading
Sources
- National Institute of Mental Health, Generalized Anxiety Disorder: What You Need to Know (revised 2025)
- National Institute of Mental Health, Panic Disorder: What You Need to Know (revised 2025)
- National Heart, Lung, and Blood Institute, Heart Attack: Symptoms (last updated March 24, 2022)
- American Academy of Sleep Medicine, Sleep Education: Healthy Sleep Habits (updated August 2020)
- National Heart, Lung, and Blood Institute, What Is Insomnia? (last updated March 24, 2022)
- National Heart, Lung, and Blood Institute, Insomnia: Treatment (last updated March 24, 2022)
- Edinger JD, et al., Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline, Journal of Clinical Sleep Medicine (2021)
- American Academy of Sleep Medicine, Sleep Education: Insomnia (September 2020)
Last reviewed October 2026. This guide is general information, not medical advice or a diagnosis. If you are in crisis, call or text 988, or call 911 in an emergency.