If you’re lying awake night after night, the cause is rarely one single thing. Sleeplessness typically stems from a combination of factors: your stress levels, your habits, your environment, and sometimes an underlying medical condition you haven’t identified yet. The good news is that most of these factors are identifiable and, in many cases, fixable.
Stress and Mental Health Are the Most Common Culprits
Your brain has to feel safe and calm enough to let go of wakefulness. When you’re stressed, anxious, or dealing with depression, that switch doesn’t flip easily. About half of people with chronic insomnia also have at least one mental health condition, most commonly anxiety or depression. Stressful life circumstances, major changes like moving to a new home, or even fear and anxiety specifically about sleep itself (worrying that you won’t fall asleep, which then keeps you awake) can all drive the problem.
This isn’t just psychological. Stress raises cortisol, your body’s alert hormone. Research from Penn State found that even one night of poor sleep elevated cortisol levels by 37 to 45% the following evening and delayed the body’s natural wind-down period by at least an hour. That means a single bad night can make the next night harder, creating a cycle where sleeplessness feeds on itself.
Your Habits May Be Working Against You
Caffeine is an obvious one, but people often underestimate how long it lingers. A cup of coffee at 2 p.m. still has half its caffeine circulating at 8 p.m. Alcohol is trickier because it makes you feel drowsy initially but fragments sleep later in the night, leaving you awake at 3 a.m.
Screen time before bed is another major disruptor. Blue light from phones, tablets, and laptops suppresses melatonin, the hormone that signals your brain it’s time to sleep. A Harvard experiment found that blue light exposure suppressed melatonin for about twice as long as other light wavelengths and shifted the body’s internal clock by three hours. That means scrolling your phone in bed can effectively tell your brain it’s still early evening. The recommendation is to stop looking at bright screens two to three hours before bed, though even one hour of screen-free wind-down helps.
Irregular sleep schedules matter too. Going to bed at 10 p.m. on weekdays and 1 a.m. on weekends creates a mini jet lag effect. Your internal clock can’t stabilize when the target keeps moving. Napping late in the day, while tempting when you’re exhausted, also chips away at the sleep pressure you need to fall asleep at night.
Your Bedroom Might Be the Problem
Temperature plays a surprisingly large role in sleep quality. Your body needs to drop its core temperature slightly to initiate sleep, and a warm room fights that process. The optimal bedroom temperature for adults is between 60 and 67°F (15 to 19°C). If your room is above 70°F, it’s too hot for quality sleep. High humidity compounds the problem, making the room feel even warmer and increasing restlessness.
Light and noise are the other two environmental basics. Even dim light from a hallway or a charging indicator on a device can signal your brain to stay alert. If you can’t control noise in your environment, white noise or earplugs can help create a buffer.
Medical Conditions That Disrupt Sleep
Sometimes the issue isn’t your habits or your mindset. It’s something physiological. Restless legs syndrome affects millions of people and causes an uncomfortable, almost irresistible urge to move your legs, often described as aching, crawling, or itching sensations. These symptoms tend to worsen at night and when you’re sitting or lying still, which is exactly when you’re trying to fall asleep. Most people with restless legs syndrome also experience involuntary leg twitches during sleep, occurring every 15 to 40 seconds throughout the night. Low iron levels are one common and treatable contributor.
Sleep apnea is another condition people often don’t realize they have. It causes repeated breathing interruptions during sleep, leading to frequent micro-awakenings. You may not remember waking up, but you’ll feel unrested in the morning and may notice excessive daytime sleepiness, loud snoring, or waking up gasping.
Chronic pain conditions, hormonal changes during pregnancy or menopause, and temporary illnesses can all interfere with sleep as well. If your sleeplessness started around the same time as a new health issue, the two are likely connected.
Medications That Can Keep You Awake
Several common medications have insomnia as a side effect, and many people don’t make the connection. Beta blockers, prescribed for high blood pressure and heart conditions, are linked to increased insomnia and unusual dreams. Statins, one of the most widely prescribed drug classes, list insomnia as their most frequently reported psychological side effect, accounting for 19% of reported adverse reactions in one large analysis. Certain antidepressants, particularly bupropion, can also cause sleeplessness.
If your sleep trouble started or worsened after beginning a new medication, it’s worth raising with your prescriber. Often there are alternative medications or dosing adjustments that can help.
How to Tell If It’s Insomnia
Everyone has occasional bad nights. That’s normal. The clinical threshold for insomnia disorder is difficulty falling or staying asleep at least three nights per week. When that pattern persists for three months or longer, it’s considered chronic insomnia. If sleeplessness is affecting your daily functioning, including your concentration, mood, energy, or performance at work, that’s the signal to talk to a doctor rather than continuing to tough it out.
There’s no single test for insomnia. A doctor will review your sleep patterns, medical history, medications, and any other symptoms. They may order blood work to rule out conditions like thyroid problems, low iron, or kidney issues that can quietly disrupt sleep. In some cases, a sleep study helps identify conditions like sleep apnea that you can’t detect on your own.
What Actually Helps
The first-line treatment for chronic insomnia isn’t medication. It’s a structured approach called cognitive behavioral therapy for insomnia, which targets the thoughts and behaviors keeping you awake. It’s more effective than sleeping pills in the long run because it addresses the root cause rather than masking symptoms. It typically involves six to eight sessions and works by rebuilding your brain’s association between bed and sleep.
On your own, the most impactful changes are consistent sleep and wake times (even on weekends), keeping your room cool and dark, cutting caffeine after noon, and building a wind-down routine that doesn’t involve screens. If you’ve been lying awake for more than 20 minutes, get up and do something quiet in dim light until you feel sleepy. Staying in bed while frustrated trains your brain to associate the bed with wakefulness, which makes the problem worse over time.
Genetics also play a role. Sleep traits run in families, and some people simply have more active brains that take longer to quiet down. That doesn’t mean you’re stuck with poor sleep, but it may mean you need to be more deliberate about your sleep environment and routine than someone who falls asleep the moment their head hits the pillow.

