Skip to content
Antibiotics — DiaminopyrimidinesATC J01EA01

Trimethoprim

Prescription only

Folate-blocking antibiotic for simple urine infections.

Starts working
1–2 hours
Half-life
8–11 hours
In use since
—
Pregnancy
Usually avoided

Overview

Trimethoprim is a long-standing choice for uncomplicated urinary tract infections and is a component of co-trimoxazole. It can raise potassium and creatinine and should be avoided in the first trimester.

Conditions it's used for

How it works

Stops bacteria making folate, which they need to grow.

Trimethoprim belongs to the Diaminopyrimidines. How Diaminopyrimidines work: block a bacterial enzyme needed to make folate, which stops them copying their DNA.

Uses

  • Urinary tract infection
  • Prophylaxis of recurrent UTI
  • Pneumocystis pneumonia (as co-trimoxazole)

Available as: tablet, oral liquid.

Typical dose

Adults
200 mg twice a day for 3 days (women, uncomplicated UTI) or longer in men.
Good to know
Child doses are weight-based.

Typical doses for orientation only. Your prescription, the pack leaflet and local guidance take priority.

Side effects

Common

Often mild and may settle with time

  • Nausea
  • Rash
  • Itching
  • Raised potassium

Serious — get medical help

Uncommon, but need prompt attention

  • Low blood counts
  • High potassium
  • Severe skin reactions
  • Folate deficiency

Warnings

  • Avoid in early pregnancy without folic acid
  • Check potassium if on ACE inhibitors

Who should avoid it

  • First trimester of pregnancy
  • Blood disorders
  • Severe kidney disease
  • Folate deficiency

Interactions

  • ACE inhibitors, ARBs, spironolactone — high potassium
  • Methotrexate — bone marrow toxicity
  • Warfarin — higher INR
  • Phenytoin — raised levels
  • Ciclosporin — kidney strain

Other medicines in the atlas that need care with Trimethoprim, grouped by the reason:

High potassiumMajorWith Amiloride, Candesartan, Captopril, Ciclosporin, Co-trimoxazole and 18 more

Trimethoprim can reduce potassium excretion. Combining it with potassium supplements or potassium-raising medicines can cause dangerous hyperkalaemia.

What's usually done: Avoid where possible; check potassium and kidney function if prescribed together.

Severe methotrexate toxicityMajorWith Methotrexate

Trimethoprim adds to methotrexate's folate blockade and reduces its clearance, causing potentially fatal bone marrow suppression.

What's usually done: Avoid together; choose a different antibiotic.

Dangerous high potassiumMajorWith Potassium chloride

Potassium supplements with drugs that hold on to potassium can push levels high enough to disturb heart rhythm.

What's usually done: Only combine with regular blood tests; avoid potassium salt substitutes.

Warfarin effect strongly increasedMajorWith Warfarin

This medicine slows warfarin's breakdown or disrupts vitamin K, so INR can rise sharply within days, risking bleeding.

What's usually done: Check INR within 3–5 days of starting or stopping; a warfarin dose reduction is often needed.

High potassium riskModerateWith Amiloride, Candesartan, Captopril, Ciclosporin, Co-trimoxazole and 17 more

Both medicines can raise potassium. Kidney disease, diabetes and older age add to the risk.

What's usually done: Commonly combined (e.g. ACE inhibitor with spironolactone in heart failure) with blood tests after starting and dose changes.

Check Trimethoprim against your own medicines

Using it safely

Alcohol
Usually no problem in moderation. No direct interaction.
Food and drink
With or without food; drink plenty of fluids.
If you miss a dose
Take when remembered; skip if near the next dose.
Stopping it
Complete the course.
Driving
No effect.
Tests and checks
Potassium and creatinine in risk groups
If too much is taken
Nausea, dizziness and bone marrow effects with chronic overdose. Seek help.
Storage
Room temperature.
Legal status
United States: Prescription onlyUnited Kingdom: Prescription-only medicine (POM)India: Schedule HAustralia: Prescription only (Schedule 4)

Pregnancy and breastfeeding

Pregnancy

Usually avoided

Avoid in the first trimester; folate antagonist.

Breastfeeding

Generally considered safe

Small amounts in milk; generally acceptable.

Special groups

Kidney disease
Halve the dose when clearance is 15–30 mL/min.
Older adults
Check potassium and kidney function.

Brand names

United Kingdom
Trimethoprim (generic)
India
Ipral, Tmp
Australia
Alprim, Triprim

Examples only; many generic versions exist. The same brand name can mean different products in different countries.

Common questions

Do I need a prescription for Trimethoprim?

Yes — Trimethoprim is prescription-only in most countries.

Can I take Trimethoprim during pregnancy?

Usually avoided. Avoid in the first trimester; folate antagonist. Always check with a doctor or midwife.

How quickly does Trimethoprim work?

1–2 hours.

Sources and official information

Entry last reviewed October 2026. Compiled from WHO, NHS, FDA/DailyMed, BNF and national formulary information. How we write entries.