Last updated: 09-10-2026

Anxiety at Night: What Is Known and What Helps You Sleep

Reviewed by Rebecca Rabin, PsyD

In short: Anxiety and poor sleep often go together. The National Institute of Mental Health lists trouble falling or staying asleep among the signs of generalized anxiety disorder. Sleep specialists recommend a consistent schedule and no caffeine or alcohol late in the day, and guidelines recommend cognitive behavioral therapy for insomnia when sleeplessness becomes chronic.

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

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.

Frequently Asked Questions

Should you stay in bed if you cannot sleep?

The American Academy of Sleep Medicine says no: "If you don't fall asleep after 20 minutes, get out of bed." Its healthy sleep habits page gives this as general advice for sleeping well. If lying awake has become a nightly pattern, raise it with a doctor or therapist, since the same organization's guideline does not suggest sleep habits alone as treatment for chronic insomnia.

What about sleep medication?

This article does not cover it. The sources used here address habits and CBT-I, which NHLBI says is usually recommended as the first treatment option for long-term insomnia. NHLBI also says to talk to your doctor before taking over-the-counter antihistamine sleep aids, which can be unsafe for some people. Any question about starting, stopping or changing a medication belongs with your doctor or prescriber. Dr. Rabin is a psychologist and does not prescribe.

Does Dr. Rabin treat insomnia?

Her anxiety page mentions trouble sleeping among the difficulties people bring, alongside worry, panic and perfectionism. It does not say that she treats insomnia as a condition or provides CBT-I. If sleep is your main concern, say so on the consultation call and ask whether her approach fits, or whether a provider who focuses on sleep would suit you better.

Can better sleep reduce anxiety?

NIMH says healthy choices such as reducing caffeine intake and getting enough sleep can reduce anxiety symptoms when paired with standard care. It also says a healthy lifestyle alone cannot replace treatment. So sleep is worth protecting, and it is one part of the picture. No source used for this article says that fixing sleep resolves an anxiety disorder.

You do not have to sort this out alone

Dr. Rebecca Rabin, PsyD works with adults and college students who live with anxiety, in person in Brookline and online across Massachusetts. If you would like to talk, a free 15-minute consultation is a low-pressure place to start.

Free Consultation