How to Test for a Kidney Infection: What to Expect

Testing for a kidney infection typically involves a combination of a physical exam, a urine sample, and sometimes blood work or imaging. Unlike a simple bladder infection, a kidney infection (called pyelonephritis) affects deeper tissue, so the diagnostic process goes beyond a basic dipstick test. Here’s what each step involves and what your results mean.

What Happens During the Physical Exam

The first thing a doctor does is check for a telltale sign: costovertebral angle tenderness. This means they’ll tap or press firmly on your back, just below the ribs where your kidneys sit. Pain in that area strongly points toward a kidney-level infection rather than a simple bladder infection. They’ll also check your temperature, heart rate, and ask about symptoms like flank pain, chills, nausea, and vomiting.

Kidney infections tend to come on fast. High fever, shaking chills, nausea, vomiting, and sometimes diarrhea can develop rapidly. If you have these symptoms along with flank tenderness, a doctor will have a strong clinical suspicion before any lab results come back. That said, lab tests are still needed to confirm the diagnosis and identify which bacteria is causing the infection.

Urinalysis: The First Lab Test

You’ll be asked to provide a midstream urine sample, meaning you start urinating, then catch the middle portion in a cup. This reduces contamination from skin bacteria. The sample goes through two types of analysis.

A dipstick test checks for leukocyte esterase (a marker of white blood cells fighting infection) and nitrites (a byproduct of certain bacteria). If both are positive, infection is very likely. But a dipstick alone can’t tell you whether the infection is in the bladder or the kidneys.

Microscopic examination of the urine adds more detail. The key finding that distinguishes a kidney infection from a bladder infection is the presence of white blood cell casts. These are clumps of white blood cells that form inside the tiny tubes of the kidney itself, which means the infection has reached the kidney tissue. Finding these casts is a strong indicator of pyelonephritis or other kidney inflammation.

Urine Culture: Identifying the Bacteria

A urine culture is the gold standard for confirming a kidney infection. The lab places your urine sample in a growth medium and waits for bacteria to multiply. A count of at least 100,000 colony-forming units per milliliter confirms a significant infection. Once the bacteria grow, the lab also runs sensitivity testing to determine which antibiotics will work against that specific strain.

Cultures take 24 to 48 hours to grow, and the full results, including sensitivity data, can take up to three days. This is why doctors typically start you on antibiotics right away based on the physical exam and urinalysis, then adjust the prescription once culture results come back if needed.

When Blood Tests Are Needed

Not every kidney infection requires blood work, but it becomes important when the infection appears severe. If you have a high fever, look visibly unwell, or aren’t responding to initial treatment, your doctor may order blood cultures to check whether bacteria have entered the bloodstream. This is especially relevant if you’ve already taken antibiotics before your visit, since those antibiotics may have cleared bacteria from the urine while the bloodstream still shows the infection.

Blood tests measuring markers of inflammation, like C-reactive protein or a complete blood count, can also help gauge how aggressively the infection is affecting your body. Elevated white blood cell counts in your blood, combined with a positive urine culture, paint a clearer picture of severity.

Imaging: CT Scans and Ultrasound

Most kidney infections are straightforward and don’t require any imaging at all. You’ll get diagnosed through the exam and urine tests, start treatment, and improve within a few days. Imaging enters the picture when something isn’t going as expected.

If your fever hasn’t broken after 48 to 72 hours of antibiotics, an ultrasound is usually the first step. It can quickly reveal whether something is blocking urine flow, like a kidney stone, which would trap the infection and prevent antibiotics from working. In more complicated cases, a CT scan with contrast dye provides a far more detailed view than ultrasound. It’s better at spotting abscesses, areas of tissue damage, and subtle blockages. CT is the preferred imaging tool when complications are suspected, though it’s reserved for situations that genuinely need it.

Can Home Test Strips Detect a Kidney Infection?

Over-the-counter UTI test strips check for nitrites and leukocytes, the same two markers a clinic dipstick measures. They’re reasonably accurate for detecting a urinary tract infection in general, but they have limitations. A home strip can miss infections, and it cannot distinguish between a bladder infection and a kidney infection. If you’re experiencing symptoms beyond typical burning or urgency, like back pain, fever, or chills, a negative home test doesn’t rule out a kidney infection. These symptoms warrant an in-person evaluation regardless of what the strip shows.

Testing During Pregnancy

Pregnant women face a unique risk. Even bacteria in the urine without any symptoms (called asymptomatic bacteriuria) can progress to a full kidney infection during pregnancy, which is associated with increased rates of preterm delivery and low birth weight. For this reason, the American College of Obstetricians and Gynecologists recommends that all pregnant individuals receive a urine culture early in prenatal care, not just a dipstick.

This distinction matters because routine dipstick testing at prenatal visits isn’t sensitive enough to catch asymptomatic bacteriuria. Only a full urine culture reliably detects it. If the culture comes back positive, treatment with a 5 to 7 day course of antibiotics has been shown in multiple studies to significantly reduce the risk of developing pyelonephritis later in pregnancy. There isn’t strong evidence yet on whether repeat screening after a negative initial result is necessary, so practices vary.

What to Expect From Start to Finish

If you go in with suspected kidney infection symptoms, here’s a realistic timeline. The physical exam and dipstick results happen during your visit, often within minutes. If the clinical picture is clear, you’ll leave with a prescription that same day. Urine culture results come back in one to three days, and your doctor may call to confirm the antibiotic you’re on is the right match or switch you to something more targeted.

If you’re not improving after two to three days of treatment, expect a follow-up that may include blood work and imaging. Most people with uncomplicated kidney infections recover fully with oral antibiotics and never need anything beyond the initial urine tests. Severe cases, particularly those involving bloodstream infection or an obstruction, may require hospitalization and intravenous treatment, but this is the exception rather than the rule.