HIV Prevention

The Basics of HIV Prevention

Last Reviewed: April 9, 2025

Key Points

  • Protect yourself from HIV: Use condoms correctly every time you have sex, use pre-exposure prophylaxis (PrEP) if you believe you are likely to be exposed to HIV, and avoid sharing drug injection equipment. If you are exposed to HIV and haven’t taken PrEP, consider taking post-exposure prophylaxis (PEP) within 72 hours of HIV exposure.
  • Protect others if you have HIV: Take HIV medicine (called antiretroviral therapy or ART) as prescribed by your doctor. When taken as prescribed, HIV medicines can eliminate nearly any risk that you will transmit HIV to your partner through sex.
  • Prevent perinatal transmission: If you have HIV, take or continue taking HIV medicines throughout pregnancy and childbirth. Consider using PrEP if you have a partner with HIV and plan on getting pregnant.

 

How is HIV transmitted?

The person-to-person spread of human immunodeficiency virus (HIV) is called HIV transmission. People can get or transmit HIV only through specific activities, such as sex or injection drug use. HIV can be transmitted only in certain body fluids from a person who has HIV. Bodily fluids that can transmit HIV include blood, semen (“cum”), pre-seminal fluids (“pre-cum”), rectal fluids, vaginal fluids, and breast milk.

HIV transmission is only possible if these fluids come in contact with a mucous membrane, an open cut or sore, or are directly injected into the bloodstream (from a contaminated needle or syringe). Mucous membranes are found inside the rectum, the vagina, the opening of the penis, and the mouth.

In the United States, HIV is transmitted mainly by:

  • Having anal or vaginal sex with someone who has HIV without using a condom or who is not taking medicines to prevent or treat HIV.
  • Sharing injection drug equipment (“works”), such as needles or syringes, with someone who has HIV.

HIV can also be transmitted from mother to child during pregnancy, childbirth (also called labor and delivery), or breastfeeding. This is called perinatal transmission of HIV. Perinatal transmission of HIV is also called mother-to-child HIV transmission.

How is HIV not transmitted?

You cannot get HIV from:

  • Casual contact with a person who has HIV, such as a handshake, a hug, or a closed-mouth kiss (“social” kissing).
  • Contact with objects, such as toilet seats, doorknobs, or dishes used by a person who has HIV.
  • Mosquitoes, ticks, or other biting insects.
  • Other sexual activities that do not involve the exchange of body fluids (for example, touching).
  • Donating blood or receiving a blood transfusion.

Use the You Can Safely Share…With Someone With HIV infographic from HIVinfo to spread this message.

How can I reduce the chances of getting HIV?

Anyone can get HIV, but you can take steps to protect yourself from HIV.

  • Get tested for HIV. Talk to your partner about HIV testing and get tested before you have sex. Use the GetTested locator from the Centers for Disease Control and Prevention (CDC) to find an HIV testing location near you.
  • Choose safer sexual behaviors. HIV is mainly transmitted by having anal or vaginal sex without a condom or without taking medicines to prevent or treat HIV.
  • Use condoms correctly every time you have sex. Read this fact sheet from CDC on condom use.
  • Limit your number of sexual partners. The more partners you have, the more likely you are to have a partner with poorly controlled HIV or to have a partner with a sexually transmitted infection (STI). Both factors can increase the risk of HIV transmission.
  • Get tested and treated for STIs. Ask your partners to get tested and treated, too. Having an STI can increase your risk of getting HIV or transmitting it to others.
  • Talk to your health care provider about pre-exposure prophylaxis (PrEP). PrEP is an HIV prevention option if you do not have HIV but are at an increased risk of getting HIV (for example, if your partner has HIV or if you inject drugs). For more information, read the HIVinfo fact sheet on Pre-Exposure Prophylaxis (PrEP).
  • Do not inject drugs. But if you do, use only sterile drug injection equipment and water, and never share your equipment with others.

If I have HIV, how can I prevent passing it to others?

Take HIV medicines as directed by your doctor. Treatment with HIV medicines (called antiretroviral therapy or ART) helps people with HIV live long, healthy lives. ART cannot cure HIV, but it can reduce the amount of HIV in the body (called the viral load). One of the main goals of ART is to reduce a person's viral load to an undetectable level.

An undetectable viral load means that the level of HIV in the blood is too low to be detected by a viral load test. People with HIV who maintain an undetectable viral load by taking ART consistently as prescribed have no risk of transmitting HIV to sexual partners.

It is important to remember that taking HIV medicines does not prevent transmission of other STIs.

In addition to maintaining an undetectable viral load, here are some other steps you can take to make sure you prevent HIV transmission to others:

  • Use condoms correctly every time you have sex.
  • Talk to your partner about taking PrEP.
  • If you inject drugs, do not share your needles, syringes, or other drug equipment with other people.

Are HIV medicines used at other times to prevent HIV transmission?

Yes, in addition to ART and HIV PrEP, HIV medicines are also used for post-exposure prophylaxis (PEP) and to prevent perinatal transmission of HIV.

  • Post-exposure prophylaxis (PEP) 
    PEP refers to taking a short course (28 days) of HIV medicines within 72 hours after a possible exposure to HIV to prevent HIV infection. PEP should be used only in emergency situations and it is not meant for regular use by people who may be exposed to HIV frequently. For more information, read the HIVinfo fact sheet on Post-Exposure Prophylaxis (PEP).   
  • Prevention of perinatal transmission of HIV 
    Pregnant women with HIV take HIV medicines for their own health and to prevent perinatal transmission of HIV. After birth, babies receive HIV medicine to protect them from infection with any HIV that may have passed from mother to child during childbirth. For more information, read the HIVinfo fact sheet on Preventing Perinatal Transmission of HIV.

This fact sheet is based on information from the following sources:

From CDC:

 From the HIV Clinical Practice Guidelines at Clinicalinfo.HIV.gov:

Also see the HIV Source collection of HIV links and resources.