Skip to main content

Insomnia

Medical Professionals

Professional Reference articles are designed for health professionals to use. They are written by UK doctors and based on research evidence, UK and European Guidelines. You may find the Insomnia article more useful, or one of our other health articles.

Continue reading below

What is insomnia?

Normal sleep requirements vary widely, and there is no standard definition of what is normal. The amount of sleep required tends to decrease with age. Insomnia is a condition of unsatisfactory sleep, either in terms of sleep onset, sleep maintenance or early waking.

Because it is a disorder that subsequently impairs daytime well-being and subjective abilities and functioning, it has been termed a '24-hour disorder'. It is a subjective condition. Insomnia may be associated with fatigue, mood disturbances, problems with interpersonal relationships, occupational difficulties and a reduced quality of life. It has a negative impact on both physical and mental health.

How common is insomnia? (Epidemiology)

  • Estimates of prevalence of insomnia vary according to the definition used.

  • In one recent study, 29% of UK Biobank participants self-reported insomnia symptoms, but only 10% of those individuals had a Read code for insomnia in their GP records.1

  • The prevalence of insomnia is around 1.5 times higher in women than in men.2

  • Insomnia is a long-term disorder and many people have had insomnia for more than two years.

  • Approximately half of all people with diagnosed insomnia also have a comorbid psychiatric disorder.3

  • The incidence increases in men and women as they get older. A UK GP cohort study of approximately 100,000 patients carried out between 2014 and 2015 found that the mean percentage of registered patients prescribed benzodiazepines or Z drugs for more than a year in the survey sample was 0.69%.4

  • Benzodiazepine prescribing rates are particularly high amongst older people.567

Continue reading below

Causes of insomnia (aetiology)

Insomnia may be classified as:

  • Short-term - under four weeks in duration.

  • Long-term or persistent - lasting over four weeks.

It may also be classified as:

  • Primary - no identifiable underlying cause. A diagnosis of exclusion. Accounts for 15-20% of long-term insomnia.

  • Secondary - when it is a symptom of, or associated with, other conditions.

Secondary insomnia may be caused by:

Other sleep disorders

  • Sleep apnoea.

  • Circadian rhythm disorders: sleep disorders caused by a mismatch between circadian rhythms and required sleep-wake cycle. These may sometimes be due to a lifestyle which conflicts with one's internal clock. Shift work and jet lag are common causes.8

  • Parasomnias - unusual episodes, behaviours or disorders occurring during sleep which disturb the patient or others - eg, nightmares, night terrors, sleepwalking, sleep talking, limb movement disorders, restless legs syndrome.

  • Narcolepsy.

Stress

  • Situational stress:

    • Relationships - insomnia is associated with declining social support in the elderly.9

    • Financial problems.

    • Academic stress.

    • Job-related stress.

    • Medical worries.

  • Noise stress.

Psychiatric comorbidity

Medication and substance abuse

  • Alcohol.

  • Caffeine.

  • Recreational drugs.

  • Nicotine.

  • Drug withdrawal - eg, hypnotics, alcohol (reduces the time to onset of sleep, but disrupts it later in the night).

  • Chronic benzodiazepine misuse.

  • Some antidepressants, especially selective serotonin reuptake inhibitors (SSRIs) and monoamine-oxidase inhibitors (MAOIs).

  • Sympathomimetics - salbutamol, salmeterol, theophylline, pseudoephedrine.

  • Corticosteroids (agitation).

  • Anti-hypertensives, beta-blockers, calcium-channel blockers.

  • Non-steroidal anti-inflammatory drugs (NSAIDs).

Medical comorbidity

Physiological factors

  • Poor sleep hygiene - eg, caffeine, daytime naps, stimulation prior to bedtime.

  • Poor sleeping environment - eg, noise, light.

Assessment

  • Careful history to establish a possible underlying cause.

  • Physical and psychological examination may be useful to identify a possible underlying cause. Further investigations may also be indicated - eg, blood tests for hyperthyroidism and low ferritin levels, which may be associated with restless legs syndrome.

  • Sleep diaries: these provide a record of the sleep pattern and should be kept for at least two weeks. Patients should record time of going to bed and getting up, time it takes for them to get to sleep, number of times they wake in the night, daytime tiredness and naps, mealtimes, alcohol and caffeine intake, and a rating of sleep quality. Sleep diaries can often identify sleep trends or predominant sleep patterns. Sleep diaries can be used as a starting point for managing insomnia and for monitoring progress.

  • Polysomnography (overnight sleep study): this measures brain and muscle activity and assesses oxygen saturation overnight. It can be used to confirm sleep apnoea and limb movement disorders or restless legs syndrome.

