For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Kidney infection

A kidney infection is a bacterial infection of one or both kidneys, usually spreading up from the bladder, that causes fever, back or side pain and needs antibiotics.

Clinician view: includes diagnostic criteria, management and safety detail.

Overview

A kidney infection happens when germs, almost always bacteria, get into one or both of your kidneys. The medical name is pyelonephritis (say "pie-uh-low-neh-FRY-tis"). It is a type of urinary tract infection (UTI). Your urinary tract is the system that makes and removes urine: the two kidneys, the tubes that carry urine down (ureters), the bladder and the tube that carries urine out of the body (urethra).

Most UTIs stay in the bladder. This is called cystitis, and it is usually mild. A kidney infection is more serious, because the kidneys are deeper in the body and have a rich blood supply. If it is not treated, the infection can damage the kidney or spread into the blood.

The good news is that most kidney infections clear up fully with prompt antibiotic treatment. Many people can be treated at home with tablets. Some people need to stay in hospital for a few days.

Symptoms

Symptoms often come on quickly, over a few hours or a day. You may feel much more unwell than with a bladder infection.

Common symptoms

  • Fever (a temperature of 38°C / 100.4°F or higher), chills or shivering
  • Pain in your side, back or lower belly, usually on one side, just below the ribs
  • Feeling sick (nausea) or vomiting
  • Feeling generally weak, tired or achy

Bladder symptoms you may also have

  • Burning or stinging when you pee
  • Needing to pee often or urgently
  • Cloudy, bad-smelling or bloody urine

Not everyone has every symptom. Older adults may not have a fever or pain. Instead, they may become confused, unusually sleepy or start to fall. Young children may only have a fever, be irritable or not want to feed.

Causes

Most kidney infections start as a bladder infection. Bacteria from the skin around the bottom and genitals enter the urethra, multiply in the bladder and then travel up the ureters to the kidneys.

The most common germ is E. coli, a bacterium that normally lives in the bowel. Other bacteria can cause it too, especially in people who have been in hospital or who use a urinary catheter (a thin tube that drains urine from the bladder).

Less often, bacteria reach the kidney through the bloodstream from an infection elsewhere in the body.

A kidney infection is not something you catch from another person in the usual way.

Risk factors

Anyone can get a kidney infection, but some things make it more likely:

  • Being female. Women have a shorter urethra, so bacteria reach the bladder more easily.
  • Pregnancy. Hormone changes and the growing baby can slow the flow of urine.
  • Something blocking urine flow, such as a kidney stone, an enlarged prostate or a narrowing in the urinary tract.
  • Vesicoureteral reflux, a condition, often found in children, where urine flows backwards from the bladder towards the kidneys.
  • A urinary catheter or recent surgery or procedures on the urinary tract.
  • Diabetes or a weakened immune system, for example from cancer treatment or medicines after an organ transplant.
  • Nerve problems that make it hard to empty the bladder, such as after a spinal cord injury.
  • Frequent bladder infections or sexual activity, which can move bacteria into the urethra.

Diagnosis

Your doctor or nurse will ask about your symptoms and examine you. Gently tapping or pressing over the kidney area on your back may be sore.

Common tests

  • Urine test. A dipstick or lab test looks for white blood cells, blood and signs of bacteria.
  • Urine culture. Your urine is sent to a lab to grow the bacteria. This shows exactly which germ is causing the infection and which antibiotics will work against it. Results usually take 1 to 3 days.
  • Blood tests to check for infection, kidney function and, if you are very unwell, bacteria in the blood.
  • Pregnancy test for women who could be pregnant, because this changes the choice of treatment.

Scans

Many people do not need a scan. Your care team may order an ultrasound or a CT scan if you are very ill, if you do not start to improve after 2 to 3 days of antibiotics, if they think something is blocking your urine (such as a stone), or if you keep getting kidney infections.

Treatment

A kidney infection needs antibiotics. Do not wait for it to go away on its own.

Treatment at home

