What Antibiotics Treat a Kidney Infection?

Kidney infections, known clinically as pyelonephritis, are most often treated with oral antibiotics when caught early and managed at home, or with intravenous antibiotics when the infection is severe enough to require hospitalization. The specific drug your doctor picks depends on local resistance patterns, your urine culture results, and whether you have any complicating factors like pregnancy, kidney stones, or a history of drug-resistant bacteria. The most commonly prescribed classes include fluoroquinolones, trimethoprim-sulfamethoxazole, and various cephalosporins, but the landscape has shifted in recent years as safety concerns and rising resistance have changed prescribing habits.

Why E. Coli Drives Most Treatment Decisions

The reason doctors can start antibiotics before your urine culture comes back is that kidney infections are overwhelmingly caused by a single type of bacterium. Uropathogenic Escherichia coli is the most common culprit in both simple and complicated urinary tract infections, including pyelonephritis.1PubMed Central. Urinary Tract Infections Caused by Uropathogenic Escherichia coli: Mechanisms of Infection and Treatment Options Other organisms that show up less frequently include Klebsiella pneumoniae, Proteus mirabilis, Enterococcus faecalis, and Staphylococcus saprophyticus. Because E. coli is responsible for the vast majority of cases, initial antibiotic choices are designed to reliably kill it.2PubMed Central. Role of Uropathogenic Escherichia coli Virulence Factors in Development of Urinary Tract Infection and Kidney Damage

That said, a urine culture and sensitivity test remains essential for every suspected kidney infection. Unlike a simple bladder infection, where doctors sometimes treat empirically without a culture, pyelonephritis warrants lab confirmation so the antibiotic can be adjusted if the pathogen turns out to be resistant to the initial choice.3Elsevier / American Journal of Kidney Diseases (AJKD). Urinary Tract Infections: Core Curriculum 2024

First-Line Outpatient Antibiotics

If you are well enough to go home and take pills, the two classes of oral antibiotics with the strongest track record for kidney infections are fluoroquinolones and trimethoprim-sulfamethoxazole (TMP-SMX, commonly sold as Bactrim or Septra). For years, fluoroquinolones like levofloxacin and ciprofloxacin were the go-to choice. In head-to-head trials, levofloxacin achieved clinical cure rates around 92% and pathogen eradication in about 95% of patients, with low rates of side effects compared to other fluoroquinolones.4PubMed. Levofloxacin versus ciprofloxacin versus lomefloxacin in acute pyelonephritis A later trial found that a shorter, higher-dose course of levofloxacin (five days) worked at least as well as a standard ten-day course of ciprofloxacin, with eradication rates above 90% in both arms.5PubMed. A trial of levofloxacin 750 mg once daily for 5 days versus ciprofloxacin 400 mg and/or 500 mg twice daily for 10 days in the treatment of acute pyelonephritis

TMP-SMX has been used for kidney infections since the 1980s and holds up well when the bacteria are susceptible to it. In a classic randomized trial comparing TMP-SMX to ampicillin for outpatient pyelonephritis, recurrence happened in only about one in eight women on TMP-SMX versus nearly half of those on ampicillin, and a two-week course proved sufficient.6PubMed. Acute renal infection in women: Treatment with trimethoprim-sulfamethoxazole or ampicillin for two or six weeks. A randomized trial Current guidelines recognize TMP-SMX as a reasonable oral option provided the culture shows susceptibility, though recent data suggest seven days may be enough for most patients.3Elsevier / American Journal of Kidney Diseases (AJKD). Urinary Tract Infections: Core Curriculum 2024

Oral Beta-Lactams as Alternatives

Beta-lactam antibiotics, which include cephalosporins like cephalexin and cefpodoxime, as well as amoxicillin-clavulanate, have traditionally been viewed as second-tier choices for kidney infections. They tend to concentrate less in kidney tissue than fluoroquinolones or TMP-SMX do. However, they are increasingly used in practice, partly because safety concerns have driven doctors away from fluoroquinolones.

