CDC recommends everyone between the ages of 13 and 64 get tested for HIV at least once.
People at higher risk should get tested more often. If you were HIV-negative the last time you were tested, the test was more than one year ago, and you can answer yes to any of the following questions, then you should get an HIV test as soon as possible:
You should be tested at least once a year if you keep doing any of these things. Sexually active gay and bisexual men may benefit from more frequent testing (for example, every 3 to 6 months).
If you’re pregnant, talk to your health care provider about getting tested for HIV and other ways to protect you and your child from getting HIV.
Before having sex for the first time with a new partner, you and your partner should talk about your sexual and drug-use history, disclose your HIV status, and consider getting tested for HIV and learning the results.