Mental health library 187 guides · 25 topics

Sleep

Possible Causes of Insomnia: What Might Be Keeping You Awake

If you are lying awake night after night, wondering why your body will not settle, you are probably looking for an explanation, not a lecture. Sleep is complicated, and many things can pull it out of shape.

Therapy O’Clock library · Written with AI assistance and checked automatically against our editorial standards; not reviewed by a clinician · Updated 30 October 2026 · 8 min read

On this page
  1. Stress and worry are the most common culprits
  2. Health conditions that disturb sleep
  3. Medications that can interfere with sleep
  4. Caffeine, alcohol, and what you consume
  5. Habits and routines that work against sleep
  6. When it is about something deeper
  7. What you can try
  8. Questions people ask

Stress and worry are the most common culprits

When your mind is full, your body stays on alert. That is useful if you need to run from something, but not when you need to rest. The same system that helps you survive a difficult day can keep you wired long after the lights go out.

A tense meeting, a money worry, a difficult conversation you cannot stop replaying. Your brain treats these as unfinished business. It keeps checking for danger, and sleep feels like dropping your guard.

This is not a character flaw. It is how human bodies work. But if stress is chronic, your sleep system can get stuck in a loop where being tired makes you more anxious, and being anxious makes it harder to sleep. Over time, that loop can become its own problem, separate from whatever started it. You might find it helpful to read about Common Signs of Insomnia: When Sleep Needs Support to see if what you are experiencing has a name.

Health conditions that disturb sleep

Physical health and sleep are deeply connected. Many conditions can break up your rest without you realising the link.

Chronic pain is an obvious one. If your body hurts, you shift position, wake partially, and never get the deep sleep you need. But less obvious things matter too. An overactive thyroid, asthma, acid reflux, and urinary problems can all wake you repeatedly. So can hormonal shifts, especially during menopause or pregnancy.

Mental health conditions are just as physical in their effect. Depression often changes sleep patterns, making it hard to fall asleep or hard to get up. Anxiety keeps the brain scanning for threats. If panic attacks are part of your experience, the adrenaline that follows can take hours to settle. You might recognise this from What can cause panic attacks?.

Long-term illness is a special case. It can wear you down in ways that feel like insomnia but are really about your body working overtime just to keep going. The How chronic illness affects your mental health page talks about this more directly.

Medications that can interfere with sleep

It is easy to forget that a pill you take for one thing can affect something else entirely. Many common medications have sleep disruption as a side effect.

Antidepressants, particularly the ones that increase serotonin, can cause vivid dreams or restless legs. Blood pressure medication can change your sleep architecture. Steroids, decongestants, and some painkillers can keep you alert. Even antihistamines, which some people take to help them sleep, can backfire if used long-term.

If you take any regular medication and sleep is hard, it is worth asking your doctor whether it could be contributing. Do not stop anything on your own. Just ask. Sometimes a small change in timing makes a big difference.

Caffeine, alcohol, and what you consume

Caffeine is the obvious one, but its effects last longer than most people think. A coffee at three in the afternoon can still be active at midnight, especially as you get older. Your liver processes it more slowly over time.

Alcohol is trickier. It helps you fall asleep, which is why people reach for a nightcap. But once you are asleep, alcohol fragments your rest. You wake more often, spend less time in deep sleep, and feel groggy the next day. That grogginess makes you reach for more caffeine, and the cycle continues.

Nicotine is a stimulant too. So is sugar for some people. Even a large meal late at night can keep your digestive system working when you want it to rest.

Habits and routines that work against sleep

Some of what keeps people awake is just habit. Not bad habits, just habits that happen to clash with sleep.

Looking at screens in bed is a big one. The blue light tells your brain it is still daytime. But the content matters too. Scrolling news, social media, or emails keeps your brain processing information when it should be winding down.

Irregular schedules confuse your body clock. Staying up late on weekends and forcing yourself up early on weekdays is like flying across time zones every few days. Your body never settles.

Napping can help or hurt. A short nap early in the day can refresh you. A long nap late in the afternoon steals pressure from your sleep drive, making it harder to fall asleep at night.

Your environment matters too. A room that is too warm, too bright, or too noisy sends signals that it is not time to rest. So does a bed you use for work, worrying, or watching television.

When it is about something deeper

Sometimes insomnia is not really about sleep. It is about what sleep represents. For some people, lying still in the dark is when all the thoughts they avoided during the day finally catch up. Sleep becomes something to dread because of what comes before it.

This can be especially true for people carrying grief, trauma, or long-term care responsibilities. If you are supporting someone with depression, for example, the worry can be constant. The How to help someone with depression page talks about what that looks like from the other side.

