Skip to stories
JellyMedFind care $45

After JELLYMED JOURNAL

What Causes Insomnia? Common Triggers and Fixes

What causes insomnia: a glowing neon clock at 2:47 a.m. with drifting Z's on a dark night background

It’s 2:47 a.m. You’ve checked the clock four times, and every check makes the math worse. Five hours left. Now four and a half. Your body is exhausted, but your brain won’t clock out.

So, what causes insomnia? Rarely just one thing. It’s usually a mix of stress, habits, late coffee or alcohol, health conditions and some medications. And the cause that started it often isn’t the one keeping it going. Here’s how to spot your triggers, and what to change tonight.

What causes insomnia? The short answer

You’re in big company. About 30 to 35% of adults have brief insomnia symptoms, and roughly 10% have chronic insomnia, meaning trouble sleeping at least three nights a week for at least three months, according to the American Academy of Sleep Medicine. Short bursts, called acute insomnia, are far more common and usually tied to something happening in your life.

Sleep researchers explain the pattern with the 3P model, which Dr. Arthur Spielman proposed in the 1980s and Harvard’s Division of Sleep Medicine describes. Predisposing factors, like age, genetics or naturally light sleep, make you vulnerable. Precipitating factors, such as a brutal work week or an illness, set off the first bad nights. Perpetuating factors keep things going: lying awake for hours, napping, scrolling in bed.

That last group matters most. It’s why a rough patch can outlast whatever caused it. Many people with chronic insomnia also show signs of hyperarousal, a body and brain stuck in “on” mode, with a faster heart rate and extra cortisol near bedtime. Not everyone does. Hyperarousal doesn’t explain every case.

Infographic of the 3P model of insomnia: predisposing, precipitating and perpetuating factors

Stress and a racing mind

Stress is the classic insomnia trigger, and it doesn’t have to be dramatic. The National Heart, Lung, and Blood Institute lists everyday worries, from school and work to money and relationships, plus grief after a loss, as common drivers. Insomnia isn’t a character flaw.

Mental stress sets off the same alarm response as physical stress. Your heart rate stays up, and racing thoughts arrive the second the lights go off. Some people have high sleep reactivity, which means stress hits their sleep harder than it hits their friends’. If that’s you, you’re not fragile. You’re wired that way.

Then comes the trap. You start worrying about not sleeping, and the worry becomes the new stressor. Anxiety feeds the same loop, so does depression, and waking very early can be a sign of depression, per Mayo Clinic. Roughly 40% of people with insomnia also have a mental health condition, according to the Sleep Foundation. Treat the mental health side too, or the sleep problem keeps coming back. Even mild anxiety about tomorrow’s to-do list can keep insomnia alive.

Sleep habits and your bedroom

Your body clock loves boring. When bedtimes swing by a couple of hours, or you sleep in all weekend, your circadian rhythm loses its anchor. Long afternoon naps, working in bed, a bright phone inches from your face and a hot, noisy room all chip away at sleep quality.

Shift work and jet lag cause the same mismatch on a bigger scale. Your internal clock says one thing and your schedule says another. A big dinner late at night can add heartburn to the mix.

Small stuff. But poor sleep habits add up fast, and they’re the easiest causes to change. Healthy sleep habits start with a steady sleep schedule. Pick one wake-up time and hold it for a week, even after a bad night. Keep the bedroom dark and cool, and use it only for sleep. That’s basic sleep hygiene. Awake for what feels like 20 or 30 minutes? Get up, do something dull in low light, and head back when you’re sleepy.

Caffeine, alcohol and nicotine

Caffeine is the sneaky one. In a small study of 12 healthy sleepers reported by the AASM, 400 mg of caffeine, about two to three cups of coffee, taken six hours before bed cut total sleep by more than an hour. The volunteers didn’t notice. They felt fine and slept worse. That 4 p.m. latte may cost more than you think.

Nicotine is one of several stimulants that can keep you wired, and smokers often wake in the night. Nicotine isn’t a sleep aid. Alcohol works differently. A nightcap can make you drowsy at first, then it suppresses deeper sleep and breaks up the rest of the night, so you’re wide awake at 3 a.m. If the next day brings racing worry too, that’s often hangxiety. More stimulants hide in over-the-counter cold and pain remedies, even some weight-loss products, so read the label.

Timeline showing caffeine taken six hours before bed can cost more than an hour of sleep

Medical conditions and sleep disorders

Sometimes insomnia is a symptom rather than the problem. Ongoing pain makes comfortable positions hard to find. Mayo Clinic links poor sleep to several conditions, including GERD, asthma, heart disease, diabetes, an overactive thyroid and Parkinson’s disease. Type 2 diabetes, for example, can disrupt sleep through nerve pain, frequent urination and blood sugar swings.

