Sexual Health

STD Medication: Treatment Options, Antibiotics, and What to Know

Sexually transmitted diseases (STDs), also called sexually transmitted infections (STIs), can be caused by bacteria, viruses, or parasites — and the right medication depends on which.

STD MedicationTreatment options, explainedAntibiotics · Antivirals · Antiparasitics · Prevention
Key Takeaways
  • STD medication depends on the type of infection — bacterial, viral, or parasitic — there is no single drug that treats every STI.
  • Bacterial STIs (chlamydia, gonorrhea, syphilis, trichomoniasis) can often be cured with prescription antibiotics or antiparasitic medicine.
  • Viral STIs (herpes, HIV, HPV, hepatitis B) cannot be cured with antibiotics — they require antiviral therapy, vaccination, or long-term management instead.
  • Antibiotic resistance, especially in gonorrhea, means old, shared, or leftover prescriptions should never be reused.
  • Sexual partners often need to be tested and treated too, or reinfection can occur even after successful treatment.
  • Testing — not symptoms alone — is the only reliable way to identify an STI and determine the right medication.

Sexually transmitted diseases (STDs), also called sexually transmitted infections (STIs), can be caused by bacteria, viruses, or parasites. The appropriate STD medication depends on the specific infection, its severity, your medical history, and whether you have other health conditions.

Some sexually transmitted infections can be cured with prescription treatment, while others cannot currently be eliminated from the body but can be effectively managed. For bacterial infections, doctors may prescribe STD antibiotics. Viral infections generally require antiviral medicines or other forms of long-term management rather than antibiotics.

If you think you may have an STI, getting tested is an important first step. Symptoms alone cannot always identify the infection, and some STIs cause no noticeable symptoms. A healthcare professional can recommend appropriate testing and determine which medication for STD is appropriate for your situation.

How Does STD Medication Work?

There is no single medicine that treats every sexually transmitted infection. Treatment is selected according to the organism causing the infection.

In general:

  • Bacterial STIs may be treated and cured with antibiotics.
  • Parasitic STIs can often be cured with specific antiparasitic medicines.
  • Viral STIs may require antiviral treatment to control symptoms, reduce complications, or lower the amount of virus in the body.
  • Some infections can be prevented with vaccines, including HPV and hepatitis B.
  • HIV can be controlled with antiretroviral therapy, which helps people maintain their health and substantially reduces the risk of sexual transmission when an undetectable viral load is maintained.

This is why taking a random antibiotic is not an appropriate approach to STI treatment. The correct medicine depends on the infection and, in some cases, laboratory testing and clinical evaluation.

When Are STD Antibiotics Used?

Antibiotics for STDs are used when the infection is caused by bacteria or when a bacterial infection requires antimicrobial treatment.

Common bacterial STIs that may require antibiotics include:

  • Chlamydia
  • Gonorrhea
  • Syphilis
  • Certain infections caused by Mycoplasma genitalium

The exact drug, dose, and duration depend on the infection and the patient's circumstances. Antibiotic resistance is also an important consideration, particularly for gonorrhea. Current treatment recommendations therefore need to be followed rather than relying on an old prescription or medication obtained from another person.

Do Not Take Antibiotics Without Medical Advice

Taking the wrong antibiotic may fail to treat the infection and can contribute to antibiotic resistance or medication side effects. CDC guidance recommends taking antibiotics exactly as prescribed, not sharing them, and not saving leftover antibiotics for future illnesses.

If you have symptoms or believe you have been exposed to an STI, testing and professional medical advice are safer than trying to choose an antibiotic yourself.

Common STD Medication Options by Infection

Chlamydia Treatment

Chlamydia is a bacterial STI that can often be cured with appropriate antibiotic treatment. See our full chlamydia treatment guide and pricing for more detail.

A healthcare professional may recommend an antibiotic regimen based on factors such as the site of infection, pregnancy status, age, allergies, and other medical considerations.

Chlamydia can affect the genitals, rectum, or throat. Because many people have few or no symptoms, testing is important when exposure is suspected.

