Why Anxiety Gets So Bad at Night and How to Calm It

Nighttime anxiety spikes because your brain loses the distractions that keep anxious thoughts in check during the day, while your body’s stress-regulation system is at its lowest point. It’s an extremely common experience, driven by a combination of biology, psychology, and habits that all converge in the hours before and after you get into bed.

Your Stress Hormones Hit a Low Point

Cortisol, your body’s primary stress-management hormone, follows a 24-hour cycle. It peaks in the early morning to help you wake up and drops to its lowest levels in the evening. That sounds like it should make you calmer, but cortisol doesn’t just cause stress. It also helps you cope with it. When cortisol is high, you’re better equipped to handle challenges and regulate your emotions. When it bottoms out at night, your capacity to manage worry shrinks.

People whose cortisol rhythms are disrupted, such as those who work night shifts or deal with chronic stress, tend to have elevated evening cortisol paired with blunted morning rises. This flattened pattern correlates with higher rates of both anxiety and depression. Even if your schedule is normal, everyday stress can nudge your cortisol cycle toward a similar imbalance, leaving you more vulnerable to anxiety after dark.

Your Mind Fills the Silence

During the day, your attention is pulled in dozens of directions: work, conversations, errands, screens. At night, those inputs disappear. What rushes in to fill the gap is whatever your brain has been suppressing or postponing, and that’s usually worry.

Psychologists call this process rumination. It’s a loop of repetitive, negatively toned thinking that feeds on itself. At night, rumination typically centers on sleep itself: worrying you won’t fall asleep, anticipating how tired you’ll be tomorrow, mentally cataloging every consequence of a bad night. That worry creates physical arousal (faster heart rate, muscle tension), which makes it harder to sleep, which gives you more to worry about. The cycle is self-reinforcing, and the quiet of nighttime is the perfect environment for it to take hold. Critically, rumination blocks your brain from processing information that might challenge those negative thoughts. You can’t easily talk yourself down when you’re locked in the loop.

An Evolutionary Hangover

Humans have an evolved preference for safe sleeping places, specifically ones that allow early detection of threats and maximum reaction time. For most of human history, nighttime was genuinely dangerous. Predators hunted after dark, and research confirms that human-on-human violence still occurs disproportionately at night. The most commonly reported nighttime fear in children is fear of intruders, a pattern that appears across cultures.

Your nervous system doesn’t know you’re in a locked apartment. It still treats darkness and stillness as conditions that warrant heightened alertness. That low-level hypervigilance is perfectly adaptive in a savanna. In a bedroom, it feels like anxiety.

What It Feels Like in Your Body

Nighttime anxiety doesn’t just live in your head. It triggers your autonomic nervous system, producing real physical symptoms: a racing heart, sweating, trembling, shallow or heavy breathing, flushing or chills, and lightheadedness. Some people experience a sudden sense of impending doom. These sensations can be alarming enough to wake you from sleep entirely.

About 7 in 10 people with panic disorder also experience nocturnal panic attacks, where you wake suddenly in a state of full-blown panic. These episodes produce the same symptoms as daytime panic attacks, though research suggests the breathing symptoms tend to be more severe at night. If you’ve ever jolted awake gasping, with your heart pounding and no obvious cause, that’s likely what happened.

Caffeine and Alcohol Make It Worse

Caffeine has a half-life of 3 to 6 hours, meaning half of what you consumed is still circulating hours later. A large coffee (roughly 400 mg of caffeine) consumed within 12 hours of bedtime significantly delays sleep onset and fragments sleep architecture. Even 8 hours before bed, that same dose can reduce total sleep by about 40 minutes and increase the time you spend awake during the night by nearly 30 minutes. A smaller dose, around 100 mg (one regular cup of coffee), is generally fine if consumed at least 4 hours before bed. If you’re prone to nighttime anxiety, afternoon caffeine is one of the simplest things to cut.

Alcohol is trickier because it initially makes you feel relaxed. It acts on the same brain receptors as anti-anxiety medications, producing a sedative effect that can help you fall asleep faster. But as your body metabolizes the alcohol over the next several hours, that sedation reverses. The second half of the night becomes fragmented, with more wakefulness and lighter sleep. This rebound effect can feel like anxiety because, neurologically, it is: your brain’s calming system was artificially enhanced, and now it’s swinging in the opposite direction. Over time, this creates a vicious cycle where you drink to fall asleep, sleep poorly, feel exhausted the next day, use caffeine to compensate, and then need alcohol again to wind down.

Hormonal Cycles Add Another Layer

If you menstruate, you may notice that nighttime anxiety gets worse during certain weeks. The luteal phase (the roughly two weeks between ovulation and your period) is associated with increased negative mood and heightened reactivity to stress. This is largely driven by progesterone, which rises after ovulation and then drops sharply before menstruation. Progesterone’s byproducts act on the same brain system as benzodiazepines and alcohol, producing a calming effect. When progesterone falls, that calming influence withdraws, and anxiety can spike, particularly at night when other coping resources are already low.

How to Break the Cycle

The most effective treatment for nighttime anxiety tied to sleep difficulty is cognitive behavioral therapy for insomnia, or CBT-I. Unlike sleep medications, it targets the thought patterns and behaviors that keep the anxiety-insomnia cycle going. It typically includes several components that work together.

Restricting Your Time in Bed

This sounds counterintuitive, but it works. You track your actual sleep duration for two weeks, then limit your time in bed to match only those hours. If you’re sleeping 5.5 hours but spending 8 hours in bed, your “sleep window” gets set to 5.5 hours. You pick a fixed wake time and count backward. This builds up your body’s sleep pressure so that when you do get into bed, you fall asleep faster and spend less time lying awake with anxious thoughts. As your sleep efficiency improves, the window gradually expands.

Retraining Your Brain’s Association With Bed

A core principle is that your bed should only be associated with sleep (and sex). That means no scrolling, no watching TV, no reading the news in bed. If you can’t fall asleep within 15 to 20 minutes, you get up and go to another room until you feel sleepy again. You repeat this as many times as needed. It feels disruptive at first, but over time it rewires the association between your bed and wakefulness.

Challenging Nighttime Thoughts

The cognitive piece involves identifying the specific thoughts that fuel your nighttime anxiety and examining whether they’re accurate. “If I don’t fall asleep in the next 20 minutes, tomorrow will be a disaster” is a common one. A therapist helps you evaluate the evidence for and against that belief and replace it with something more realistic, like recognizing that you’ve functioned after bad nights before. This doesn’t eliminate worry, but it reduces the emotional charge enough to break the rumination loop.

Practical Habits That Help

Beyond the structured therapy, several additional techniques reduce nighttime arousal. Progressive muscle relaxation, where you systematically tense and release muscle groups from your feet to your head, directly counteracts the physical tension that accompanies anxiety. Deep breathing exercises activate your body’s calming response. Mindfulness meditation, even just 10 minutes before bed, can interrupt the rumination cycle by shifting your attention away from thoughts and toward physical sensations. Limiting caffeine to the morning, avoiding alcohol as a sleep aid, and keeping your bedroom cool, dark, and quiet all reduce the physiological conditions that prime your body for anxiety.