Recent comparative studies suggest this shift has not come at a cost to patients. In one retrospective study, hospitalized adults who stepped down from intravenous antibiotics to oral beta-lactams had essentially the same 30-day treatment failure rate as those who stepped down to other oral agents (about 5% in both groups).7PubMed Central. Rise of the beta-lactams: a retrospective, comparative cohort of oral beta-lactam antibiotics as step-down therapy for hospitalized adults with acute pyelonephritis A separate study found treatment success rates above 96% for patients discharged on oral beta-lactams, comparable to those on alternative oral agents.8Open Forum Infectious Diseases. The Efficacy of Oral Β-lactam Antibiotics as Step-down Therapy for Acute Pyelonephritis One trade-off is that oral beta-lactam courses may need to be slightly longer to achieve the same results.

How Long Treatment Typically Lasts

Older guidelines often recommended 10 to 14 days of antibiotics for pyelonephritis, and some still list 14 days for TMP-SMX. But the evidence has been building for years that shorter courses work just as well. A systematic review and meta-analysis of randomized trials found no meaningful difference between short and long treatment durations for clinical success, microbiological cure, relapse, or side effects.9PubMed. Short vs. long antibiotic treatment for pyelonephritis and complicated urinary tract infections: a living systematic review and meta-analysis of randomized controlled trials An earlier meta-analysis reached the same conclusion, finding seven days equivalent to longer courses even in patients whose infection had reached the bloodstream.10Journal of Antimicrobial Chemotherapy. Duration of antibiotic treatment for acute pyelonephritis and septic urinary tract infection— 7 days or less versus longer treatment: systematic review and meta-analysis of randomized controlled trials

In practice, the duration depends on the drug. A high-dose levofloxacin course can be as short as five days.5PubMed. A trial of levofloxacin 750 mg once daily for 5 days versus ciprofloxacin 400 mg and/or 500 mg twice daily for 10 days in the treatment of acute pyelonephritis TMP-SMX is typically prescribed for seven to 14 days, with more recent data supporting the shorter end of that range.3Elsevier / American Journal of Kidney Diseases (AJKD). Urinary Tract Infections: Core Curriculum 2024 Oral beta-lactams tend to require the longer end, around 10 to 14 days, because they clear kidney tissue infections more slowly. Your doctor will often tell you to expect improvement within 48 to 72 hours; if your fever hasn’t broken or your symptoms are getting worse by then, the antibiotic may not be covering your pathogen, and the culture results become critical.

When You Need IV Antibiotics in the Hospital

Hospitalization and intravenous antibiotics are reserved for people who are too sick to keep pills down (because of nausea or vomiting), who have signs of sepsis (high fever, racing heart, low blood pressure), who are pregnant, or who have complicating factors like kidney stones blocking urine flow. The most common IV agents include ceftriaxone, a broad-spectrum cephalosporin, and piperacillin-tazobactam for more resistant organisms.

Ceftriaxone is a workhorse in this setting. A randomized trial in women with uncomplicated pyelonephritis found that even a single IV dose of ceftriaxone followed by an oral cephalosporin (cefixime) was both effective and safe for initial treatment.11PubMed Central. Short-term effectiveness of ceftriaxone single dose in the initial treatment of acute uncomplicated pyelonephritis in women. A randomised controlled trial For infections caused by extended-spectrum beta-lactamase (ESBL)-producing bacteria, which are resistant to many standard antibiotics, piperacillin-tazobactam has been shown to achieve clinical cure rates around 80%, on par with meropenem, a carbapenem that is often considered the most powerful option.12PubMed Central. Efficacy and safety of piperacillin–tazobactam compared with meropenem in treating complicated urinary tract infections including acute pyelonephritis due to extended-spectrum β-lactamase-producing Enterobacteriaceae Carbapenems remain the fallback for the most resistant infections, but doctors try to avoid them when possible to slow the spread of resistance.

There is also a middle ground for people who are sick but not critically ill. Some emergency departments give a single IV dose of a long-acting antibiotic like ceftriaxone before sending the patient home on oral pills. One large study found that this approach reduced the likelihood of returning to the emergency department within 72 hours.13PubMed Central. Outcomes for Patients with Urinary Tract Infection After an Initial Intravenous Antibiotics Dose Before Emergency Department Discharge It gives the antibiotic a head start while the oral medication ramps up.