Untreated chlamydia can lead to complications, including pelvic inflammatory disease in women and reproductive complications. After treatment, preventing reinfection is also important. CDC guidance recommends that people treated for chlamydia avoid sexual activity for the recommended period and until their partners have been treated.

People diagnosed with chlamydia should also discuss testing for other STIs, including HIV, gonorrhea, and syphilis.

Gonorrhea Treatment

Gonorrhea is another bacterial STI that requires appropriate antibiotic treatment.

Treatment can be more complicated because Neisseria gonorrhoeae has developed resistance to several antibiotics. For this reason, people should not rely on leftover antibiotics or an antibiotic prescribed for a previous infection.

Healthcare professionals select treatment according to current clinical recommendations and the patient's circumstances. If symptoms continue after treatment, additional evaluation may be necessary.

Gonorrhea can affect the genitals, rectum, and throat. Untreated infection can cause serious complications and can increase the risk of transmitting or acquiring HIV.

Because reinfection is possible, follow-up testing and partner management are important parts of care.

Syphilis Medication

Syphilis is caused by the bacterium Treponema pallidum. It progresses through different stages, and treatment depends on the stage and clinical presentation.

Penicillin G remains the preferred treatment for syphilis. The specific preparation, dose, and treatment duration depend on the stage of infection and whether complications involving the nervous system, eyes, or ears are present.

Early treatment can prevent the infection from progressing and reduce the risk of serious complications.

Because having syphilis once does not provide immunity, a person can become infected again after successful treatment. Testing and prevention remain important after treatment.

Trichomoniasis Treatment

Trichomoniasis is caused by a parasite called Trichomonas vaginalis. Unlike bacterial STIs, it is not treated with the typical antibiotics used for infections such as chlamydia.

Medicines such as metronidazole or tinidazole may be used under medical supervision.

Treatment of sexual partners is also important because reinfection can occur. CDC guidance emphasizes concurrent treatment of current partners and recommends avoiding sexual activity until treatment has been completed and symptoms have resolved.

If symptoms return after treatment, your healthcare professional may need to determine whether reinfection, medication adherence, or antimicrobial resistance is responsible.

Medication for Viral STIs

Antibiotics do not treat viral infections. Viral STIs may require antiviral medication, preventive medicine, vaccination, or ongoing monitoring depending on the infection.

Genital Herpes

Genital herpes is caused by herpes simplex virus (HSV). There is currently no medication that eliminates HSV from the body.

However, antiviral medicines can help manage outbreaks and reduce symptoms. They may also be prescribed as suppressive therapy for people who experience frequent recurrences.

Treatment can help reduce the duration and severity of outbreaks and may reduce the risk of transmission when used appropriately.

Because herpes can be transmitted even when visible sores are not present, medication should be considered part of a broader prevention strategy that may include communication with partners and safer-sex practices.

HIV

HIV is a viral infection that requires ongoing medical management rather than antibiotics.

Antiretroviral therapy (ART) uses HIV medicines to reduce the amount of virus in the body. Effective treatment can allow people with HIV to live longer, healthier lives.

When treatment reduces HIV to an undetectable viral load and it remains undetectable, HIV is not sexually transmitted. Regular medical care and adherence to prescribed treatment are therefore essential.

People who do not have HIV but may have an increased risk of acquiring it can also discuss prevention options such as PrEP with a healthcare professional.

HPV and Genital Warts

Human papillomavirus (HPV) is a common viral infection. Some HPV types can cause genital warts, while other types are associated with certain cancers.

There is no medicine that eliminates HPV itself. However, genital warts can be treated if they are causing problems or do not disappear on their own.

Treatment options may include prescription topical medicines or procedures performed by a healthcare professional. The appropriate treatment depends on the location, number, size, and appearance of the warts.

HPV vaccination is an important prevention strategy and can protect against HPV types associated with several cancers and genital warts.

Hepatitis B Treatment

Hepatitis B is a viral infection that can be sexually transmitted. Some people clear an acute infection without developing chronic hepatitis B, while others develop a long-term infection.