Continue reading below

Management of insomnia

Treatment is appropriate when insomnia causes significant personal distress or marked impairment. Those affected commonly consult doctors, often with the expectation of a 'sleeping tablet'.

Attitudes towards pharmacological treatment of insomnia in guidelines and consensus documents have changed over the years,10 and now recommend that CBT-I is the first-line, and most effective, treatment for chronic insomnia.1011

The Committee on Safety of Medicines (now part of the Commission on Human Medicines), the Medicines and Healthcare products Regulatory Agency (MHRA), and the Royal College of Psychiatrists have long advised that hypnotic drugs should be limited to the lowest effective dose for the shortest time possible, with a maximum two-week treatment period, and avoided where possible in the elderly.11

Manage the underlying cause where one has been identified. If any uncertainty exists about the diagnosis or if any safety concerns have been identified (eg, excessive daytime sleepiness or parasomnias causing injuries), patient referral for an assessment by a sleep specialist is indicated.

Sleep hygiene advice

Poor sleep hygiene habits are associated with insomnia. However, provision of sleep hygiene education as a sole intervention has a relatively weak evidence base as a treatment for chronic insomnia.1213 Recent guidelines from the American Academy of Sleep Medicine state that the evidence does not support the use of sleep hygiene advice as a stand-alone therapy for chronic insomnia, instead favouring CBT-I (in which sleep hygiene education is one of multiple interventions).14 However, advice about sleep hygiene remains in most guidelines, and it may potentially be useful in acute insomnia, or where CBT-I is not available or not desired.15

Sleep hygiene principles include:

  • Limit caffeine to one cup of coffee in the morning, avoid alcohol and cigarettes at night, and reduce or avoid any other substances that can affect sleep.

  • Avoid napping during the day.

  • Regular daily exercise can help improve sleep, but exercise late in the evening should be avoided.

  • Advise to do only quiet, relaxing activities before bedtime. Heavy meals just before bedtime should be avoided but a light snack may be helpful.

  • Ensure that the bedtime environment is comfortable and conducive to sleep.

  • Using computers: looking at a computer screen in the hours before bed may delay sleep onset.

  • Looking at a clock during awakenings can increase frustration at being awake and so further delay sleep.

  • Advise restricting their total time in bed to their estimated total sleep time.

  • Use the bed/bedroom only for sleep and sexual activity.

  • Get up from bed at the same time each day. Avoid a 'lie-in' after a restless night's sleep.

Cognitive behavioural therapy for insomnia (CBT-I)

  • CBT-based treatment for chronic insomnia, including sleep restriction and stimulus control, is effective and should be offered to patients as a first-line treatment, either individually or in small groups.10 Patients should be referred to psychological services via Improving Access to Psychological Therapies (IAPT).

  • CBT-I involves a multimodal 'package' of interventions, usually including sleep hygiene, relaxation therapy, sleep restriction therapy, stimulus control therapy, and cognitive therapeutics.10

  • There is also good evidence for the effectiveness of digitally delivered CBT-I.16

  • CBT-I is thought to directly tackle the cognitive and behavioural factors that maintain insomnia, unlike hypnotic drugs.11

  • CBT-I has few side-effects, and benefits persist at medium-to-long-term follow-up.11

  • The main limitation of CBT-I, however, is its availability, with potentially long waiting lists for face-to-face therapy.11

  • Digital CBT-I interventions may be easier and quicker to access than face-to-face therapy.

    • The National Institute for Health and Care Excellence (NICE) recommended the use of Sleepio, a digital CBT-I service, in 2022.17

    • Sleepio is available on the NHS in some areas, depending on local commissioning arrangements; alternative digital CBT-I services may also be commissioned and available locally.

Pharmacological treatments

Pharmacological treatments for insomnia can produce short-term improvements in symptoms, but have unclear long-term efficacy. Some, particularly benzodiazepines and Z drugs, have significant long-term risks including tolerance, dependence, over-sedation, hangover effects, nighttime confusion and falls.

Hypnotic drugs are also symptomatic treatments, rather than disease-modifying ones, and insomnia symptoms typically recur in chronic insomnia upon cessation.10

They should therefore be used cautiously, and ideally as a second-line treatment if non-pharmacological approaches have not worked, or are unsuitable.

