Flank pain during a UTI is a warning sign that the infection has moved beyond your bladder and into one or both kidneys. This condition, called pyelonephritis, causes pain below the ribs and above the hip, typically felt in the back or side. It’s a meaningful escalation from a standard bladder infection and needs prompt antibiotic treatment to prevent kidney damage.
Where Flank Pain Comes From
The flanks are the areas of your body between your lower ribs and the top of your hip bones, wrapping from your back toward your sides. Your kidneys sit right behind this zone, which is why kidney problems show up as pain there. When a kidney becomes infected and inflamed, its outer lining (the renal capsule) stretches and swells. Specialized nerve endings in that capsule respond to the swelling by sending pain signals through nerves connected to your lower spine.
The pain is usually a steady, deep ache on one side, though it can affect both. It often gets worse if someone taps or presses on the area. Unlike the sharp, cramping waves of a kidney stone, infection-related flank pain tends to be more constant and is almost always accompanied by fever.
How a Bladder Infection Reaches Your Kidneys
Most kidney infections start as ordinary bladder infections that travel upward. Bacteria, most commonly E. coli from the rectal area, first colonize the urethra, then the bladder. E. coli is particularly good at this because it has tiny hair-like structures called fimbriae that let it grip the lining of the urinary tract like Velcro. If the bacteria multiply fast enough to overwhelm your body’s natural defenses, they climb up the ureters (the tubes connecting your bladder to your kidneys) and take hold in the kidney tissue itself.
Once bacteria reach the kidney, your immune system floods the area with white blood cells to fight the infection. This inflammatory response is what causes the swelling, pain, and fever. Ironically, it’s also this immune response, not just the bacteria, that can damage kidney tissue if the infection isn’t treated quickly.
Bladder Infection vs. Kidney Infection Symptoms
A standard bladder infection (cystitis) and a kidney infection (pyelonephritis) share some symptoms but feel quite different overall. Knowing the difference matters because it changes how urgently you need treatment.
With a bladder infection, you’ll typically have burning during urination, a constant urge to pee, frequent small trips to the bathroom, and possibly suprapubic pain (low in the belly, just above the pubic bone). Fever is absent or very mild, staying at or below 38°C (100.4°F). You feel uncomfortable but not sick.
A kidney infection adds a layer of systemic illness on top of those urinary symptoms. Fever above 38°C is common, along with chills, nausea, vomiting, and significant flank pain or tenderness. You feel genuinely unwell, often fatigued and weak. Some people notice their urine looks cloudy or has an unusually strong smell. The key distinction is that flank pain and high fever together point strongly toward the kidneys being involved.
How It’s Diagnosed
If you show up with flank pain, fever, and urinary symptoms, doctors will typically start with a urine sample. They’re looking for bacteria and white blood cells in the urine, which confirm an active infection. A urine culture identifies the specific bacteria causing the problem and helps guide which antibiotic will work best.
Imaging isn’t always necessary for a straightforward kidney infection, but doctors may order it if they suspect a complication. If there’s concern about a kidney stone blocking the ureter (which can trap infected urine behind it), a low-dose CT scan without contrast is the most accurate test, with about 97% sensitivity and 95% specificity. For pregnant patients, ultrasound is the first choice to avoid radiation exposure. Updated 2025 guidelines from the Infectious Diseases Society of America now classify UTI severity based primarily on whether symptoms like fever suggest the infection has moved beyond the bladder, rather than relying on anatomical factors that might not be obvious during an initial visit.
Treatment and Recovery Timeline
Kidney infections require antibiotics, and the course is longer than what you’d take for a simple bladder infection. Depending on the antibiotic chosen, treatment typically lasts 5 to 10 days. Some antibiotics clear the infection effectively in 5 to 7 days, while others need the full 10. Your doctor will choose based on the bacteria identified in your urine culture and local resistance patterns.
Most people with uncomplicated kidney infections can be treated at home with oral antibiotics. You should start feeling noticeably better within 48 to 72 hours. If your fever hasn’t improved by then, or if you’re unable to keep fluids or medication down due to vomiting, you may need IV antibiotics in a hospital setting. Staying well hydrated helps your body flush bacteria from the urinary tract and supports recovery.
Managing the Pain
While you’re waiting for antibiotics to take effect, acetaminophen (Tylenol) is the safest option for managing flank pain and reducing fever. The National Kidney Foundation considers it safe for the kidneys at recommended doses. NSAIDs like ibuprofen are generally best avoided during an active kidney infection because they can reduce blood flow to the kidneys at a time when the organs are already under stress.
A heating pad applied to your back or side can also help ease the ache. Some people find that staying gently active rather than lying completely still reduces stiffness around the area. The pain should diminish significantly once the antibiotics start working, usually within the first two to three days.
Why Prompt Treatment Matters
Kidney infections that go untreated or are treated too late can cause lasting damage. The intense inflammation that accompanies pyelonephritis can scar kidney tissue, replacing functional cells with fibrous tissue that doesn’t filter blood. In children especially, severe pyelonephritis is the leading cause of acquired kidney scarring. Even with successful antibiotic treatment, a small percentage of patients develop scarring that can eventually contribute to high blood pressure or chronic kidney disease.
The more immediate danger is sepsis, which happens when the infection spills into the bloodstream. Signs that a kidney infection is becoming a medical emergency include a rapid heart rate, confusion or disorientation, breathing faster than normal, very low blood pressure, and feeling extremely weak or cold and clammy. These symptoms mean bacteria have triggered a body-wide inflammatory response and you need emergency care. Kidney infections are one of the more common starting points for sepsis, particularly in older adults or people with conditions that affect immune function.
Who’s Most at Risk
Anyone can develop a kidney infection from a UTI, but certain factors raise the odds. Women get UTIs far more frequently than men due to a shorter urethra, which gives bacteria a shorter path to the bladder. Pregnancy increases risk because hormonal changes and the growing uterus can slow urine flow, giving bacteria more time to multiply and ascend. People with urinary catheters, kidney stones, or structural abnormalities in the urinary tract are also at higher risk because anything that blocks or slows urine creates an environment where bacteria thrive.
If you’ve had one kidney infection, you’re more likely to have another. Recurring bladder infections that aren’t fully treated are a common setup. Paying attention to flank pain early, especially if you’re already experiencing burning urination or frequency, can help you catch the progression before it becomes severe.

