References UK clinical guidance from the NHS, the British HIV Association (BHIVA), and the British Association for Sexual Health and HIV (BASHH). Last updated: April 2026.
Sleep problems affect up to 70% of people living with HIV, according to research published in HIV Medicine. Insomnia, poor sleep quality, and daytime fatigue are significantly more common in HIV-positive individuals than in the general population. The causes are multifactorial: HIV itself, antiretroviral side effects, mental health, and lifestyle factors all play a role.
If you’re living with HIV and struggling with sleep, understanding the causes can help you find solutions.
Why HIV Affects Sleep
The virus itself
HIV-related chronic inflammation and immune activation can disrupt sleep-wake cycles. Elevated inflammatory markers (IL-6, TNF-alpha) are associated with poor sleep quality. Even with well-controlled HIV on ART, residual inflammation may affect sleep regulation.
Some ART drugs are known to affect sleep:
- Efavirenz: The most well-known sleep disruptor. Causes vivid dreams, insomnia, and nightmares in 20-30% of patients
- Dolutegravir: Can cause insomnia in some patients, particularly when taken in the evening
- Rilpivirine: Generally sleep-neutral but can cause insomnia in some
- Doravirine: Has the lowest rate of sleep-related side effects among NNRTIs
Mental health
Depression and anxiety are more common in people with HIV and are major drivers of insomnia. The stress of living with a chronic condition, stigma, and disclosure concerns can all affect sleep.
Other factors
- Night sweats (can occur with HIV, particularly with low CD4 counts)
- Pain (neuropathy, headaches)
- Substance use (alcohol, recreational drugs)
- Irregular schedules (shift work, social factors)
How to Improve Sleep with HIV
- Talk to your HIV specialist about sleep-disrupting medications. Switching from efavirenz to a sleep-neutral drug (doravirine, dolutegravir morning dose) can make a significant difference
- Take dolutegravir in the morning if it causes insomnia at night
- Maintain a consistent sleep schedule — same bedtime and wake time daily
- Limit screen time before bed (blue light suppresses melatonin)
- Avoid caffeine after midday and alcohol before bed
- Exercise regularly but not within 3 hours of bedtime
- Address mental health: CBT for insomnia (CBT-i) is effective and available via NHS talking therapies
- Keep the bedroom cool — particularly important if night sweats are an issue
Read more: What is HIV? | ART side effects | Mental health and HIV
Frequently Asked Questions
Can poor sleep affect HIV treatment?
Yes. Poor sleep can reduce medication adherence (forgetting doses when exhausted), impair immune function, and worsen mental health. Good sleep supports overall health and treatment success.
Should I take sleeping pills?
Discuss with your doctor first. Some sleeping medications interact with ART. Short-term use may be appropriate, but addressing the underlying cause (medication side effects, mental health) is more effective long-term. CBT-i is recommended as first-line treatment for chronic insomnia.
Will changing my HIV medication help me sleep better?
If your insomnia started when you began or changed ART, switching to a different drug may help significantly. Efavirenz to doravirine switches show the biggest sleep quality improvements in clinical studies.
Related reading
- A to Z of Sex: Sexual Health Terms Explained
- Alcohol and HIV: What You Need to Know
- Anxiety and HIV: Coping and Getting Support
- Are All STIs Curable?
- Blood Problems and HIV: Anaemia, Low Platelets and More
Sources
- NHS — Sexual health conditions
- BASHH — UK clinical guidelines for STI management
- British HIV Association (BHIVA) — HIV treatment guidelines
- Terrence Higgins Trust — sexual health information
- UK Health Security Agency — STI surveillance data

Steve Page is a recognised expert on Sexually Transmitted Diseases (STDs) and STD treatments, having published numerous articles in peer-reviewed journals and presented his research at conferences around the world. He has an in-depth understanding of the latest medical research on STDs, and is an advocate for the development of new treatments and protocols to improve the health of those affected. In addition to his research, he has dedicated his career to understanding the causes and symptoms of STDs, as well as how to best treat those impacted.



