MedChunk
Medically reviewed

How Antibiotics Treat a UTI: Choices and What to Expect

Learn how antibiotics treat UTIs, which medicines doctors may prescribe, how treatment choices are made, how long antibiotics take to work, and what to expect during recovery.

By Caleb Bennett Reviewed by Dr. Irene Medical review dateNov 19, 2026 12 min read

Antibiotics treat a urinary tract infection (UTI) by killing bacteria or stopping them from growing. The medicine a healthcare professional chooses depends on where the infection is located, the bacteria involved, your medical history, allergies, kidney function, and local antibiotic resistance. Most uncomplicated bladder infections can be treated with antibiotics taken by mouth, while more serious infections may require hospital care.

How do antibiotics work against a UTI?

A UTI develops when bacteria enter the urinary tract and multiply. The infection most commonly affects the bladder, although it can also involve the kidneys or other parts of the urinary system.

Antibiotics work against the bacteria responsible for the infection. Depending on the medicine, they either kill bacteria or prevent them from multiplying, allowing the body's natural defenses to help clear the infection.

According to the Centers for Disease Control and Prevention (CDC), antibiotics are used to treat bacterial UTIs, and a healthcare professional determines which antibiotic is appropriate.

The choice matters because different antibiotics work against different bacteria. A medicine suitable for a bladder infection may not be appropriate for an infection that has reached the kidneys.

Which antibiotics are commonly used for UTIs?

Several antibiotics may be used for bacterial UTIs. The choice depends on the type of infection, the person's circumstances, previous urine test results, and local patterns of antibiotic resistance.

Nitrofurantoin

Nitrofurantoin is commonly used for uncomplicated bladder infections. It works by interfering with processes that bacteria need to survive and multiply.

It is not an appropriate choice for every urinary infection. In particular, it is not suitable for treating a kidney infection because it does not achieve adequate levels in kidney tissue.

Kidney function also matters when considering this medicine. The National Institute for Health and Care Excellence (NICE) includes kidney-function requirements when recommending nitrofurantoin for lower UTIs.

Trimethoprim

Trimethoprim is another antibiotic that may be prescribed for a bladder infection. It works by blocking a process bacteria need to produce folate, which is important for their growth.

However, some bacteria have become resistant to trimethoprim. A healthcare professional may consider local resistance patterns and previous urine culture results before selecting it.

Trimethoprim-sulfamethoxazole

This combination antibiotic is also known as co-trimoxazole or TMP-SMX. It contains two medicines that interfere with bacterial folate production in different ways.

It may be considered for certain UTIs when the bacteria are expected to be sensitive to it. Previous antibiotic exposure, allergies, other medicines, and local resistance patterns can affect whether it is appropriate.

Fosfomycin

Fosfomycin is an antibiotic that may be prescribed as a single oral dose for certain uncomplicated bladder infections. It works by interfering with bacterial cell-wall formation.

Although a single dose can be convenient, fosfomycin is not suitable for every type of UTI. It should not be assumed to treat a kidney infection.

Other antibiotics

Depending on the infection and the patient's circumstances, healthcare professionals may consider other medicines, including certain cephalosporins or fluoroquinolones.

Fluoroquinolones, such as ciprofloxacin, are generally reserved for situations in which other suitable options are unavailable or inappropriate because of their potential adverse effects and concerns about antibiotic resistance.

How do doctors choose the right UTI antibiotic?

There is no single antibiotic that works best for every UTI. A healthcare professional considers several factors before choosing a medicine.

Location and type of infection

A bladder infection, also called cystitis, is different from a kidney infection, known as pyelonephritis. Antibiotics used for uncomplicated bladder infections may not reach adequate levels in kidney tissue.

Fever, chills, pain in the side or back, and feeling generally unwell can raise concern about an infection beyond the bladder. These symptoms require prompt medical assessment because the treatment approach may be different.

Urine culture and antibiotic resistance

