After anal sex, the tests you actually need depend on your role. Receptive partners should add a self-collected rectal swab for chlamydia and gonorrhea; everyone exposed should test for HIV and syphilis with a blood draw. Wait out the window period — about two weeks for most bacterial infections — so a negative is trustworthy.
| Item | Days after exposure |
|---|---|
| Chlamydia / gonorrhea (NAAT) | ~14 |
| HIV — NAT | 10–33 |
| HIV — antigen/antibody | 18–45 |
| HIV — rapid antibody | 23–90 |
What tests you need after anal sex
The standard panel after anal sex covers chlamydia, gonorrhea, HIV, and syphilis, with trichomoniasis and hepatitis added depending on your history. Match the test site to what was exposed. A throat or genital swab won't catch a rectal infection, and most people miss that gap.
If you were the receptive partner (the bottom), the rectum was directly exposed, so a self-collected rectal swab for chlamydia and gonorrhea is the test that matters. Rectal chlamydia and gonorrhea are common and usually silent. They rarely cause the discharge or burning people expect, so a genital-only test can miss them. If you were the insertive partner (the top), a urine sample for chlamydia and gonorrhea covers the urethral exposure.
Beyond those site-specific swabs, HIV and syphilis are blood-based and don't depend on role. Any unprotected anal sex is a meaningful exposure for both, and anal sex carries a higher per-act HIV transmission risk than most other types of sex. Request a complete panel; you can get tested for the full set in a single visit.
How the test actually works
Most STIs are detected from a simple sample. Chlamydia, gonorrhea, and trichomoniasis are found with a NAAT (nucleic acid amplification test), which looks for the organism's genetic material in a urine cup or a swab, and for rectal exposure a self-collected rectal swab is just as reliable as one a clinician takes CDC chlamydia guidance. HIV, syphilis, and hepatitis are checked with a quick blood draw.
NAATs are the most sensitive method for chlamydia and gonorrhea, which is why they're recommended. Modern NAATs are highly accurate, with specificity around 99% USPSTF screening. That sensitivity lets a urine sample or swab catch infections you'd never feel.
In practice, the visit is short. You give a urine cup or do the swab yourself in a bathroom, a clinician draws a small tube of blood for HIV and syphilis, and you're done in minutes. Results usually come back in a day or a few, depending on the lab.
When to test after anal sex: the window period
There's a gap between exposure and when a test can detect an infection — the window period. Testing inside that window can hand you a falsely reassuring negative, because the infection simply isn't detectable yet. Timing your test matters as much as choosing the right one.
For chlamydia and gonorrhea, a NAAT is generally reliable about two weeks after exposure. If you test sooner — say, because you have symptoms or just want answers — retesting later is reasonable whenever a recent exposure is possible.
HIV is trickier because the window depends on which test is used:
- A nucleic acid test (NAT) can detect HIV about 10–33 days after exposure CDC HIV testing.
- An antigen/antibody lab test detects it about 18–45 days after exposure.
- A rapid antibody test detects it about 23–90 days after exposure.
Syphilis also takes time to show up on blood testing, so a single early negative isn't the final word after a known exposure. If a high-risk anal exposure just happened, talk to a clinician promptly rather than waiting, since prevention options like PEP are time-sensitive. For the full breakdown of timing by infection, see when to test after exposure.
Where to get tested and what it costs
Testing is widely available and often free or low-cost. You can go to a doctor's office, a local health department, Planned Parenthood, or a Title X family-planning clinic, and at-home and self-collection kits exist if you'd rather not go in person.
Access is closer than most people think. The US has roughly 16,000 federally funded community health centers and about 4,200 Title X family-planning clinics, plus tens of thousands of other public STI clinics, most offering free or income-based sliding-scale care HRSA health centers. At-home kits only work if you mind the window period and test at the right time, and you'll want one that lets you collect a rectal sample if that's your exposure. You can compare testing providers before you pick a kit or clinic.
| Infection | Sample | When it's reliable after exposure |
|---|---|---|
| Chlamydia / Gonorrhea | Self-collected rectal swab (receptive) or urine (insertive) | About 2 weeks |
| HIV | Blood draw or rapid test | 10–33 days (NAT) up to 23–90 days (rapid antibody) |
| Syphilis | Blood draw | After the window; repeat if early |
| Trichomoniasis | Urine or swab (NAAT) | About 2 weeks |
Reading your results and how accurate they are
A NAAT result for chlamydia or gonorrhea comes back as detected or not detected. Because these tests are so specific, a positive is highly trustworthy, and a properly timed negative is reassuring. False negatives usually come from testing before the window period closes, when the infection isn't yet detectable. Repeat a too-early negative.
HIV and syphilis are read differently because both use a two-step process to guard against false positives: an initial screening test, then a different confirmatory test, and the result isn't final until the confirmatory step agrees CDC syphilis lab, 2024. A reactive rapid HIV test is a preliminary result only, and must be confirmed with a follow-up lab test before it counts as a diagnosis. A reactive screen is a reason to follow up, not to panic.
Many STIs cause no symptoms at all, so how you feel tells you nothing reliable about your status, and testing is what finds silent infections. The reverse happens too: a clear negative with persistent symptoms is worth investigating, and our guide on a negative std test but still have symptoms? walks through why.
If a result is positive
A positive result is manageable. Bacterial STIs like chlamydia and gonorrhea are cured with antibiotics, and HIV is controlled with daily medication. Don't self-treat or guess at doses; see the full chlamydia overview for what treatment involves and what to expect next.
When to see a clinician
Book a visit rather than relying on an at-home kit if you have symptoms like rectal pain, discharge, bleeding, or a sore, if a partner tested positive, or if a recent high-risk exposure means time-sensitive prevention like PEP could help. A clinician can also confirm a reactive screen, treat on the spot, and arrange partner notification.