How to Treat an STI: Bacterial vs. Viral Options

Most sexually transmitted infections are treatable, and many are fully curable with the right medication. Bacterial STIs like chlamydia, gonorrhea, and syphilis can be eliminated with antibiotics, often in a single dose or a short course. Viral STIs like herpes and HIV can’t be cured, but antiviral medications keep symptoms under control and reduce transmission. The key to effective treatment is getting tested, starting medication promptly, and making sure your sexual partners are treated too.

Bacterial STIs: Curable With Antibiotics

Bacterial infections are the most straightforward STIs to treat because antibiotics can completely clear them from your body. The specific antibiotic and duration depend on which infection you have.

Chlamydia is typically treated with a 7-day course of doxycycline, taken twice daily. A single-dose alternative exists for people who may have trouble completing the full week. During pregnancy, a single dose of azithromycin is the standard approach since doxycycline isn’t safe for the fetus.

Gonorrhea requires an injectable antibiotic, usually given as a one-time shot at a clinic. This infection has become harder to treat over time. Between 2022 and 2024, resistance to the primary antibiotics used against gonorrhea rose sharply, with resistance to one key drug jumping from 0.8% to 5% and resistance to another climbing from 1.7% to 11%. The World Health Organization has flagged this as a growing global concern. Because of rising resistance, you should always get retested after treatment to confirm the infection is actually gone.

Syphilis is treated with a single injection of penicillin for early-stage infections (primary and secondary syphilis). Later-stage syphilis requires additional doses over several weeks. If you’re allergic to penicillin, your provider will likely recommend a desensitization process because penicillin remains the most reliable option for this infection.

Trichomoniasis, caused by a parasite rather than a bacterium, is also fully curable. Treatment differs slightly by sex: women take a 7-day course of metronidazole twice daily, while men typically receive a single larger dose of the same medication.

Viral STIs: Manageable but Not Curable

Viral STIs require a different mindset. You won’t eliminate the virus, but medication can suppress it effectively enough that outbreaks become rare and transmission risk drops significantly.

Genital herpes has two treatment strategies. Episodic therapy means taking antiviral medication only when an outbreak occurs, typically for 2 to 5 days depending on the drug and dosing schedule. Suppressive therapy means taking a lower dose of an antiviral every day, indefinitely. Daily suppression is worth considering if you get frequent outbreaks or want to reduce the chance of passing herpes to a partner. The most commonly used antivirals for herpes include acyclovir, valacyclovir, and famciclovir, all taken as pills.

HIV is managed with daily antiretroviral therapy. Modern treatment regimens can reduce the virus to undetectable levels in the blood, which means it can’t be transmitted sexually. People with HIV who start treatment early and take it consistently have near-normal life expectancies.

HPV (human papillomavirus) has no antiviral treatment. Most HPV infections clear on their own within one to two years. When HPV causes genital warts, those warts can be removed through freezing, topical treatments, or minor procedures. The more serious concern with HPV is its link to cervical and other cancers, which is why routine screening matters.

Why You Can’t Treat an STI at Home

There are no over-the-counter medications that cure bacterial STIs. Supplements, herbal remedies, and home treatments do not work against chlamydia, gonorrhea, syphilis, or trichomoniasis. Attempting to self-treat delays effective care and gives the infection more time to cause damage or spread to partners.

Even diagnosing the problem at home is unreliable. Symptoms like unusual discharge, burning, or irritation can look the same across several different infections, and a medical history alone isn’t enough to distinguish between them. You need a lab test to know what you’re dealing with and which antibiotic will work. Many STIs also produce no symptoms at all, especially in early stages, which means the only way to catch them is through routine screening.

Emergency Prevention After Exposure

If you think you were exposed to HIV, post-exposure prophylaxis (PEP) can prevent infection, but only if started within 72 hours. PEP is a 28-day course of antiretroviral medication. The sooner you start, the more effective it is. After 72 hours, PEP is no longer recommended because it’s unlikely to work. If you believe you’ve had a high-risk exposure, go to an emergency room or urgent care clinic the same day.

What to Do During and After Treatment

Avoid sex while you’re being treated for a bacterial STI. For a 7-day antibiotic course, that means waiting until you’ve finished all your medication and your symptoms have resolved. For single-dose treatments, most providers recommend waiting at least 7 days after taking the medication before having sex again. Having sex too soon risks passing the infection back and forth between you and your partner.

Getting your partner treated is just as important as your own treatment. Reinfection from an untreated partner is one of the most common reasons people test positive again shortly after completing antibiotics. For chlamydia and gonorrhea, some states allow a practice called Expedited Partner Therapy, where your provider gives you a prescription or medication to bring directly to your partner without requiring them to come in for a separate exam. This is especially useful when a partner can’t easily access a clinic.

Retesting is recommended 3 months after treatment for chlamydia, gonorrhea, and trichomoniasis. This isn’t to check whether the antibiotic worked (that usually becomes clear much sooner) but to catch reinfection, which is common. About 1 in 5 people treated for chlamydia test positive again within a few months, usually because their partner wasn’t treated or because they had a new exposure.

How Testing and Treatment Typically Work

Most STI testing is simple. Chlamydia and gonorrhea are diagnosed through a urine sample or a swab. Syphilis and HIV require a blood draw. Herpes can be tested through a swab of an active sore or a blood test for antibodies. Many clinics offer panels that test for multiple STIs at once.

Turnaround times vary. Rapid HIV tests give results in about 20 minutes. Chlamydia and gonorrhea results from a lab typically take 1 to 3 days. Some clinics can prescribe treatment the same day based on your symptoms and risk factors while you wait for confirmatory results, particularly if there’s a strong clinical suspicion.

Treatment itself is usually fast and straightforward. Most bacterial STIs are resolved within a week. The cost of treatment varies widely depending on insurance and location, but many public health departments and community clinics offer free or low-cost STI testing and treatment. Planned Parenthood locations, local health departments, and federally qualified health centers are reliable options if cost is a barrier.