People with chronic hepatitis B may require monitoring and, in some cases, antiviral treatment to reduce the risk of liver-related complications.

Hepatitis B vaccination is an important way to prevent infection. If you believe you have recently been exposed to hepatitis B, seek medical attention promptly because post-exposure management may be appropriate depending on your vaccination and exposure history.

What Should You Do Before Taking STI Medicine?

Choosing the right STI medicine starts with identifying the infection.

Before taking medication, a healthcare professional may consider:

  1. Your symptoms. Symptoms such as discharge, sores, genital irritation, painful urination, pelvic pain, testicular pain, or unusual bleeding can have multiple causes. Symptoms alone may not identify the infection.
  2. Your sexual exposure. Your healthcare professional may ask about recent sexual activity, including vaginal, oral, or anal sex. These questions help determine which tests may be appropriate.
  3. Your test results. Depending on the suspected infection, testing may involve urine, blood, swabs, or other samples.
  4. Your medical history. Pregnancy, allergies, other medications, kidney or liver conditions, and previous infections can influence treatment choices.
  5. Your partner's status. Some infections require partner evaluation or treatment to reduce the possibility of reinfection.

How to Take STD Antibiotics Safely

If your healthcare professional prescribes STD antibiotics, follow the instructions carefully.

Keep these points in mind:

  • Take the medication exactly as prescribed.
  • Complete the prescribed course unless your healthcare professional tells you otherwise.
  • Do not use someone else's antibiotics.
  • Do not share your prescription.
  • Do not use leftover antibiotics from an earlier infection.
  • Ask about possible interactions with other medications.
  • Tell your healthcare professional about medication allergies.
  • Contact your healthcare professional if significant side effects occur.
  • Follow any instructions about food, alcohol, sunlight, or other precautions that apply to your specific medicine.

Antibiotics should only be used when they are medically appropriate. They do not treat viral infections, and unnecessary use can cause side effects and contribute to antimicrobial resistance.

Can You Have Sex While Taking STD Medication?

In many situations, you should avoid sexual contact while you or your partner are being treated.

The exact period depends on the infection and treatment. For example, CDC guidance for chlamydia recommends avoiding sexual intercourse until the appropriate treatment period has been completed and partners have also been treated.

The goal is to prevent passing the infection to another person and to reduce the risk of becoming infected again.

Your healthcare professional can tell you when it is safe to resume sexual activity based on your diagnosis and treatment.

Why Partner Treatment Matters

Treating only one person may not be enough.

If you have an STI and your sexual partner remains untreated, you may become infected again after treatment. For certain infections, partners should be evaluated, tested, and treated according to clinical recommendations.

CDC guidance specifically emphasizes partner management for infections such as chlamydia and trichomoniasis.

Talking with a partner about an STI can feel uncomfortable, but it is an important part of responsible treatment and prevention.

Should You Get Tested After Treatment?

Follow-up depends on the infection, treatment, symptoms, pregnancy status, and risk of reinfection.

Some people may need repeat testing after treatment, while others may not require a test of cure unless symptoms continue, adherence was uncertain, or reinfection is suspected.

For several STIs, healthcare professionals may recommend retesting after a period of time because reinfection is common. CDC screening recommendations include approximately three-month retesting after treatment for chlamydia and gonorrhea in certain populations.

If symptoms do not improve or return after treatment, contact your healthcare professional instead of taking another medication on your own.

What If STD Symptoms Come Back?

Recurring symptoms do not necessarily mean that you need the same medicine again.

Possible explanations include:

  • Reinfection from an untreated partner
  • The original infection was not fully treated
  • The infection is resistant to the medication
  • A different STI is present
  • The symptoms have another cause
  • The infection requires a different treatment approach

A healthcare professional may recommend additional testing before selecting another medication.

This is particularly important when antibiotic resistance is possible. Taking increasingly strong or different antibiotics without proper evaluation is not a safe strategy.

When Should You Seek Medical Care?

