HIV drug resistance happens when the virus mutates so that one or more HIV medicines no longer keep it suppressed. It usually develops when treatment is taken inconsistently or the wrong drugs are used. A resistance test guides your clinician to a regimen that still works, and most people regain an undetectable viral load on the right combination.

2–4 wks
Acute symptoms

flu-like; many have none

10–33 days
NAT detects
23–90 days
Antibody test
no transmission
U=U

when undetectable

HIV timing at a glance. Source: CDC.
HIV timing at a glance
ItemValue
Acute symptoms2–4 wks — flu-like; many have none
NAT detects10–33 days
Antibody test23–90 days
U=Uno transmission — when undetectable

What HIV drug resistance actually is

HIV copies itself fast and sloppily. Every time the virus replicates inside a CD4 cell, it makes small genetic typos, and some of those typos change the exact protein that an HIV medicine is built to block. When a drug can no longer latch onto its target, the virus carrying that mutation keeps multiplying while everything else is held back, and that surviving strain becomes the dominant one. The medicine is still in your body, but the virus has learned to ignore it.

This matters because HIV isn't curable, only controllable CDC. Even on perfect treatment, latent virus stays parked in reservoir cells, and the only thing keeping it down is the daily pressure from your medicines. If a regimen stops applying that pressure because of resistance, the viral load climbs back up, the CD4 count can fall, and over time untreated HIV progresses through chronic infection toward AIDS, defined by a CD4 count under 200 cells/mm³ or an opportunistic infection StatPearls.

The biggest single cause is inconsistent dosing. Missing pills lets drug levels dip into a window that's high enough to select for mutants but too low to stop them. Resistance can also be transmitted, since a person can acquire HIV that's already resistant from someone else. That's one reason starting a prevention pill the wrong way matters. Beginning oral PrEP while you unknowingly already have HIV can breed resistance, so PrEP always requires a confirmed negative test first CDC PrEP.

How resistance is treated and which drugs are used

Treatment for resistant HIV is still antiretroviral therapy (ART), a combination of medicines rather than a single drug. The classes your clinician chooses from are integrase inhibitors, NRTIs, NNRTIs, and protease inhibitors, and modern regimens often combine these into a single daily pill CDC ART. When resistance is suspected, the plan is to swap out the drug the virus has outsmarted and build a new combination from agents the virus is still fully susceptible to.

The decision isn't a guess. A genotype resistance test sequences your virus and reports which specific mutations are present and which drugs they affect, so your clinician can match you to a regimen that the lab predicts will fully suppress it. Switching is routine, and the goal stays the same: drive the viral load back to undetectable. The exact drugs and doses are individualized and beyond what any article should prescribe. For the full picture of how regimens are chosen and started, see our guide to hiv treatment.

What resistance testing and switching are actually like

In practice, the first clue is usually a routine blood draw showing your viral load creeping up after it had been undetectable, or never reaching undetectable in the first place. Genotype testing is part of that same standard blood work, so there's no extra procedure for you. Most labs need a detectable viral load to read the resistance pattern, so testing is timed for when the virus is measurable rather than fully suppressed.

Before assuming the virus has changed, a good clinician asks the obvious question first: have you been able to take every dose? Far more 'failures' come from missed pills, drug interactions, or affordability gaps than from true resistance, and those are fixable without a brand-new regimen. The most common mistake patients make is quietly stopping pills when side effects hit or a prescription lapses, then feeling fine, because HIV has no symptoms for years even as resistance builds. If something about your medicine isn't working for you, say so before you skip doses; switching to a better-tolerated single pill is usually easy. Once a new regimen starts, most people return to undetectable within about six months CDC U=U.

Do partners need anything?

Resistance itself isn't something you 'treat' in a partner, but it does affect them. A person on effective treatment with an undetectable viral load does not transmit HIV through sex. That's U=U, and it held across the PARTNER, Opposites Attract, and PARTNER2 studies through more than a hundred thousand condomless sex acts with zero linked transmissions PARTNER. If resistance pushes your viral load back up before a new regimen brings it down, that protection lapses until you're suppressed again.

During that gap, condoms and PrEP for an HIV-negative partner close the risk. Because resistant virus can be transmitted, anyone newly exposed should be screened so they start the right regimen if needed. Partners who aren't sure of their own status can get tested, and if a partner thinks they were exposed recently, our guide on when to test after exposure explains timing and window periods.

Follow-up: monitoring after a switch

There's no one-time 'test of cure' for HIV because it isn't cured, so monitoring is lifelong. After you start or switch a regimen, your clinician checks viral load and CD4 count at intervals to confirm the new combination is driving the virus down. A steady fall toward undetectable means the regimen is working; a plateau or rebound triggers another resistance check and another look at adherence.

Staying suppressed is what keeps you well. An undetectable viral load controls the virus but doesn't eradicate it, because latent virus persists in reservoir cells and rebounds if treatment stops HHS clinicalinfo. The appointments and refills never really end, even when you feel completely well.

What happens if resistant HIV goes untreated

If resistance is ignored and the virus replicates unchecked, HIV follows its natural course. The CD4 count, your supply of key immune cells, falls, and once it drops below 200 cells/mm³, or an opportunistic infection appears, the infection has progressed to AIDS, the most severe stage. At that point the immune system can't defend against infections and cancers it would normally shrug off.

This is largely avoidable. A 20-year-old who stays on effective treatment before their CD4 falls below 200 now has a life expectancy approaching that of the general population Lancet HIV. Resistance doesn't change that; it just means finding the next regimen that works, which is almost always possible.

Preventing resistance going forward

The single best defense is consistent adherence. Taking your pills the same way every day keeps drug levels high enough that the virus never gets the foothold it needs to mutate. Practical habits that help:

  • Tie your dose to something you already do daily, and use refill reminders so you never run out. A lapse of even a few days is when resistance can take hold.
  • Tell your clinician about every other medicine and supplement, since interactions can lower HIV-drug levels without you noticing.
  • Never start oral PrEP without a confirmed negative HIV test, because beginning it with undiagnosed HIV is a known route to resistance.
  • Don't stop or ration pills because of cost or side effects; ask about a different single-pill regimen or assistance programs instead.

For partners, the standard CDC prevention toolkit still applies: condoms, PrEP, PEP if there's a recent exposure, treatment-as-prevention, and regular testing. PEP only works as an emergency. It must start within 72 hours of a possible exposure and runs for a full 28 days CDC PEP. If you're choosing a place to test or start PrEP, you can compare testing providers to find one that fits.

When to see a clinician

Call your HIV provider if your viral load was undetectable and is now detectable again, if you've missed several days of medicine, or if side effects are making you skip doses. These are the moments to adjust the plan, not to disappear. If you've had a recent possible exposure to HIV, that's a same-day urgent-care or ER conversation about PEP, because the 72-hour window doesn't wait. And if you've never been tested or it's been a while, a quick finger-stick or oral-swab test gives results in minutes.