Requests

Psychiatry

Insomnia: causes and treatment

Insomnia is difficulty falling asleep, staying asleep or waking too early and being unable to return to sleep, despite having enough time and suitable conditions for rest. It has consequences the next day, such as tiredness, irritability, difficulty concentrating or changes in mood.

Please note: psychiatry consultations are held in Portuguese only.

Patient in a video consultation with Clínica Alegre, with the doctor on the computer screen

Reviewed by Dr Fernando Alegre

Clinical Director · OMD, registration no. 9688

Written by the Clínica Alegre team9-minute read

In this article

Almost everyone has a bad night occasionally, but when insomnia recurs several times a week and persists, it is no longer a passing inconvenience and deserves attention.

This article explains the main causes of insomnia, how it is assessed and which treatments have the strongest evidence. The central message of the latest European recommendations is clear: first-line treatment for chronic insomnia is cognitive behavioural therapy for insomnia, while medicines have a more limited, short-term role and must always be prescribed.

What is insomnia?

Insomnia is defined by the person's own complaint, not by a fixed number of hours. Some people sleep little and feel well, while others spend many hours in bed and wake exhausted. Insomnia is characterised by difficulty sleeping combined with daytime consequences, despite having the opportunity to sleep.

When it lasts less than three months, it is known as acute or short-term insomnia and is often linked to a specific event, such as bereavement, changing jobs, illness or exams. When it occurs at least three nights a week for three months or more, it is known as chronic insomnia.

TypeDurationTypical situation
Acute insomniaDays to weeks, less than three monthsStress, bereavement, illness, travel, change in routine
Chronic insomniaAt least three nights a week for three months or moreThe problem persists even after the trigger has passed
Sleep-onset insomniaDifficulty falling asleepCommon in people with anxiety or a delayed sleep pattern
Sleep-maintenance insomniaWaking several times or too earlyCommon with age, pain, depression or alcohol

Causes of insomnia: predisposition, triggers and perpetuation

A widely used model divides the causes of insomnia into three types. Predisposing factors make someone more vulnerable, such as a tendency to worry or naturally lighter sleep. Precipitating factors are the events that start the problem. Perpetuating factors are the habits and thoughts developed to compensate for bad nights that ultimately keep insomnia going.

This last group is the most important for treatment. Spending more time in bed “to catch up”, taking long naps, checking the time during the night, lying awake trying to sleep or worrying about the consequences of not sleeping are understandable reactions. However, they keep the brain alert and associate the bed with frustration.

Type of factorExamples
PredisposingTendency towards anxiety, family history, lighter sleep, age
TriggerStress, bereavement, illness, pain, schedule changes, having a baby
PerpetuatingSpending too long in bed, long naps, irregular schedules, worrying about sleep

Illnesses, medicines and substances that may cause insomnia

Insomnia is often associated with other conditions. It is very common in mental health disorders such as depression and anxiety disorders, and may even precede other symptoms. Physical conditions involving pain, breathlessness, the need to urinate at night, reflux or hormonal changes also disrupt sleep.

Other sleep problems can resemble insomnia, including obstructive sleep apnoea and restless legs syndrome. Some medicines, caffeine, nicotine and alcohol can also interfere. Alcohol may help you fall asleep, but fragments sleep in the second half of the night. Never stop a medicine because you suspect it is causing insomnia without first speaking to your doctor.

CategoryExamples
Mental healthDepression, anxiety, bipolar disorder, trauma
Physical illnessesChronic pain, respiratory conditions, reflux, thyroid problems, menopause
Other sleep problemsObstructive sleep apnoea, restless legs syndrome, circadian rhythm disorders
SubstancesCaffeine, nicotine, alcohol, other drugs
MedicinesSome medicines may interfere with sleep; speak to your doctor

How insomnia is assessed

Assessment is based mainly on a clinical discussion: how and when the problem began, what nights are like, what happens during the day, existing habits and any other conditions or medicines. The 2023 European guideline, coordinated by Riemann and colleagues, recommends a clinical interview, a sleep diary and questionnaires, together with investigation of associated physical and mental health conditions.

A sleep diary completed for one to two weeks records bedtime, the estimated time taken to fall asleep, awakenings, getting-up time and tiredness the next day. It is simple and very useful. Laboratory sleep studies (polysomnography) are not routinely needed; they are indicated when another problem such as sleep apnoea is suspected, or when insomnia does not respond to treatment.

Treating insomnia: cognitive behavioural therapy

Cognitive behavioural therapy for insomnia is a structured treatment, usually delivered over several sessions. It combines restricting time in bed, stimulus control, work on sleep-related thoughts and worries, relaxation techniques and sleep education. The European guideline recommends it as first-line treatment for chronic insomnia in adults of any age, including people with other conditions, whether delivered in person or digitally.

