For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Bacterial sexually transmitted infections

Bacterial sexually transmitted infections are infections such as chlamydia, gonorrhea and syphilis that spread through sex and can usually be cured with antibiotics.

Clinician view: includes diagnostic criteria, management and safety detail.

Overview

Bacterial sexually transmitted infections (STIs) are infections caused by bacteria, a type of germ, that pass from one person to another during sex. Doctors also call them bacterial sexually transmitted diseases (STDs) or, in older books, bacterial venereal diseases.

This group includes some of the most common infections in the world. The main ones are:

  • Chlamydia, the most commonly reported bacterial STI
  • Gonorrhea
  • Syphilis
  • Chancroid, which causes painful sores and is now rare in North America
  • Granuloma inguinale (also called donovanosis), a rare infection that causes slowly growing sores on the genitals

Another bacterium, Mycoplasma genitalium, is also spread through sex and is being found more often as testing improves.

These infections have a lot in common. They often cause no symptoms, so many people do not know they have one. They can be found with simple tests. And, unlike viral STIs such as herpes or HIV, they can usually be cured with antibiotics. Treating them early protects your health, your fertility and your partners.

Symptoms

Many people, especially women, have no symptoms at all. This is why regular testing matters if you are sexually active. When symptoms do happen, they depend on the infection and the part of the body involved.

Common symptoms

  • Unusual discharge (fluid) from the penis or vagina
  • Pain or burning when you pee
  • Bleeding between periods or after sex
  • Pain during sex
  • Pain or swelling in the testicles
  • Pain in the lower belly
  • Itching, discharge, pain or bleeding from the anus (back passage), if the infection is in the rectum
  • A sore throat, if the infection is in the throat (this often causes no symptoms)

Sores and ulcers

  • Syphilis often starts with a single firm, painless sore called a chancre. It can be easy to miss, especially if it is inside the vagina, anus or mouth. Weeks later, a rash may appear, often on the palms of the hands and soles of the feet, sometimes with fever and swollen glands.
  • Chancroid causes one or more painful, soft sores, often with tender, swollen glands in the groin.
  • Granuloma inguinale causes painless, red, bumpy sores that bleed easily and slowly get bigger.

Symptoms can come and go. Even if they fade, the infection may still be there and can still spread.

Causes

Each infection is caused by a different bacterium:

  • Chlamydia: Chlamydia trachomatis
  • Gonorrhea: Neisseria gonorrhoeae
  • Syphilis: Treponema pallidum
  • Chancroid: Haemophilus ducreyi
  • Granuloma inguinale: Klebsiella granulomatis

These bacteria spread through vaginal, anal or oral sex. Syphilis can also spread through close skin-to-skin contact with a sore. Some of these infections can pass from a pregnant person to the baby during pregnancy or birth.

You cannot get these infections from toilet seats, sharing cups, swimming pools or hugging.

Risk factors

Anyone who has sex can get a bacterial STI. Your chances are higher if you:

  • Have a new sex partner, or more than one partner
  • Have a partner who has other partners
  • Do not use condoms, or do not use them every time
  • Have had an STI before
  • Are under 25 years old
  • Are a man who has sex with men
  • Use alcohol or drugs in ways that make safer sex harder
  • Exchange sex for money, drugs or a place to stay

Having one STI also makes it easier to catch or pass on others, including HIV.

Diagnosis

Testing is quick and usually painless. Your health care provider will ask about your symptoms and sexual history. This is private and helps them choose the right tests. Tests may include:

  • Urine test: you pee into a cup. This is often used for chlamydia and gonorrhea.
  • Swabs: a soft swab is wiped over the vagina, cervix, urethra, throat or rectum. You can often take some swabs yourself.
  • Blood test: used to check for syphilis (and often HIV and hepatitis at the same time).
  • Sore swab: fluid from a sore may be tested to find which germ is causing it.

If you have one STI, you will usually be offered tests for the others too. Testing for HIV is recommended whenever you are tested for a bacterial STI.

Treatment

