After receptive anal sex, the test that catches infection at the site of exposure is a rectal NAAT — a small swab of the rectum for chlamydia and gonorrhea — plus a blood draw for HIV and syphilis. A urine test alone will miss rectal infections. Ask specifically for rectal (extragenital) testing; it's the only way to detect infections the throat- or urine-based panel won't.

Test window by infection / test type (Days after exposure) Chlamydia / gonorrhea (NAAT): ~14; HIV — NAT: 10–33; HIV — antigen/antibody: 18–45; HIV — rapid antibody: 23–90 0153045607590 Chlamydia / gonorrhea (NAAT) ~14 HIV — NAT 10–33 HIV — antigen/antibody 18–45 HIV — rapid antibody 23–90
Test window by infection / test type. A negative before the window can be falsely reassuring — time the test to the exposure. Source: CDC.
Test window by infection / test type (Days after exposure)
ItemDays after exposure
Chlamydia / gonorrhea (NAAT)~14
HIV — NAT10–33
HIV — antigen/antibody18–45
HIV — rapid antibody23–90

Why anal sex needs its own test request

The bacteria that cause chlamydia and gonorrhea infect the lining of whatever tissue they contact. After receptive anal sex, that tissue is the rectum, and an infection living there sheds its DNA into the rectal mucosa rather than your urine. A standard "STD panel" usually means a urine sample plus blood work, which checks the urethra but never touches the rectum. You can have a rectal infection and a clean urine result on the same day.

Rectal chlamydia and gonorrhea are usually silent. Most cause no pain, discharge, or bleeding. A rectal swab is what makes a rectal infection visible, so if a clinic only offers "the usual," you have to ask for the extragenital (rectal, and often throat) sample by name.

What you should be tested for

After anal exposure, a complete check generally includes the following. The rectal swab covers the bacterial infections; blood covers the bloodborne ones.

  • Rectal chlamydia and gonorrhea — a NAAT (nucleic acid amplification test) run on a rectal swab. NAATs are the most sensitive tests available for these two and are the recommended method, with specificity around 99% USPSTF. Rectal chlamydia in particular is common and almost always symptomless, so a swab is the only reliable way to find it.
  • HIV — a blood test. Receptive anal sex carries the highest per-act HIV risk of any sexual route, so HIV testing after anal exposure is especially worth doing on schedule CDC, HIV Testing.
  • Syphilis — a blood test, since syphilis spreads through skin and mucous-membrane contact including the anal area.
  • Hepatitis and trichomoniasis may be added based on your history; trichomoniasis is also a NAAT, hepatitis a blood draw.

How rectal swab testing works

The rectal NAAT looks for the genetic material of the bacteria directly. Because it amplifies even tiny amounts of DNA, it's far more sensitive than older culture methods, and it's the standard of care for chlamydia and gonorrhea CDC. The same technology runs whether the sample comes from urine, the throat, or the rectum; only the collection site changes.

Self-collected vs. clinician-collected swabs

At many clinics you can collect the rectal swab yourself in a private bathroom: insert a soft swab a short distance into the rectum, rotate it, and place it in the tube. Self-collected rectal swabs perform comparably to clinician-collected ones for NAAT, so there's no accuracy penalty for doing it yourself, and most people find it far less awkward. If you'd rather a clinician collect it, that's a quick part of the exam too. Either way the chair time is minutes, and results typically come back in a day or a few.

How false negatives and confirmation work

The biggest cause of a false negative is testing before the window period closes, the gap between exposure and when an infection becomes detectable. A too-early negative isn't a wrong test; the infection simply isn't measurable yet, so it should be repeated. For HIV and syphilis, labs guard against false positives with a two-step process: an initial screen, then a different confirmatory test, and a result isn't final until the confirmatory step agrees CDC syphilis lab guidance. A reactive rapid HIV test is preliminary only and must be confirmed with a follow-up lab test before it counts as a diagnosis.

Timing: when to test after anal sex

Each infection has its own detection window, and testing on the right day keeps a negative trustworthy. The standard timing is below — see when to test after exposure for the full breakdown.

InfectionTest typeWhen it becomes detectable
Chlamydia & gonorrhea (rectal)NAAT swabGenerally reliable about 2 weeks after exposure
HIVNucleic acid test (NAT)About 10–33 days after exposure
HIVAntigen/antibody lab testAbout 18–45 days
HIVRapid antibody testAbout 23–90 days

If you test the rectal NAAT sooner than about two weeks, retesting later is reasonable when a recent exposure is possible. And if you've had a high-risk exposure within the last few days, don't wait on a test — ask about HIV PEP (post-exposure prophylaxis) right away, since it's time-sensitive.

Where to go and what it costs

Rectal swab testing is offered at doctors' offices, health departments, Planned Parenthood, and Title X family-planning clinics — often free or on an income-based sliding scale. The US has roughly 16,000 federally funded community health centers and about 4,200 Title X clinics, plus tens of thousands of other public STI clinics HRSA, so you're rarely far from low-cost care. Use a center finder, or start with our guide to get tested.

One practical note on access: confirm before your visit that the clinic does extragenital (rectal) NAAT, because not every site stocks the swabs or runs the panel by default. If you're using insurance or Medicaid, screening is widely covered — see does medicaid cover std testing? for what's included.

What rectal testing does not cover

A rectal swab finds rectal chlamydia and gonorrhea. By itself it tells you nothing about HIV, syphilis, or hepatitis, which need blood, nor about a urethral or throat infection, which need their own samples. If you've had oral or insertive sex as well, add a throat swab or urine test so every exposed site is checked. The rectal NAAT also isn't a treatment and doesn't screen for HPV or herpes, which aren't part of routine asymptomatic panels.

When to see a clinician

Book a visit rather than waiting on a routine schedule if you have rectal pain, bleeding, discharge, a feeling of needing to pass stool when nothing's there, or a new sore anywhere in the genital or anal area. Go promptly after a known exposure to a partner who tested positive, after a recent high-risk exposure where PEP might help, or if a home test came back reactive and needs confirmation. A clinician can collect every needed sample, confirm preliminary results, and start treatment the same day if something turns up.