Medically Reviewed

Trimethoprim

Is It Right for You?

A complete guide to Trimethoprim — what it treats, how it works, dosages, side effects, and when a clinician may prescribe it following an online consultation.

Licensed UK clinicians
Same-day prescriptions, where clinically appropriate
Delivered to your door within 24 hours
What our patients say
4.7 out of 5
Easy and efficient! … I am on the mend and so glad this service exists.
Pete Garvey
Excellent. Started to feel unwell and needed to see Dr before going on holiday. Couldn't get' GP appointment in time. I was 'seen' within 30mins of signing up. Just picked up a prescription. Very impressed with the Dr Victoria White.
Iann de Courcy
Fantastic service received from the gp service. Easy to book consultation… Would definitely use again :- )
Jay
Fantastic service. Easy to sign up and instructions were very clear. My doctor, Dr Shakil David Alam was amazing; listened to my issues, gave me in depth advice and really helped me out. Would definitely reuse - the speed of the service was impressive. Thank you Dr Shakil.
Babac Pashazadeh
I'm not someone who posts reviews regularly, but I have to say the process was super smooth. Booked a same day appointment with a clearly experienced and friendly doctor…
Yardie Grandmaster
Excellent service - quick, professional, and really convenient. The doctors are thorough and the whole process is smooth from start to finish. Highly recommend.
Mohammad Hassan
Overview

What Is Trimethoprim?

Trimethoprim is an antibiotic used primarily to treat urinary tract infections (UTIs) and certain respiratory tract infections. It belongs to the diaminopyrimidine class of antibiotics and works by interfering with the synthesis of folic acid in bacteria – a process essential for bacterial DNA production and cell replication. Trimethoprim is one of the most commonly prescribed antibiotics for uncomplicated lower UTIs in UK primary care and is recommended as a first-line treatment option in national prescribing guidelines.

First introduced in the 1960s, trimethoprim has a well-established safety record and a decades-long track record in the treatment of UTIs. It is frequently used as a standalone antibiotic for uncomplicated lower urinary tract infections and is also combined with sulfamethoxazole to form co-trimoxazole (Septrin) – a combination antibiotic used for more complex infections and in immunocompromised patients.

Trimethoprim is available in tablet and oral solution forms and is suitable for adults and children. It is available generically and is sometimes referred to informally as "TMP."

Trimethoprim is a prescription-only medication in the UK. A licensed clinician must assess your symptoms and medical history before it can be prescribed – which can now be done quickly and conveniently through a telehealth consultation.

What It Treats

What Conditions Is Trimethoprim Used For?

Trimethoprim is prescribed for bacterial infections, with a particular focus on urinary tract and respiratory infections:

Uncomplicated Lower Urinary Tract Infections (Cystitis)

the most common indication; first-line treatment for uncomplicated bacterial cystitis in women, and a widely used option for men with lower UTI symptoms.

Recurrent UTI Prophylaxis

low-dose trimethoprim taken nightly is used as long-term prophylaxis in patients who suffer from frequent recurrent UTIs to reduce the frequency of episodes.

Acute Exacerbations of Chronic Bronchitis

trimethoprim is used in some patients with COPD or chronic bronchitis where a susceptible organism is the likely cause of an acute exacerbation.

Pneumocystis Pneumonia Prophylaxis

as part of co-trimoxazole regimens, trimethoprim is used to prevent Pneumocystis jirovecii pneumonia (PCP) in immunocompromised patients, including those with HIV.

Mild to Moderate Respiratory Tract Infections

certain lower respiratory tract infections caused by susceptible organisms, particularly in patients where other antibiotics are contraindicated.

Traveler's Diarrhea

trimethoprim (usually as co-trimoxazole) has been used for bacterial traveller's diarrhoea, though fluoroquinolones or azithromycin are now more commonly preferred.

Increasing Resistance Is a Concern