If you are not severely ill, are able to keep fluids and tablets down, and are not pregnant, you can usually take antibiotic tablets at home. The course usually lasts about 5 to 14 days, depending on the medicine. Common choices include:

  • ciprofloxacin or levofloxacin, fluoroquinolone antibiotics that reach high levels in the kidneys
  • trimethoprim-sulfamethoxazole, if the lab shows the bacteria are sensitive to it
  • certain cephalosporin antibiotics, such as cefalexin or cefixime, sometimes after a first dose of an injected antibiotic

Your doctor may change your antibiotic once the urine culture result is back. Always finish the full course, even if you feel better after a few days, unless your doctor tells you otherwise.

Treatment in hospital

You may need to go to hospital if you are very unwell, keep vomiting, are pregnant, have signs of infection in the blood, or have a blockage. In hospital, antibiotics and fluids are given through a drip into a vein. Examples include ceftriaxone, cefepime, piperacillin-tazobactam and, for bacteria that resist many antibiotics, ertapenem or other carbapenems. Once you improve, you can usually switch to tablets and go home.

If a stone or something else is blocking the kidney, a urologist (a surgeon who treats the urinary tract) may need to place a small tube to drain the urine. This helps the infection clear.

Pain and fever

acetaminophen (also called paracetamol) can help with fever and pain. Ask your doctor before taking anti-inflammatory painkillers such as ibuprofen, because they can affect the kidneys in some people.

Self-care and recovery

  • Drink plenty of fluids, mainly water, so that you are peeing regularly and your urine is pale. If your doctor has told you to limit fluids for another health reason, follow that advice.
  • Rest until the fever is gone and you feel stronger.
  • A heating pad or warm water bottle on your back or side may ease pain. Wrap it in a cloth to protect your skin.
  • Take your antibiotic exactly as prescribed. Tell your doctor about side effects rather than stopping on your own.
  • Most people start to feel better within 2 to 3 days of starting antibiotics. Tiredness can last a week or two.

Contact your doctor if you are not feeling clearly better after 48 to 72 hours of treatment, or if your symptoms come back after you finish.

Complications

Complications are uncommon when a kidney infection is treated quickly, but they can be serious:

  • Sepsis, a life-threatening reaction in which the body's response to an infection starts to harm its own organs, often when bacteria spread into the blood
  • Kidney abscess, a pocket of pus in or around the kidney that may need draining
  • Kidney scarring, more likely with repeated infections or in young children, which can lead to high blood pressure or reduced kidney function over time
  • Problems in pregnancy, including early (preterm) labour
  • Rare severe forms, such as emphysematous pyelonephritis (gas-forming infection, mostly in people with diabetes) and xanthogranulomatous pyelonephritis (a long-lasting infection that destroys kidney tissue, usually linked to a blockage). These often need surgery.

Outlook

Most healthy adults recover completely within 1 to 2 weeks and have no lasting kidney damage. The outlook is less certain for people with a blockage, a weakened immune system or repeated infections, which is why your care team may look for an underlying cause.

Prevention

Not every kidney infection can be prevented, but these steps lower the chance of UTIs:

  • Drink enough fluids during the day and do not hold in urine for long periods.
  • Pee soon after sex.
  • Wipe from front to back after using the toilet.
  • Get bladder infection symptoms checked early, so they can be treated before they spread.
  • Keep diabetes well controlled.
  • If you are pregnant, go to your prenatal visits. A routine urine test can find bacteria in the urine that need treatment even without symptoms.
  • If you get frequent UTIs, talk with your doctor about the cause and options to prevent them.

In Canada

In Canada, provincial and hospital antimicrobial stewardship programs publish local antibiograms and empiric treatment guidance that should inform antibiotic choice. Some newer agents for resistant infections have limited or no availability. Prenatal screening for asymptomatic bacteriuria is part of routine care.

Diagnosis

Acute pyelonephritis is a clinical diagnosis: fever, flank pain and/or costovertebral angle tenderness, often with nausea and lower urinary symptoms, supported by pyuria on urinalysis. Obtain a urine culture with susceptibilities in all cases, before antibiotics where possible. Blood cultures, CBC, creatinine and lactate are indicated for patients who are admitted or septic. Exclude pregnancy in women of reproductive age. In men, consider concurrent prostatitis.

