I can't sleep: why it happens and what you can do to rest again
It's three in the morning. You've been tossing and turning for over an hour. Your body is tired, but your mind won't switch off. You go over the day, anticipate the next one, calculate how many hours you have left before the alarm goes off. And the more you think about it, the harder it becomes to close your eyes. If this feels familiar, you are not alone. The thought «I can't sleep» is one of the most frequent complaints we hear in consultation, and it almost always conceals something deeper than a simple sleep problem.
Insomnia has psychological causes in most cases: sustained stress, anxiety, mental rumination or emotional distress that finds no outlet during the day. When you identify what is feeding those sleepless nights, the path towards real rest becomes much clearer. And yes, specific help exists for this.
Why I can't sleep: the causes nobody explains to you
The first thing I want you to know is that your body knows how to sleep. It hasn't forgotten how. What happens is that something interferes with that process, and it is almost always psychological in nature. According to data from the World Health Organization, sleep disorders affect close to 40% of the world's population at some point in their lives, and in Spain the Sociedad Española de Neurología estimates that between 20 and 48% of the adult population suffers difficulty initiating or maintaining sleep.
These figures are enormous. And yet, most people who cannot sleep experience it as an individual, private problem, almost as a personal failure. It is not.
Hyperactivation of the nervous system
Your nervous system has two main modes: the sympathetic (activation, alertness) and the parasympathetic (calm, rest). To fall asleep you need the parasympathetic to take control. But if you live in a state of sustained stress, the sympathetic stays switched on. It is like trying to turn off an engine that keeps accelerating. Cortisol, the stress hormone, remains elevated and blocks adequate melatonin production.
Rumination and anticipatory thinking
That conversation you didn't have. Tomorrow's meeting. What you should have said. The ruminating mind is one of the most common causes of sleep-onset insomnia. It's not that you have a sleep problem; it's that you have a problem disconnecting mentally. The brain needs a clear signal that the day has ended, and many people never give it that signal.
Anxiety, depression and emotional distress
Insomnia rarely appears on its own. In clinical practice, one of the most frequently recurring patterns is that the person comes to consultation saying they cannot sleep and, on exploring their history, discovers that there is a layer of anxiety or sadness that had been ignored for months. What most surprises those who begin therapy is discovering that the problem they thought they had is rarely the real problem. Insomnia is often the visible symptom of something that needs attention. If you want to delve deeper into how both aspects relate to each other, I recommend reading our article on the bidirectional relationship between sleep and mental health, where we explain this link in detail.
What to do when I can't sleep: clinically based strategies
Before going into specific advice, I want to be honest with you: the "sleep hygiene" lists you find on the internet are not wrong, but they usually remain superficial. Reducing caffeine or turning off your phone an hour beforehand helps, of course. But if the origin of your insomnia is emotional, these measures alone will not resolve the underlying problem. That said, there are strategies that combine the behavioural with the psychological and that research strongly supports.
1. Sleep restriction: counterintuitive but effective
Cognitive behavioural therapy for insomnia (CBT-I) is the first-line treatment recommended by the American Psychological Association (APA), even above medication. One of its key techniques is time-in-bed restriction. It works like this: instead of spending nine hours in bed sleeping five, you reduce the time in bed to the hours you actually sleep. It seems contradictory, but it compresses sleep, increases homeostatic pressure and breaks the bed-insomnia association.
This technique must be applied under professional guidance, because if misused it can cause excessive daytime sleepiness. It is not about punishing the body, but about recalibrating a system that has lost its natural rhythm.
2. Stimulus control: your bed only for sleeping
If you have spent weeks or months lying awake in bed, your brain has learnt to associate that space with frustration rather than rest. Stimulus control seeks to break that association: if you have been unable to sleep for more than 15-20 minutes, get up. Go to another room. Do something calm under dim light. Return to bed only when you feel real sleepiness, not just tiredness. It is uncomfortable at first. But it works.
3. Cognitive restructuring of insomnia
Many people with insomnia have catastrophic thoughts about not sleeping: "If I don't sleep, I won't be able to function tomorrow", "This is going to destroy my health", "I'm never going to sleep well again". These thoughts trigger anxiety and, paradoxically, perpetuate insomnia. Learning to identify them and question their accuracy is a central part of CBT-I.
This is not about telling you to «think positively». It is about your mind no longer treating every night as an emergency.
4. Physiological deactivation techniques
Slow diaphragmatic breathing (inhale for 4 seconds, hold for 4, exhale for 6-8) directly activates the parasympathetic nervous system. It is not magic; it is physiology. Other techniques, such as Jacobson's progressive muscle relaxation, also have solid evidence for reducing pre-sleep activation. At Madrid Terapia we work with this type of tool as part of a broader approach, because the technique works better when you understand what makes it necessary in your particular case.
5. Addressing what is really keeping you awake
Sometimes you cannot sleep because there is unprocessed grief, a relationship conflict you are avoiding, a workload that is overwhelming you, or an anxiety that has been building for months. From a humanistic perspective, psychological distress almost always makes sense once the person's full history is known. Insomnia may be your mind's way of telling you that something important needs to be listened to.
If you feel that something deeper lies behind your sleepless nights, you may be interested in exploring how to regain motivation when nothing seems to matter, because daytime apathy and night-time insomnia often go hand in hand.
I can't sleep: when should I seek professional help?
There is a line between a rough patch of sleep and a problem that needs attention. If you have been sleeping poorly most nights for more than three weeks, if the insomnia is affecting your performance, your mood or your relationships, or if you notice that the lack of sleep generates anticipatory anxiety every time night falls, it is a good time to consult a registered psychologist who can carry out a personalised assessment.
Psychotherapy applied to insomnia does not only address the symptom. It seeks to understand why your system has become trapped in alert mode and helps you break out of that cycle in a sustainable way. It is a process that adapts to each person. There is no universal recipe.
If you have been feeling trapped in this cycle for a while and do not know where to start, at our centre in Chamberí, Madrid, we can help you understand what is going on. Sometimes a few focused sessions are enough; other times insomnia opens the door to deeper work that takes its time. To get an idea of the process, you can consult how many psychology sessions are usually needed to improve.
Myths and facts about insomnia
There is a lot of information circulating about sleep, and not all of it is accurate. Clarifying some misunderstandings can ease some of the anxiety that feeds the problem.
| Myth | Reality |
|---|---|
| «I need exactly 8 hours or I'll feel terrible» | Sleep needs vary between people. Between 6 and 9 hours is normal. What matters is quality, not meeting a magic number. |
| «If I can't sleep, I should stay in bed until sleep comes» | Staying awake in bed reinforces the bed-wakefulness association. Getting up and returning when you feel genuinely sleepy is more effective. |
| "A glass of wine helps me sleep" | Alcohol may help you fall asleep, but it fragments sleep and reduces deep sleep phases. The resulting rest is of poorer quality. |
| «Insomnia is just a matter of habits» | Habits matter, but in many cases insomnia has emotional or psychological roots that require professional treatment. |
| «Sleeping pills are the solution» | Medication can be useful on a specific basis under medical prescription, but CBT-I shows more lasting results in the long term according to scientific evidence. |
Small changes you can start tonight
While you decide whether you need professional help or not, there are specific things you can try from today. They are not magic solutions, but each one has scientific backing and can make a real difference if applied consistently.
- Set a fixed time to get up, even at weekends. Wake-up time anchors your biological clock more than bedtime.
- Expose yourself to intense natural light during the first 30 minutes of the day. This regulates melatonin production for the night.
- Write down for 10 minutes before sleeping what is worrying you. Getting thoughts out of your head and onto paper reduces night-time rumination.
- Avoid naps longer than 20 minutes or after 3:00 pm.
- Eat a light dinner at least two hours before going to bed.
- Practise 3 cycles of slow diaphragmatic breathing when you get into bed: inhale for 4 seconds, hold for 4, exhale for 8.
- If you haven't fallen asleep within 20 minutes, get up. Do something boring in low light. Only go back to bed when you feel sleepy.
These guidelines are part of what in psychology we call sleep hygiene combined with stimulus control. They work particularly well when insomnia has not been present for long. If it has already become chronic, they usually need to be complemented by more structured therapeutic work.
The role of psychological therapy in chronic insomnia
CBT-I (cognitive behavioural therapy for insomnia) is backed by more than three decades of research. A meta-analysis published in Annals of Internal Medicine concluded that it produces clinically significant improvements in sleep latency, total sleep time and subjective quality of rest, with effects that are maintained in the long term.
But not all insomnia responds to the same approach. When behind the sleepless nights there is grief, trauma, a relational conflict or generalised anxiety, the professional attending to you will assess with you which approach is most suitable. There are approaches such as acceptance and commitment therapy (ACT) that work on the relationship you have with distress, rather than trying to eliminate it directly. Sometimes, ceasing to fight against insomnia is the first step for sleep to return.
Remember that this article is for informative purposes only and does not replace an individualised professional assessment. Each person is different and what works for one may not be suitable for another.
If you feel that your nights are affecting your life and that you need something more than general advice, taking the first step is the hardest part, but also the most important. At Madrid Psicoterapia, in Chamberí, Madrid, we will be pleased to listen to you and assess with you what you need. You can write to us with no obligation or, if it is easier for you, call us on 919 932 920 so we can talk about it.
Frequently asked questions about not being able to sleep
Why can't I sleep even though I'm tired?
When the nervous system is in a state of hyperactivation due to stress or anxiety, the body feels tired but the mind cannot switch off. Mental rumination and elevated cortisol block the onset of sleep, creating that frustrating sensation of being exhausted yet unable to sleep.
How many days of poor sleep are concerning?
If you have been sleeping badly most nights for more than three weeks and this is affecting your performance, your mood or your relationships, it is advisable to consult a mental health professional for a personalised assessment.
Is it better to see a doctor or a psychologist for insomnia?
It depends on the cause. If the origin is emotional or psychological, a specialist psychologist can help you with techniques such as CBT-I. If you suspect a medical cause (apnoea, chronic pain, hormonal problems), the doctor will rule out organic problems. Both professionals can work in a complementary way.
Does cognitive behavioural therapy work for insomnia?
Yes. CBT-I is the first-line treatment recommended by the main international clinical guidelines, including the APA and the European Sleep Research Society. It has lasting effects and in many cases outperforms medication in the long term.
What can I do tonight to try to sleep better?
Practise slow diaphragmatic breathing before going to bed, write down your worries on paper to get them out of your head, and if you haven't fallen asleep within 20 minutes, get out of bed and return only when you feel genuinely sleepy. These are small changes, but they are based on scientific evidence.
Can insomnia be a symptom of anxiety or depression?
Often, yes. Insomnia and emotional disorders have a bidirectional relationship: anxiety and depression make sleep more difficult, and lack of sleep worsens emotional distress. Addressing both aspects at the same time usually gives the best results.
Are sleeping pills dangerous?
Medication for sleep should always be prescribed and supervised by a doctor. It can be useful on an occasional basis, but it does not address the underlying causes and can lead to dependence if used long term without professional supervision. It is not the first treatment option according to current evidence.
How long does it take for insomnia to improve with psychological therapy?
Each person is different. CBT-I is usually applied in protocols of 4 to 8 sessions with significant results. If there is broader emotional distress behind the insomnia, the process may require therapeutic work adapted to your specific situation.
About the author: This article was written by Alfonso Royo Argandoña, Licensed Health Psychologist No. M-38314 Member of the Official College of Psychology of Madrid. Master’s degree in General Health Psychology. Specializes in clinical psychology, personality disorders, addictions, and humanistic, systemic, and integrative counseling.
First assessment session · 50 min with a registered health psychologist · 55 € (paid on the day if in person)