Trimethoprim resistance among urinary tract pathogens – particularly Escherichia coli – has been rising in the UK and now exceeds 30% in some regions. A clinician will take local resistance patterns and your individual history into account when deciding whether trimethoprim is appropriate for your UTI. If your symptoms do not improve within 48 hours of starting trimethoprim, contact your clinician as resistance may be a factor.

Mechanism of Action

How Does Trimethoprim Work?

Trimethoprim works by selectively and competitively inhibiting dihydrofolate reductase (DHFR) – a bacterial enzyme that is essential for the conversion of dihydrofolate to tetrahydrofolate, a biologically active form of folic acid.

Bacteria, unlike humans, cannot absorb folic acid from their environment and must synthesise it internally. Tetrahydrofolate is an essential cofactor required for the synthesis of thymidine, purines, and certain amino acids – all of which are necessary building blocks for bacterial DNA replication and protein synthesis. By blocking DHFR, trimethoprim prevents bacteria from producing the tetrahydrofolate they need, starving them of the molecular components required for DNA synthesis and halting their ability to replicate.

Trimethoprim's selectivity for bacterial DHFR over human DHFR is approximately 50,000 to 100,000 times greater, which is why it can inhibit bacterial folic acid synthesis at concentrations that have minimal effect on human cells. Humans obtain folic acid from dietary sources rather than synthesising it, and our DHFR enzyme has a significantly different structure from the bacterial version, making it far less susceptible to trimethoprim.

At standard therapeutic doses, trimethoprim is primarily bacteriostatic – it inhibits bacterial growth and replication rather than directly killing bacteria, allowing the immune system to clear the infection. At higher concentrations achieved in the urine, it may be bactericidal. It achieves particularly high urinary concentrations relative to blood levels, making it especially well suited to treating infections within the urinary tract.

Dosages & Administration

Dosages & Administration

The correct dose depends on the type and severity of infection, age, weight, and kidney function. Always follow your clinician's instructions. The table below is for general reference only.

Condition
Adult Dose
Frequency
Duration
Uncomplicated UTI (women)
200 mg
Twice daily
7 days
Uncomplicated UTI (women, short course)
200 mg
Twice daily
3 days
UTI in men
200 mg
Twice daily
14 days
Recurrent UTI prophylaxis
100 mg
Once nightly
Long-term (as directed)
Acute bronchitis / chest infection
200 mg
Twice daily
7 days
Children (UTI, 6 weeks – 5 months)
25 mg
Twice daily
7 days
Children (UTI, 6 months – 5 years)
50 mg
Twice daily
7 days
Children (UTI, 6–11 years)
100 mg
Twice daily
7 days

Administration Tips

Trimethoprim can be taken with or without food. If it causes mild nausea or stomach upset, taking it with a meal can help reduce this.

Take doses at evenly spaced intervals – twice-daily dosing is most effective when taken approximately 12 hours apart to maintain consistent antibiotic levels in the blood and urine throughout the day and night.

Drink plenty of fluids throughout treatment to help flush bacteria from the urinary tract and maintain adequate urine flow.

Always complete the full prescribed course even if UTI symptoms – such as burning, urgency, and frequency – resolve within the first day or two. Stopping early allows surviving bacteria to return and may contribute to the development of antibiotic resistance.

For prophylactic use, the single nightly dose is typically taken at bedtime. Consistent timing each night is important to maintain protective antibiotic levels throughout the overnight period when urine is most concentrated in the bladder.

Oral solution should be measured carefully using the measuring device provided and not a household spoon.

Safety Profile

Side Effects of Trimethoprim

Trimethoprim is generally well tolerated for short courses. Most side effects are mild. Serious adverse effects are uncommon but require prompt medical attention.

Common Side Effects
  • Nausea
  • Vomiting
  • Diarrhoea
  • Abdominal discomfort
  • Skin rash (mild)
  • Itching (pruritus)
  • Headache
  • Oral or vaginal thrush