Imaging is not required in uncomplicated cases that respond promptly. Obtain renal ultrasound or contrast CT if there is sepsis, suspected obstruction or stone, no clinical response after 48 to 72 hours, or recurrence; have a low threshold in diabetes or immunosuppression (to exclude abscess or emphysematous pyelonephritis).

Management

Choose empiric therapy based on local resistance and patient risk factors (prior resistant organisms, recent antibiotics, healthcare exposure, travel), then tailor to culture results.

  • Outpatient (IDSA/ESCMID 2011): ciprofloxacin 500 mg twice daily for 7 days or levofloxacin 750 mg daily for 5 to 7 days, if local fluoroquinolone resistance is 10% or less. Where resistance is higher, give an initial parenteral dose of ceftriaxone or a 24-hour aminoglycoside dose. Trimethoprim-sulfamethoxazole for 14 days is appropriate if the isolate is susceptible. Oral beta-lactams are less effective and need 10 to 14 days, ideally after an initial parenteral dose. NICE NG111 gives comparable options and durations.
  • Inpatient: ceftriaxone, cefepime, piperacillin-tazobactam or a fluoroquinolone; a carbapenem (e.g. ertapenem) when ESBL-producing Enterobacterales are likely; broaden cover for enterococci (e.g. ampicillin, or vancomycin if ampicillin-resistant) or resistant gram-negatives as indicated by risk factors and prior cultures. Newer agents (e.g. plazomicin, cefiderocol, imipenem-relebactam) are reserved for multidrug-resistant organisms with specialist input.
  • Pregnancy: usually admit, treat initially with a parenteral beta-lactam (e.g. ceftriaxone), avoid fluoroquinolones, and arrange follow-up cultures; consider suppressive therapy for the rest of the pregnancy after recurrence.
  • Obstruction with infection is a urological emergency requiring decompression (ureteric stent or percutaneous nephrostomy). Emphysematous pyelonephritis needs drainage and sometimes nephrectomy; xanthogranulomatous disease is usually managed with nephrectomy.

Nitrofurantoin and oral fosfomycin do not achieve adequate renal tissue levels and should not be used.

Cautions, monitoring and prognosis

Fluoroquinolones carry regulatory warnings for tendinopathy and tendon rupture, peripheral neuropathy, CNS effects, aortic aneurysm or dissection, QT prolongation, dysglycemia and C. difficile infection; avoid them where safer alternatives exist and adjust renally cleared antibiotics for eGFR. Expect defervescence within 48 to 72 hours; failure to improve should prompt repeat cultures and imaging. Routine post-treatment cultures are not needed except in pregnancy. Red flags: hypotension, rising lactate, oliguria, AKI, altered mental status. Prognosis in healthy adults is excellent; recurrent or complicated infection warrants evaluation for structural or functional abnormality. Children require separate pediatric guidance (e.g. AAP febrile UTI guideline).

When to get medical help

See a doctor the same day if you have bladder infection symptoms together with fever, chills, or pain in your back or side. Also get checked promptly if:

  • you are pregnant and have any UTI symptoms
  • you are not improving after 2 to 3 days of antibiotics
  • your symptoms come back after treatment
  • a child has a fever with no clear cause

Go to the emergency department or call emergency services if you:

  • cannot keep fluids or medicines down because of vomiting
  • feel very unwell, confused, drowsy or faint
  • have a fast heartbeat, fast breathing, or cold, blotchy or very pale skin
  • are peeing very little or not at all
  • have severe pain

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Pyelonephritis. meshb.nlm.nih.gov
  2. NIDDK: Kidney Infection (Pyelonephritis). niddk.nih.gov/health-information/urologic-diseases/kidney-infection-pyelonephritis
  3. MedlinePlus: Urinary Tract Infections. medlineplus.gov/urinarytractinfections.html
  4. NICE: Pyelonephritis (acute): antimicrobial prescribing (NG111). nice.org.uk/guidance/ng111
  5. IDSA/ESCMID: International clinical practice guidelines for the treatment of acute uncomplicated cystitis and pyelonephritis in women (2011). doi.org/10.1093/cid/ciq257
  6. NHS: Kidney infection. nhs.uk/conditions/kidney-infection/