Two sleep disorders deserve a special mention. Sleep apnea causes breathing to stop briefly during the night, affects up to 20% of people, and can look like insomnia when you keep waking up. Restless legs syndrome brings a strong urge to move your legs just as you try to drift off. Loud snoring, gasping or creepy-crawly legs at night are clues worth telling your doctor about.

Medications that can keep you awake

Check your medicine cabinet. Some antidepressants can interfere with sleep. So can certain asthma medicines and blood pressure drugs. Prednisone can make it hard to fall asleep, possibly because it mimics cortisol. Certain ADHD medications disrupt the sleep cycle. Even melatonin, which people take to sleep, can cause vivid dreams or morning grogginess in some.

Don’t stop a prescription on your own. Ask your prescriber whether timing or an alternative could help.

Pregnancy, menopause and age

Insomnia is more common in women than in men, and hormones are part of the story. Pregnancy and menopause can both disrupt sleep, and night-time hot flashes wake many women. More than half of pregnant women report sleep problems that fit insomnia. Age matters as well: the chance of insomnia rises as you get older, and it shows up in roughly 30 to 48% of older adults. Older adults also tend to have more medications and health conditions that overlap with the causes above.

Fixes that actually help

Here’s the good news. Most insomnia improves, and the best-proven insomnia fix isn’t a pill. The American College of Physicians recommends cognitive behavioral therapy for insomnia, known as CBT-I, as the first treatment for chronic insomnia. It pairs sleep-focused thinking skills with behavioral tools like sleep restriction and stimulus control, and you can get it from a therapist, online programs or self-help books. Insomnia medicines approved by the FDA are meant for short stretches, roughly four to five weeks.

Picture it. You climb into bed, you’re sleepy, and the clock stops mattering. Start small.

Tonight

Skip the coffee after early afternoon. Dim the lights an hour before bed and park your phone across the room. If you’re still awake after 20 to 30 minutes, get up and try again when sleepy.

This week

Hold one wake-up time every day. Take a 20-minute walk, since physical activity helps sleep quality. Keep naps short and before mid-afternoon. Jot down your bedtime and wake time in a simple log. Add what you ate and drank, so patterns show up.

If it has lasted months

Don’t keep white-knuckling it. Ask about CBT-I and have your doctor look for underlying causes, from medications to sleep apnea.

Checklist of insomnia fixes: tonight, this week and if it has lasted months

When to see a doctor

Book a visit if poor sleep makes daily life harder, if you’ve had trouble sleeping at least three nights a week for three months, or if you notice daytime sleepiness, loud snoring, gasping at night or a low mood that won’t lift. A doctor will look for the underlying cause and may refer you to a sleep center for testing.

If you’re having thoughts of harming yourself, call or text 988 right away, or call 911 in an emergency.

Talk to a clinician about your sleep

You don’t have to wait weeks to start. JellyMed offers doctor-led telehealth for non-emergency needs, and “Sleep trouble” is one of the symptoms you can start with. It’s a flat $45 visit fee. You meet a licensed clinician by secure chat or video, depending on your state and symptoms, and leave with a plan, including when in-person care makes more sense. Medication, labs and pharmacy costs are separate, and prescriptions aren’t guaranteed. JellyMed doesn’t prescribe controlled substances, and it isn’t emergency care.

Start with your symptom at JellyMed and tell a clinician what your nights look like.

Questions people ask about insomnia

How do I stop my insomnia?

Start with the causes you control: a fixed wake-up time, no coffee after early afternoon, less alcohol and a dark, cool bedroom. Good sleep hygiene sounds boring, and it works. If it persists for months, CBT-I is the best-supported treatment, and a doctor can check for sleep apnea, pain or medication effects that keep you awake.

Why is my body not letting me sleep?

Usually your body is on alert. Stress hormones, racing thoughts, a late coffee or a mismatched body clock can keep you wired when you’re tired. Medical conditions and some medicines can do it too. Working out which one fits is the first step.

Can you recover from insomnia?

Yes. Acute insomnia often fades once the stressor passes or the habit changes. Chronic insomnia responds well to cognitive behavioral therapy (CBT-I), which tackles the thoughts and routines that keep it going. Medicines can help short term, but they rarely fix the root cause.

What could be causing random nights of insomnia?

Common one-off culprits are a late coffee, a drink or two, a stressful day, a hot room, a heavy dinner, jet lag or a new medication. If random bad nights become frequent, track them for two weeks and look for the pattern.

Can stress cause insomnia?

Absolutely. Stress is one of the most common triggers, because it keeps your body in alarm mode. Worrying about sleep can then become its own stressor, which is how a few bad nights turn into weeks. Calming routines and CBT-I both help.

Sources & further reading

General information, not a diagnosis or individual medical advice. For a medical emergency, call 911.

Explore care · $45 ↗

A visit does not guarantee a prescription. Medication, labs, and other third-party costs are separate.

JellyMed

Your joy deserves backup.

General information, not personal medical advice. JellyMed is not emergency care. For an emergency, call 911.