Serious - Seek Immediate Care
  • Severe allergic reaction (anaphylaxis) – hives, facial or throat swelling, difficulty breathing, collapse
  • Severe skin reactions – Stevens-Johnson Syndrome or Toxic Epidermal Necrolysis; blistering and widespread skin peeling
  • Blood disorders – trimethoprim inhibits folate metabolism, which with prolonged use can lead to megaloblastic anaemia, thrombocytopenia (low platelets), or leukopenia (low white blood cells); symptoms include unusual fatigue, pallor, easy bruising, or increased infections
  • Hyperkalaemia (high potassium) – trimethoprim blocks renal potassium excretion in a similar way to potassium-sparing diuretics; high potassium levels can cause cardiac arrhythmias; risk is higher in elderly patients and those with kidney disease
  • Hepatotoxicity – jaundice, dark urine, severe fatigue; rare
  • C. difficile-associated diarrhoea – persistent watery or bloody diarrhoea, abdominal cramping, fever
  • Aseptic meningitis – rare; severe headache, neck stiffness, photophobia
Folic Acid Supplementation

Because trimethoprim inhibits folate metabolism, long-term use – particularly in patients who are already folate-deficient, malnourished, elderly, pregnant, or taking other folate antagonists such as methotrexate – can lead to clinically significant folate deficiency. Clinicians may recommend folic acid supplementation during prolonged trimethoprim therapy. For prophylactic long-term use in women of childbearing age, folic acid supplementation is particularly important.

Drug Interactions

Drug Interactions

Always disclose all prescription drugs, over-the-counter medicines, vitamins, and supplements to your clinician or pharmacist before starting trimethoprim.

Major
Methotrexate

Both trimethoprim and methotrexate inhibit dihydrofolate reductase. Concurrent use dramatically increases the risk of serious folate deficiency, bone marrow suppression, megaloblastic anaemia, and methotrexate toxicity. This combination should be avoided wherever possible. If both must be used, close monitoring of blood counts and folate levels is essential.

Major
Dofetilide

Trimethoprim significantly increases plasma levels of dofetilide (an antiarrhythmic drug) by inhibiting its renal excretion, raising the risk of potentially fatal QT prolongation and Torsades de Pointes. This combination is contraindicated.

Major
Potassium-Sparing Diuretics and ACE Inhibitors / ARBs

Trimethoprim reduces renal potassium excretion, effectively acting as a potassium-sparing agent. When combined with potassium-sparing diuretics (e.g. spironolactone, amiloride) or ACE inhibitors/ARBs (which also raise potassium), the risk of dangerous hyperkalaemia is significantly increased. Potassium levels should be monitored closely in patients on these medications.

Moderate
Warfarin

Trimethoprim may enhance the anticoagulant effect of warfarin by inhibiting its metabolism via CYP2C9, increasing the risk of bleeding. INR should be monitored closely during and after trimethoprim treatment in patients on warfarin.

Moderate
Phenytoin

Trimethoprim inhibits the hepatic metabolism of phenytoin, potentially increasing phenytoin blood levels to toxic concentrations. Phenytoin levels should be monitored if trimethoprim is prescribed concurrently.

Moderate
Azathioprine and Mercaptopurine

Concurrent use with trimethoprim increases the risk of haematological toxicity including bone marrow suppression. Blood counts should be monitored closely.

Moderate
Digoxin

Trimethoprim may increase digoxin plasma levels by reducing its renal excretion. Digoxin toxicity should be monitored in elderly patients and those on long-term digoxin therapy.

Moderate
Oral Contraceptives

As with other antibiotics, there is a theoretical risk that trimethoprim may reduce the efficacy of hormonal contraceptives. Use an additional contraceptive method during treatment as a precaution.

.

Minor
Antidiabetic Drugs

Trimethoprim may potentiate the effects of some oral antidiabetic agents, increasing the risk of hypoglycaemia. Blood glucose should be monitored more closely in diabetic patients starting trimethoprim.

Safety Warnings

Important Warnings

Hyperkalaemia (High Potassium)

