Requests

Psychiatry

Sleeping pills: when and for how long

Sleeping pills are widely used in Portugal and other countries.

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

For someone who spends night after night without proper rest, the promise of falling asleep quickly is very appealing. It is common for medicine prescribed for “a difficult period” to end up being taken for months or years. In medical language, medicines used to induce or maintain sleep are called hypnotics, and they include several classes with different mechanisms, benefits and risks.

This article answers two practical questions: when does it make sense to use a sleep medicine, and for how long? It also explains the most important risks, precautions for particular groups, how to stop safely and which alternatives have the best evidence. It does not replace a conversation with your doctor: these medicines should only be used on prescription, and any change should be decided at an appointment.

Which medicines are we talking about?

The term “sleeping pills” covers very different medicines. Some were developed specifically for insomnia; others are used for their sedative effect, although they were created for other purposes. The 2023 European guideline lists the classes that may be used for short-term treatment of insomnia, while the 2017 American Academy of Sleep Medicine guideline assessed individual medicines and classified all its recommendations as weak, showing that the available evidence has limitations.

ClassIn general termsNote
BenzodiazepinesTraditional sedatives and anxiolyticsShort-term use; risk of dependence
Benzodiazepine receptor agonistsWork in a similar way, with a greater focus on sleepSimilar risks, including dependence
Orexin receptor antagonistsBlock a brain signal that maintains wakefulnessA newer class
Low-dose sedating antidepressantsUse the sedative effect of some antidepressantsMore limited evidence for insomnia alone

All these medicines are prescription-only. Nobody should take tablets prescribed for someone else, even if they “worked well for them”.

When they may be appropriate

The recommended treatment for chronic insomnia is cognitive behavioural therapy for insomnia. The European guideline states that medication may be offered when this therapy is not sufficiently effective. In practice, doctors consider sleep medicines in situations such as the following, always after assessing the person as a whole.

SituationWhy medication may be warranted
Severe acute insomnia linked to a specific eventTemporary relief while the trigger passes
Chronic insomnia that has not improved with therapyAn additional option after first-line treatment
Unable to access therapyBecause it is unavailable or due to individual circumstances
Early stage of therapy, in selected casesTemporary support, with a dose-reduction plan
Insomnia in the context of another disorderIntegrated into overall treatment, following a medical decision

In all these situations, the question is not simply “does this medicine help with sleep?”, but also “do the benefits outweigh the risks for this person at this time?”.

For how long?

The European guideline is clear: the main classes of medicines for insomnia may be used for short-term treatment, for up to about four weeks. Longer-term treatment may be started in some cases after careful consideration of the benefits and risks, and should be reviewed regularly.

There are several reasons for this caution. With continued use, the effect of some classes may decrease (tolerance), the person may come to feel that they cannot sleep without the tablet, and the risks accumulate. In some cases, the doctor may suggest intermittent use, meaning on certain nights only rather than every night. From the outset, there should be an agreement on how long the medicine will be taken and when it will be reviewed.

Risks and side effects

Sleep medicines have real benefits, but also risks that are important to understand. Many of these risks increase with age, higher doses and prolonged use.

RiskWhat it involves
Next-day drowsinessSlower reactions, reduced attention, risk when driving or operating machinery
Falls and fracturesEspecially in older people when getting up during the night
Memory problems and confusionForgetfulness, particularly about events after taking the medicine
Complex sleep behavioursGetting up, eating or doing other activities with no memory of them
Tolerance and dependenceNeed to continue and difficulty stopping
InteractionsEffects intensified by alcohol, other sedatives and some painkillers

If you notice any of these effects, speak to your doctor. Do not increase the dose yourself, even if you feel the effect has diminished.

Precautions for particular groups

Some people need extra care. Older people are more sensitive to these medicines and have a higher risk of falls, confusion and memory problems. In people with sleep apnoea or respiratory conditions, some sedatives can make breathing worse during the night. People with a history of harmful alcohol or other substance use have a higher risk of dependence.