Benzodiazepines and 'Z drugs'

  • Currently marketed hypnotic drugs are effective in promoting sleep in the short term but there is little good evidence for their long-term efficacy and there are serious concerns regarding the risk of dependence when these drugs are used in this way.

  • Z drugs (zopiclone, zaleplon, zolpidem) and short-acting benzodiazepines (nitrazepam, loprazolam, lormetazepam, temazepam) are effective for insomnia.

  • Problems relating to safety (adverse events and carry-over effects) are fewer and less serious using drugs with short half-lives. Nitrazepam is longer-acting compared to loprazolam, lormetazepam and temazepam and so is more likely to give rise to 'hangover' effects the next day, and repeated doses may become cumulative. However, they are less likely to cause withdrawal phenomena than the short-acting benzodiazepines. Diazepam (long-acting) is sometimes used as a single nocturnal dose to treat daytime anxiety associated with insomnia.

  • NICE recommends that there is little compelling evidence to distinguish between the Z drugs and shorter-acting benzodiazepines clinically, so that the cheapest drug should be used. Only if side-effects specific to that drug develop does NICE suggest switching to a different hypnotic. There is no evidence of benefit of switching between Z-class drugs.

Melatonin
Melatonin is a pineal gland hormone that helps to regulate the sleep-wake cycle.

Melatonin is freely available without prescription in the USA and some other countries,18 but is a prescription-only medication in the UK. Some people in the UK may, however, obtain melatonin by purchasing it other countries, including via the internet.

There are several different licensed forms of melatonin in the UK, of which the most commonly-prescribed is prolonged-release melatonin (Circadin®). This is licensed as monotherapy for the short-term treatment of primary insomnia characterised by poor quality of sleep in people aged 55 years or over, for a maximum duration of 13 weeks of treatment.19

Instant-release melatonin may be helpful for circadian rhythm disorders, such as jet lag,11 but there is a lack of evidence supporting its efficacy in chronic insomnia of other causes.10

Prolonged-release melatonin can produce modest improvements in sleep in older adults. If hypnotics are indicated in patients over 55 years, melatonin should usually be tried first, especially over Z drugs and benzodiazepines.10

The available data on long-term use of melatonin are generally reassuring, but this area has been insufficiently studied, and further research is required.20

Melatonin is also increasingly used by specialists in children with disturbed sleep where non-pharmacological measures have failed, particularly with autistic children and children with ADHD.11 Existing data have not shown significant harms arising from melatonin use, but long-term safety data are scarce.21

Daridorexant

Daridorexant is a dual orexin receptor antagonist. It was approved by NICE as an option for the treatment of long-term insomnia in 2023.22

In two controlled phase-III studies, daridorexant produced small to moderate improvements in sleep parameters, with mild adverse effects only. It was initially studied up to 3 months' of use, but an extension study up to 1 year demonstrated a maintained efficacy over that period, with no hangover effects, no withdrawal-related symptoms, or rebound insomnia after treatment discontinuation.10

NICE has advised that it can be considered in adults with insomnia symptoms on 3 or more nights a week, lasting for at least 3 months, and whose daytime function is severely impaired, if:22

  • CBT-I has been tried but not worked, or;

  • CBT-I is not available.

NICE recommends that treatment duration should be as short as possible. Treatment should be re-assessed within 3 months after starting and stopped in people whose insomnia has not responded adequately. If treatment is continued, it should be assessed regularly as to whether it is still working.

Antidepressants
There is limited evidence for efficacy of antidepressants in insomnia. Antidepressants may affect a wide range of brain receptors and have longer-lasting carry-over effects than traditional hypnotic drugs - antidepressants are associated with increased risks of road accidents especially early in treatment in depression. Sedating antidepressants, such as amitriptyline, mirtazapine, and trazodone are not licensed for insomnia, but are commonly used off-label, and particularly if insomnia is comorbid with another mental health condition.10

There is very limited evidence to support their use in insomnia.10 They may be suitable in some patients, but only after a careful consideration and discussion of the risks and benefits, including the potential side-effects.

Antipsychotics
In the past, sedative antipsychotics were used for insomnia, but concerns over their cardiac safety prevents their use. Atypical antipsychotics, particularly olanzapine and quetiapine, are occasionally used to improve sleep but data on efficacy are inconclusive. Side-effects are common. The current body of evidence does not support the use of antipsychotics to treat insomnia.10

Sedating antihistamines
These have a limited role in psychiatric and primary care practice for the management of insomnia. Hydroxyzine and promethazine can be the most sedative but long half-lives may result in a hangover effect. Diphenhydramine is widely purchased over the counter but good evidence of efficacy is lacking, and rebound insomnia can occur after prolonged use.

Overall, evidence does not support the use of sedating antihistamines for insomnia treatment.10

Herbal remedies
Valerian and other herbal remedies have very little evidence of efficacy and are not recommended.10

