Insomnia & sleep problems

Insomnia: what it is, what keeps it going, and what actually helps

If you have ever lain in the dark at 3 am, wide awake and exhausted, doing the arithmetic on how many hours are left — you know what insomnia feels like. What most people don’t know is that it has a well-understood engine, and a treatment that works better than pills.

A woman lying awake in a bedroom lit by soft blue light
Dr. Adekunle Ajisebutu, Sleep Physician

Medical reviewer

Dr. Adekunle Ajisebutu, MD

Sleep Physician · Board-certified in Sleep Medicine

Pending medical review

In short

Insomnia means trouble falling asleep, staying asleep, or waking too early, with daytime consequences, despite enough opportunity to sleep. It becomes chronic when it happens at least three nights a week for three months or more. The first-line treatment recommended by sleep-medicine and physician bodies is cognitive behavioural therapy for insomnia (CBT-I) — a structured, short programme that retrains the link between bed and sleep — not sleeping pills, which are reserved for short-term use alongside it.

Key takeaways

  • Insomnia is defined by difficulty sleeping plus daytime effects, not by hours alone.
  • It is usually kept going by understandable habits — extra time in bed, naps, clock-watching, worry about sleep.
  • CBT-I is the first-line treatment and works for most people within 4–8 weeks; it can be done in person, online, or from a book.
  • Sleeping pills have a place for short periods; they do not fix the underlying pattern.
  • If you snore heavily, have restless legs, or feel low most days, tell your doctor — insomnia can be a symptom of something else.

What insomnia is (and isn’t)

Clinically, insomnia is difficulty falling asleep, staying asleep, or waking earlier than you want, despite having enough time and a reasonable place to sleep, with daytime consequences — fatigue, low mood, poor concentration, irritability. All three parts matter. A short night before an early flight is not insomnia. Sleeping six hours and feeling fine is not insomnia.

It is called short-term insomnia when it lasts less than three months and usually has an obvious trigger: stress, illness, a new baby, travel. It is called chronic insomnia when it happens at least three nights a week for three months or more. Chronic insomnia is common — roughly one adult in ten — and it is treatable.

Why it keeps going after the trigger is gone

Most chronic insomnia starts with a trigger and is then maintained by the things people do to cope. The pattern is so consistent that clinicians have a name for it: the three P’s — predisposing factors (a tendency to be a light or anxious sleeper), a precipitating event, and perpetuating behaviours. The perpetuating behaviours are the part you can change:

  • Spending more time in bed to “catch up”, which spreads a fixed amount of sleep over more hours and makes it lighter and more broken.
  • Napping or sleeping in after a bad night, which lowers sleep pressure the next evening.
  • Lying awake in bed for long stretches, so the bed becomes a place your brain associates with frustration rather than sleep.
  • Clock-watching and mental arithmetic, which raise alertness at exactly the wrong moment.
  • Worrying about sleep itself — the fear of not sleeping becomes the reason you don’t.

None of these is foolish; they are natural responses. But together they turn a bad fortnight into a bad year.

The first-line treatment: CBT-I

Cognitive behavioural therapy for insomnia (CBT-I) is recommended as the first-line treatment for chronic insomnia by the American Academy of Sleep Medicine, the American College of Physicians and the NHS. It is not “talking about your feelings”. It is a structured programme, typically four to eight sessions, with specific components:

  • Sleep restriction (or sleep scheduling): temporarily limiting time in bed to roughly the amount you actually sleep, then extending it as sleep becomes solid. This is the most powerful — and least comfortable — component.
  • Stimulus control: bed is for sleep only; if you are awake for what feels like 20 minutes, get up, do something calm in dim light, and return when sleepy; keep the same wake time every day.
  • Cognitive work: identifying and testing the beliefs that fuel the worry (“if I don’t get eight hours I can’t function”).
  • Relaxation and wind-down skills, and standard sleep hygiene as a foundation.

Most people improve within a few weeks, and the gains hold after the programme ends — which is the main advantage over medication. CBT-I is available from trained therapists, through digital programmes (some health systems provide these free), and in self-help books based on the same methods.

Where sleeping pills fit

Prescription sleep medications can help for short periods — during an acute crisis, or while CBT-I takes effect — and are best used under a doctor’s guidance for the shortest practical time. They do not change the habits that maintain insomnia, tolerance can develop, and some carry next-day drowsiness or dependence risks, particularly in older adults. Over-the-counter antihistamine “sleep aids” are not recommended for regular use. Melatonin is a timing signal rather than a sedative; it can help with body-clock problems such as jet lag but has limited evidence for ordinary insomnia.

When to see a doctor

See a doctor if insomnia has lasted more than a few weeks, if it is affecting your days, or if any of these apply: loud snoring or witnessed pauses in breathing (possible sleep apnea), an irresistible urge to move your legs in the evening (possible restless legs syndrome), low mood or anxiety most days, or you are relying on alcohol or medication to sleep. Insomnia can be a condition in its own right or a symptom of another one, and the treatment differs.

In summary

Insomnia is a pattern with a mechanism, not a personal failing. The habits that keep it going are the same ones that feel like common sense at 3 am, and unlearning them — with a structured programme like CBT-I — works for most people. If it has been going on for more than a few weeks, ask your doctor about CBT-I first.

Questions people ask

How many hours of sleep counts as insomnia?

There is no hour threshold. Insomnia is defined by difficulty falling asleep, staying asleep or waking too early, plus daytime consequences, despite enough opportunity to sleep — at least three nights a week for three months when chronic.

Does CBT-I work if I have had insomnia for years?

Yes. Duration does not predict failure. Long-standing insomnia is usually maintained by habits and beliefs that CBT-I targets directly.

Is it safe to take melatonin for insomnia?

Melatonin is a timing signal rather than a sedative and has limited evidence for ordinary insomnia. It is more useful for body-clock problems such as jet lag. Discuss any supplement with your doctor or pharmacist.

Should I stay in bed and rest if I cannot sleep?

Usually not. Lying awake for long stretches teaches your brain that bed is a place for wakefulness. Get up, do something calm in dim light, and return when you feel sleepy.

Two-minute check

Wondering about snoring or daytime sleepiness? STOP-Bang is scored in your browser.

Take the self-check

Keep reading