sofidexFor patientsAre you a clinician? Clinical site

Health Library  ›  Questions  ›  What causes insomnia?

Question · Insomnia

What causes insomnia?

Insomnia rarely has one simple cause. It often starts with stress, illness, pain, travel, hormonal changes, or a disrupted schedule, then continues because bedtime becomes linked with wakefulness, frustration, or worry.

QuestionReviewed 2026-11-19sofidex editorial standards

Common triggers
Stress, grief, illness, pain, travel, shift work, menopause, pregnancy, or changing responsibilities
Habits that can maintain it
Irregular sleep times, long daytime naps, or spending extended periods awake in bed
Substances that may affect sleep
Caffeine, nicotine, alcohol, cannabis, and some medicines
Possible related conditions
Anxiety, depression, chronic pain, breathing problems, reflux, or an overactive thyroid

Why insomnia can continue

A trigger may cause the first difficult nights. The brain can then start linking bedtime with being awake, frustrated, or worried. Watching the clock or trying hard to force sleep may increase alertness and make the pattern harder to break.

Irregular sleep times, long naps, and lying awake in bed for extended periods can also keep insomnia going. Ongoing stress, changing work hours, or frequently interrupted sleep may increase the risk.

Health and sleep conditions

Anxiety, depression, post-traumatic stress, chronic pain, breathing problems, an overactive thyroid, reflux, and frequent urination can disturb sleep.

Other sleep conditions may resemble insomnia. Sleep apnea can cause loud snoring, gasping, or repeated breathing pauses. Restless legs syndrome causes an uncomfortable urge to move the legs while resting, and a disrupted body clock can make sleep difficult at the expected time.

Substances and medicines

Caffeine, nicotine, alcohol, cannabis, and other substances may interfere with sleep. Alcohol may cause drowsiness at first but often makes sleep lighter and more interrupted later.

Some prescription and nonprescription medicines can affect sleep, including stimulants, decongestants, corticosteroids, and some medicines for mood, breathing conditions, or blood pressure. Do not stop prescribed medicine without discussing it with the prescriber.

When to get help. Arrange an appointment if sleep problems last for several weeks, keep returning, or affect your daily life, driving, or mood, or if you have loud snoring, breathing pauses, gasping, leg discomfort, persistent pain, anxiety, or depression. Seek urgent help for very little sleep with unusually high energy, racing thoughts, severe agitation, hallucinations, confusion, or risky behavior; get emergency help for suicidal thoughts or if you cannot keep yourself safe.

Sources

  1. 1National Heart, Lung, and Blood Institute. Insomnia: Diagnosis, Treatment, and Living With . US National Institutes of Health.
  2. 2Edinger JD, Arnedt JT, Bertisch SM, et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline . Journal of Clinical Sleep Medicine . 2021;17(2):255–262.
  3. 3Qaseem A, Kansagara D, Forciea MA, Cooke M, Denberg TD. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians . Annals of Internal Medicine . 2016;165(2):125–133.
  4. 4Sateia MJ, Buysse DJ, Krystal AD, Neubauer DN, Heald JL. Clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults . Journal of Clinical Sleep Medicine . 2017;13(2):307–349.
  5. 5US Food and Drug Administration. Boxed warning for serious injuries caused by sleepwalking with certain prescription insomnia medicines . Drug Safety Communication. 2019.

Health information, not medical advice. Nothing here replaces talking to your own doctor about your own situation.