Bacterial STIs are treated with antibiotics, medicines that kill bacteria. The choice depends on which infection you have, where it is in the body, whether you are pregnant, and any allergies. Common choices include:

  • doxycycline, tablets often used for chlamydia
  • azithromycin, used for some cases of chlamydia, chancroid and granuloma inguinale
  • ceftriaxone, an injection used for gonorrhea and sometimes chancroid
  • benzathine penicillin G, a long-acting injection that is the main treatment for syphilis
  • moxifloxacin, sometimes used for Mycoplasma genitalium

Important things to know

  • Take all of your medicine exactly as prescribed, even if you feel better.
  • Avoid sex until you and your partners have finished treatment and any waiting time your provider gives you (often 7 days after a single-dose treatment, or until a 7-day course of tablets is finished), and until any sores have healed.
  • Your recent partners need to be tested and treated too. Otherwise you can catch the infection again. Your clinic can help tell partners if you would rather not do it yourself.
  • A repeat test is often advised about 3 months later, because getting infected again is common.
  • Gonorrhea has become resistant to many antibiotics over time. If symptoms do not go away after treatment, go back to your provider.

Antibiotics cure the infection, but they cannot undo damage that has already happened, such as scarring of the fallopian tubes. This is why early treatment matters.

Living with a bacterial STI

Finding out you have an STI can feel upsetting or embarrassing. These infections are very common, and having one says nothing about your worth as a person. Health care providers see them every day.

  • Talk openly with your partners. It protects them and you.
  • Ask your provider any questions you have. Clinics that focus on sexual health are often free or low cost and confidential.
  • If you are pregnant or planning a pregnancy, tell your provider so they can make sure you and your baby are protected.
  • Consider getting tested regularly if your sex life puts you at risk. Many people choose to test every 3 to 12 months.

Complications

Without treatment, bacterial STIs can cause serious, sometimes lasting, problems:

  • Pelvic inflammatory disease (PID): infection that spreads to the womb, fallopian tubes or ovaries. It can cause long-term pelvic pain, ectopic pregnancy (a pregnancy outside the womb) and trouble getting pregnant.
  • Epididymitis: painful swelling of the tube behind the testicle, which may affect fertility.
  • Reactive arthritis: joint pain and swelling triggered by the infection.
  • Spread through the blood: gonorrhea can rarely spread to the joints and skin.
  • Late syphilis: years later, untreated syphilis can damage the brain, nerves, eyes, ears, heart and blood vessels. Syphilis can affect the eyes, ears and brain at any stage.
  • Problems in pregnancy: syphilis can cause miscarriage, stillbirth or serious illness in the baby (congenital syphilis). Chlamydia and gonorrhea can cause eye infections in newborns, and chlamydia can also cause pneumonia (a lung infection) in babies.
  • Higher risk of HIV: sores and swelling make it easier for HIV to enter the body.

Outlook

Most bacterial STIs can be cured with the right antibiotics, and most people recover fully, especially when treated early. You do not become immune after an infection, so you can get the same STI again. Regular testing, prompt treatment and treating partners give the best results.

Prevention

  • Use condoms (external or internal) every time you have vaginal or anal sex, and condoms or dental dams for oral sex. They lower the risk a lot, though they do not cover every area of skin.
  • Get tested regularly, and before starting sex with a new partner. Ask partners to get tested too.
  • Limit the number of partners, or be in a relationship where both partners have tested negative and have sex only with each other.
  • Get treated and wait before having sex again, and make sure partners are treated.
  • Get tested in pregnancy. Screening for syphilis and other STIs in pregnancy protects your baby.
  • Ask about doxycycline after sex (often called doxy-PEP). Some health agencies now advise taking doxycycline within 72 hours after sex for certain people at higher risk, such as gay and bisexual men and transgender women who have had a bacterial STI recently. Talk with your provider about whether it suits you.

In the United States

In the United States, chlamydia, gonorrhea, syphilis and chancroid are nationally notifiable. CDC's STI Treatment Guidelines set standard care, and CDC issued doxy-PEP recommendations in 2024. Expedited partner therapy is permitted in most states. CDC recommends syphilis screening at the first prenatal visit, with repeat testing in the third trimester and at delivery for people at higher risk, as congenital syphilis cases have risen substantially. Many local health departments offer free or low-cost testing.

Diagnosis

