Skip to content
Sleep Techniques

Sleep and Anxiety: Techniques for a Better Night's Rest

| | 8 min read

Reviewed by Dardane Morina Cena, Psychologist

Seven hours. Six. Five. Four.

You count the time like you are watching something disappear. You check the clock. You calculate how many hours of sleep you would get if you fell asleep right now. Then right now. Then right now. And you do not sleep. And the anxiety grows precisely because you are not sleeping, which makes it even harder to sleep.

I had a thought once, lying in exactly that state, that felt almost logical: if sleep did not exist, I would have so much more time for everything. Eight extra hours every day. Imagine what I could do with that.

Sleep is not lost time. It is the one time we give our bodies something without conditions. Not because we have to produce something, not because someone is waiting. Just because the body deserves it. Like pouring water on a flower. Not a luxury. A necessity.

The problem is that the moment sleep starts feeling like an obligation, a performance, something we have to get right, it runs away. And then we are back to counting the hours.

That is the feeling of insomnia: not simply the absence of sleep, but the transformation of sleep itself into a source of stress.

Why anxiety takes your sleep away exactly when you need it most

This is the cruelty of it: the body needs sleep most when we are stressed. But stress makes sleep almost impossible.

The reason is biological. When we are anxious, the body releases cortisol, the stress hormone. Cortisol is designed to keep us alert and awake when we are in danger. The problem is that our bodies cannot distinguish between an actual threat and the anxious thoughts that arrive at eleven at night. It feels the fear, activates the alarm system, and decides: this is not the time to sleep.

This creates a vicious cycle. Anxiety raises cortisol. Cortisol pushes sleep away. The loss of sleep raises anxiety further. Higher anxiety releases more cortisol. Research confirms that sleep deprivation and anxiety reinforce each other directly: each one worsens the other, and without something breaking the cycle, it continues.

Understanding this does not fix the problem immediately. But it helps to know that what is happening to you is not weakness. It is biochemistry.

Two things worth knowing about how sleep actually works

In the 1960s and 70s, researchers ran a now-famous set of experiments in an underground bunker in Andechs, Germany. Participants lived for weeks without clocks, daylight, or any external time cues whatsoever. And yet their bodies kept cycling through sleep and wakefulness on a rhythm of roughly 24 to 25 hours. No light. No alarm. No schedule. The clock was already inside them.

This matters because it means the sleep-wake cycle is not something imposed on the body from outside. It is something the body does by itself, and it is surprisingly robust. What we can do is work with it or against it. Most of us, especially when anxious, are unknowingly working against it.

The second thing: researchers have identified two distinct groups of neurons in the brain that actively compete for control. One group promotes wakefulness. The other promotes sleep. They suppress each other in what scientists call a flip-flop switch, similar to a light switch that is either on or off. When the sleep-promoting neurons win, you fall asleep relatively quickly. When the wake-promoting system is activated, by stress, cortisol, worry, or even just lying in bed for too long, it locks in and holds. The switch does not like to sit in the middle.

How to invite sleep: practical techniques

Sleep is better treated like a friend who wants to visit. You do not drag them through the door. You do not issue commands. You create the conditions and let them arrive. Here is what that looks like in practice.

Keep the same wake time

This is probably the most important advice and the one most often ignored. The body learns from consistency. If you wake at roughly the same time every day, including weekends, the internal clock gains structure and sleep comes more naturally in the evening. It feels counterintuitive when you are tired, but the wake time anchors everything else.

Create distance from screens before bed

The blue light from phones and laptops suppresses melatonin production. The brain does not know you are scrolling through Instagram. It sees light and concludes it is still daytime. Try putting screens away 30 to 60 minutes before bed and notice what changes over a few weeks. Even dimming the brightness in the hour before sleep makes a difference.

Move your body, but not right before sleep

Physical activity during the day supports sleep in measurable ways. Studies show that moderate exercise 2 to 4 hours before bedtime can increase deep sleep by up to 13% without affecting how long it takes to fall asleep. Intense exercise right before bed, however, raises body temperature and keeps the system alert, so timing matters.

Rethink caffeine