A urine culture is a laboratory test that identifies bacteria growing in a urine sample. It can also show which antibiotics are likely to work against those bacteria.

For some uncomplicated bladder infections, treatment may begin based on symptoms and clinical assessment without waiting for a culture. However, a urine culture is particularly useful in situations such as pregnancy, recurrent infections, suspected kidney infections, complicated UTIs, or when initial treatment does not work as expected.

The Indian Council of Medical Research (ICMR) provides a standard treatment workflow for UTIs that addresses infection classification, urine testing, and antibiotic selection in the Indian healthcare setting.

Allergies, kidney function, and other medicines

Your medical history can influence which antibiotic is appropriate. For example, a history of an allergic reaction to a particular antibiotic may rule out that medicine or related drugs.

Kidney function is important because some antibiotics need dose adjustments or may not be suitable when kidney function is reduced. Other medicines, pregnancy, and existing health conditions may also affect the choice.

Pregnancy and other special circumstances

UTIs during pregnancy need particular attention because an untreated infection can lead to complications. Healthcare professionals generally use urine testing and select an antibiotic considered appropriate during pregnancy.

Children, men, older adults with additional health concerns, and people with weakened immune systems or urinary tract abnormalities may also need a different assessment and treatment plan from otherwise healthy adults with uncomplicated bladder infections.

How long do you need to take antibiotics for a UTI?

The length of treatment depends on the antibiotic, infection location, age, pregnancy status, and other medical factors.

For example, treatment for an uncomplicated bladder infection in a nonpregnant adult woman may involve a short course of antibiotics. Some commonly recommended regimens last three days, while other medicines may be prescribed as a single dose or for a different duration.

Infections involving the kidneys, complicated UTIs, and infections in certain other patient groups may require longer treatment.

According to the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK), treatment duration depends on factors such as infection severity, response to treatment, repeated infections, and urinary tract problems.

Follow the exact duration prescribed. Do not shorten, extend, or repeat an antibiotic course yourself, even if your symptoms improve before the medicine runs out.

What should you expect after starting UTI antibiotics?

Many people begin to notice improvement within a few days of starting an appropriate antibiotic, although the timing varies with the infection and the medicine used.

Some symptoms may improve before others. Burning during urination, frequent trips to the bathroom, and lower abdominal discomfort may gradually become less noticeable as the infection responds to treatment.

However, feeling better does not necessarily mean the infection has been completely treated. Continue taking the prescribed medicine according to your healthcare professional's instructions.

What if symptoms do not improve?

If symptoms are not improving within 48 hours of starting treatment, or if they become worse, contact a healthcare professional. The original antibiotic may not be effective against the bacteria, the infection may involve another part of the urinary tract, or another condition may be causing the symptoms.

A healthcare professional may review the diagnosis, arrange a urine culture, and consider changing the antibiotic if the results or clinical assessment support doing so.

New fever, chills, pain in the back or side, vomiting, or feeling seriously unwell warrants prompt medical assessment rather than waiting for the antibiotic course to finish.

What side effects can UTI antibiotics cause?

Antibiotics can cause side effects, although not everyone experiences them. The possible effects depend on the specific medicine and individual circumstances.

Common side effects of some antibiotics include:

  • Nausea or an upset stomach.
  • Loose stools or diarrhea.
  • Abdominal discomfort.
  • Changes in appetite.
  • Skin rash.
  • Yeast infections in some people.

Some reactions require more attention. A widespread or severe rash, swelling of the face or throat, or difficulty breathing may indicate a serious allergic reaction and requires emergency medical care.

Severe or persistent diarrhea during or after antibiotic treatment also needs medical attention. Antibiotics can sometimes disrupt normal intestinal bacteria and allow an infection called Clostridioides difficile (C. difficile) to develop.

The CDC highlights potential antibiotic-related problems, including allergic reactions, antibiotic resistance, and C. difficile infection.

Why is antibiotic resistance important when treating a UTI?

Antibiotic resistance occurs when bacteria develop the ability to survive medicines that previously killed them or stopped their growth.

