HIV and Drug Use: Risks, Testing and Prevention
Drug use can raise the chance of getting HIV through shared injection equipment and riskier sex. Testing, PrEP, syringe services and treatment can protect your health and the people you love.

Key takeaways
- CDC says sharing needles, syringes or other injection equipment such as cookers can spread HIV.
- Drugs and alcohol can lower inhibitions and affect decisions about sex, which can raise HIV risk even without injecting.
- CDC recommends an HIV test at least once for everyone ages 13 to 64, and at least yearly for people who share injection equipment.
- PrEP greatly reduces the chance of getting HIV from sex or injection drug use when taken as prescribed.
- HIV treatment can make the virus undetectable, which prevents transmission, and it can be combined with addiction treatment.
If you use drugs, or you love someone who does, HIV may be one of the worries sitting in the back of your mind. HIV and drug use are closely linked, but the link is not a mystery, and it is not a life sentence. The National Institute on Drug Abuse (NIDA) describes the HIV epidemic and the addiction and overdose crisis as closely intertwined. Knowing how HIV spreads, how to get tested and which prevention tools exist can protect your health right now. This guide explains the risks without judgment and covers testing, PrEP, syringe services and treatment for both HIV and substance use.
How are HIV and drug use connected?
NIDA says people who use drugs may have a higher risk of getting HIV for two main reasons: sharing equipment to inject drugs, and the complex role drug use can play in sexual transmission. People who use drugs may also face extra barriers to the tools that prevent, diagnose and treat HIV. Communities with high rates of certain kinds of drug use can be vulnerable to HIV outbreaks.
For a broader look at how substance use affects health and how it is treated, see our overview of addiction.
Injection drug use and HIV
The Centers for Disease Control and Prevention (CDC) explains that you can get HIV by sharing needles, syringes or other drug injection equipment, such as cookers, with someone who has HIV. Used equipment may contain someone else’s blood. CDC also notes that the opioid crisis has brought more blood-borne infections, including viral hepatitis, HIV and bacterial and fungal infections. These spread through shared syringes and drug preparation equipment, and through low vaccination rates in groups at risk.
CDC’s prevention work for people who inject drugs also targets hepatitis B and hepatitis C. If you inject, it is worth asking about testing for hepatitis as well as HIV. Our guide to opioid addiction covers other risks of injecting opioids, including overdose.
Sexual risk, stimulants and alcohol
You do not have to inject to face a higher risk. CDC says that using drugs or drinking alcohol can change your judgment, lower your inhibitions and affect decisions about sex or drug use. That can make it more likely that someone has anal or vaginal sex without protection, such as a condom or medicine to prevent HIV. CDC adds that people who inject drugs may be more likely to engage in sexual behaviors that raise their chance of getting HIV.
NIDA points to research on methamphetamine use and HIV among men who have sex with men as one example of how drug use and sexual risk overlap. If stimulant use is part of your life, our guide to meth addiction explains its effects and treatment options.
CDC’s practical tip: if you are going somewhere you know you will be drinking or using drugs, bring a condom. Having another sexually transmitted infection can also make it easier to get or pass HIV, so regular STI testing helps.
HIV testing: who should get tested and how
CDC says the only way to know your HIV status is to get tested. It recommends that everyone ages 13 to 64 get tested at least once. You should get tested at least once a year if you have shared needles, syringes or other injection equipment, have had more than one sex partner since your last test, or have had sex with someone whose history you do not know.
Types of tests and window periods
No HIV test can find the virus right after exposure. CDC calls the gap the window period, and it depends on the test:
| Test type | Usually detects HIV (per CDC) |
|---|---|
| Nucleic acid test (NAT), blood from a vein | 10 to 33 days after exposure |
| Antigen/antibody lab test, blood from a vein | 18 to 45 days after exposure |
| Rapid antigen/antibody test, finger stick | 18 to 90 days after exposure |
| Antibody test (most rapid tests and self-tests) | 23 to 90 days after exposure |
If you test negative after a possible exposure, CDC advises testing again after the window period for the test you took. A positive self-test or community test needs a follow-up test from a health care provider to confirm it.
Where to get tested
CDC says many clinics, community health centers, hospitals and substance use programs offer HIV tests. Self-tests give results in about 20 minutes and are sold in pharmacies and online. Most tests are free or low cost, and gettested.cdc.gov can help you find testing near you.
PrEP: medicine that prevents HIV
PrEP (pre-exposure prophylaxis) is medicine, as pills or shots, for people without HIV who may be exposed through sex or injection drug use. CDC says PrEP greatly reduces the chance of getting HIV when taken as prescribed. It does not prevent other STIs.
Key points from CDC:
- You may be a good candidate if you share needles, syringes or other injection equipment, or have certain sexual risks.
- You need an HIV test before starting PrEP and regular visits while taking it.
- Any licensed prescriber can prescribe PrEP, and in some states pharmacists can too.
- Most insurance plans and state Medicaid programs cover PrEP, and the Affordable Care Act requires it to be free under almost all health plans, as of 2026. Check current rules with your plan.
Ask a health care provider which type of PrEP fits your situation and how to take it.
Syringe services programs and harm reduction
CDC describes syringe services programs (SSPs) as community-based programs that can offer sterile syringes and injection equipment, safe disposal, vaccination, testing and links to infectious disease care and substance use treatment. According to CDC, nearly 30 years of research shows comprehensive SSPs are safe, effective and cost-saving, do not increase illegal drug use or crime, and help reduce the spread of viral hepatitis, HIV and other infections.
NIDA supports research on evidence-based harm-reduction strategies as part of its HIV work. Learn more in our guides to harm reduction, needle exchange and safe injection sites.
Treating HIV and addiction together
There is no cure for HIV, but CDC says treatment (antiretroviral therapy, or ART) can lower the amount of virus in the body so much that a test cannot detect it. An undetectable viral load keeps people healthier and prevents transmission to others. CDC recommends treatment for all people with HIV, and notes that an HIV care team can include substance use specialists, social workers and case managers.
NIDA studies integrated care, meaning substance use treatment delivered alongside HIV care. If you are living with HIV and also using drugs or alcohol, you do not have to choose one problem to fix first. Ask your HIV provider about addiction treatment, or ask your addiction program about HIV care.
Where to start
Pick one step you can take this week: order a self-test, visit a local syringe services program, or ask a clinic about PrEP. For addiction treatment, visit FindTreatment.gov or call the free SAMHSA National Helpline at 1-800-662-4357. If someone is having an overdose or a medical emergency, call 911.
Frequently asked questions
Can you get HIV from sharing drug equipment other than needles?
Yes. CDC says HIV can spread through sharing needles, syringes or other drug injection equipment, such as cookers, with someone who has HIV. Using new, sterile equipment every time lowers the risk.
Does using drugs without injecting raise HIV risk?
It can. CDC says drugs and alcohol can lower inhibitions and affect decisions about sex, making sex without a condom or HIV prevention medicine more likely. Testing and PrEP can help.
How often should people who inject drugs get tested for HIV?
CDC recommends at least once a year for anyone who shares needles, syringes or other injection equipment. Talk with a health care provider about whether testing more often makes sense for you.
Can people who use drugs take PrEP?
Yes. CDC says PrEP is for people without HIV who may be exposed through sex or injection drug use. It must be taken as prescribed, and you need an HIV test before starting.
Can HIV treatment work if someone is still using drugs?
CDC recommends HIV treatment for everyone with HIV, and care teams can include substance use specialists. NIDA researches integrated care that combines HIV care with addiction treatment. Talk openly with your provider so they can support you.
Sources
This article is for general information and is not medical advice. If you are worried about your health or someone else’s, talk to a doctor or call one of the free helplines below.