How to Prevent HIV: PrEP, Condoms, PEP, and More

HIV is highly preventable. A combination of medications, barrier methods, and routine testing can reduce transmission risk by 95% or more, depending on the strategy. The most effective approach layers multiple methods together, but even a single one can dramatically lower your chances of infection.

PrEP: The Most Effective Prevention Tool

Pre-exposure prophylaxis, or PrEP, is a medication taken by people who don’t have HIV to keep it that way. When taken as prescribed, PrEP reduces the risk of getting HIV from sex by about 99%. For people who inject drugs, it lowers the risk by at least 74%.

PrEP comes in two forms. The first is a daily oral pill. The second is an injectable version given every two months. In clinical trials, the injectable form was roughly 66% more effective than daily pills, largely because it removes the challenge of remembering to take a pill every day. After the first injection, each subsequent shot provides about 10 weeks of protective coverage.

Anyone who is sexually active or who injects drugs can talk to a provider about PrEP. Before starting, you’ll need a confirmed negative HIV test, since taking PrEP while unknowingly HIV-positive can lead to drug resistance. Screening for kidney function is required for the oral versions but not for the injectable. Most insurance plans and assistance programs cover PrEP at no cost.

Condoms and Barrier Methods

Consistent condom use reduces HIV transmission risk by 90 to 95%. That means people who use condoms every time are 10 to 20 times less likely to become infected compared to those who use them inconsistently or not at all. External (male) condoms are the most studied, but internal (female) condoms also provide a physical barrier against the virus.

The key word is “consistent.” Occasional use offers far less protection. For maximum benefit, use a new condom for every act of vaginal or anal sex, check the expiration date, and use water-based or silicone-based lubricant to reduce the chance of breakage. Condoms also protect against other sexually transmitted infections, which is a meaningful bonus since having an STI can increase vulnerability to HIV.

PEP: Emergency Prevention After Exposure

Post-exposure prophylaxis, or PEP, is a 28-day course of antiretroviral medication you take after a potential HIV exposure. It must be started within 72 hours of exposure to have the best chance of working, and sooner is better. PEP is appropriate after unprotected vaginal or anal sex with someone who has or might have HIV, after sexual assault, or after a needlestick injury.

You need to take PEP every day for the full 28 days. Stopping early reduces its effectiveness. PEP is not meant to replace ongoing prevention strategies like PrEP or condom use. It’s a backup plan, not a first-line approach.

Undetectable Means Untransmittable

If your partner is living with HIV and taking antiretroviral therapy that keeps their viral load undetectable, they cannot transmit the virus to you through sex. This is not a rough estimate. The CDC states the transmission risk is zero. This principle, known as U=U (Undetectable equals Untransmittable), is backed by large studies tracking thousands of couples where one partner was HIV-positive with an undetectable viral load. Not a single transmission occurred.

Maintaining an undetectable viral load requires consistent daily medication and regular lab monitoring. For partners of people living with HIV, knowing their treatment status and viral load provides meaningful reassurance, and it makes treatment itself one of the most powerful prevention tools available.

Safer Injection Practices

Sharing needles, syringes, or other injection equipment is one of the most efficient ways HIV spreads. Using a new, sterile needle every time you inject eliminates this route of transmission entirely. Syringe services programs (sometimes called needle exchanges) provide sterile equipment at no cost and have been shown to reduce new HIV infections among participants by about 33%. These programs also connect people to testing, treatment, and other health services.

If you inject drugs and don’t have access to a syringe services program, PrEP offers an additional layer of protection. Combining sterile equipment with PrEP provides the strongest defense against injection-related transmission.

Routine Testing

Prevention depends on knowing your status. The CDC recommends that everyone between the ages of 15 and 65 get tested for HIV at least once. Sexually active gay and bisexual men should test at least once a year, and those at higher risk may benefit from testing every three to six months. All pregnant women should be tested during their first prenatal visit, with a second test in the third trimester for those at elevated risk.

Rapid tests and at-home kits make testing easier than ever. Early detection matters because starting treatment quickly leads to an undetectable viral load faster, which protects both your health and your partners.

Preventing Transmission During Pregnancy

Without any intervention, an HIV-positive mother has a 20 to 45% chance of transmitting the virus to her baby during pregnancy, labor, or breastfeeding. With antiretroviral therapy, that risk drops to less than 2% in non-breastfeeding populations and below 5% where breastfeeding continues. In high-income settings where mothers achieve an undetectable viral load and delivery is planned carefully, the rate falls below 0.05%.

Testing early in pregnancy is essential because treatment works best when started as soon as possible. Babies born to HIV-positive mothers also receive preventive medication after birth to further reduce risk.

Medical Circumcision

Voluntary medical male circumcision reduces the risk of female-to-male HIV transmission by approximately 60%. This finding, endorsed by the World Health Organization, comes from large clinical trials conducted in eastern and southern Africa. Circumcision does not eliminate risk and does not protect female partners or receptive partners in anal sex, so it works best as one component of a broader prevention strategy rather than a standalone measure.

Layering Methods for Stronger Protection

No single prevention method needs to carry the full burden. The strongest protection comes from combining strategies. A person taking PrEP who also uses condoms consistently is protected by two independent methods, each of which alone reduces risk by 90% or more. Adding routine testing and choosing partners who know their status creates additional layers of safety. For couples where one partner is living with HIV, combining their antiretroviral treatment (which achieves U=U) with the negative partner’s PrEP use creates a level of protection that is, for practical purposes, absolute.