During pregnancy and breastfeeding, the use of any sleep medicine should be discussed with a doctor, who will weigh the risks for the mother and baby. Driving requires particular attention: even when someone does not feel drowsy, their reactions may be slower the following morning. Alcohol should never be combined with these medicines.

Tolerance and dependence

Tolerance means that, over time, the same dose has less effect. Dependence means that the body has become accustomed to the medicine and its withdrawal causes symptoms. These effects are well known with benzodiazepines and substances with a similar mechanism, which is why their use should be short term.

Dependence is not a sign of weakness or “addiction” in a moral sense: it is the body's adaptation to the medicine. It can happen even at prescribed doses. Recognising it makes it possible to plan a safe reduction with the doctor. Many people who have taken these medicines for years are able to reduce or stop them with appropriate support.

How to stop safely

Stopping a sleep medicine suddenly, especially after weeks or months of use, can cause rebound insomnia (worse than the original insomnia for a few days), anxiety, irritability and, in the case of benzodiazepines, withdrawal symptoms that can rarely be serious. The rule is therefore: never stop on your own.

StepWhat it involves
Discussion with the doctorAssess current use, the reasons for it and the right time
Gradual dose-reduction planReduce the dose progressively, at an appropriate pace
Non-drug supportCognitive behavioural therapy for insomnia during dose reduction
Follow-upAppointments to adjust the plan and manage difficulties
Realistic expectationsAccept some worse nights without abandoning the plan

Dose reduction may take weeks or months, depending on the person and how long they have taken the medicine. Cognitive behavioural therapy for insomnia is a valuable ally in this process because it provides tools for sleeping without relying on the tablet.

What about over-the-counter products?

Many people turn to products sold without a prescription: sedating antihistamines, melatonin supplements, herbal teas and capsules. The European guideline does not recommend antihistamines, immediate-release melatonin or herbal medicines to treat insomnia in adults, and the American guideline specifically advised against valerian.

This does not mean these products are always dangerous, but that there is insufficient evidence that they treat insomnia, and they may have side effects and interactions. Sedating antihistamines, for example, can cause next-day drowsiness and confusion in older people. Before taking any product, especially if you already take other medicines, speak to your doctor or pharmacist.

The alternative with longer-lasting effects

Cognitive behavioural therapy for insomnia is the first-line treatment recommended by the European guideline for adults of any age, including people with other conditions, and can be delivered in person or digitally. It addresses the habits and thoughts that perpetuate insomnia, and its effects tend to last after treatment ends.

This does not make medication useless. For many people, the best approach combines both treatments for a period, with the aim of gradually reducing medication as sleep improves. The important thing is for the decision to be shared, informed and reviewed over time. If insomnia occurs alongside profound sadness, hopelessness or thoughts of death, seeking immediate help is the priority.

At Clínica Alegre in Setúbal and Seixal, the appointment begins by listening to and understanding each person's sleep and medication history, so that the most appropriate support can be decided together.

Frequently asked questions

Can I take a sleeping pill only when I need one?

In some cases, the doctor may suggest intermittent use. This should always be a medical decision, with clear rules.

I have taken them for years and sleep well. Do I have to stop?

It is worth reviewing with your doctor whether the benefits still outweigh the risks. If you decide to reduce them, this should be done gradually.

If I stop and cannot sleep for the first few nights, does that mean I need the medicine?

Not necessarily. Rebound insomnia is common and temporary, which is why the dose should be reduced gradually with support.

Can I drink alcohol if I take a sleeping pill?

No. The combination increases sedation and the risks, including risks to breathing.

Is melatonin a safe alternative?

The European guideline does not recommend immediate-release melatonin for treating chronic insomnia in adults. Speak to your doctor before taking it.

Can my GP help me reduce the medication?

Yes. Dose reduction can be planned with your GP or psychiatrist, depending on the circumstances, and benefits from the support of insomnia therapy.

Can I drive the following morning?

Some medicines have residual effects. Ask your doctor and do not drive if you feel drowsy or slow.

Did you enjoy this article?

Scientific references2
  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. Journal of Sleep Research. 2023;32(6):e14035.
  2. 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. Journal of Clinical Sleep Medicine. 2017;13(2):307-349.
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.