Cautions

  • Hypnotic drugs: are associated with tolerance, dependence, and withdrawal syndrome, and with rebound insomnia on cessation. However, studies suggest that dependence (tolerance/withdrawal) is not inevitable with hypnotic therapy up to one year with some drugs, including zolpidem.11 Brief interventions in primary care, such as a single letter or consultation, have been shown to have impact on reducing long-term use of hypnotics. See the separate Benzodiazepine dependence article.

  • Older people: are most at risk of developing ataxia, becoming confused and/or falling due to hypnotic treatment, as they eliminate the drugs more slowly, are more susceptible to CNS depression and are more likely to be using potentially interacting drugs. The use of long-acting benzodiazepines and some Z drugs seems to be associated with an increased risk of falls and hip fractures in older adults.23 Past benzodiazepine use is associated with an increased risk of Alzheimer's disease, although the existing evidence is insufficient to demonstrate a causal relationship.24

  • Potential for abuse: all hypnotics have the potential for abuse. Temazepam is the most commonly abused of these drugs, but other benzodiazepines and, more recently, zopiclone, have all been implicated in illicit drug use.

  • Driving: hypnotics impair judgement and increase reaction times, so affecting the ability to drive or operate machinery, and increasing risk of road traffic accidents. Patients must be aware of this and the fact that hangover effects of a night dose may still manifest themselves the following day. The Driver and Vehicle Licensing Agency (DVLA) advises that any patient suffering from excessive awake-time sleepiness, regardless of cause (including due to the insomnia itself), should cease to drive until there is satisfactory control of symptoms. People who take British National Formulary-recommended doses of prescribed benzodiazepines and have no impairment do not need to inform the DVLA, but persistent non-prescribed misuse or dependency on benzodiazepines will lead to licence refusal or revocation for a minimum of one year.

Complications of insomnia

  • Quality of life is impaired in insomnia.

  • There is an increased risk of subsequent first episode or relapse of depression and anxiety disorder in those with a pre-existing persistent insomnia.

  • Primary insomnia is associated with poor objective sleep and impaired objectively measured daytime performance.

  • There is an increased risk of hypertension in insomnia with objectively measured short sleep duration.

  • Absenteeism, accidents at work and road accidents are increased in insomnia.

  • Insomnia is associated with physiological hyperarousal, and as a result persistent objective short duration of sleep may be associated with an increased risk of cardiometabolic and neurocognitive morbidity and mortality.