Trimethoprim blocks the renal epithelial sodium channel (ENaC) in a manner similar to potassium-sparing diuretics, reducing urinary potassium excretion and raising serum potassium levels. This can be clinically significant in patients who are elderly, have chronic kidney disease, or are taking other drugs that raise potassium – including ACE inhibitors, ARBs, spironolactone, and amiloride. Hyperkalaemia can cause life-threatening cardiac arrhythmias. Potassium and kidney function should be checked in at-risk patients when trimethoprim is prescribed.

danger
Blood Disorders with Prolonged Use

Long-term trimethoprim use can cause folate depletion leading to megaloblastic anaemia, thrombocytopenia, and leukopenia. These effects are more likely in patients who are already folate-deficient, elderly, malnourished, alcoholic, or taking other folate antagonists. Full blood count should be monitored in patients on long-term trimethoprim prophylaxis.

danger
Rising Resistance

Trimethoprim resistance among common UTI pathogens is increasing. If you have had a trimethoprim-resistant UTI in the past, or if your symptoms do not improve within 48 hours of starting treatment, contact your clinician. A urine culture may be required to identify the causative organism and confirm antibiotic sensitivity.

warning
Kidney Impairment

Trimethoprim is primarily excreted by the kidneys and can accumulate to toxic levels in patients with significantly reduced kidney function. Dose reduction or an alternative antibiotic may be required. Always disclose any history of kidney disease before starting trimethoprim. In patients with eGFR below 15 mL/min, trimethoprim is generally contraindicated.

warning
Pregnancy

Trimethoprim is a folate antagonist and should be avoided in the first trimester of pregnancy, as folate is essential for neural tube development and trimethoprim's anti-folate activity theoretically increases the risk of neural tube defects. It should also be avoided at term. If antibiotic treatment is necessary during the first trimester, alternative agents such as nitrofurantoin or cefalexin are preferred. Always inform your clinician if you are pregnant or trying to conceive before starting trimethoprim.

warning
Breastfeeding

Trimethoprim passes into breast milk. While it is generally considered compatible with breastfeeding at standard short-term doses, prolonged use should be discussed with a clinician, particularly if the infant is premature or has jaundice, as trimethoprim can displace bilirubin from protein binding.

warning
Elderly Patients

Older patients are at higher risk of adverse effects from trimethoprim, including hyperkalaemia, blood disorders, and drug interactions. Kidney function should be assessed before prescribing and monitored during long-term use.

warning
Getting Treatment

Speak to a Clinician About Treatment

Getting advice no longer means sitting in a waiting room. Through The GP Service, you can consult with a licensed clinician in minutes — from home, on your lunch break, or wherever works for you. If treatment is clinically appropriate, your clinician can issue a prescription during the consultation. A consultation does not guarantee a prescription.

Woman sitting on a couch using a mobile app with a calendar and timer interface on the screen.
1
Book Your Appointment
Book to see a consultant online the same day, at a time that suits you.
Open 365 days a year, 8am - 5pm
Same-day appointments available
Smiling male doctor wearing a white coat and stethoscope holding a tablet in a hospital corridor.
2
See a Consultant
Speak to one of our licensed medical professionals from anywhere - using a phone, computer, or tablet.
Request prescriptions
Request Fit Notes
Request Referral Letters
Pharmacist wearing a white coat smiling and explaining medication to a female customer in a pharmacy.
3
Get Treatment
Within minutes of your consultation, receive prescriptions, fit notes, or referral letters where clinically appropriate.
Collect prescriptions within an hour of issue
Pick up from ANY pharmacy
Shared with your medical records & NHS GP

The treatment you need, when you need it.

See a licensed clinician online in minutes. If amoxicillin is clinically right for you, your prescription will be sent to your pharmacy the same day.
Book My Consultation
No waiting room
Delivered to your door within 24 hours
Open 365 days a year
Licensed UK clinicians
Secure & confidential
Frequently Asked Questions

