Why Can't I Sleep? Common Causes of Insomnia

Can't fall asleep or stay asleep? Stress, caffeine, screens, irregular schedules, pain, medications, and sleep disorders are common causes of insomnia. Here is how to narrow it down and what helps.

HealthPathCore7 min read
A woman in white pajamas sitting on a bed with white sheets and pillows

The short answer

Most trouble sleeping comes from stress or worry, caffeine or alcohol, irregular sleep schedules, screens and light at night, pain, medications, or conditions like sleep apnea, restless legs, depression, and anxiety. Insomnia that happens at least three nights a week for three months is chronic and responds well to cognitive behavioral therapy for insomnia.

Key takeaways

  • Insomnia means trouble falling asleep, staying asleep, or waking too early, and it becomes chronic when it happens at least three nights a week for three months.
  • Stress and racing thoughts at bedtime are among the most common causes of insomnia.
  • Caffeine can affect sleep for hours, so an afternoon coffee may still be active at bedtime.
  • Alcohol may help you fall asleep but often causes waking in the second half of the night.
  • Sleep apnea, restless legs syndrome, pain, reflux, menopause, and some medications can all cause insomnia.
  • Cognitive behavioral therapy for insomnia is the recommended first treatment for chronic insomnia.
  • The CDC recommends that adults get at least seven hours of sleep a night.

Lying awake while the clock moves toward morning is one of the most frustrating experiences there is. The harder you try to sleep, the more awake you seem to get, and the next day you pay for it.

Insomnia, meaning trouble falling asleep, staying asleep, or waking too early despite having the chance to sleep, is very common. The cause is usually findable. This article walks through the most likely reasons and the patterns that point to each, so you can decide what to change and when to talk to your doctor. It cannot diagnose you, but it can help you ask better questions.

What counts as insomnia?

Insomnia is difficulty falling asleep, staying asleep, or getting restful sleep that affects how you feel or function during the day. A bad night now and then is normal; insomnia is a pattern.

Clinicians usually split it into two kinds. Short-term insomnia lasts days to weeks and usually follows a stressful event, illness, travel, or schedule change. Chronic insomnia happens at least three nights a week for three months or more. Chronic insomnia often starts with a short-term trigger and then keeps itself going through habits and worry about sleep.

The CDC recommends at least seven hours of sleep a night for adults. If you regularly get less than that and feel tired, foggy, or irritable during the day, it is worth looking at why. Sleep is closely tied to mood, as the mental health guide explains in more detail.

What are the most common causes of insomnia?

The most common causes are stress, worry, and an overactive mind at bedtime, followed by caffeine, alcohol, irregular schedules, and light from screens. Medical problems, medications, and other sleep disorders account for many of the rest.

CauseTypical patternClues to look for
Stress or worryTrouble falling asleep, mind racingStarted around a stressful event; thoughts loop in bed
CaffeineTrouble falling asleepCoffee, tea, soda, or energy drinks after midday
AlcoholFalling asleep easily, then waking in the early hoursDrinks in the evening; restless second half of the night
Irregular scheduleNot sleepy at bedtime, tired on wakingShift work, late weekends, jet lag
Screens and lightDelayed sleepinessPhone, tablet, or TV in bed
DepressionOften early-morning wakingLow mood, loss of interest, fatigue
Sleep apneaFrequent waking, unrefreshing sleepLoud snoring, gasping, morning headaches
Restless legs syndromeTrouble falling asleepUrge to move legs in the evening, eased by moving
Pain or other medical conditionsWaking during the nightArthritis, reflux, needing to urinate, hot flashes

How does stress keep you awake?

Stress keeps your body in an alert state that is the opposite of what sleep needs. Your heart rate, muscle tension, and stress hormones stay higher, so your brain does not get the signal that it is safe to switch off.

Bedtime is often the first quiet moment of the day, which is when unresolved worries surface. Many people find themselves replaying conversations or planning tomorrow in detail. That kind of repetitive thinking, called rumination, is strongly linked with poor sleep.

Over time, the bed itself can become linked with frustration. You get into bed, feel wide awake, and start worrying about not sleeping, which makes sleep even less likely. This cycle is a central reason short-term insomnia turns chronic, and it is exactly what cognitive behavioral therapy for insomnia targets.

If anxiety follows you through the day as well, it may be worth reading about when anxiety needs professional help.

Could caffeine, alcohol, or screens be the problem?

