Sleep Medication in Spain: What Tourists Need to Know About Treatment

Melatonin requires a prescription in Spain — even though it is sold over the counter in most other countries. Here is how to get the sleep medication you need, in English, without a clinic visit.

Jet lag and insomnia are not the same condition, and treating one as the other can leave you sleepless for the rest of your trip. Many travellers arriving in Spain assume their inability to sleep is just their body clock adjusting — but if you were already taking sleep medication at home, or if sleeplessness has persisted beyond a few nights, the problem likely needs proper treatment. The catch that surprises almost everyone: melatonin, the most common sleep medication in Spain, requires a prescription here — even though you can buy it off the shelf in most other countries.

Why Your Brain Won't Let You Sleep

Your brain contains a built-in clock called the suprachiasmatic nucleus that responds to light and darkness. This clock regulates the release of melatonin, a hormone produced by the pineal gland when evening darkness arrives. Melatonin does not knock you out the way a sedative does. Instead, it lowers your core body temperature and quiets neural activity, signalling that it is time to transition into sleep. When this system breaks down — whether from chronic insomnia, medication dependence, travel across time zones, or the stress of an unfamiliar environment — your brain either fails to produce enough melatonin at the right time or cannot respond to it properly.[1]

The result is difficulty falling asleep, staying asleep, or both. Lying awake for hours is not just frustrating; it triggers a stress response that releases cortisol, which further suppresses melatonin production — like a thermostat that senses heat and turns the heating up instead of down. Each bad night makes the next one more likely.[2]

For travellers who were already taking sleep medication at home, the situation compounds. Your brain may have adapted to an external source of sleep regulation. Stopping that medication abruptly — because you ran out, lost your luggage, or assumed you could replace it easily — can cause rebound insomnia, where sleep becomes even harder than it was before treatment began. This is a recognized withdrawal effect, not a sign that your underlying condition has worsened.[3]

Travel to Spain adds its own complications. Long summer daylight hours — sunsets after 10 PM in many regions — delay your natural melatonin release. Noise from street life continuing past midnight, unfamiliar beds, and the general alertness of being in a new place all interfere with the environmental cues your brain depends on to initiate sleep. Spain's culture of late dinners (often at 9 or 10 PM) can also shift your body's internal schedule further than you expect.

This requires a prescription in Spain. The fastest way to get one: a licensed doctor reviews your case online and sends it electronically.

The Sleep Medications Available to You

Understanding which sleep medications are available in Spain — and which ones require a prescription — can save you hours of confusion at the pharmacy counter. The rules here differ significantly from what you may be used to at home.

Prescription required

Melatonin 2 mg Prolonged-Release (Circadin)

Oral melatonin receptor agonist

This is the detail that catches most tourists off guard. In many countries — the UK, the US, Australia — melatonin is sold over the counter as a supplement. In Spain, melatonin at doses of 2 mg and above is classified as a medication and requires a receta médica (prescription). Circadin releases melatonin slowly over several hours, mimicking the natural overnight pattern your brain produces. Clinical studies show it reduces the time to fall asleep by an average of 15–19 minutes and improves overall sleep quality, particularly in adults over 55.[1] It is not a sedative and does not cause the grogginess or dependence associated with stronger sleeping pills.

Typical dose 2 mg, taken 1–2 hours before bedtime
How fast it works Some improvement from the first night; full effect builds over 1–2 weeks
Availability in Spain Prescription only (receta médica)
Get a melatonin prescription online
Prescription required

Zolpidem (Stilnox) / Zopiclone

Non-benzodiazepine hypnotic (Z-drug)

These are the medications most commonly known as "sleeping pills." Zolpidem and zopiclone work by enhancing the effect of GABA, a brain chemical that reduces neural activity and promotes sleep. They are effective — most people fall asleep within 15–30 minutes — but they carry risks of dependence, next-day drowsiness, and unusual behaviours during sleep.[3] In Spain, these are strictly controlled. A doctor will only prescribe them as a continuation of existing treatment, and you will typically need documented proof — a letter from your home doctor or your original prescription — showing you were already taking them. They are not prescribed as a new treatment through a standard telemedicine consultation.

Typical dose Zolpidem 5–10 mg or Zopiclone 3.75–7.5 mg at bedtime
How fast it works Onset within 15–30 minutes
Availability in Spain Prescription only — strictly controlled; continuation only with documented history
Get a zolpidem continuation prescription online
No prescription needed

Doxylamine (Dormidina)

First-generation antihistamine sleep aid

