Health

Sleeping Tablets: Types, Risks, How Long They Take to Work and What You Can Buy in the UK

Sleeping tablets are medicines that help people fall asleep or stay asleep, and in the UK they are searched for around 18,000 times a month. The same searches show that most people do not want a single tablet name. They want to know which sleeping tablets exist, whether they can buy them over the counter, how long a sleep tablet takes to work, whether they are bad for you, and whether something gentler, such as magnesium, does the job instead.

This guide answers all of those questions in one place. It covers the prescription sleeping tablets used in the UK, the non-prescription sleeping tablets you can buy from a pharmacy, how quickly they work, their risks, and the treatments doctors recommend first. It is general information only, not medical advice, and it does not replace a conversation with your GP or pharmacist.

What Are Sleeping Tablets?

A sleeping tablet, also called a sleeping pill or sleep aid tablet, is a medicine that promotes sleep. Doctors call this group of medicines hypnotics or sedatives. They work by calming activity in the brain, which makes it easier to fall asleep and, with some tablets, to stay asleep through the night.

The important thing to understand is that sleeping tablets treat the symptom, not the cause. They can help for a few difficult nights, or for a short course while another treatment takes effect, but they do not cure insomnia. That is why, in the UK, they are prescribed rarely and for short periods, and why the first treatment doctors recommend for long-term insomnia is not a tablet at all.

People use several overlapping names for the same thing. “Sleeping tablets”, “sleeping pills”, “sleep tablet” and “sleep aid tablets” all describe the same group of medicines in everyday searches, and this guide uses them interchangeably.

Sleeping Tablets at a Glance

TypeExamplesHow you get it in the UKTypical length of use
Z-drugsZopiclone, zolpidem, zaleplonPrescription onlyA few days to 4 weeks at most (zaleplon 2 weeks)
BenzodiazepinesTemazepam, nitrazepam, loprazolamPrescription only2 to 4 weeks at most
MelatoninCircadin (2mg prolonged-release)Prescription only, usually adults 55 and overShort-term, up to around 13 weeks
DaridorexantQuviviqPrescription, only under NICE criteriaLonger-term option after CBT-I
Antihistamine sleep aidsDiphenhydramine (Nytol), promethazine (Sominex)Pharmacy, no prescription1 to 2 weeks
Herbal sleep aidsValerianPharmacy and health shopsShort-term; evidence limited

Prescription Sleeping Tablets in the UK

Prescription sleeping tablets in the UK fall into a few groups, and the one most people are prescribed is the Z-drugs. Zopiclone is the most commonly prescribed sleeping tablet in the UK, with zolpidem and zaleplon used less often. They act on the brain’s GABA system, the same calming system targeted by older sedatives, but they are shorter-acting. Zaleplon is licensed for people who have difficulty falling asleep, while zopiclone and zolpidem are also used for staying asleep.

Benzodiazepines are the older group, including temazepam, nitrazepam and loprazolam. They work in a similar way to Z-drugs but are prescribed less often for sleep now, because their risks of dependence and next-day effects are well established.

Melatonin surprises many people in the UK. In the United States it is sold freely as a supplement, but in the UK melatonin is a prescription-only medicine. The licensed product, Circadin, is a 2mg prolonged-release tablet usually prescribed for short-term insomnia in adults aged 55 and over. A separate product, Slenyto, is licensed for children with autism or attention deficit hyperactivity disorder. You cannot legally buy melatonin over the counter in the UK, including as gummies or sprays.

A newer prescription option is daridorexant. NICE has approved it for long-term insomnia, but only for people who have had insomnia on three or more nights a week for at least three months, whose daily life is affected, and for whom cognitive behavioural therapy for insomnia has not worked or is not suitable or available. Its side effects include dizziness, extreme tiredness, headaches and daytime drowsiness.

The NHS position is clear: GPs rarely prescribe sleeping pills, and only for a few days or weeks at most, when insomnia is very bad and other treatments have not worked. The smallest effective dose is used for the shortest time necessary.

Can You Buy Sleeping Tablets Over the Counter in the UK?

Yes, but only certain types. The sleeping tablets you can buy over the counter in the UK are the OTC sleep drugs sold in pharmacies without a prescription, and they are not the same medicines a GP prescribes.

The main over-the-counter options are sedating antihistamines. Diphenhydramine is sold as Nytol and Boots Sleepeaze, and promethazine is sold as Phenergan and Sominex. They cause drowsiness as a side effect of the medicine, and they may help for one to two weeks. Herbal products based on valerian are also sold in pharmacies and health shops, though the evidence for them is limited.

