Kidney infections require antibiotics to clear. Unlike a mild bladder infection that sometimes resolves on its own, a kidney infection (pyelonephritis) involves bacteria that have traveled up from the lower urinary tract into one or both kidneys, and no amount of water, cranberry juice, or rest will eliminate it without medication. Most people recover fully with an oral antibiotic course lasting 5 to 14 days, and symptoms typically start improving within a few days of starting treatment.
How Kidney Infections Are Diagnosed
If you suspect a kidney infection, your doctor will start with a urinalysis, checking your urine sample for white blood cells and blood. A urine culture follows to identify the specific bacteria causing the infection and determine which antibiotics will work against it. Blood tests may also be ordered to assess how well your kidneys are functioning and to check whether the infection has spread beyond the kidneys.
In some cases, imaging is needed. A CT scan, ultrasound, or MRI can reveal blockages, abscesses, or structural problems that may be fueling the infection. Men may also receive a digital rectal exam to check for an enlarged prostate, which can obstruct urine flow and contribute to infection.
Antibiotic Treatment: What to Expect
For uncomplicated kidney infections treated at home, fluoroquinolones and trimethoprim-sulfamethoxazole are the most common oral antibiotics prescribed, with clinical success rates above 90% when the bacteria are susceptible. A fluoroquinolone course typically lasts 5 to 7 days, while trimethoprim-sulfamethoxazole usually requires 14 days. A large review of eight randomized controlled trials involving over 2,500 patients confirmed that the shorter fluoroquinolone courses work just as well as longer ones.
Your doctor will choose the antibiotic based on local resistance patterns. In areas where more than 10% of bacteria are resistant to the chosen oral drug, you may receive a single injection of a stronger antibiotic at the clinic before going home with your oral prescription. This covers you while the lab finishes identifying exactly which bacteria you’re dealing with.
The key rule: finish the entire course, even if you feel better after two or three days. Stopping early lets surviving bacteria regroup, potentially creating a harder-to-treat recurrence.
When Hospital Treatment Is Necessary
Most kidney infections are managed at home, but some require hospitalization for intravenous antibiotics. Severe infections, signs of a bloodstream infection (sepsis), inability to keep fluids or pills down due to vomiting, and pregnancy are all reasons a doctor may admit you. A kidney infection that spreads bacteria into the bloodstream is a serious complication that can become life-threatening without aggressive treatment.
Managing Pain and Discomfort at Home
While antibiotics do the heavy lifting, the flank pain, fever, and general misery of a kidney infection can be significant in the first few days. Acetaminophen (Tylenol) is generally the safest choice for pain and fever relief during an active kidney infection. NSAIDs like ibuprofen and naproxen deserve caution here. When you’re dehydrated or fighting an infection, NSAIDs can interfere with your kidneys’ ability to protect themselves, potentially causing additional kidney injury on top of the infection you’re already battling.
A heating pad on your back or side can ease flank pain. Rest matters too. Your body is fighting a significant bacterial infection, and pushing through normal activities will slow your recovery.
Hydration During Recovery
Drinking plenty of fluids, especially water, supports recovery by helping flush bacteria from your urinary tract. It won’t cure the infection on its own, but it creates an environment that makes it harder for bacteria to linger. There’s no precise daily ounce target that applies to everyone, but a good guideline is to drink enough that your urine stays pale yellow. If you’re running a fever or sweating, you’ll need more than usual to stay hydrated.
Why Prompt Treatment Matters
A kidney infection isn’t something to wait out or treat casually. Untreated or undertreated infections can lead to permanent kidney scarring, which reduces kidney function over time. The most dangerous complication is sepsis, where bacteria enter the bloodstream and trigger a body-wide inflammatory response. This can progress rapidly from feeling very ill to organ failure. Fever above 101°F with chills, severe flank pain, nausea and vomiting, or blood in your urine all warrant urgent medical attention.
Preventing Future Kidney Infections
Kidney infections almost always start as lower urinary tract infections that climb upward, so prevention centers on keeping bacteria out of your urinary tract in the first place. Drink water consistently throughout the day. Urinate after sex, which helps flush bacteria that may have entered the urethra. Wipe front to back after using the toilet to avoid moving bacteria from the bowel toward the urethra.
If you get recurrent bladder infections that keep escalating, talk to your doctor about why. Structural issues, kidney stones, or an enlarged prostate can create conditions where bacteria thrive. Addressing the underlying cause is often the only way to break the cycle of repeated infections.

