Doxycycline is a tetracycline antibiotic used to treat several bacterial sexually transmitted infections, most commonly chlamydia. It's taken as a short course of oral pills and works by stopping bacteria from making the proteins they need to multiply. It cures bacterial STIs only, and does nothing against viral ones like herpes or HIV. Take it with food, finish every dose, and avoid strong sun.
antibiotics clear them
medicine controls, doesn't cure
| Item | Value |
|---|---|
| Bacterial & parasitic (chlamydia, gonorrhea, syphilis, trich) | curable — antibiotics clear them |
| Viral (herpes, HIV, hepatitis B, HPV) | managed — medicine controls, doesn't cure |
The essentials: what doxycycline treats and how you take it
Doxycycline is one of the most-prescribed antibiotics for STIs because it covers chlamydia reliably. It's also used in treating syphilis (for people with a penicillin allergy) and certain pelvic infections. It comes as oral capsules or tablets, typically a twice-daily course over several days rather than a single dose. The CDC's STI Treatment Guidelines list it as a recommended option for chlamydia and as part of combination regimens elsewhere CDC, 2021.
Whether an infection can be cured at all depends on its cause. Bacterial and parasitic STIs — chlamydia, gonorrhea, syphilis, trichomoniasis — are curable with the right antibiotic. Viral infections like herpes, HIV, hepatitis B, and HPV can be controlled with medicine but not cured. Doxycycline does nothing against a virus, and taking it for one is both useless and a driver of antibiotic resistance.
Treatment is simpler than many people fear. For chlamydia, it's usually a course of pills you take at home over a few days, often free or low-cost at a health department or Planned Parenthood. In many states your partners can be treated without their own clinic visit through expedited partner therapy, where your clinician sends medication or a prescription home with you for them.
How doxycycline works in the body
Doxycycline blocks bacteria from building proteins. It binds to the bacterial ribosome, the cell's protein-assembly machine, and jams the step where amino acids are added to a growing protein chain. Without new proteins, the bacteria can't grow or reproduce, and your immune system clears the stalled population. Because human cells use a different ribosome, the drug targets bacteria while leaving your own cells largely alone.
Timing and completeness matter because of that mechanism. The drug keeps bacterial numbers suppressed only while there's enough of it in your system. Most people start feeling better within a few days, but that usually just means the bacterial load has dropped, not that the infection is gone. If you stop early, surviving organisms can repopulate and the infection bounces straight back. Stopping when symptoms ease and skipping partner treatment are the two most common ways an STI quietly persists.
Some bacterial STIs need a follow-up test to confirm the infection is gone (a test-of-cure) or a retest weeks to months later to catch reinfection. Your clinician will tell you which applies. A finished bottle of pills doesn't always mean an all-clear.
Practical details: dairy, antacids, sun, and alcohol
Doxycycline's two best-known quirks are stomach upset and sun sensitivity. Taking it with food blunts the nausea most people otherwise feel. For the photosensitivity, where your skin burns far faster than usual, cover up and skip prolonged sun and tanning beds while you're on it. Even a short exposure can produce an exaggerated burn.
The interaction that trips people up most is mineral binding. Calcium, magnesium, iron, and aluminum grab onto doxycycline in your gut and stop it from being absorbed, so the drug never reaches a level high enough to clear the infection. The usual culprits:
- Dairy taken at the same time — milk, yogurt, cheese, and milk-heavy coffee drinks.
- Antacids and acid reducers containing calcium, magnesium, or aluminum.
- Iron supplements and many multivitamins.
- Calcium and magnesium supplements taken with the pill.
You don't have to avoid these foods entirely. Just separate them from your dose by a couple of hours so the absorption window is clear. A glass of water and a light, non-dairy snack is the safest way to take each dose.
With alcohol it depends on the drug. Doxycycline itself doesn't carry the hard no-alcohol warning that some STI medicines do. That warning belongs to metronidazole and tinidazole, the drugs used for trichomoniasis and bacterial vaginosis, which can cause a rough flushing-and-vomiting reaction with alcohol, so those require avoiding alcohol during treatment and for a short time afterward CDC trichomoniasis treatment. If you're on doxycycline specifically, the sun and the food-timing rules matter more than your drink.
One more rule cuts across every STI antibiotic: avoid sex until you and your partners have finished treatment and any wait period your clinician sets, often about a week after a single-dose treatment, so you don't pass the infection back and forth.
What doxycycline does not cover
Doxycycline is not a one-size-fits-all STI cure, and assuming it is can leave an infection untreated. This is where it fits against the most common infections and where it doesn't.
| Infection | Doxycycline's role | What's actually used |
|---|---|---|
| Chlamydia | Recommended oral course | Doxycycline (a short course of pills) |
| Gonorrhea | Not the standalone cure | A single ceftriaxone injection |
| Trichomoniasis / BV | Not used | Metronidazole or tinidazole |
| Herpes, HIV, HPV, hepatitis B | Useless — viral, not bacterial | Antiviral medicine (control, not cure) |
Gonorrhea is the sharpest example. It has grown resistant to nearly every antibiotic once used against it, which is why the only recommended treatment now is a single ceftriaxone injection, with the main side effect being soreness at the injection site CDC drug-resistant gonorrhea. Doxycycline alone won't reliably clear it. Because chlamydia and gonorrhea often travel together, clinicians sometimes pair the ceftriaxone shot with doxycycline, but the shot is doing the work against the gonorrhea. Read more on the full picture of gonorrhea and how it's managed.
Doxycycline also shows up in regimens for pelvic inflammatory disease, the deeper infection that can follow untreated chlamydia or gonorrhea and threaten fertility. There it's part of a combination rather than used alone. See the details on pid treatment.
No over-the-counter product or home remedy cures a bacterial or viral STI. Yogurt, garlic, douching, and detoxes do nothing. You need the specific prescription drug matched to a real diagnosis, which means actual testing rather than guesswork.
When to see a clinician
See a clinician before starting any antibiotic for a suspected STI, since you need a diagnosis to know whether doxycycline is even the right drug. Go promptly if you have symptoms like unusual discharge, burning with urination, pelvic or testicular pain, or sores, and if you've had a known exposure. Infections take a window to show up, so timing your test matters; here's when to test after exposure.
If you're due for screening or have a reason to check, you can get tested at a clinic, health department, or through an at-home option. Come back to your clinician if symptoms don't improve after finishing the full course, if they return, or if you develop a severe skin reaction, trouble swallowing, or persistent vomiting.