Doxylamine is a first-generation antihistamine that causes drowsiness as a side effect — and that side effect is exactly why it is marketed as a short-term sleep aid in Spain. Dormidina is the most common brand. It works reasonably well for occasional sleeplessness, typically helping you fall asleep within 30–60 minutes. However, it is not suitable for regular use. It causes significant grogginess the following morning, can interfere with concentration and driving, and loses effectiveness after a few consecutive nights as your body builds tolerance.[4] Think of it as a temporary bridge for one or two particularly bad nights, not a solution for ongoing insomnia.

Typical use 25 mg, taken 30 minutes before bedtime
Effectiveness Reduces time to fall asleep; causes significant next-day drowsiness
Availability in Spain Over-the-counter at any farmacia
Getting melatonin in Spain is simple — once you have a prescription. Get yours online from a licensed doctor.

What You're Experiencing — and When It Needs Treatment

The line between "bad sleep due to travel" and "insomnia that needs treatment" is not always obvious. Jet lag typically resolves within three to five days as your body adjusts to the new time zone — you may fall asleep too early or too late, but the total amount of sleep you get remains roughly normal once your rhythm shifts. Insomnia is different. If you are lying awake for more than 30 minutes most nights, waking repeatedly and struggling to fall back asleep, or feeling exhausted during the day despite having the opportunity to sleep, that pattern points toward insomnia rather than simple travel fatigue.[2]

For people who were already on sleep medication, the signs are more acute. Rebound insomnia — the worsening of sleep that occurs when medication is suddenly stopped — can begin within one to two nights of missing your usual dose. You may experience vivid or disturbing dreams, heightened anxiety at bedtime, and a racing mind that refuses to quiet down. These are withdrawal symptoms, not a sign that your insomnia has suddenly become more severe on its own.[3]

If you were taking sleep medication at home and have run out during your trip, do not wait for the problem to resolve on its own. Rebound insomnia can persist for days to weeks without the right intervention.

The physical effects of poor sleep accumulate quickly. After two or three nights of significantly disrupted sleep, most people notice impaired concentration, irritability, difficulty making decisions, and physical clumsiness — none of which you want while navigating a foreign country, driving a rental car, or crossing busy streets. Sleep deprivation also suppresses immune function, making you more vulnerable to the infections and illnesses that already circulate more freely among travellers.[5]

What You Can Buy at a Spanish Pharmacy

Spanish pharmacies (farmacias) can help with some sleep-related products, but the options are more limited than you might expect. The main over-the-counter sleep aid is doxylamine, sold as Dormidina. You can also find low-dose melatonin supplements (under 2 mg, often marketed as 1 mg or 1.9 mg) without a prescription in some farmacias, though availability varies and these products are classified as food supplements rather than medicines — meaning they are not subject to the same quality controls as Circadin. Valerian root (valeriana) and other herbal preparations are also available over the counter, though clinical evidence for herbal sleep aids remains limited.[6] What the pharmacy cannot sell you without a receta médica is melatonin at therapeutic doses (2 mg or above), zolpidem, zopiclone, or any benzodiazepine. If you need any of these, you will need to see a doctor first. Expect to pay between €5 and €8 for Dormidina and between €5 and €15 for melatonin supplements or herbal products.

Questions Tourists Ask About Sleep Medication in Spain

These are the questions we hear most often from travellers trying to manage sleep problems during their time in Spain.

Common Question
"Can I buy melatonin without a prescription in Spain?"

Only at very low doses. Melatonin products under 2 mg are sometimes sold as food supplements in Spanish pharmacies, but availability is inconsistent and quality is not regulated the same way as pharmaceutical-grade products. The clinically effective dose — 2 mg prolonged-release, sold as Circadin — is classified as a prescription medication in Spain.[1] This surprises many tourists from countries where melatonin is freely available over the counter. To get Circadin, you need a valid Spanish prescription from a licensed doctor.

Common Question
"Will a Spanish pharmacy accept my foreign prescription for sleeping pills?"

No. Spanish farmacias are legally required to dispense medications only against prescriptions issued by doctors licensed in Spain or valid EU prescriptions from other EU member states. A prescription from the UK (post-Brexit), the US, Australia, or any other non-EU country is not valid in Spain. You will need a new prescription from a Spanish-licensed doctor. For controlled substances like zolpidem, you will also need documentation showing you were already prescribed this medication at home.

Common Question
"Is doxylamine (Dormidina) safe to use every night?"

Doxylamine is approved for short-term use only — typically no more than seven consecutive nights. Regular use leads to tolerance (it stops working as well), significant next-day drowsiness that can impair driving, and a pattern of dependence where you feel unable to sleep without it.[4] It is a reasonable option for one or two difficult nights, but if your sleep problems persist beyond that, you need a proper assessment and a more appropriate treatment plan from a doctor.