The Shift Away From Fluoroquinolones

If fluoroquinolones like ciprofloxacin and levofloxacin are so effective for kidney infections, why aren’t they always the first thing prescribed? The answer is a string of safety warnings that have steadily accumulated since 2008. The FDA placed its strongest “black box” warning on fluoroquinolones, linking them to tendon rupture, nerve damage, and central nervous system effects including confusion and mood changes. These warnings were updated multiple times through 2016. The impact on prescribing was dramatic: fluoroquinolone use for urinary tract infections in hospitals dropped from nearly 62% to roughly 12% over the following decade.14PubMed Central. Antibiotic Use in Hospital Urinary Tract Infections After FDA Regulation

This does not mean fluoroquinolones are off the table entirely. For an otherwise healthy adult with a kidney infection caused by a susceptible organism, a short course of levofloxacin remains one of the most effective options available, with eradication rates consistently above 90%.15PubMed Central. Levofloxacin in the treatment of complicated urinary tract infections and acute pyelonephritis But many doctors now reserve them for situations where other drugs won’t work or when the culture specifically shows sensitivity to fluoroquinolones and resistance to safer alternatives. The era of reflexively prescribing ciprofloxacin for every kidney infection is essentially over.

Antibiotic Resistance and Why Your Culture Matters

Rising antibiotic resistance is the biggest complication in treating kidney infections today. E. coli strains that produce extended-spectrum beta-lactamases (ESBLs) are resistant to many of the standard oral antibiotics, and fluoroquinolone resistance in E. coli has been climbing steadily in many parts of the world.16PubMed Central. Monitoring fluoroquinolone resistance among ESBL-positive and ESBL-negative Escherichia coli strains isolated from urinary tract infections: An alert for empirical treatment In one U.S. study of patients with pyelonephritis caused by ESBL-producing E. coli, about three-quarters were initially treated with antibiotics that turned out to be ineffective against their specific strain.17Emerging Infectious Diseases. Fluoroquinolone-Resistant and Extended-Spectrum β-Lactamase–Producing Escherichia coli Infections in Patients with Pyelonephritis, United States

When the initial antibiotic misses the mark, the infection lingers, symptoms persist, and the risk of complications goes up. This is exactly why urine cultures are so important for kidney infections. The culture identifies the exact bacterium and tells the lab which antibiotics kill it. If you’re started on an empirical antibiotic and your culture returns two days later showing resistance, your doctor can switch to something that actually works. For drug-resistant strains, alternatives like aminoglycosides, beta-lactam/beta-lactamase inhibitor combinations, and even TMP-SMX (if susceptible) have shown comparable outcomes to carbapenems in studies of ESBL-producing E. coli.18Journal of Antimicrobial Chemotherapy. The efficacy of non-carbapenem antibiotics for the treatment of community-onset acute pyelonephritis due to extended-spectrum β-lactamase-producing Escherichia coli

Kidney Infections During Pregnancy

Pregnancy changes the treatment calculus substantially. Several antibiotics that work well in the general population are either unsafe for the fetus or unstudied in pregnant women. Fluoroquinolones, for instance, are generally avoided throughout pregnancy because of concerns about fetal cartilage development. TMP-SMX is also typically sidelined, particularly in the first trimester (risk of neural tube defects) and near delivery (risk of neonatal jaundice).

International guidelines converge on third-generation cephalosporins, particularly ceftriaxone, as the first-line treatment for pyelonephritis in pregnancy. Second-generation cephalosporins like cefuroxime are another option. If the patient is unstable or showing signs of sepsis, adding an aminoglycoside like gentamicin is commonly recommended. Combination therapy with ampicillin plus gentamicin also appears in several national guidelines.19PubMed Central. Which Antibiotic for Urinary Tract Infections in Pregnancy? A Literature Review of International Guidelines In Scandinavian countries, beta-lactam antibiotics and nitrofurantoin are the preferred first-line agents for lower urinary tract infections in pregnancy, though nitrofurantoin is not effective for kidney infections; pivmecillinam, another beta-lactam, covers pyelonephritis and has no known teratogenic effects.20Journal of Antimicrobial Chemotherapy. Which antibiotics are appropriate for treating bacteriuria in pregnancy?