Consider seeking medical care promptly if you:

  • Think you were exposed to an STI
  • Have genital sores or ulcers
  • Have unusual genital discharge
  • Experience burning or pain when urinating
  • Have unexplained genital irritation
  • Experience pelvic or abdominal pain
  • Have testicular pain or swelling
  • Have unusual bleeding
  • Have a sexual partner who has tested positive for an STI
  • Develop symptoms after sexual contact with a new partner

Some STIs cause no symptoms, so feeling healthy does not always mean an infection is absent. STI screening recommendations vary according to age, sex, sexual practices, pregnancy status, and other risk factors.

Can You Prevent STIs?

Medication is only one part of sexual health.

Prevention strategies can include:

  • Using condoms and other barrier methods correctly
  • Getting recommended STI screenings
  • Limiting exposure to untreated partners
  • Communicating openly with sexual partners
  • Completing treatment when an STI is diagnosed
  • Ensuring partners receive appropriate treatment
  • Getting recommended vaccines, including HPV and hepatitis B vaccines
  • Discussing HIV PrEP with a healthcare professional when appropriate

For people receiving STI treatment, avoiding sexual activity until treatment requirements are met can help reduce transmission and reinfection.

What About Doxycycline PEP?

Doxycycline post-exposure prophylaxis, often called doxy PEP, is a specific STI prevention strategy and should not be confused with taking antibiotics to treat an existing infection.

Current CDC guidance says healthcare professionals should discuss doxy PEP with gay and bisexual men and transgender women who have had syphilis, chlamydia, or gonorrhea during the previous 12 months. The approach involves taking doxycycline within 72 hours after sex and should be discussed with a qualified healthcare professional.

It is not appropriate for everyone, and people should not begin doxy PEP without discussing whether it is suitable for them.

Frequently Asked Questions About STD Medication

What is the best STD medication?

There is no single best STD medication for every infection. Treatment depends on whether the STI is bacterial, viral, or parasitic and on factors such as pregnancy, allergies, previous treatment, and the location of infection.

Do antibiotics cure STDs?

Some bacterial STIs can be cured with appropriate antibiotics. However, antibiotics do not cure viral infections such as HIV, herpes, or HPV. Viral infections may require antiviral treatment, ongoing monitoring, or preventive measures.

Can I buy antibiotics for STDs without seeing a doctor?

You should not self-treat a suspected STI with antibiotics. The wrong medicine may not cure the infection and can contribute to side effects and antimicrobial resistance. Testing and professional evaluation can help determine the appropriate treatment.

How long does STD treatment take?

Treatment duration varies significantly. Some infections may require a single treatment, while others require medication over several days or long-term treatment. Your healthcare professional can explain the expected treatment schedule for your specific diagnosis.

Can an STD come back after treatment?

Yes. Some infections can recur, while others can be acquired again through a new exposure or an untreated partner. Completing treatment and ensuring appropriate partner management can reduce the risk of reinfection.

What should I do if my symptoms don't go away?

Contact your healthcare professional. Do not automatically repeat the same medication. Persistent symptoms may require additional testing or a different treatment approach.

Final Thoughts

The right medication for STD treatment depends on the infection, your health history, and your individual circumstances. Bacterial infections such as chlamydia, gonorrhea, and syphilis may require prescription antibiotics, while viral infections such as herpes and HIV require different forms of treatment.

The safest approach is to get tested when appropriate, follow your healthcare professional's treatment instructions, avoid sharing medication, and make sure sexual partners receive appropriate care.

If you think you may have an STI, don't rely on symptoms or leftover medicine to determine what treatment you need. A healthcare professional can help identify the infection and recommend the appropriate STI medicine based on current clinical guidance.

Sources: Treatment guidance referenced throughout this article reflects publicly available clinical recommendations from the CDC's Sexually Transmitted Infections program.

Medical Disclaimer: This article is for general educational purposes and is not a substitute for diagnosis or treatment from a qualified healthcare professional. Prescription medicines, including antibiotics and antiviral medications, should be used according to professional medical advice.