Medicine guide
Trimethoprim: uses for UTIs, side effects and cautions
Trimethoprim is an antibiotic used mainly to treat and prevent urinary tract infections, including cystitis, and occasionally for chest infections and acne. It is taken twice a day for treatment. Its most important caution is early pregnancy, because it can lower folic acid levels.
Last checked: 2026-10-03
Key facts
At a glance.
-
Main use
Treating and preventing urinary tract infections and cystitis; occasionally chest infections and acne.
-
Strengths
Tablets of 100 mg or 200 mg, and a liquid with 50 mg in 5 ml.
-
Typical UTI doses
The NHS gives 200 mg twice a day to treat a UTI and 100 mg once a night to prevent one.
-
How it works
It kills bacteria by stopping them making folic acid, and can lower folic acid levels in your blood over time.
-
Early pregnancy
Not usually recommended in the first 12 weeks; folic acid at 5 mg a day may be advised when it is needed.
-
Alcohol and food
The NHS says you can drink alcohol, eat normally and take it with or without food.
What trimethoprim is used for
Trimethoprim is best known as a urinary antibiotic. The NHS lists treating and preventing urinary tract infections and cystitis as its main purpose, with occasional use for chest infections and acne. It comes as tablets and as a liquid for children or people who cannot swallow tablets.
The NHS explains the mechanism clearly: it kills bacteria by stopping them making a substance called folic acid. That also explains the cautions about folate further down the page.
Doses and course length
Quoted NHS amounts are 200 mg twice a day to treat a UTI and 100 mg once a day, at night, to prevent recurrences. Tablets come in 100 mg and 200 mg strengths and the liquid contains 50 mg in 5 ml. Your label is what counts.
Course length depends on the problem. The NHS describes a short course of about 3 days for a straightforward UTI, longer for severe or complicated infection, around 2 weeks for prostatitis (sometimes longer), and at least 3 months for acne. Finish the course even if you feel better, and speak to your doctor if you have not improved within 2 days or you are getting worse.
-
You can take it with or without food.
-
Missed dose: take it as soon as you remember unless the next is nearly due; never double up.
-
One extra dose is unlikely to do serious harm but may cause nausea or diarrhoea; call NHS 111 after two or more extra doses or if you are worried.
Who should be careful
Most adults and children can take trimethoprim. The NHS lists allergy to it or other medicines, liver or kidney problems, iron-deficiency anaemia, vitamin B12 or folate deficiency anaemia, porphyria and other blood disorders as reasons to check first.
Because the drug interferes with folic acid, anyone with a folate problem should tell the prescriber.
Pregnancy, breastfeeding and fertility
Trimethoprim can be used in pregnancy but is not usually recommended in the first 12 weeks because of the effect on folic acid. When it is necessary, doctors typically add folic acid, and the NHS mentions 5 mg a day, during early pregnancy and while trying to conceive.
A small amount passes into breast milk and is unlikely to affect a baby during short-term use. There is no evidence it harms fertility, but anyone taking it daily while trying to conceive should discuss options.
Side effects
More than 1 in 100 people get itching or a rash, nausea or vomiting, diarrhoea, thrush or headaches. A pharmacist can suggest an emollient or antihistamine for itching; for thrush, keep the area dry, wear cotton underwear and avoid sex until it has cleared.
-
Call NHS 111 or a doctor for bloody or severe diarrhoea, sudden severe stomach pain with sickness, yellow skin or eyes, unexplained bruising or bleeding, sore throat, mouth ulcers, fever or tiredness, or severe skin reactions.
-
Call 999 for headache with high temperature, stiff neck and sensitivity to light (possible meningitis), muscle weakness, an abnormal heartbeat or chest pain, or signs of anaphylaxis.
Interactions and bladder habits
The NHS names rifampicin, warfarin and acenocoumarol, digoxin, phenytoin, repaglinide, pioglitazone and methotrexate as medicines to review. An oral typhoid vaccine may work less well, so mention it if you have had or plan one.
The NHS also lists habits that can help prevent UTIs: staying well hydrated, good hygiene, cotton underwear, emptying the bladder fully when needed and avoiding irritating products near the genitals. It does not affect driving, contraception or alcohol.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
How does trimethoprim work?
The NHS says it kills bacteria by stopping them making folic acid. It can also lower folic acid levels in your blood over time.
-
Is trimethoprim safe in early pregnancy?
It is not usually recommended in the first 12 weeks. When it must be used, folic acid at a higher dose is typically prescribed, so tell your doctor if you are pregnant or trying.
-
Can I drink alcohol on trimethoprim?
Yes. The NHS says you can drink alcohol while taking it.
-
How long is a course for cystitis?
The NHS describes about 3 days for a straightforward UTI, longer for complicated infections. Follow your own prescription.
-
Why is it sometimes taken at night every day?
Lower doses at night are used to prevent repeated UTIs. The NHS gives 100 mg once a day at night as the prevention pattern.
-
What if symptoms continue after 2 days?
Speak to your doctor if you have not improved within 2 days or if you get worse at any point.
-
Does it affect the pill?
It does not reduce contraceptive effectiveness, except that vomiting or diarrhoea for more than 24 hours can affect the pill.
-
Does it cause thrush?
Thrush is a common side effect. Keep the area dry, wear cotton underwear and ask a pharmacist or doctor for treatment.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-03, next review 2027-10-03.
-
NHS medicines: trimethoprim (about, who can take it, how to take it, side effects, pregnancy, interactions and common questions pages), https://www.nhs.uk/medicines/trimethoprim/ , retrieved October 2026
-
Yellow Card scheme (MHRA) - the UK system anyone can use to report suspected side effects, https://yellowcard.mhra.gov.uk , retrieved October 2026