When You Need to See a Doctor in Person

Most cases of travel-related insomnia or missed sleep medication can be managed through a telemedicine consultation and a replacement prescription. But there are situations where an in-person medical visit — or even a trip to urgencias (the emergency department) — is the safer choice.

Seek emergency care (urgencias) if you experience:
  • You have not slept at all for more than 48 hours and are experiencing confusion, disorientation, or hallucinations
  • You are having thoughts of self-harm related to sleep deprivation or despair
  • You stopped a benzodiazepine or Z-drug (zolpidem, zopiclone) abruptly and are experiencing tremors, seizures, or severe anxiety — this is a medical emergency
  • You are experiencing chest pain, rapid heartbeat, or breathing difficulty alongside sleeplessness

If you take sleep medication for a co-existing condition — such as an antidepressant that also helps with sleep, or a medication for anxiety — running out of that medication can have effects beyond just insomnia. Abruptly stopping SSRIs, SNRIs, or benzodiazepines can cause withdrawal symptoms that require medical attention. Be transparent about all medications you have stopped when consulting a doctor, whether online or in person. A doctor needs the full picture to prescribe safely.

A consultation takes 5 minutes. A prescription reaches your phone in as little as 15. No Spanish required.

How to Get Your Sleep Medication While in Spain

Sleep deprivation is cumulative. Each night of poor sleep makes the next one harder, both because of the physiological stress response and because anxiety about not sleeping becomes a self-fulfilling cycle. For travellers who rely on prescribed sleep medication, every day without it is a day where the problem deepens. Getting a replacement prescription quickly is not a convenience — it is a clinical priority.[2]

The challenge for tourists in Spain is navigating an unfamiliar healthcare system under the fog of sleep deprivation. Public health centres (centros de salud) may not accept tourists without a tarjeta sanitaria (health card). Private clinics are available but can charge €80–150 for a consultation and may not have same-day appointments. The language barrier adds another obstacle when you are already exhausted and struggling to think clearly.

That is exactly the problem PrescribeMe was built to solve. You describe your symptoms and medication history through a short online form, a licensed Spanish physician reviews your case, and — if appropriate — issues a receta electrónica privada (a valid private electronic prescription). The prescription is sent directly to your phone and is accepted at any farmacia in Spain. For melatonin (Circadin), the process can take as little as 15 minutes, in English, without leaving your hotel room. For controlled medications like zolpidem, you will need to provide documentation of your existing prescription, and the doctor will assess whether a short continuation supply is clinically appropriate.

Struggling to sleep in Spain? Whether you need a new melatonin prescription or a refill of your existing sleep medication, a licensed Spanish doctor can help.

Request a Prescription

Licensed physicians registered in Spain · English consultation · Prescription sent to your phone

Melatonin (Circadin) typically costs €5–15 at any Spanish pharmacy. Doxylamine (Dormidina) costs €5–8 without a prescription.

References

  1. Lemoine P, Nir T, Laudon M, Zisapel N. Prolonged-release melatonin improves sleep quality and morning alertness in insomnia patients aged 55 years and older and has no withdrawal effects. Journal of Sleep Research. 2007;16(4):372–380. doi:10.1111/j.1365-2869.2007.00613.x
  2. Riemann D, Baglioni C, Bassetti C, et al. European guideline for the diagnosis and treatment of insomnia. Journal of Sleep Research. 2017;26(6):675–700. doi:10.1111/jsr.12594
  3. National Institute for Health and Care Excellence (NICE). Hypnotics: Key therapeutic topic. NICE Medicines and Prescribing Centre. Updated 2024. nice.org.uk/advice/ktt6
  4. Culpepper L, Wingertzahn MA. Over-the-counter agents for the treatment of occasional disturbed sleep or transient insomnia: a systematic review of efficacy and safety. The Primary Care Companion for CNS Disorders. 2015;17(6). doi:10.4088/PCC.15r01798
  5. Irwin MR. Why sleep is important for health: a psychoneuroimmunology perspective. Annual Review of Psychology. 2015;66:143–172. doi:10.1146/annurev-psych-010213-115205
  6. Bent S, Padula A, Moore D, Patterson M, Mehling W. Valerian for sleep: a systematic review and meta-analysis. The American Journal of Medicine. 2006;119(12):1005–1012. doi:10.1016/j.amjmed.2006.02.026
This article is for informational purposes and does not replace individual medical advice. If you are unsure about the severity of your symptoms, consult a healthcare professional. Content reviewed by the PrescribeMe medical team — licensed physicians registered in Spain — April 2026.
Need a prescription? Licensed doctors · In English
Get Treated