Yes, and these are some of the easiest causes to test. Each one affects sleep in a different way, so the timing of your sleeplessness can point to the culprit.

Caffeine

Caffeine blocks adenosine, a chemical that builds up during the day and makes you feel sleepy. Its effects last for hours, so an afternoon coffee can still be working at bedtime. People vary a lot in how sensitive they are. The FDA cites 400 mg a day as an amount not generally linked with harmful effects in healthy adults, but that is not a sleep threshold, and some people sleep badly on far less. There is a fuller breakdown of how much caffeine is too much, including hidden sources.

Alcohol

Alcohol can make you drowsy and help you fall asleep, but it disrupts sleep later in the night as your body processes it. People often wake at 2 or 3 a.m. after evening drinks and struggle to get back to sleep.

Screens and light

Bright light in the evening, including from phones and tablets, can delay the release of melatonin, the hormone that helps time sleep. Scrolling also keeps your mind engaged. Putting devices away 30 to 60 minutes before bed is a reasonable experiment.

Can a medical condition cause insomnia?

Yes. Many health problems disrupt sleep directly or through symptoms such as pain, breathlessness, or needing to urinate at night.

  • Sleep apnea, a condition in which breathing repeatedly stops and starts during sleep, causes frequent brief awakenings. Loud snoring, gasping, and daytime sleepiness are common signs.
  • Restless legs syndrome causes an uncomfortable urge to move your legs, usually in the evening, that makes falling asleep hard.
  • Chronic pain from arthritis, back problems, or headaches can wake you or keep you from settling.
  • Acid reflux often worsens lying down.
  • Thyroid problems, particularly an overactive thyroid, can cause restlessness and poor sleep.
  • Menopause brings hot flashes and night sweats that wake many people.
  • Frequent urination at night can come from an enlarged prostate, diabetes, bladder problems, or drinking late in the evening.

Some medications also interfere with sleep, including certain antidepressants, steroids, decongestants, some blood pressure drugs, and stimulants for ADHD. Do not stop a prescription on your own; ask the prescriber whether timing or dose can change.

How are insomnia and mental health connected?

The connection runs both ways. Anxiety and depression commonly disrupt sleep, and poor sleep makes mood problems worse and harder to treat.

Depression is often linked with waking very early and being unable to fall back asleep, though some people sleep much more instead. Anxiety tends to show up as trouble falling asleep because of racing thoughts. Trauma and post-traumatic stress disorder can cause nightmares and a sense of being on guard at night.

Because the two are so intertwined, treating insomnia can improve mood, and treating depression or anxiety often improves sleep. The research on this is summarized in how sleep and mental health interact.

What helps you sleep better?

Cognitive behavioral therapy for insomnia (CBT-I), a structured program that changes the thoughts and habits keeping you awake, is the recommended first treatment for chronic insomnia. Simple sleep habits help too, especially for short-term problems.

StepWhy it may help
Keep the same wake time every dayAnchors your body clock, even after a bad night
Only go to bed when sleepyReduces time lying awake in bed
Get up if you cannot sleep after about 20 minutesBreaks the link between bed and frustration
Cut caffeine after late morningGives it time to clear before bed
Limit alcohol in the eveningReduces early-morning waking
Keep the bedroom dark, quiet, and coolRemoves common disruptions
Get daylight and activity during the daySupports a stronger sleep and wake rhythm
Wind down without screensLets melatonin rise and your mind settle

What about sleep aids?

Over-the-counter sleep aids, often antihistamines, can cause next-day grogginess and are not meant for long-term use, especially in older adults. Melatonin is sold as a dietary supplement in the US, so its quality and dose can vary. Prescription sleep medications can help in the short term but carry side effects. Talk to your doctor before starting any of them.

Why am I so tired but still can't sleep?

Being exhausted but unable to sleep usually means your body is tired while your mind or nervous system is still on alert. Stress hormones, worry about sleep, and an irregular body clock can all override sleepiness.

Napping late in the day, sleeping in to catch up, and spending long hours in bed trying to sleep can also weaken your natural sleep drive. Keeping a consistent wake time and avoiding long naps usually help rebuild it. If fatigue persists even after better sleep, other causes such as anemia or thyroid problems are possible, and the article on feeling tired all the time covers them.

When should you see a doctor about insomnia?

See your doctor if trouble sleeping lasts more than a few weeks, affects your daytime functioning, or comes with other symptoms such as loud snoring, gasping, leg discomfort, or low mood.