Bacterial STIs are frequently asymptomatic; screen by risk and guideline (e.g. annual chlamydia/gonorrhea screening in sexually active women under 25, extragenital screening in MSM, syphilis screening in pregnancy).

  • Chlamydia/gonorrhea: NAAT on first-void urine or vaginal swab (self-collected acceptable); pharyngeal and rectal NAAT by exposure. Obtain gonococcal culture with susceptibility testing before treatment when feasible, especially with treatment failure.
  • Syphilis: treponemal plus nontreponemal serology (traditional or reverse algorithm); lesion PCR or darkfield where available. Stage clinically; examine for ocular, otic and neurological signs at any stage.
  • Genital ulcers: test for syphilis and HSV; chancroid (H. ducreyi PCR/culture) and granuloma inguinale (Donovan bodies on tissue smear or biopsy) are diagnoses of exclusion outside endemic exposure.
  • M. genitalium: NAAT for persistent or recurrent urethritis, cervicitis or PID; resistance testing where available.
  • Offer HIV testing and assess HIV PrEP eligibility; consider hepatitis B/C testing.

Management

Follow current national guidance (CDC STI Treatment Guidelines 2021 and updates; PHAC STBBI guides; BASHH/WHO). Under CDC 2021:

  • Uncomplicated gonorrhea: ceftriaxone 500 mg IM single dose (1 g if 150 kg or more); add doxycycline if chlamydia not excluded. Test of cure for pharyngeal infection.
  • Chlamydia: doxycycline 100 mg orally twice daily for 7 days; azithromycin 1 g single dose in pregnancy or when adherence is a concern.
  • Early syphilis (primary, secondary, early latent): benzathine penicillin G 2.4 million units IM once; late latent or unknown duration: weekly for 3 weeks. Neurosyphilis/ocular/otosyphilis: IV aqueous penicillin G. Penicillin-allergic pregnant patients require desensitisation.
  • Chancroid: azithromycin 1 g orally once or ceftriaxone 250 mg IM once. Granuloma inguinale: azithromycin weekly for at least 3 weeks and until lesions heal.

Cautions: doxycycline is avoided in pregnancy; warn about the Jarisch-Herxheimer reaction after syphilis treatment; rising gonococcal and M. genitalium macrolide resistance. Doxy-PEP (doxycycline 200 mg within 72 hours of condomless sex) is recommended for selected MSM and transgender women with a bacterial STI in the past year.

Partners and follow-up: notify and treat partners (expedited partner therapy where permitted); abstain for 7 days after single-dose therapy or until a 7-day regimen is completed, and until partners are treated; retest at 3 months. Monitor syphilis with nontreponemal titres at 6 and 12 months (more often in HIV); a fourfold rise suggests reinfection or failure. Report notifiable infections to public health.

Red flags: PID with systemic features, testicular torsion mimics, disseminated gonococcal infection, ocular/neurological syphilis, syphilis in pregnancy. Prognosis is excellent with timely treatment.

When to get medical help

See a health care provider or sexual health clinic soon if:

  • You notice unusual discharge, burning when you pee, or bleeding between periods or after sex
  • You have a sore, ulcer, lump or rash on or near your genitals, anus or mouth
  • A partner tells you they have an STI
  • You are pregnant and have not been tested for STIs
  • Your symptoms do not go away after treatment

Get urgent care, go to the emergency department, or call emergency services if you have:

  • Severe pain in your lower belly, especially with fever, vomiting or fainting, or if you could be pregnant
  • Sudden, severe pain or swelling in a testicle
  • A hot, swollen, painful joint with fever
  • Sudden changes in vision or hearing, a severe headache, stiff neck or confusion

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Bacterial Sexually Transmitted Diseases. meshb.nlm.nih.gov
  2. CDC: Sexually Transmitted Infections Treatment Guidelines, 2021 (MMWR). doi.org/10.15585/mmwr.rr7004a1
  3. MedlinePlus: Sexually Transmitted Infections. medlineplus.gov/sexuallytransmittedinfections.html
  4. WHO: Sexually transmitted infections (STIs) fact sheet. who.int/news-room/fact-sheets/detail/sexually-transmitted-infections-(stis)