What you cannot buy over the counter in the UK is just as important. Prescription sleeping tablets such as zopiclone, zolpidem and temazepam are prescription-only, and so is melatonin. Any website offering to sell you prescription sleeping tablets without a prescription is not a safe or legal source, and the medicines regulator, the MHRA, advises buying medicines only from a registered pharmacy.

Non-Prescription Sleeping Tablets: What Works Best?

The honest answer to the best non-prescription sleeping medication is that there is no single best one. The choice depends on the person, and the evidence for each option is modest.

Among the non-prescription sleeping tablets, the sedating antihistamines are the most widely used. They can help you fall asleep for a few nights, but they are meant for short-term use. Tolerance can build, so they may stop working if taken every night, and they can leave you groggy the next morning. They are not suitable for everyone, so a pharmacist should be asked first, especially if you take other medicines, are pregnant, or drive for work.

Valerian and other herbal sleep aids are gentler and widely sold, but the research behind them is thin, and they do not suit everyone either. Magnesium is covered in its own section below, because it is a supplement rather than a sleeping tablet, and its evidence is different again.

No over-the-counter sleep aid is a long-term answer to insomnia. If poor sleep has lasted for weeks, the right next step is a GP appointment, not a stronger tablet from a shelf.

How Long Does a Sleeping Tablet Take to Work?

How long a sleeping tablet takes to work depends on which tablet it is, and the answer people search for most often is about zopiclone. The NHS says zopiclone takes around 30 to 60 minutes to start working. It is taken once a day, just before bed, and you should have seven to eight hours available for sleep. The NHS also says not to drive, ride a bike or use tools or machinery for 12 hours after taking zopiclone, and longer if you still feel sleepy.

Zolpidem works on a similar timescale, around half an hour, but it is shorter-acting than zopiclone, which is why it is more often used for difficulty falling asleep than for staying asleep. Pharmacy antihistamines are taken shortly before bed, and the exact timing is on the packet leaflet, which should always be followed rather than guessed.

One rule applies to every sleeping tablet: never take a second dose in the middle of the night, and never take a tablet earlier in the evening than the leaflet says. A tablet that starts working while you are still up and about is how falls and accidents happen.

Are Sleeping Tablets Bad for You?

Sleeping tablets are not harmless, and the question of whether they are bad for you has a measured answer: they can help for a short time, but they carry real risks that grow the longer they are taken.

The most common problems are next-day drowsiness and a hungover feeling, a metallic taste with zopiclone, and a dry mouth. The more serious risks are dependence and tolerance. If a Z-drug or benzodiazepine is taken for longer than a few weeks, the body gets used to it, the dose stops working as well, and stopping suddenly can cause withdrawal symptoms and rebound insomnia, where sleep becomes worse than before. Since a review published in January 2026, the labelling on benzodiazepines and Z-drugs warns that they may cause addiction, dependence and withdrawal reactions.

Rarer but serious effects include sleepwalking or doing things while not fully awake, such as eating, phoning or driving, and memory loss, particularly if sleep is interrupted. Older adults are more likely to have falls and unusual reactions. Alcohol makes everything worse: the NHS says alcohol can increase the effects of zopiclone, cause breathing problems and make it very hard to wake up.

Some people should be extra careful or avoid sleeping tablets altogether, including people who are pregnant, people with sleep apnoea, people with a history of addiction, and people whose work involves driving or operating machinery. Never share sleeping tablets with someone else, and never mix them with alcohol.

Do Magnesium Tablets Help You Sleep?

Magnesium tablets are one of the most searched-for sleep aids, and the evidence for them is weaker than the marketing suggests. Research suggests magnesium may help improve sleep for some people, particularly those with low magnesium levels, though more research is needed to fully understand its effects.

The most complete look at the question so far is a systematic review published in 2026, which pooled 12 randomised controlled trials of oral magnesium for sleep in adults. Its conclusion was that current evidence does not support oral magnesium as a routine treatment for insomnia. It may provide modest benefits for some adults, but the findings were inconsistent and the certainty of the evidence was low or very low.

The most promising results come from small trials in older adults. A 2021 review of three trials with 151 older adults found that people taking magnesium fell asleep about 17 minutes faster than people on placebo, and slept about 16 minutes longer, though that second figure was not statistically significant. Magnesium glycinate is the form most commonly recommended for sleep, and experts suggest taking no more than 350 milligrams a day from supplements, because larger amounts can cause diarrhoea and stomach upset. Magnesium is also found in foods such as nuts, leafy greens, whole grains, dairy and soy.