Your primary care provider can look for medical causes, review your medications, and refer you to a sleep specialist or a clinician trained in CBT-I. Keeping a sleep diary for one to two weeks, noting bedtime, wake time, caffeine, alcohol, and how you felt, gives them useful information.

When is it urgent?

  • Thoughts of suicide or self-harm, which can accompany severe insomnia and depression: call or text 988 for the 988 Suicide and Crisis Lifeline.
  • Falling asleep while driving or at other dangerous moments: stop driving and see a doctor promptly.
  • Several nights with almost no sleep alongside unusually high energy, racing thoughts, or confusion: seek urgent care, as this can signal a mental health emergency.
  • Chest pain or severe breathlessness at night: call 911.

Most insomnia improves once the cause is found and addressed. You do not have to accept poor sleep as permanent.

Common questions

Why can't I fall asleep even when I'm tired?
Usually because your body is tired but your nervous system is still on alert. Stress, worry about sleep, caffeine, screens, and an irregular body clock can override sleepiness. Long naps and sleeping in can weaken your sleep drive too. A consistent wake time and getting out of bed when you cannot sleep often help reset the pattern.
Why do I wake up at 3 a.m. and can't go back to sleep?
Common reasons include stress, evening alcohol, needing to urinate, pain, hot flashes, and sleep apnea. Waking very early and being unable to fall back asleep is also a recognized sign of depression. Notice what happened the evening before and how your mood has been, and talk to your doctor if it happens most nights.
How long can insomnia last?
Short-term insomnia usually lasts days to a few weeks and often follows stress, illness, or travel. When trouble sleeping happens at least three nights a week for three months or more, it is considered chronic. Chronic insomnia often keeps itself going through habits and worry about sleep, which is why targeted treatment such as CBT-I works well.
Can anxiety cause insomnia?
Yes. Anxiety keeps your body and mind in an alert state, which makes falling asleep hard and can cause frequent waking. Poor sleep then worsens anxiety the next day, creating a cycle. Treating the anxiety, through therapy and sometimes medication, often improves sleep, and CBT-I can address the sleep problem directly.
Is it safe to take melatonin every night?
Melatonin is generally considered safe for short-term use in adults, but in the US it is sold as a dietary supplement, so product strength and quality can vary. Its benefit for chronic insomnia appears modest. It can interact with some medications. Talk to your doctor before using it regularly, especially if you are pregnant, older, or taking other drugs.
What is CBT-I?
CBT-I is cognitive behavioral therapy for insomnia, a structured program usually lasting several weeks. It combines a regular sleep schedule, limiting time awake in bed, changing unhelpful thoughts about sleep, and relaxation techniques. It is the recommended first treatment for chronic insomnia, and its benefits tend to last longer than sleep medication alone. It is available in person and through digital programs.
When should I see a doctor for trouble sleeping?
See your doctor if poor sleep lasts more than a few weeks or affects your work, mood, or safety. Mention loud snoring, gasping, leg discomfort, pain, or low mood, since these point to treatable causes. If you have thoughts of suicide, call or text 988. If you fall asleep while driving, stop driving until you are assessed.

Sources

Published research and guidance this page draws on. Check the original where a detail matters to you.

  1. 1InsomniaMedlinePlus, U.S. National Library of Medicine
  2. 2Healthy SleepMedlinePlus, U.S. National Library of Medicine
  3. 3InsomniaNational Heart, Lung, and Blood Institute (NIH)
  4. 4Sleep ApneaMedlinePlus, U.S. National Library of Medicine
  5. 5Restless LegsMedlinePlus, U.S. National Library of Medicine
  6. 6CaffeineMedlinePlus, U.S. National Library of Medicine
  7. 7Sleep DisordersMedlinePlus, U.S. National Library of Medicine
  8. 8988 Suicide and Crisis Lifeline988 Suicide and Crisis Lifeline
#insomnia#sleep#stress#mental-health

This article is for general education and is not a substitute for professional medical advice. Speak with a qualified healthcare provider about your individual circumstances.

About HealthPathCore

An independent health knowledge library

Every article here is built from published research and guidance issued by named health bodies, written in plain language, and dated so you can see how current it is. When the evidence moves, we come back and correct the piece.

How we research and write

More in Mental Health

Clearer health, in your inbox

One practical, evidence-checked email a week. No spam, no hype, and you can unsubscribe anytime.

Made with Modulify