Trimethoprim FAQs

Can I get a trimethoprim prescription online?

Yes. A licensed clinician can assess your symptoms via a telehealth consultation and prescribe trimethoprim if it is clinically appropriate. Prescriptions are typically sent to your preferred pharmacy the same day, often within minutes of your consultation.

How quickly does trimethoprim start working for a UTI?

Most patients notice a significant improvement in UTI symptoms – including reduced burning, urgency, and frequency – within 24 to 48 hours of starting trimethoprim. If symptoms are not improving after 48 hours, contact your clinician, as this may indicate a trimethoprim-resistant infection requiring a different antibiotic.

How long should I take trimethoprim for a UTI?

For uncomplicated lower UTIs in women, trimethoprim is typically prescribed for either 3 or 7 days depending on local guidelines, clinical assessment, and individual circumstances. A 7-day course is recommended in most current UK guidelines. For men with UTIs and for complicated infections, longer courses of 14 days or more are usually required. Always complete the full prescribed course.

Is trimethoprim still effective for UTIs?

Trimethoprim remains effective against many UTI-causing bacteria, but resistance rates – particularly among E. coli – are rising. In some areas of the UK, more than 30% of UTI isolates are now resistant to trimethoprim. Your clinician will consider local resistance patterns and your personal history of UTIs and antibiotic use when deciding whether trimethoprim is the most appropriate choice.

What is the difference between trimethoprim and nitrofurantoin?

Both are first-line antibiotic options for uncomplicated lower UTIs in UK guidelines. Trimethoprim works by inhibiting bacterial folate synthesis and is taken twice daily for 7 days. Nitrofurantoin works by damaging bacterial DNA and metabolic processes and is usually taken twice daily for 5 days in its modified-release form. Nitrofurantoin cannot be used if kidney function is significantly impaired (eGFR below 45 mL/min), and trimethoprim cannot be used in the first trimester of pregnancy. Your clinician will choose the most appropriate option based on your circumstances, local resistance data, and any contraindications.

Can trimethoprim be used long-term to prevent UTIs?

Yes. Low-dose trimethoprim (typically 100 mg taken nightly) is used as long-term prophylaxis in patients who suffer from frequent recurrent UTIs. This approach can significantly reduce the frequency of UTI episodes. Long-term use requires monitoring of kidney function and blood counts due to the risk of folate depletion and hyperkalaemia with extended treatment.

Can I take trimethoprim during pregnancy?

Trimethoprim should be avoided in the first trimester of pregnancy due to its anti-folate activity and the potential risk to neural tube development. It should also be avoided at term. Alternative antibiotics such as nitrofurantoin (in the first and second trimesters) or cefalexin are usually preferred for treating UTIs during pregnancy. Always inform your clinician if you are pregnant before starting any antibiotic.

What should I do if I miss a dose?

Take the missed dose as soon as you remember. If it is almost time for your next scheduled dose, skip the missed one and continue as normal. Try to maintain approximately 12-hour spacing between doses for twice-daily regimens. Do not take a double dose.

Can I drink alcohol while taking trimethoprim?

There is no known dangerous direct interaction between alcohol and trimethoprim. However, alcohol can irritate the bladder and potentially worsen UTI symptoms, and it can also suppress the immune system and slow recovery. It is generally advisable to avoid or minimise alcohol while treating a UTI.

Does trimethoprim affect the contraceptive pill?

As with other antibiotics, there is a theoretical risk that trimethoprim may reduce the effectiveness of hormonal contraceptives. The clinical evidence is limited, but using an additional contraceptive method during treatment and for 7 days after completing the course is a reasonable precaution. Discuss this with your clinician or pharmacist.

Medical Disclaimer: The information on this page is provided for educational purposes only and is not intended as a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of a qualified healthcare professional with any questions you may have regarding a medical condition or medication. Never disregard professional medical advice or delay seeking it because of something you have read on this page. If you think you may have a medical emergency, call 999 or your local emergency services immediately.