STD tests work by detecting either the infection itself (its genetic material or proteins) or your body’s immune response to it (antibodies in your blood). The specific method depends on which infection is being tested for, and most results come back within a few days. Some infections are caught with a simple urine sample, others require a blood draw, and some need a swab from the site where the infection might be.
The Three Main Types of Samples
Which sample you give depends on which infections your provider is checking for. There’s no single test that screens for everything at once.
- Urine samples are used for chlamydia, gonorrhea, and trichomoniasis. You urinate into a cup, and the lab analyzes that sample. For the most accurate results, you’ll typically be asked to collect the first part of your urine stream rather than midstream.
- Blood draws are used for HIV, syphilis, hepatitis B, and hepatitis C. A small needle draws blood from a vein in your arm, and the lab looks for either the pathogen or antibodies your immune system produced against it.
- Swab tests are used for HPV, chlamydia, gonorrhea, and herpes. A provider uses a swab to collect a sample from the infection site, which could be the vagina, cervix, penis, urethra, throat, or rectum depending on the type of sexual contact involved. For vaginal swabs, self-collection is increasingly common and just as accurate.
How Labs Detect the Infection
Once your sample reaches the lab, the testing method falls into one of two broad categories: looking for the pathogen directly or looking for your immune system’s reaction to it.
Genetic Material Tests (NAATs)
Nucleic acid amplification tests, or NAATs, are the gold standard for detecting chlamydia and gonorrhea. They work by making millions of copies of a pathogen’s genetic material, if any is present in your sample. Even a tiny amount of bacterial DNA becomes detectable once it’s been amplified this many times. This is the same core technology behind PCR tests that became widely known during COVID testing.
NAATs are extremely accurate. For chlamydia and gonorrhea, sensitivity is usually well above 90% with specificity at 99% or higher, meaning false positives are rare and most infections are caught. For men, a urine sample performs just as well as a urethral swab. For women, vaginal or cervical swabs are slightly more sensitive than urine, catching about 10% more infections, though urine is still considered acceptable for screening.
Blood-Based Tests: Antibodies and Antigens
Blood tests work differently depending on whether they’re detecting the pathogen itself or your body’s response to it. Antigen tests look for specific proteins that belong to the virus or bacterium. Antibody tests look for immune proteins your body created to fight the infection. Some tests, like the newer HIV screening tests, look for both at the same time.
Syphilis testing is a good example of how these approaches get layered together. A single reactive blood test isn’t enough to confirm syphilis because false positives can happen. Labs run a second, different type of test on the same sample to verify. If those two results disagree, a third test is used to settle it. This multi-step process exists because relying on one reactive test alone can misclassify whether someone actually has syphilis.
Why Timing Matters: Window Periods
Every STD test has a window period, the gap between when you’re exposed and when a test can reliably detect the infection. Testing too early can produce a false negative, giving you a clean result even though you’re infected. The window period varies significantly by infection and by testing method.
For HIV, a blood test that checks for both antigens and antibodies catches most infections within 2 weeks, and nearly all by 6 weeks. An oral cheek swab (which only detects antibodies) takes longer: about 1 month to catch most infections and 3 months to catch nearly all of them. Syphilis blood tests catch most cases within 1 month and almost all by 3 months. Hepatitis C has the longest window, with antibody tests catching most infections at 2 months and nearly all by 6 months.
Chlamydia and gonorrhea NAATs have shorter windows, generally becoming reliable within 1 to 2 weeks after exposure. If you’re testing because of a specific recent exposure, your provider may recommend testing now and then retesting after the appropriate window has passed.
What Screening Looks Like If You Have No Symptoms
Most STDs can be present without any noticeable symptoms, which is why routine screening matters even when you feel fine. The CDC’s screening recommendations vary by age, sex, and sexual history.
Sexually active women under 25 should be screened for chlamydia and gonorrhea every year. Women 25 and older need annual screening only if they have risk factors like new or multiple partners. All adults between 13 and 64 should have at least one HIV test in their lifetime, and all adults over 18 should be screened for hepatitis C at least once.
Men who have sex with men face higher rates of several infections and should be screened for chlamydia, gonorrhea, syphilis, and HIV at least annually. Those at increased risk (multiple partners, inconsistent condom use, or sex while using drugs) benefit from screening every 3 to 6 months. Screening at multiple body sites matters here too, since throat and rectal infections won’t show up on a urine test.
Pregnant women are screened for syphilis, HIV, and hepatitis B at their first prenatal visit, with additional testing later in pregnancy for those at higher risk.
What Happens With Your Results
NAAT results for chlamydia and gonorrhea typically come back within 1 to 5 days. Blood test results for HIV, syphilis, and hepatitis vary but usually take a few days to a week. Rapid HIV tests and rapid syphilis tests can return results in 20 to 30 minutes, though a reactive rapid test is typically confirmed with a standard lab test.
A positive result for bacterial infections like chlamydia, gonorrhea, and syphilis means you’ll be treated with antibiotics. Partners need to be notified and tested as well, since reinfection is common if a partner goes untreated. For viral infections like HIV and hepatitis, a positive result leads to further evaluation and long-term management rather than a one-time cure.
A negative result is reliable only if enough time has passed since your last potential exposure. If you tested within the window period, a follow-up test at the right interval is the only way to be confident in a negative result.