Pregnant women with pyelonephritis are almost always admitted to the hospital, at least initially, because the risk of complications to both mother and baby is higher. The infection can trigger preterm labor, and sepsis progresses faster in pregnancy due to changes in immune function and kidney anatomy.

Kidney Infections in Children and Men

In children, the antibiotic choices overlap with adult options, but the priority is different. Preventing long-term kidney scarring is a major concern, particularly in young children who may not communicate their symptoms clearly, leading to delayed diagnosis. A randomized trial in children with acute pyelonephritis compared three days of IV antibiotics followed by oral treatment against a full ten-day IV course. Renal scarring developed in about a third of children in both groups, with no statistically significant difference between the two approaches.21Archives of Disease in Childhood. Randomised controlled trial of three day versus 10 day intravenous antibiotics in acute pyelonephritis: effect on renal scarring This finding supports the practice of switching children to oral antibiotics once they’re improving clinically, rather than keeping them on an IV for the full course.

In adult men, kidney infections are uncommon but tend to be treated differently than in women. The prostate gland sits right at the base of the bladder, and a urinary tract infection in a man often involves the prostate as well, making it harder for antibiotics to fully clear the bacteria. Because of this anatomical wrinkle, male UTIs are often categorized as complicated by default, and treatment courses tend to be longer.22Drug Information Group. What is the optimal duration of antibiotics for complicated UTI in a male patient? A meta-analysis of short versus long treatment did include male patients and found no significant difference in clinical success, though the evidence was rated as less certain than in women.9PubMed. Short vs. long antibiotic treatment for pyelonephritis and complicated urinary tract infections: a living systematic review and meta-analysis of randomized controlled trials Most clinicians still err on the side of longer courses for men until stronger evidence emerges.

When Antibiotics Alone Are Not Enough

Sometimes a kidney infection is not simply about picking the right pill. Complicated urinary tract infections, where there is an underlying structural problem like a kidney stone blocking urine flow, an enlarged prostate, or a congenital abnormality, often require more than antibiotics. Drug treatment frequently needs to be combined with a procedure to remove the obstruction or drain the infection.23PubMed. Complicated urinary tract infections

This is especially true when a kidney infection progresses to form an abscess, a walled-off pocket of pus inside or around the kidney. Antibiotics alone often cannot penetrate an abscess effectively. In one study, treatment with antibiotics plus percutaneous drainage (inserting a needle or small tube through the skin to drain the pus) achieved a cure rate of about 64%.24PubMed. Renal abscess: early diagnosis and treatment Draining the infection site, removing foreign bodies such as infected catheters, and clearing obstructions early in the course of treatment are considered critical to success.25The American Journal of Medicine. Antibiotic treatment of complicated urologic infections: Six selected case studies

If you have recurrent kidney infections or your symptoms aren’t resolving despite appropriate antibiotics, imaging studies like a CT scan or ultrasound will usually be ordered to look for a structural cause. A kidney stone lodged in the ureter, for example, can create a reservoir where bacteria hide and reinfect you as soon as the antibiotic course ends. No antibiotic regimen will provide a lasting cure until the underlying obstruction is dealt with.

Practical Advice for Patients

If you suspect a kidney infection, the symptoms to watch for are fever, flank pain (pain on one side of your lower back), nausea, and sometimes chills or blood in the urine. These symptoms distinguish it from a simple bladder infection, which typically involves only burning with urination and frequent urges without fever or back pain. Kidney infections can escalate to sepsis if untreated, so they warrant prompt medical attention rather than a wait-and-see approach.

When you see a doctor, expect to give a urine sample for both a quick dipstick test and a full culture. The dipstick gives a rough answer within minutes; the culture takes one to two days but provides the definitive identification of the bug and which antibiotics kill it. You will likely be started on an empirical antibiotic immediately, and your doctor may adjust the prescription once the culture results return. Finish the full prescribed course even if you feel better after a few days. With kidney infections, stopping early increases the chance of relapse and may contribute to resistance. If your symptoms haven’t improved within 48 to 72 hours of starting antibiotics, contact your doctor rather than waiting for the course to finish, because the drug may not be covering your particular pathogen.