ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.2 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| URL | https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html | |||||||||
| Last Crawled | 2026-04-18 15:51:07 (4 days ago) | |||||||||
| First Indexed | 2018-05-05 10:59:55 (7 years ago) | |||||||||
| HTTP Status Code | 200 | |||||||||
| Content | ||||||||||
| Meta Title | Causes of Insomnia | Stanford Health Care | |||||||||
| Meta Description | One of the common causes of insomnia is stress related to family or work situations, with differences in how people react to stress likely playing a role. | |||||||||
| Meta Canonical | null | |||||||||
| Boilerpipe Text | What causes insomnia?
The everyday stresses of life—your job, your family or relationships, money problems, jet lag—can keep you from sleeping well. It's also common to have trouble sleeping when you have a fever or an injury. These stresses are often temporary.
Your habits and activities before bedtime, such as drinking coffee, watching TV, or using the computer, can also affect how well you sleep.
And some medical conditions, medicines, and other substances can cause sleep problems that last a long time. These include:
Sleep apnea.
Sleep apnea is breathing that stops during sleep. The problem can be mild or severe, based on how often your lungs don't get enough air. People with sleep apnea often have sleep problems. They also have a higher risk of high blood pressure.
Restless legs syndrome.
This is a problem that produces strong discomfort, aching, or twitching deep in the toes, ankles, knees, or hips—often during sleep. The symptoms can wake you up.
Heart failure.
Many people with heart failure have trouble sleeping. This may be because of trouble breathing or because of depression or anxiety. Many people with heart failure also have sleep apnea.
Ongoing (chronic) pain.
Pain can make it hard to sleep, and chronic pain can lead to sleep deprivation, or sleep debt. Chronic pain has many causes, such as back problems or arthritis.
Mental health problems.
Anxiety, depression, and mania can cause sleep problems.
Medicines and other substances.
Many medicines can cause sleep problems. Examples include antidepressants, cold medicines, steroids, and nonprescription diet aids. Alcohol, caffeine, nicotine, and illegal drugs can also interfere with your sleep.
If you have an illness that's keeping you from sleeping, it can sometimes become a bad cycle. The illness keeps you from sleeping well. And without enough sleep, your body can't fight the illness as well. | |||||||||
| Markdown | [Skip to main content](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html#main-container)
**Notice:** Users may be experiencing issues with displaying some pages on stanfordhealthcare.org. We are working closely with our technical teams to resolve the issue as quickly as possible. Thank you for your patience.
[Menu](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
[](https://stanfordhealthcare.org/)
[Search](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
[Menu](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
[](https://stanfordhealthcare.org/)
[Search](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
[Home](https://stanfordhealthcare.org/)
[Close](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
[Doctors](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_phy&q1=true&page=1)
[Clinics & Locations](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_clinic&q1=true&page=1)
[Conditions & Treatments](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_type&q1=%2520&page=1)
[Clinical Trials](https://stanfordhealthcare.org/application/ct.html)
[MyHealth Login](https://myhealth.stanfordhealthcare.org/)
***
[Patients & Visitors](https://stanfordhealthcare.org/for-patients-visitors.html)
[Billing](https://stanfordhealthcare.org/for-patients-visitors/billing.html)
[Insurance](https://stanfordhealthcare.org/for-patients-visitors/health-insurance-plans.html)
[Financial Assistance](https://stanfordhealthcare.org/for-patients-visitors/financial-assistance.html)
[Medical Records](https://stanfordhealthcare.org/for-patients-visitors/medical-records.html)
[Contact Us](https://stanfordhealthcare.org/about-us/contact.html)
[Video Visits](https://stanfordhealthcare.org/for-patients-visitors/video-visits/scheduling-a-video-visit.html)
[Get a Second Opinion](https://stanfordhealthcare.org/second-opinion/overview.html)
[COVID-19 Resource Center](https://stanfordhealthcare.org/discover/covid-19-resource-center.html)
[Healthcare Professionals](https://stanfordhealthcare.org/health-care-professionals.html)
[Referring Physicians](https://stanfordhealthcare.org/health-care-professionals/physician-referral-center.html)
[Nursing](https://stanfordhealthcare.org/health-care-professionals/nursing.html)
[Allied Healthcare](https://stanfordhealthcare.org/health-care-professionals/allied-healthcare.html)
[About Us](https://stanfordhealthcare.org/about-us.html)
[Quality & Safety](https://stanfordhealthcarequality.com/)
[Facilities Services & Planning](https://stanfordhealthcare.org/about-us/facilities-services-and-planning.html)
[Sustainability](https://stanfordhealthcare.org/sustainability-program-office/sustainability-program-office.html)
[Careers](https://careers.stanfordhealthcare.org/)
[Newsroom](https://stanfordhealthcare.org/newsroom.html)
[Make a Donation](http://medicalgiving.stanford.edu/)
[Stanford Health Care – Now](https://stanfordhealthcare.org/stanford-health-care-now.html)
- [Doctors & Providers](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_phy&q1=true&page=1)
- [Clinics & Locations](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_clinic&q1=true&page=1)
- [Conditions & Treatments](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_type&q1=condition&page=1)
- [Patients & Visitors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
- [MyHealth](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
- [Billing](https://stanfordhealthcare.org/for-patients-visitors/billing.html)
- [Insurance](https://stanfordhealthcare.org/for-patients-visitors/health-insurance-plans.html)
- [Medical Records](https://stanfordhealthcare.org/for-patients-visitors/medical-records.html)
- [Support Groups](https://stanfordhealthcare.org/for-patients-visitors/support-groups.html)
- [Help Paying Your Bill](https://stanfordhealthcare.org/for-patients-visitors/financial-assistance.html)
- [COVID-19 Resource Center](https://stanfordhealthcare.org/discover/covid-19-resource-center.html)
- [Community Health](https://stanfordhealthcare.org/about-us/community-partnerships.html)
- [Locations and Parking](https://stanfordhealthcare.org/for-patients-visitors/locations-and-parking.html)
- [Visitor Policy](https://stanfordhealthcare.org/discover/covid-19-resource-center/patient-care/visitor-policy.html)
- [Hospital Check-in](https://stanfordhealthcare.org/for-patients-visitors/hospital-check-in.html)
- [Video Visits](https://stanfordhealthcare.org/for-patients-visitors/video-visits/scheduling-a-video-visit.html)
- [International Patients](https://stanfordhealthcare.org/for-patients-visitors/international-services.html)
- [Contact Us](https://stanfordhealthcare.org/about-us/contact.html)
[View All Information for Patients & Visitors](https://stanfordhealthcare.org/for-patients-visitors.html)
We are available to assist you 24/7.
650-498-3333
[GuestServices@stanfordhealthcare.org](mailto:GuestServices@stanfordhealthcare.org)
[View the changes to our visitor policy](https://stanfordhealthcare.org/stanford-health-care-now/2020/novel-coronavirus/updated-visitor-policy.html)
[View information for Guest Services](https://stanfordhealthcare.org/for-patients-visitors/guest-services.html)
## New to MyHealth?
**Manage Your Care From Anywhere.**
Access your health information from any device with MyHealth. You can message your clinic, view lab results, schedule an appointment, and pay your bill.
#### ALREADY HAVE AN ACCESS CODE?
[Activate Account](https://myhealth.stanfordhealthcare.org/#/activation/lookup=true)
#### DON'T HAVE AN ACCESS CODE?
[Create a New Account](https://myhealth.stanfordhealthcare.org/#/activate-create)
***
#### NEED MORE DETAILS?
[Learn More about MyHealth](https://stanfordhealthcare.org/for-patients-visitors/myhealth.html)
[Learn More about Video Visits](https://stanfordhealthcare.org/for-patients-visitors/video-visits/connecting-to-a-video-visit.html)
#### MyHealth for Mobile
[Get the iPhone MyHealth app](https://itunes.apple.com/us/app/stanford-health-care-myhealth/id922978966?mt=8)[Get the Android MyHealth app](https://play.google.com/store/apps/details?id=org.stanfordhealthcare.myhealth)
#### WELCOME BACK
[Forgot Username](https://myhealth.stanfordhealthcare.org/?linksource=webSHC#/forgot-username) or [Password?](https://myhealth.stanfordhealthcare.org/?linksource=webSHC#/forgot-password)
[Need Help?](https://myhealth.stanfordhealthcare.org/ContactHelpDesk)
# Causes of Insomnia
- [About](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html#about)
- [About](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html#about)
[Overview](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia.html)
[Causes](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
- [Biological factors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/biological-factors.html)
- [Environmental factors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/environmental-factors.html)
- [Who is at risk?](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/who-is-at-risk.html)
[Types](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/types.html)
[Diagnosis](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis.html)
- [Polysomnogram](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis/polysomnogram.html)
- [Actigraphy](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis/actigraphy.html)
[Treatments](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments.html)
- [Cognitive behavioral therapy for insomnia (CBTI)](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments/coginitive-behavioral-therapy-insomnia.html)
- [Treating insomnia with medications](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments/treating-insomnia-with-medications.html)
[Overview](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia.html)
[Causes](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
- [Biological factors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/biological-factors.html)
- [Environmental factors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/environmental-factors.html)
- [Who is at risk?](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/who-is-at-risk.html)
[Types](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/types.html)
[Diagnosis](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis.html)
- [Polysomnogram](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis/polysomnogram.html)
- [Actigraphy](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis/actigraphy.html)
[Treatments](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments.html)
- [Cognitive behavioral therapy for insomnia (CBTI)](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments/coginitive-behavioral-therapy-insomnia.html)
- [Treating insomnia with medications](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments/treating-insomnia-with-medications.html)
### What causes insomnia?
The everyday stresses of life—your job, your family or relationships, money problems, jet lag—can keep you from sleeping well. It's also common to have trouble sleeping when you have a fever or an injury. These stresses are often temporary.
Your habits and activities before bedtime, such as drinking coffee, watching TV, or using the computer, can also affect how well you sleep.
And some medical conditions, medicines, and other substances can cause sleep problems that last a long time. These include:
Sleep apnea.
Sleep apnea is breathing that stops during sleep. The problem can be mild or severe, based on how often your lungs don't get enough air. People with sleep apnea often have sleep problems. They also have a higher risk of high blood pressure.
Restless legs syndrome.
This is a problem that produces strong discomfort, aching, or twitching deep in the toes, ankles, knees, or hips—often during sleep. The symptoms can wake you up.
Heart failure.
Many people with heart failure have trouble sleeping. This may be because of trouble breathing or because of depression or anxiety. Many people with heart failure also have sleep apnea.
Ongoing (chronic) pain.
Pain can make it hard to sleep, and chronic pain can lead to sleep deprivation, or sleep debt. Chronic pain has many causes, such as back problems or arthritis.
Mental health problems.
Anxiety, depression, and mania can cause sleep problems.
Medicines and other substances.
Many medicines can cause sleep problems. Examples include antidepressants, cold medicines, steroids, and nonprescription diet aids. Alcohol, caffeine, nicotine, and illegal drugs can also interfere with your sleep.
If you have an illness that's keeping you from sleeping, it can sometimes become a bad cycle. The illness keeps you from sleeping well. And without enough sleep, your body can't fight the illness as well.
[Previous Section](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) [Next Section](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
## Condition Spotlight
[![]()](https://stanfordhealthcare.org/stanford-health-care-now/health-library-videos/manber-sleep.html)
[Dr. Rachel Manber Discusses Sleeping Well as We Age Watch Video](https://stanfordhealthcare.org/stanford-health-care-now/health-library-videos/manber-sleep.html)
## Clinical Trials
Clinical trials are research studies that evaluate a new medical approach, device, drug, or other treatment. As a Stanford Health Care patient, you may have access to the latest, advanced clinical trials.
Open trials refer to studies currently accepting participants. Closed trials are not currently enrolling, but may open in the future.
[Closed Trials](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html)
[Medication and behavioral/psychological treatments for insomnia Insomnia](https://stanfordhealthcare.org/trials/manual/medication-behavioral-psychological-treatments-insomnia.html)
[TRIAD - Treatment of Insomnia and Depression Insomnia](https://stanfordhealthcare.org/trials/t/NCT00767624.html)
- [Find a Doctor or Provider](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_phy&q1=true&page=1)
- [Find Conditions & Treatments](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_type&q1=%2520&page=1)
- [Find a Stanford clinic](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_clinic&q1=true&page=1)
- [For Patients & Visitors](https://stanfordhealthcare.org/for-patients-visitors.html)
- [Billing](https://stanfordhealthcare.org/for-patients-visitors/billing.html)
- [Help Paying Your Bill](https://stanfordhealthcare.org/for-patients-visitors/financial-assistance.html)
- [Protections Against Surprise Medical Bills](https://stanfordhealthcare.org/for-patients-visitors/no-surprises-act.html)
- [Price Transparency](https://stanfordhealthcare.org/for-patients-visitors/price-transparency.html)
- [Insurance](https://stanfordhealthcare.org/for-patients-visitors/health-insurance-plans.html)
- [Hospital Check-in](https://stanfordhealthcare.org/for-patients-visitors/hospital-check-in.html)
- [Contact Us](https://stanfordhealthcare.org/about-us/contact.html)
- [Video Visits](https://stanfordhealthcare.org/for-patients-visitors/video-visits/scheduling-a-video-visit.html)
- [Send a Greeting Card](https://stanfordhealthcare.org/Ecard/ecard-intro-page.html)
- [Get a Second Opinion](https://stanfordhealthcare.org/second-opinion/overview.html)
- [COVID-19 Resource Center](https://stanfordhealthcare.org/discover/covid-19-resource-center.html)
- [Behavioral Standards](https://stanfordhealthcare.org/for-patients-visitors/behavioral-standards.html)
- [Patient Privacy Policy](https://stanfordhealthcare.org/for-patients-visitors/guest-services/patient-privacy.html)
- [Make a Gift](http://medicalgiving.stanford.edu/)
- [About Us](https://stanfordhealthcare.org/about-us.html)
- [Quality & Safety](https://stanfordhealthcarequality.com/)
- [Annual Report](https://stanfordhealthcare.org/about-us/annual-report.html)
- [300 Pasteur Drive Renewal Program](https://stanfordhealthcare.org/about-us/300-pasteur-renewal-program.html)
- [Sustainability](https://stanfordhealthcare.org/sustainability-program-office/sustainability-program-office.html)
- [Stanford Health Care – Now](https://stanfordhealthcare.org/stanford-health-care-now.html)
- [For Healthcare Professionals](https://stanfordhealthcare.org/health-care-professionals.html)
- [Referring Physicians](https://stanfordhealthcare.org/health-care-professionals/physician-referral-center.html)
- [Nursing](https://stanfordhealthcare.org/health-care-professionals/nursing.html)
- [Allied Healthcare Professionals](https://stanfordhealthcare.org/health-care-professionals/allied-healthcare.html)
[First Responders](https://stanfordhealthcare.org/content/shc/en-tools/modals/first-responders.html)
- [Newsroom](https://stanfordhealthcare.org/newsroom.html)
- [Careers](https://careers.stanfordhealthcare.org/)
- [Volunteering](https://stanfordhealthcare.org/for-patients-visitors/volunteering.html)
- [Vendors](https://stanfordhealthcare.org/for-vendors/vendors.html)
- [Stanford Medicine Partners](https://stanfordmedicinepartners.org/)
- [Stanford Health Care Tri-Valley](https://stanfordhealthcare.org/tri-valley)
- [Stanford Medicine](http://med.stanford.edu/)
- [Stanford Medicine Children's Health](http://www.stanfordchildrens.org/)
- [Stanford University](http://www.stanford.edu/)
[](https://stanfordhealthcare.org/)
[Website Terms of Use](https://stanfordhealthcare.org/about-us/legal-disclaimer.html)
[Website Privacy Policy](https://stanfordhealthcare.org/about-us/website-privacy-policy.html)
[Code of Conduct](https://stanfordhealthcare.org/about-us/conduct.html)
[Notice of Nondiscrimination](https://stanfordhealthcare.org/about-us/notice-of-nondiscrimination.html)
© 2026 Stanford Health Care. All Rights Reserved.
Close | |||||||||
| Readable Markdown | ### What causes insomnia?
The everyday stresses of life—your job, your family or relationships, money problems, jet lag—can keep you from sleeping well. It's also common to have trouble sleeping when you have a fever or an injury. These stresses are often temporary.
Your habits and activities before bedtime, such as drinking coffee, watching TV, or using the computer, can also affect how well you sleep.
And some medical conditions, medicines, and other substances can cause sleep problems that last a long time. These include:
Sleep apnea.
Sleep apnea is breathing that stops during sleep. The problem can be mild or severe, based on how often your lungs don't get enough air. People with sleep apnea often have sleep problems. They also have a higher risk of high blood pressure.
Restless legs syndrome.
This is a problem that produces strong discomfort, aching, or twitching deep in the toes, ankles, knees, or hips—often during sleep. The symptoms can wake you up.
Heart failure.
Many people with heart failure have trouble sleeping. This may be because of trouble breathing or because of depression or anxiety. Many people with heart failure also have sleep apnea.
Ongoing (chronic) pain.
Pain can make it hard to sleep, and chronic pain can lead to sleep deprivation, or sleep debt. Chronic pain has many causes, such as back problems or arthritis.
Mental health problems.
Anxiety, depression, and mania can cause sleep problems.
Medicines and other substances.
Many medicines can cause sleep problems. Examples include antidepressants, cold medicines, steroids, and nonprescription diet aids. Alcohol, caffeine, nicotine, and illegal drugs can also interfere with your sleep.
If you have an illness that's keeping you from sleeping, it can sometimes become a bad cycle. The illness keeps you from sleeping well. And without enough sleep, your body can't fight the illness as well. | |||||||||
| ML Classification | ||||||||||
| ML Categories |
Raw JSON{
"/Health": 999,
"/Health/Mental_Health": 781,
"/Health/Mental_Health/Anxiety_and_Stress": 721
} | |||||||||
| ML Page Types |
Raw JSON{
"/Article": 983,
"/Article/Definitions": 772
} | |||||||||
| ML Intent Types |
Raw JSON{
"Informational": 999
} | |||||||||
| Content Metadata | ||||||||||
| Language | en | |||||||||
| Author | null | |||||||||
| Publish Time | not set | |||||||||
| Original Publish Time | 2018-05-05 10:59:55 (7 years ago) | |||||||||
| Republished | No | |||||||||
| Word Count (Total) | 830 | |||||||||
| Word Count (Content) | 302 | |||||||||
| Links | ||||||||||
| External Links | 18 | |||||||||
| Internal Links | 76 | |||||||||
| Technical SEO | ||||||||||
| Meta Nofollow | No | |||||||||
| Meta Noarchive | No | |||||||||
| JS Rendered | No | |||||||||
| Redirect Target | null | |||||||||
| Performance | ||||||||||
| Download Time (ms) | 87 | |||||||||
| TTFB (ms) | 72 | |||||||||
| Download Size (bytes) | 35,966 | |||||||||
| Shard | 85 (laksa) | |||||||||
| Root Hash | 2589037388098715685 | |||||||||
| Unparsed URL | org,stanfordhealthcare!/medical-conditions/sleep/insomnia/causes.html s443 | |||||||||