Insomnia has dozens of possible causes, but they generally fall into a few categories: a brain that won’t quiet down, habits that work against sleep, hormonal shifts, medical conditions, and environmental factors. Often, several of these overlap. Understanding which ones apply to you is the first step toward sleeping better.
Clinically, insomnia becomes a diagnosable disorder when sleep difficulty happens at least three nights per week and persists for at least three months. But even occasional sleeplessness has identifiable triggers, and most of them are addressable.
Stress and the Hyperarousal Response
The single most common driver of insomnia is a nervous system stuck in “on” mode. Your body runs a stress circuit called the HPA axis, which controls the release of cortisol and other alerting hormones. In people with insomnia, this system runs hotter than normal around the clock. Studies measuring 24-hour hormone levels found that people with insomnia have significantly higher cortisol and stress hormone concentrations than matched controls, with the biggest spikes occurring in the evening and the first half of the night, precisely when your body should be winding down.
This isn’t just a nighttime problem. The same hyperarousal that keeps you awake at 2 a.m. also shifts inflammatory signaling molecules into daytime hours, which helps explain why insomnia leaves you fatigued yet still unable to nap. Deep sleep normally puts the brakes on this stress circuit, but when you can’t reach deep sleep, the cycle reinforces itself. Stress disrupts sleep, poor sleep elevates stress hormones, and the pattern locks in.
Anxiety and Depression
Mental health conditions and insomnia feed each other in both directions. About 66% of people with depression also have insomnia, and the overall comorbidity rate between insomnia and either depression or anxiety sits around 50%. That relationship is bidirectional: chronic insomnia roughly doubles the risk of developing depression later, and untreated depression makes insomnia harder to resolve.
Anxiety tends to cause trouble falling asleep, as racing thoughts and worry activate the same stress hormones described above. Depression more often fragments sleep in the second half of the night, causing early-morning waking. Both conditions amplify the brain’s arousal signals and suppress the neurochemical “off switches” that allow sleep to take hold.
Caffeine and Other Substances
Caffeine works by blocking receptors for adenosine, a chemical your brain accumulates throughout the day as a natural sleep signal. Within about 30 minutes of drinking coffee or tea, caffeine reaches the brain and parks itself on those receptors, preventing adenosine from doing its job. The result is sustained wakefulness and delayed sleep onset. Because caffeine has a half-life of roughly five to six hours, a cup of coffee at 3 p.m. still has half its stimulant punch at 9 p.m.
Alcohol is trickier. It makes you feel drowsy initially but fragments sleep in the second half of the night as your body metabolizes it, reducing time in the most restorative sleep stages. Nicotine is a stimulant that both delays sleep onset and causes lighter sleep overall. Even some common medications, including certain antidepressants, decongestants, and corticosteroids, can disrupt sleep as a side effect.
Screens and Circadian Disruption
Your internal clock relies on light cues to time the release of melatonin, the hormone that signals darkness and prepares your body for sleep. Blue light in the 446 to 477 nanometer wavelength range, which is exactly what phones, tablets, and LED monitors emit, is the most potent suppressor of melatonin production. Using these devices in the hour or two before bed effectively tells your brain it’s still daytime.
Irregular sleep schedules cause a similar problem. Shift work, jet lag, or simply staying up much later on weekends than weekdays forces your circadian clock to constantly readjust. Your brain can only shift its internal clock by about one to two hours per day, so large swings create a persistent mismatch between when you try to sleep and when your body is actually ready for it.
Hormonal Changes in Women
Perimenopause is one of the most underrecognized causes of insomnia. Both estrogen and progesterone actively promote sleep. Estrogen inhibits several wake-promoting brain chemicals, including histamine, noradrenaline, and orexin, which reduces the time it takes to fall asleep and the number of awakenings. It also helps regulate body temperature through the hypothalamus, supporting deep sleep phases. Progesterone, meanwhile, has direct sedative and anxiety-reducing effects through the same brain receptors targeted by certain sleep medications.
As these hormones decline during perimenopause, sleep quality drops measurably. Polysomnography studies show that low estrogen is associated with more movement arousals, lower sleep efficiency, and even sleep-disordered breathing. Hot flashes compound the problem. They result from dysfunction of the brain’s thermoregulatory center caused by estrogen withdrawal, and objective monitoring confirms that most nighttime hot flashes coincide directly with awakenings. Women who experience frequent or severe hot flashes are significantly more likely to report insomnia.
Chronic Pain
Pain and insomnia have a strong, well-documented relationship. While insomnia affects roughly 11% of the general population, that figure climbs to around 50% among people with chronic pain conditions. One study of 450 patients with chronic pain found that 45% met criteria for clinically significant insomnia.
The connection goes beyond simply being too uncomfortable to sleep. Chronic pain activates the same stress and arousal pathways that drive primary insomnia, and poor sleep in turn lowers pain thresholds the following day. This creates a feedback loop where pain worsens sleep, and poor sleep worsens pain. Conditions like arthritis, fibromyalgia, back pain, and nerve pain are all common culprits.
Other Sleep Disorders
Sometimes what feels like insomnia is actually another sleep disorder in disguise, or two conditions layered on top of each other. Roughly 29% of people with obstructive sleep apnea also meet criteria for chronic insomnia. This overlap, sometimes called COMISA (comorbid insomnia and sleep apnea), is easy to miss because the two conditions seem contradictory: one involves not being able to sleep, the other involves not being able to breathe during sleep. In practice, repeated breathing interruptions cause micro-awakenings that fragment sleep, and over time, the brain starts associating the bed with wakefulness.
Restless legs syndrome, which causes an uncomfortable urge to move the legs that worsens in the evening, is another frequent contributor. So is periodic limb movement disorder, which causes involuntary leg jerks throughout the night.
Your Bedroom Environment
Temperature matters more than most people realize. Your body needs to drop its core temperature slightly to initiate and maintain deep sleep, and thermoregulation is critical for staying in the most restorative sleep stages. Sleep specialists generally recommend keeping the bedroom between 60 and 67°F (15 to 19°C). Rooms that are too warm interfere with both deep sleep and REM sleep stability.
Noise and light are the other major environmental factors. Even sounds too quiet to fully wake you can shift your brain out of deep sleep into lighter stages. Light exposure during the night, whether from streetlights, a partner’s phone, or an LED on a device, can suppress melatonin production and reduce sleep quality even if you don’t consciously notice it.
Behavioral Patterns That Reinforce Insomnia
Many cases of insomnia start with an identifiable trigger, like a stressful life event or illness, but persist long after that trigger resolves. The reason is usually a set of compensatory behaviors that accidentally train the brain to stay awake in bed. Spending extra time in bed trying to “catch up” on sleep, watching TV in the bedroom, lying awake for long stretches while checking the clock, and napping during the day all weaken the brain’s association between the bed and sleep.
This learned component is so central to chronic insomnia that the most effective long-term treatment, cognitive behavioral therapy for insomnia, focuses almost entirely on reversing these patterns rather than addressing any single medical cause. Restricting time in bed to match actual sleep time, maintaining a consistent wake time regardless of how the night went, and leaving the bedroom when you can’t sleep are the core techniques. They work by rebuilding the brain’s conditioned association between being in bed and falling asleep quickly.

