UTI after sex: why it happens, and how to stop it
Urinary infections that follow intercourse are common, and the reason is mechanical rather than anything to do with hygiene or infidelity: sex can move bacteria that already live around the vulva into the short female urethra. It is not a sexually transmitted infection. Effective prevention exists, including changing spermicide-based contraception, a single antibiotic dose taken after sex, and vaginal oestrogen after the menopause.
This is one of the most common patterns I see, and one of the least comfortable for patients to raise. Many women have worked out the connection themselves long before anyone asks them about it: infections that arrive a day or two after sex, reliably enough to plan around, sometimes to the point of avoiding intimacy altogether. If that is you, the important things to know are that the mechanism is well understood, that it says nothing about your hygiene or your relationship, and that it responds well to treatment.
Why intercourse triggers infection
The female urethra is short, around four centimetres, and its opening sits close to the vagina and the perineum, where E. coli from the bowel naturally lives on the skin. Intercourse mechanically moves some of those bacteria towards and into the urethra, from where they can ascend into the bladder. In a woman whose defences are working well, they are cleared. In a woman who is susceptible, whether because of hormonal changes, incomplete bladder emptying or the other factors on the causes page, they establish an infection instead.
Symptoms typically appear within twenty four to forty eight hours, which is what makes the pattern so recognisable.
What raises the risk
Frequency of intercourse is the strongest behavioural risk factor identified in studies of young women; in the classic prospective research, intercourse more than twice a week was associated with roughly a threefold increase in risk. This is a description of mechanics and exposure, not a recommendation to have less sex.
Spermicide is the most actionable item on this list, and the one most often missed. Spermicide containing nonoxynol-9, whether used alone, on coated condoms, or with a diaphragm, kills the protective lactobacilli in the vagina and allows E. coli to colonise in their place. Diaphragm-plus-spermicide is among the most consistently identified risk factors for recurrent UTI in the literature. Changing contraceptive method is frequently the single most effective intervention I can offer a younger woman with post-coital infections, and it costs nothing.
A new partner in the past year is a recognised risk factor, again through exposure to a different bacterial population rather than through anything transmitted.
Vaginal dryness increases friction and local trauma, and after the menopause it usually reflects the same oestrogen deficiency that makes the urinary tract vulnerable in the first place.
What actually prevents it
Change the contraception if spermicide is involved. First, always, where it applies. Non-spermicidal condoms, or a different method entirely, discussed with whoever manages your contraception.
A single antibiotic dose taken after sex. This is the most effective specific measure for a clear post-coital pattern, and it is a much smaller antibiotic exposure than taking a tablet every day, since it is tied to the trigger rather than to the calendar. It is well established in guidelines and, for the right patient, it can change life substantially. It needs a proper assessment first: this is a prescription with a plan and a review date, not something to improvise.
Vaginal oestrogen if you are peri or postmenopausal, which addresses both the infection risk and the dryness. See the treatment options page.
Methenamine hippurate as a non-antibiotic daily preventive where infections are frequent enough to warrant it. More here.
Lubricant where dryness or friction is part of the picture. Choose a plain water-based product without spermicide.
Passing urine after sex is the advice everyone has heard. It is sensible, it is harmless, and the theory is sound: flushing the urethra before bacteria ascend. I should be straight that the evidence for it is weaker than its popularity suggests, and studies have not clearly demonstrated the benefit. Do it, by all means. Just do not conclude that your infections are your fault for having forgotten.
Three things this is not
It is not a sexually transmitted infection. The bacteria involved are your own, from your own bowel and skin. Nothing is being passed between you and your partner.
Your partner does not need treatment. There is no benefit in treating a male partner for your urinary infections, and it is not a route by which they recur.
It is not about being unclean. Recurrent post-coital infection is a matter of anatomy, hormones and bacterial ecology. Women in this situation are often given the strong impression that they have done something wrong, which is both untrue and unhelpful. See the hygiene advice section for how little of that guidance holds up.
When it is not a UTI at all
Several other things cause burning, soreness or urinary symptoms after sex, and getting the diagnosis right matters because the treatments differ entirely.
Sexually transmitted infections, particularly chlamydia and gonorrhoea, can cause urethritis that feels much like cystitis. If symptoms began after a new partner, if urine cultures are repeatedly negative, or if there is any unusual discharge, a sexual health screen is a sensible and entirely routine step. I would rather test than assume.
Genitourinary syndrome of the menopause, where oestrogen deficiency causes dryness, soreness and urinary symptoms that are often mistaken for infection and treated with repeated antibiotics that do nothing.
Thrush, vulval skin conditions, and bladder pain syndrome each have their own patterns and their own treatments.
This is precisely why negative urine cultures in someone with ongoing symptoms deserve investigation rather than another prescription, a theme covered on the investigations page.
This pattern responds well to treatment
If infections after sex are shaping your life, a specialist review can identify why and put a specific plan in place.
Book a specialist review Or call 0204 558 6750 · WhatsAppCommon questions
Why do I get a UTI every time I have sex?
Is a UTI after sex an STI?
Does peeing after sex actually prevent UTIs?
Can my contraception be causing my UTIs?
What is the best treatment for UTIs after sex?
Should I stop having sex to avoid UTIs?
- Hooton T et al. A prospective study of risk factors for symptomatic urinary tract infection in young women. NEJM 1996
- Recurrent urinary tract infections: risk factors and behavioural modification (StatPearls)
- AUA/CUA/SUFU guideline: recurrent uncomplicated UTI in women (2025 amendment)
- NICE NG112: recurrent UTI, including post-coital prophylaxis
General information, not a substitute for personal medical advice.