When bacteria causing a UTI are resistant to the prescribed antibiotic, treatment may not work as expected. The infection may continue, and a different medicine may be needed.

Resistance is one reason healthcare professionals avoid prescribing antibiotics unnecessarily. It also explains why using leftover medicines, sharing prescriptions, or taking antibiotics without an appropriate assessment can be harmful.

To use antibiotics responsibly:

  • Take the medicine exactly as prescribed.
  • Do not share antibiotics with another person.
  • Do not use leftover antibiotics for new symptoms.
  • Contact your healthcare professional if you experience side effects or cannot take the medicine as directed.
  • Follow medical advice if the antibiotic needs to be changed or stopped.

Can you do anything else while taking antibiotics?

Simple measures may help make recovery more comfortable while the antibiotic treats the infection.

  • Drink enough fluids: Water can help maintain hydration. Follow individual fluid restrictions if you have a condition that limits how much you should drink.
  • Rest when needed: Allow yourself time to recover, particularly if you feel tired or uncomfortable.
  • Manage discomfort: A healthcare professional may recommend an appropriate pain reliever based on your health history and other medicines.
  • Follow medication instructions: Check whether your particular antibiotic should be taken with food or on an empty stomach.

These measures can support comfort, but they do not replace antibiotics when a bacterial infection requires antibiotic treatment. Cranberry products and urinary alkalinising sachets should not be considered substitutes for prescribed treatment.

When does a UTI need more than oral antibiotics?

Most uncomplicated bladder infections can be managed with medicines taken by mouth. However, some infections require more intensive care.

A person with a kidney infection or a complicated UTI may need a different antibiotic, additional investigations, or closer monitoring. People who are seriously ill, cannot keep medicines or fluids down, or have signs of a severe infection may need hospital assessment and antibiotics given through a vein (intravenously).

Seek prompt medical attention if urinary symptoms occur with fever, chills, side or back pain, or vomiting. Confusion, marked drowsiness, difficulty breathing, or signs of severe illness require emergency assessment.

Early assessment helps healthcare professionals determine whether an oral antibiotic is sufficient or whether more intensive treatment is necessary.

Frequently Asked Questions

Common questions about UTI antibiotics, treatment choices, and recovery.

1. How quickly do antibiotics start working for a UTI?

Many people begin to notice improvement within a few days of starting an appropriate antibiotic. If symptoms are not improving within 48 hours or become worse, contact a healthcare professional for reassessment.

2. Which antibiotic is usually prescribed first for a bladder infection?

Nitrofurantoin is one commonly recommended option for uncomplicated bladder infections. Trimethoprim and other antibiotics may also be considered depending on bacterial resistance, kidney function, allergies, pregnancy status, and local treatment guidance.

3. Can a UTI go away without antibiotics?

Some mild lower urinary symptoms may improve without antibiotics, and healthcare professionals may sometimes recommend monitoring before starting treatment in selected circumstances. However, bacterial UTIs may spread to the kidneys, so an appropriate medical assessment is important when treatment decisions are being made.

4. Should you finish your UTI antibiotics if you feel better?

Follow the prescribed treatment duration, even if symptoms improve early. Do not stop, extend, or change the medicine without discussing it with your healthcare professional.

5. What happens if antibiotics do not clear a UTI?

The bacteria may be resistant to the medicine, the infection may be more complicated, or another condition may be responsible for the symptoms. A healthcare professional may recommend a urine culture and review whether a different treatment or additional testing is needed.

Citations

  1. Centers for Disease Control and Prevention (CDC) – Urinary Tract Infection Basics
  2. National Institute for Health and Care Excellence (NICE) – Urinary Tract Infection (Lower): Antimicrobial Prescribing
  3. Indian Council of Medical Research (ICMR) – Standard Treatment Workflow for Urinary Tract Infections
  4. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) – Treatment for Bladder Infection in Adults
  5. National Health Service (NHS) – Urinary Tract Infections
Share this article