Culture and faith can shape this too. In some families, sleep problems are seen as something to push through, not something to name. You might be told to pray more, work harder, or stop complaining. While faith and community can be real sources of strength, they should not replace medical care when it is needed. The page on What causes mental health struggles in Muslim communities? explores some of these tensions.

What you can try

Start small. Pick one thing from this list that feels manageable and try it for a week.

  • Move your last caffeine to lunchtime, not the afternoon.
  • Keep your bedroom dark and cool, and use it only for sleep.
  • Go to bed and wake up at the same time, even on days off.
  • If you cannot sleep after twenty minutes, get up and do something boring in dim light until you feel drowsy.
  • Write down what is worrying you before you get into bed. It helps your brain let go.

If none of this helps, or if you have tried many things and nothing changes, it may be time to talk to someone. A GP or family doctor can check for underlying health conditions and talk through medication options. A therapist can help with the stress and worry that may be driving the problem. The professionals directory includes therapists who work online, which can be useful if your local options are limited or if you want to speak to someone from your own cultural background. Therapy O'Clock is one way to find that support, but your GP or local services may be a better starting point depending on where you live.

The National Institute of Mental Health (US) and the NHS mental health (UK) both have reliable information on sleep and mental health if you want to read more.

Questions people ask

Can insomnia be caused by a vitamin deficiency?

Possibly. Low iron, vitamin D, or B vitamins have been linked to poor sleep in some people. A blood test from your GP can check, but do not start supplements without a doctor's advice, because too much of some vitamins can cause other problems.

Is it normal to sleep less as you get older?

Yes, sleep patterns change with age. Older adults often sleep more lightly and wake more often. The total amount of sleep you need may stay the same, but it is common to get less deep sleep. If you feel rested during the day, your sleep is probably fine for you.

Can working night shifts permanently damage your sleep?

Not permanently, but shift work can disrupt your body clock for a long time. Some people adapt better than others. If you work nights, keeping your sleep schedule consistent on days off and using blackout curtains can help your body find a rhythm.

Does exercise help with insomnia?

It can, but timing matters. Morning or afternoon exercise tends to improve sleep. Intense exercise right before bed can raise your body temperature and keep you alert, which may make falling asleep harder.

Can you develop insomnia suddenly without any obvious reason?

Yes. Sometimes a single bad night or a stressful event triggers a change that then becomes a pattern. The cause may have passed, but your brain has learned to be alert at bedtime. That is called conditioned insomnia, and it can be unlearned with time and consistent habits.

Is insomnia hereditary?

There is some genetic component to how easily you fall asleep and how sensitive you are to disruptions. But genes are not destiny. Environment and habits usually matter more.

Do sleeping pills work long-term?

Most are meant for short-term use. They can help in a crisis, but many lose effectiveness over time and can cause dependence. If you have been using them for weeks or months, talk to a doctor about a plan to reduce or stop.

Can your partner's sleep habits cause your insomnia?

Yes. Snoring, different schedules, or a partner who tosses and turns can disturb your rest. It is a practical problem, not a personal one. Separate beds, earplugs, or a white noise machine can help without blame.

Does drinking warm milk before bed really help?

For some people, yes. Warm milk contains tryptophan, which may help produce sleep chemicals. The effect is mild, but the ritual of a warm drink can also signal to your body that it is time to wind down.

Can anxiety about not sleeping make insomnia worse?

Very much so. Worrying about whether you will sleep tonight creates the very alertness that stops you sleeping. This is sometimes called paradoxical insomnia. Letting go of the pressure, even for one night, can sometimes break the cycle.

Is it possible to have insomnia even if you feel tired all day?

Yes. Feeling tired does not always mean you will fall asleep easily. Your body's sleep drive and your ability to fall asleep are related but not the same. Chronic tiredness can actually be a sign that your sleep is poor quality, even if you are in bed long enough.

How long does it take to fix insomnia once you find the cause?

It varies. Some people see improvement in a few days after changing one habit. For others, especially if the cause is chronic stress or a health condition, it can take weeks or months. Small, consistent changes usually work better than trying to fix everything at once.

Need help right now?

If you might act on thoughts of harming yourself, or someone is in danger, call your emergency number now.

  • United Kingdom Samaritans 116 123 (free, any time) · NHS 111 · emergency 999
  • Ireland Samaritans 116 123 · text HELLO to 50808 · emergency 112 or 999
  • United Arab Emirates National support line 800 4673 · emergency 999 (ambulance 998)
  • Canada Suicide Crisis Helpline 988 (call or text) · emergency 911
  • Anywhere else find free, confidential helplines in your country at findahelpline.com