So do magnesium tablets help you sleep? Possibly a little, especially if you are not getting enough magnesium, but they are not a replacement for sleep treatment, and they are not a sleeping tablet. Anyone taking other medicines, or with a kidney condition, should ask a GP or pharmacist first.

What Is the Best Drug for Sleep?

There is no single best drug for sleep, and any article that names one without knowing the person is guessing. The best choice depends on what is causing the insomnia, how long it has lasted, the person’s age, other health conditions and other medicines.

For long-term insomnia, the treatment with the strongest evidence is not a drug at all. NICE recommends cognitive behavioural therapy for insomnia, known as CBT-I, as the first treatment for long-term insomnia in adults, ahead of sleeping pills. For short-term, severe insomnia, a GP may prescribe a short course of a Z-drug such as zopiclone. For some people with long-term insomnia that has not responded to CBT-I, daridorexant may be considered under NICE criteria.

The right question to ask a GP is not which tablet is strongest, but which approach fits the cause of the poor sleep. The strongest tablet is rarely the safest one, and the safest long-term answer is usually the one that treats the pattern behind the insomnia.

Safer Options That Work Better in the Long Term

Cognitive behavioural therapy for insomnia, or CBT-I, is a short, structured talking therapy that changes the habits and thoughts that keep you awake. It has the strongest evidence of any insomnia treatment, which is why NICE and European sleep experts recommend it first. In the UK it is available through a GP, through NHS Talking Therapies in some areas, and through the digital CBT-I course Sleepio, which NICE recommends and which is free in Scotland and in some areas of England.

Sleep hygiene also matters, and it costs nothing: a regular bedtime and wake time, a dark and cool bedroom, no screens or caffeine late in the day, daytime exercise, and a wind-down routine before bed. Treating the cause helps too, whether that is stress, pain, a snoring partner, or a condition such as sleep apnoea or restless legs.

Sleeping tablets have a place, but it is a small one: a short course for a bad patch, while the longer-term fix takes hold.

Frequently Asked Questions

Are sleeping tablets bad for you?

They can help for a few nights, but they carry real risks. The main ones are next-day drowsiness, dependence, tolerance and withdrawal if they are taken for more than a few weeks, along with memory problems and, rarely, sleepwalking. Older adults face a higher risk of falls. They are safest as a short course under a GP’s guidance, never mixed with alcohol and never shared.

Can you buy sleeping tablets over the counter?

In the UK, yes, but only certain types. Sedating antihistamines such as diphenhydramine (Nytol) and promethazine (Sominex) can be bought from a pharmacy without a prescription, for short-term use. Melatonin cannot be bought over the counter in the UK, and neither can prescription sleeping tablets such as zopiclone or zolpidem.

How long does a sleeping tablet take to work?

Zopiclone, the most commonly prescribed sleeping tablet in the UK, takes around 30 to 60 minutes to start working, according to the NHS. It is taken just before bed, with seven to eight hours set aside for sleep. Other tablets vary, so the packet leaflet should always be followed.

Do magnesium tablets help you sleep?

Possibly a little, especially if you are low in magnesium, but the evidence is weak. A 2026 review of 12 trials found inconsistent results and low-certainty evidence, and concluded that magnesium is not supported as a routine treatment for insomnia. It is not a sleeping tablet and not a substitute for sleep treatment.

How long does it take for sleeping tablets to work?

Most prescription sleeping tablets start working within about an hour. Zopiclone takes around 30 to 60 minutes, and zolpidem works on a similar timescale. Pharmacy antihistamines are taken shortly before bed, following the packet leaflet. The effect is not instant, and a second dose should never be taken in the middle of the night.

This article is general information only and is not medical advice. Sleeping tablets are medicines with real risks. Speak to your GP or pharmacist before starting, stopping or changing any sleep medicine, especially if you are pregnant, older, drive for work, or take other medicines. If insomnia has lasted for more than a few weeks, or is affecting your daily life, see your GP.

Dr. Amelia Hawthorne

Dr. Amelia Hawthorne is a medical journalism specialist who bridges the gap between clinical research and daily lifestyle. She focuses on evidence-based health reporting, strictly avoiding unverified wellness trends to deliver factual, trustworthy advice.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
×

Stay Updated!

Get our latest news and updates first on Google.

Add as a preferred source on Google