Caffeine stays active in the body for 6 to 8 hours after consumption. The coffee at three in the afternoon can still be interfering with sleep at midnight. This includes black tea, green tea, energy drinks, and dark chocolate. It is not about cutting caffeine entirely. It is about noticing when the cutoff needs to be.

Build an evening ritual

The body learns cues. If you follow the same quiet sequence each evening, reading for twenty minutes, making herbal tea, dimming the lights, the brain begins to associate that sequence with sleep. It does not need to be elaborate. It needs to be consistent. Over time, the ritual itself becomes the signal.

When the thoughts will not stop

Often it is not the body that cannot sleep. It is the mind. Tomorrow’s list. The unfinished conversation. The worry about something you cannot resolve at midnight.

A simple technique: keep a notepad beside the bed. When thoughts arrive, write them down. Not to solve them, but to move them out of your head. Writing them tells the brain: this is recorded, it can be set aside for now. Many people find this alone changes the quality of those first minutes in bed.

Another technique: if you have been lying awake for around 20 minutes, get up. Do something quiet and calm under low light until you feel genuinely tired. This sounds counterproductive, but it prevents the brain from associating the bed with wakefulness, which over time only deepens the problem.

Keep the bed for sleep

Watching series in bed, working from bed, lying in bed scrolling for an hour before attempting to sleep: these habits teach the brain that the bed is a place for wakefulness. When you need the bed to signal rest, it no longer does. Keeping it reserved for sleep is one of the most effective behavioral changes in sleep therapy, precisely because of how strongly the brain builds these associations.

When it is more than a habit problem

There are times when sleeplessness is not a routine issue. It is a symptom.

If you lie awake most nights turning over the same worries, if anxiety follows you through the day as well, if the exhaustion has begun to affect your work and your relationships, the problem is likely not one that better sleep hygiene alone can solve. The anxiety and sleeplessness have formed a cycle that needs to be addressed at its root.

Cognitive behavioral therapy for insomnia, known as CBT-I, is the first-line recommended treatment for chronic insomnia disorder in adults. It works without medication, produces results that last, and addresses exactly the thought-behavior cycles that keep insomnia going. It is not a quick fix, but it is one of the most reliable ones. If you want to understand the approach better, read what CBT is and why it works.

This is also the kind of work a psychologist helps with. Not only during acute crisis, but when something has been quietly wrong for a while and you cannot find the thread to pull.

When to consider speaking to someone

Some nights, the techniques help. Other nights, the ceiling stays the same and the thoughts are louder than anything you try. If that has been going on for weeks, if the tiredness has started to bleed into your days, your work, your patience with the people around you, that is worth paying attention to.

You do not have to wait until you are not coping at all. Reaching out early is always easier than reaching out when you are already exhausted by the effort of holding it together.

Mendje is a space to have that conversation with someone who speaks your language and understands where you are coming from. Not just literally. Our psychologists are licensed, carefully vetted, and available without the long waitlists that make support feel out of reach. You can see who we work with or learn more about how a session works.

The goal is not perfect sleep starting tomorrow. It is to stop carrying this alone.

Scientific sources: NCBI (2021) — Acute sleep deprivation disrupts emotion, cognition, inflammation, and cortisol in young healthy adults; American Academy of Sleep Medicine (2024) — Sleep experts call for end of seasonal time changes; Sports Medicine (Stutz et al., 2019) — Effects of Evening Exercise on Sleep in Healthy Participants; Frontiers in Psychiatry (2025) — Summary of the best evidence that CBT-I improves sleep quality in patients with chronic insomnia; Chronobiology International (Wittmann et al., 2006) — Social jetlag: Misalignment of biological and social time; Psychology Today (2020) — The Connection Between Cortisol and Sleep Disorders; Science (Aschoff, 1965) — Circadian rhythms in man, 148(3676), 1427–1432; Trends in Neurosciences (Saper, Chou & Scammell, 2001) — The sleep switch: hypothalamic control of sleep and wakefulness, 24(12), 726–731.

Latest articles

App Store · Google Play

Start your journey today

Download the Mendje app and connect with a licensed psychologist within minutes. The first step is the most important and we are here to help you.