Sleep anxiety is worry or dread about sleep itself: about whether you will fall asleep, how long it will take, and how you will cope tomorrow if you don’t. It is not a formal diagnosis, but it is one of the best-understood parts of insomnia. The cruel twist is that the worry is often what keeps you awake. The good news is that the same research explains how to break the loop, and the most effective approach is a structured, well-tested one: cognitive behavioural therapy for insomnia, or CBT-I.
This article explains why worrying about sleep keeps you up, why trying harder makes it worse, what to do about waking in a panic, and what actually helps, including a few things you can try tonight.
What sleep anxiety is
Most people have lain awake before an exam or a big day. Sleep anxiety is different: the thing you are anxious about is sleep. It can show up as dread as bedtime gets closer, checking the time and calculating how many hours you have left, lying in bed feeling wired but tired, or replaying how badly tomorrow will go if tonight goes wrong.
It can start with a stretch of poor sleep for an ordinary reason, such as stress, illness, a new baby or a difficult few weeks. The original cause passes, but the fear of another bad night stays, and that fear is enough to keep the problem going. It also overlaps heavily with general anxiety: a racing mind at night is often the same overthinking that runs during the day, with nothing else to distract from it.
Why worrying about sleep keeps you awake
The clearest explanation comes from a cognitive model of insomnia published by the Oxford psychologist Allison Harvey. It describes a loop that most people with sleep anxiety will recognise:
- Worry. You worry about your sleep and about what poor sleep will do to you tomorrow.
- Arousal. That worry switches on the body’s alarm system and brings distress with it, which is the opposite of the state sleep needs.
- Monitoring. Anxiety makes you scan for signs of trouble: the clock, your heartbeat, how tired or alert you feel.
- Overestimating. All that scanning makes the problem look bigger than it is, so you overestimate how little you are sleeping and how badly it is affecting you.
- Safety behaviours. You try to control your thoughts, push the worry away or force yourself to sleep. These efforts keep the loop running.
In Harvey’s words, the escalating anxiety “may culminate in a real deficit in sleep and daytime functioning”. The model also names a belief that quietly feeds it: that worrying is useful. It is a theoretical model with preliminary support rather than settled fact, but it has shaped how insomnia is treated.
Why trying harder backfires. A related model from Colin Espie and colleagues at the University of Glasgow makes the point directly: normal sleep is a relatively automatic process, which can be inhibited by focused attention and by direct attempts to control it. Sleep is something that happens to you when the conditions are right, not something you can do on purpose. The harder you try, the more awake you become.
The clock is part of the problem. In one experiment at King’s College London, 38 people with insomnia were asked to watch either a clock or a neutral display while trying to fall asleep. The clock-watchers worried more before sleep, took longer to fall asleep compared with their own baseline night, and overestimated how long it had taken them. It was a small, short study, but it matches what people describe: every glance at the clock starts a new round of calculating.
Does anxiety cause poor sleep, or does poor sleep cause anxiety? Both
The relationship runs in both directions, which is why it can feel so hard to get out of.
Anxiety disrupts sleep. Worry and physical arousal at bedtime make it harder to fall asleep and easier to wake, as the model above describes.
Poor sleep raises anxiety. A 2020 study at the University of California, Berkeley, found that losing sleep made people more anxious the next day, and linked this to reduced activity in a part of the brain (the medial prefrontal cortex) that helps regulate emotion. Deep, non-REM sleep seemed to have the opposite, calming effect. The researchers also reported that “even modest night-to-night reductions in sleep across the population predict consequential day-to-day increases in anxiety”.
The useful side of this is that the loop can be broken from either end. Treating insomnia tends to ease anxiety too, as the research in the next sections shows.
Waking up with a panic attack
Waking suddenly with a pounding heart, breathlessness and a sense of dread is frightening, especially when it seems to come from nowhere. It has a name: nocturnal panic. A review by Michelle Craske and Jennie Tsao at UCLA found it is common among people with panic disorder, with 44–71% reporting at least one such attack. That figure is for people with panic disorder, not everyone, but it shows that this is a known, studied experience rather than something unusual about you.
The same review describes nocturnal panic as a non-REM event that is distinct from nightmares, sleep terrors, sleep apnoea and dream-related awakenings. In other words, you are not waking from a bad dream. And it responds to the same kind of treatment as daytime panic: CBT that targets the misreading of normal body sensations as danger.
If it happens, slow breathing can help your body settle. Our guide to breathing exercises for panic attacks walks through a few simple ones. If it keeps happening, talk to a doctor, partly to rule out other causes (see “When to see a doctor” below) and partly because it is very treatable.
What actually helps: CBT for insomnia
CBT for insomnia (CBT-I) is the first-line treatment for persistent insomnia. The American Academy of Sleep Medicine’s 2021 guideline gives it a strong recommendation for chronic insomnia in adults. It is a structured programme, usually over several weeks, that combines a few key parts:
| Part of CBT-I | What it involves | Why it helps sleep anxiety |
|---|---|---|
| Stimulus control | Use the bed only for sleep (and sex). If you can’t sleep, get up and do something quiet until you feel sleepy. | Breaks the link between your bed and lying awake worrying. |
| Sleep scheduling | A fixed wake-up time, and time in bed matched to how much you are actually sleeping, widened as sleep improves. | Builds a stronger, more reliable drive to sleep, so nights feel less like a gamble. |
| Cognitive work | Noticing and testing beliefs such as “if I don’t get eight hours, tomorrow is ruined”. | Targets the worry that drives the loop. |
| Relaxation | Techniques that reduce physical tension and arousal. | Calms the body’s alarm response at bedtime. |
Sleep scheduling deliberately limits your time in bed at first, so it is best done with guidance from a clinician or a structured programme, and with a doctor’s advice if you have other health conditions.
Sleep hygiene on its own is not enough. Advice about caffeine, screens and a dark bedroom is sensible, but the same guideline suggests clinicians do not use sleep hygiene as a stand-alone treatment for chronic insomnia. If you have already tried all the tips and still lie awake, that is not a personal failure. It is what the evidence predicts.
Digital CBT-I works, and it helps anxiety too. CBT-I does not have to be delivered face to face. In a randomised trial of 1,711 people with insomnia symptoms, a digital CBT-I programme produced a large improvement in sleep-related quality of life and small improvements in health and wellbeing compared with sleep hygiene education, and the gains lasted to 24 weeks. (The lead author co-developed the programme tested, which the paper discloses.) A 2023 meta-analysis of 22 trials found that digital CBT-I had a large effect on sleep and a small-to-moderate effect on anxiety and depression symptoms, including fully automated programmes with no therapist involved. People who stuck with the programme got more out of it. In the UK, NICE recommends one digital CBT-I programme, Sleepio, in primary care for people who would otherwise be offered sleep hygiene advice or sleeping pills.
You can get CBT-I from trained clinicians (sleep psychologists and some therapists) or through a digital programme. A GP is a good place to start either way.
If what keeps you up is mostly worry, aidx.ai, an AI coaching and therapy service, can be a place to talk it through earlier in the evening and practise CBT-based techniques for anxious thinking. It is AI, not a clinician. It does not diagnose or treat insomnia, and it is not a substitute for a medical assessment.
The counter-intuitive one: stop trying to sleep
If effort is part of the problem, one technique turns it around. Paradoxical intention means lying in bed and gently trying to stay awake, with your eyes open in the dark, instead of trying to fall asleep. The aim is not to force wakefulness. It is to take away the pressure, and with it the fear of not sleeping.
A 2022 systematic review and meta-analysis of 10 trials found that paradoxical intention led to large improvements in key insomnia symptoms compared with no treatment, moderate improvements compared with other active treatments, and “great reductions in sleep-related performance anxiety”. The authors also say that methodologically stronger studies are needed before firm conclusions can be drawn. So treat it as a promising, evidence-supported tool, not a cure.
When your sleep tracker is making it worse
Sleep trackers can be interesting, but for an anxious sleeper they can become one more thing to monitor. Sleep researchers at Rush University and Northwestern described patients who sought treatment for sleep problems they had diagnosed from their tracker data, and gave it a name: orthosomnia. For these patients, the data could become “a perfectionistic quest for the ideal sleep”. To many of them, the tracker data felt more true to their experience than validated sleep measurements did. The paper is a set of case reports, so it tells us the problem exists, not how common it is.
If checking your sleep score sets your mood for the day, try taking a break from it for a couple of weeks. Judge your sleep by how you function, not by a number.
Tonight, if you’re lying awake
None of these replaces a proper course of CBT-I, but each one comes from it or from the research above:
- Turn the clock away. Checking the time fuels the calculating and the worry. Put your phone out of reach.
- Get up if you’re wide awake. If you have been lying awake and getting frustrated, go to another room, keep the lights low and do something calm until you feel sleepy. Then go back to bed.
- Let go of the effort. Rest with your eyes open and let sleep come if it wants to, which is the idea behind paradoxical intention.
- Relax your body, not just your mind. Progressive muscle relaxation works through the body one muscle group at a time and is one of the relaxation methods used in CBT-I.
- Worry earlier, on paper. In the early evening, write down what is on your mind and one next step for each item. In a small study of 33 students with insomnia, this “constructive worry” exercise reduced pre-sleep mental arousal compared with a group that only recorded their worries.
- Keep the same wake-up time tomorrow. Sleeping in after a bad night is tempting, but a steady wake-up time is what rebuilds your sleep drive.
For more ways to handle anxious moments in general, see our guide to coping skills for anxiety.
When to see a doctor
Talk to a GP or family doctor if poor sleep has lasted for weeks, is affecting your days, or keeps coming back. Some signs point to a different sleep problem that needs checking, rather than sleep anxiety:
- Loud snoring, or someone noticing you stop breathing, gasp or choke in your sleep. These are symptoms of sleep apnoea, which can be serious if it is not diagnosed and treated. Bring along anyone who has seen it happen.
- Being so sleepy in the day that you nod off unintentionally, especially while driving.
- Night-time panic that keeps happening, so other causes can be ruled out and you can get treatment for it.
- Chest pain, at any time. Get urgent medical help, and don’t assume it is anxiety.
Supplements and sleep aids are heavily marketed for sleep anxiety. For persistent insomnia, the best-evidenced first step is CBT-I, and any medication is a decision to make with a doctor who knows your history.
Common questions
How do I overcome sleep anxiety?
Work on the loop rather than on sleep itself: stop the clock-watching, get up when you are wide awake, keep a steady wake-up time and stop trying to force sleep. For anxiety about sleep that has lasted a while, CBT for insomnia is the most effective approach, whether with a clinician or through a digital programme.
Why do I get anxiety about sleeping?
Usually because a run of bad nights has taught your brain to treat bedtime as a threat. Worry about sleep and about the next day switches on your body’s alarm system, which makes sleep harder, which confirms the worry. Understanding the loop is the first step to breaking it.
How can I sleep when I have anxiety?
Give the worry a time and place earlier in the evening, try a relaxation technique such as progressive muscle relaxation, keep the clock out of sight, and get up for a while if you are lying awake and frustrated. If anxiety is affecting your days as well as your nights, it is worth getting support for the anxiety itself.
What is the 3-3-3 rule for anxiety at night?
It is a popular grounding tip: name three things you can see, three you can hear, and move three parts of your body. Some people find it a useful way to come back to the present. We could not find research testing it for sleep, so treat it as an optional tool rather than a treatment.
Is it normal to be scared to go to sleep?
Dreading bedtime after a stretch of bad nights is very common, and it is exactly the pattern the research on insomnia describes. It does not mean something is seriously wrong. If the fear is intense or has lasted a long time, a GP or therapist can help.
Can you have a panic attack in your sleep?
Yes. It is called nocturnal panic: waking suddenly in a state of panic. It is common in people with panic disorder, is different from a nightmare, and responds to CBT. If it keeps happening, see a doctor.
Do sleep trackers help or hurt?
It depends on how you respond to them. For some people they are useful. For anxious sleepers they can become another source of worry and checking, which researchers have called orthosomnia. If your score affects how you feel about the day, take a break from it.
How do I relax my mind at night?
Slow, steady breathing and progressive muscle relaxation calm the body, which helps the mind follow. Writing worries and next steps down earlier in the evening means you are not trying to solve them in bed. And if your thoughts keep racing, stop fighting them: noticing them without arguing back is often easier than trying to switch them off.
Last reviewed: October 2026
References
- Baron, K. G., Abbott, S., Jao, N., Manalo, N., & Mullen, R. (2017). Orthosomnia: are some patients taking the quantified self too far? Journal of Clinical Sleep Medicine, 13(2), 351–354.
- Ben Simon, E., Rossi, A., Harvey, A. G., & Walker, M. P. (2020). Overanxious and underslept. Nature Human Behaviour, 4(1), 100–110.
- Carney, C. E., & Waters, W. F. (2006). Effects of a structured problem-solving procedure on pre-sleep cognitive arousal in college students with insomnia. Behavioral Sleep Medicine, 4(1), 13–28.
- Craske, M. G., & Tsao, J. C. (2005). Assessment and treatment of nocturnal panic attacks. Sleep Medicine Reviews, 9(3), 173–184.
- Edinger, J. D., Arnedt, J. T., Bertisch, S. M., et al. (2021). Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine, 17(2), 255–262.
- Espie, C. A., Broomfield, N. M., MacMahon, K. M., Macphee, L. M., & Taylor, L. M. (2006). The attention-intention-effort pathway in the development of psychophysiologic insomnia: a theoretical review. Sleep Medicine Reviews, 10(4), 215–245.
- Espie, C. A., Emsley, R., Kyle, S. D., et al. (2019). Effect of digital cognitive behavioral therapy for insomnia on health, psychological well-being, and sleep-related quality of life: a randomized clinical trial. JAMA Psychiatry, 76(1), 21–30.
- Harvey, A. G. (2002). A cognitive model of insomnia. Behaviour Research and Therapy, 40(8), 869–893.
- Jansson-Fröjmark, M., Alfonsson, S., Bohman, B., Rozental, A., & Norell-Clarke, A. (2022). Paradoxical intention for insomnia: a systematic review and meta-analysis. Journal of Sleep Research, 31(2), e13464.
- Lee, S., Oh, J. W., Park, K. M., Lee, S., & Lee, E. (2023). Digital cognitive behavioral therapy for insomnia on depression and anxiety: a systematic review and meta-analysis. NPJ Digital Medicine, 6(1), 52.
- National Institute for Health and Care Excellence. (2022). Sleepio to treat insomnia and insomnia symptoms (HealthTech guidance HTG624, formerly MTG70).
- NHS. Sleep apnoea.
- Tang, N. K., Schmidt, D. A., & Harvey, A. G. (2007). Sleeping with the enemy: clock monitoring in the maintenance of insomnia. Journal of Behavior Therapy and Experimental Psychiatry, 38(1), 40–55.
This article is general information about sleep and mental health. It is not medical or psychological advice, and it cannot diagnose or treat any condition. If poor sleep has lasted for several weeks, is affecting your daily life, or comes with loud snoring, pauses in breathing, or severe daytime sleepiness, please talk to a doctor. If you have chest pain, or you are in crisis or thinking about harming yourself, contact your local emergency services or a crisis line right away: in the US, call or text 988 (Suicide & Crisis Lifeline); in the UK and Ireland, call Samaritans on 116 123.