A meta-analysis by Trauer and colleagues, combining 20 trials involving more than 1,000 adults with chronic insomnia, showed clinically meaningful improvements in the time taken to fall asleep, time awake during the night and sleep efficiency. Benefits tended to last over time. The increase in total sleep time was smaller and not significant in this analysis, showing that the main benefit lies in sleep quality and continuity.

ComponentWhat it involves
Time in bed restrictionMatch time in bed to actual sleep time to consolidate sleep
Stimulus controlUse the bed only for sleep; get up if you cannot fall asleep
Cognitive restructuringReview beliefs and worries about sleep
RelaxationTechniques to reduce physical and mental arousal
Sleep educationInformation about habits, light, schedules, caffeine and alcohol

The role of medicines

When cognitive behavioural therapy is not enough or is inaccessible, medication may be considered. The European guideline states that benzodiazepines, benzodiazepine receptor agonists, orexin receptor antagonists and low-dose sedating antidepressants may be used for short-term treatment, up to around four weeks. Longer use may be considered in some cases after weighing the benefits and risks.

The American Academy of Sleep Medicine guideline by Sateia and colleagues stresses that the quality of evidence for most medicines is low and recommendations are generally weak. Risks include next-day drowsiness, falls, memory problems, tolerance and dependence. All these medicines are prescription-only. Starting, adjusting or stopping them is always a medical decision, and abrupt withdrawal may cause rebound insomnia and discontinuation symptoms.

Sleep hygiene: useful, but not enough

Sleep hygiene advice, including regular hours, avoiding caffeine in the afternoon, limiting alcohol, keeping the bedroom dark and cool, and reducing screen use before bed, provides a useful foundation. On its own, however, it rarely resolves chronic insomnia. It is more effective as part of cognitive behavioural therapy.

The European guideline also notes that light therapy and physical exercise may be useful additions, but do not replace the main treatment.

MeasureWhat it is for
A regular getting-up timeStabilises the body clock
Avoid caffeine in the afternoon and eveningReduces difficulty falling asleep
Limit alcoholPrevents awakenings in the second half of the night
Natural light exposure in the morningHelps regulate the circadian rhythm
Regular physical activityMay improve sleep quality

When to seek help

Seek help if insomnia has lasted more than a few weeks, affects work, mood or safety, or you increasingly rely on medicines or alcohol to sleep. Loud snoring with pauses in breathing, severe daytime sleepiness, particularly while driving, or uncomfortable leg movements at night warrant medical assessment. Insomnia accompanied by persistent sadness, loss of interest or feelings of hopelessness needs prompt attention.

At Clínica Alegre in Setúbal and Seixal, the consultation begins by listening and understanding what is happening, so we can decide on the most appropriate support together.

Frequently asked questions

How many hours of sleep are needed?

It varies from person to person. More important than a number is feeling rested and functioning well during the day.

Can insomnia be a sign of depression?

Yes. Insomnia is common in depression and may even precede it. If you have persistent sadness or loss of interest, speak to a professional.

Does spending longer in bed help you catch up?

Usually not. Extending time in bed tends to fragment sleep and perpetuate insomnia.

Do sleeping medicines cure insomnia?

They may provide short-term relief, but do not address the factors that perpetuate it. Cognitive behavioural therapy targets these causes.

Do I need a sleep study?

Not routinely. It is indicated when another problem such as sleep apnoea is suspected, or when insomnia does not respond to treatment.

Can therapy for insomnia be done online?

Yes. The European guideline recognises the effectiveness of digital as well as face-to-face treatment.

Did you enjoy this article?

Scientific references3
  1. Riemann D, Espie CA, Altena E, Arnardottir ES, Baglioni C, Bassetti CLA, et al. The European Insomnia Guideline: an update on the diagnosis and treatment of insomnia, 2023. J Sleep Res. 2023;32(6):e14035.
  2. Trauer JM, Qian MY, Doyle JS, Rajaratnam SMW, Cunnington D. Cognitive behavioural therapy for chronic insomnia: a systematic review and meta-analysis. Ann Intern Med. 2015;163(3):191–204.
  3. Sateia MJ, Buysse DJ, Krystal AD, Neubauer DN, Heald JL. Clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults: an American Academy of Sleep Medicine clinical practice guideline. J Clin Sleep Med. 2017;13(2):307-49.
Article information
Written by
Clínica Alegre team
Clinical review
Dr Fernando Alegre, Clinical Director · OMD, registration no. 9688
Published
3 Dec 2026
Last updated
3 Dec 2026
Topic
Psychiatry
Reading time
9 min

See also

Related treatments

Want to know what is right for you?

Contact us on WhatsApp or book an assessment, in person or online.

Book an appointment

Book your assessment.

Choose Setúbal or Seixal. We reply within opening hours.

Newsletter

Get the latest news from the Clínica Alegre.

Blog articles and clinic news, delivered to your inbox. Unsubscribe at any time.