Further reading and references

  • British Sleep Society
  • Qaseem A, Kansagara D, Forciea MA, et al; Management of Chronic Insomnia Disorder in Adults: A Clinical Practice Guideline From the American College of Physicians. Ann Intern Med. 2016 Jul 19;165(2):125-33. doi: 10.7326/M15-2175. Epub 2016 May 3.
  • Key therapeutic topic [KTT6]; NICE Advice, January 2015 (Last updated September 2019)
  1. de Lange MA, Richmond RC, Eastwood SV, et al; Insomnia symptom prevalence in England: a comparison of cross-sectional self-reported data and primary care records in the UK Biobank. BMJ Open. 2024 May 7;14(5):e080479. doi: 10.1136/bmjopen-2023-080479.
  2. Zeng LN, Zong QQ, Yang Y, et al; Gender Difference in the Prevalence of Insomnia: A Meta-Analysis of Observational Studies. Front Psychiatry. 2020 Nov 20;11:577429. doi: 10.3389/fpsyt.2020.577429. eCollection 2020.
  3. Ford DE, Kamerow DB; Epidemiologic study of sleep disturbances and psychiatric disorders. An opportunity for prevention? JAMA. 1989 Sep 15;262(11):1479-84. doi: 10.1001/jama.262.11.1479.
  4. Davies J, Rae TC, Montagu L; Long-term benzodiazepine and Z-drugs use in England: a survey of general practice [corrected]. Br J Gen Pract. 2017 Sep;67(662):e609-e613. doi: 10.3399/bjgp17X691865. Epub 2017 Jul 17.
  5. Johnson CF, Frei C, Downes N, et al; Benzodiazepine and z-hypnotic prescribing for older people in primary care: a cross-sectional population-based study. Br J Gen Pract. 2016 Jun;66(647):e410-5. doi: 10.3399/bjgp16X685213. Epub 2016 Apr 25.
  6. Davies SJC, Jacob B, Rudoler D, et al; Benzodiazepine prescription in Ontario residents aged 65 and over: a population-based study from 1998 to 2013. Ther Adv Psychopharmacol. 2018 Mar;8(3):99-114. doi: 10.1177/2045125317743651. Epub 2017 Dec 5.
  7. Hollingworth SA, Siskind DJ; Anxiolytic, hypnotic and sedative medication use in Australia. Pharmacoepidemiol Drug Saf. 2010 Mar;19(3):280-8. doi: 10.1002/pds.1899.
  8. Sack RL, Auckley D, Auger RR, et al; Circadian rhythm sleep disorders: part I, basic principles, shift work and jet lag disorders. An American Academy of Sleep Medicine review. Sleep. 2007 Nov;30(11):1460-83. doi: 10.1093/sleep/30.11.1460.
  9. Stafford M, Bendayan R, Tymoszuk U, et al; Social support from the closest person and sleep quality in later life: Evidence from a British birth cohort study. J Psychosom Res. 2017 Jul;98:1-9. doi: 10.1016/j.jpsychores.2017.04.014. Epub 2017 Apr 24.
  10. Riemann D, Espie CA, Altena E, et al; The European Insomnia Guideline: An update on the diagnosis and treatment of insomnia 2023. J Sleep Res. 2023 Dec;32(6):e14035. doi: 10.1111/jsr.14035.
  11. Wilson S, Anderson K, Baldwin D, et al; British Association for Psychopharmacology consensus statement on evidence-based treatment of insomnia, parasomnias and circadian rhythm disorders: An update. J Psychopharmacol. 2019 Aug;33(8):923-947. doi: 10.1177/0269881119855343. Epub 2019 Jul 4.
  12. Irish LA, Kline CE, Gunn HE, et al; The role of sleep hygiene in promoting public health: A review of empirical evidence. Sleep Med Rev. 2015 Aug;22:23-36. doi: 10.1016/j.smrv.2014.10.001. Epub 2014 Oct 16.
  13. Chung KF, Lee CT, Yeung WF, et al; Sleep hygiene education as a treatment of insomnia: a systematic review and meta-analysis. Fam Pract. 2018 Jul 23;35(4):365-375. doi: 10.1093/fampra/cmx122.
  14. Edinger JD, Arnedt JT, Bertisch SM, et al; Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine systematic review, meta-analysis, and GRADE assessment. J Clin Sleep Med. 2021 Feb 1;17(2):263-298. doi: 10.5664/jcsm.8988.
  15. Insomnia; NICE CKS, April 2024 (UK access only)
  16. Luik AI, van der Zweerde T, van Straten A, et al; Digital Delivery of Cognitive Behavioral Therapy for Insomnia. Curr Psychiatry Rep. 2019 Jun 4;21(7):50. doi: 10.1007/s11920-019-1041-0.
  17. Sleepio to treat insomnia and insomnia symptoms; NICE medical technologies guidance, May 2022
  18. Grigg-Damberger MM, Ianakieva D; Poor Quality Control of Over-the-Counter Melatonin: What They Say Is Often Not What You Get. J Clin Sleep Med. 2017 Feb 15;13(2):163-165. doi: 10.5664/jcsm.6434.
  19. British National Formulary (BNF); NICE Evidence Services (UK access only)
  20. Givler D, Givler A, Luther PM, et al; Chronic Administration of Melatonin: Physiological and Clinical Considerations. Neurol Int. 2023 Mar 15;15(1):518-533. doi: 10.3390/neurolint15010031.
  21. Handel MN, Andersen HK, Ussing A, et al; The short-term and long-term adverse effects of melatonin treatment in children and adolescents: a systematic review and GRADE assessment. EClinicalMedicine. 2023 Jul 6;61:102083. doi: 10.1016/j.eclinm.2023.102083. eCollection 2023 Jul.
  22. Daridorexant for treating long-term insomnia; Technology appraisal guidance, October 2023
  23. Donnelly K, Bracchi R, Hewitt J, et al; Benzodiazepines, Z-drugs and the risk of hip fracture: A systematic review and meta-analysis. PLoS One. 2017 Apr 27;12(4):e0174730. doi: 10.1371/journal.pone.0174730. eCollection 2017.
  24. Wu CC, Liao MH, Su CH, et al; Benzodiazepine Use and the Risk of Dementia in the Elderly Population: An Umbrella Review of Meta-Analyses. J Pers Med. 2023 Oct 12;13(10):1485. doi: 10.3390/jpm13101485.

Article history

The information on this page is written and peer reviewed by qualified clinicians.

  • Next review due: 16 Oct 2027
  • 17 Oct 2024 | Latest version

    Last updated by

    Dr Doug McKechnie, MRCGP

    Peer reviewed by

    Dr Pippa Vincent, MRCGP
flu eligibility checker

Are you protected against flu?

See if you are eligible for a free NHS flu jab today.

symptom checker

Feeling unwell?

Assess your symptoms online for free