MSD Manual

Please confirm that you are not located inside the Russian Federation

honeypot link

Kidney Infection



Talha H. Imam

, MD, University of Riverside School of Medicine

Reviewed/Revised Jan 2024
Topic Resources

Pyelonephritis is a bacterial infection of one or both kidneys.

  • Infection can spread up the urinary tract to the kidneys, or uncommonly the kidneys may become infected through bacteria in the bloodstream.

  • Chills, fever, back pain, nausea, and vomiting can occur.

  • Urine and sometimes blood tests and imaging tests are done if doctors suspect pyelonephritis.

  • Antibiotics are given to treat the infection.

The Kidneys

Causes of Kidney Infection

Pyelonephritis is more common among women than men. Escherichia coli Escherichia coli Infections Escherichia coli (E. coli) are a group of gram-negative bacteria that normally reside in the intestine of healthy people, but some strains can cause infection in the digestive... read more , a type of bacteria normally in the large intestine, causes about 90% of cases of pyelonephritis among people who are not hospitalized or living in a nursing home. Infections usually ascend from the genital area through the urethra to the bladder, up the ureters, into the kidneys. In a person with a healthy urinary tract, an infection is usually prevented from moving up the ureters into the kidneys by the flow of urine washing organisms out and by closure of the ureters at their entrance to the bladder. However, any physical blockage (obstruction) Urinary Tract Obstruction Urinary tract obstruction is a blockage that inhibits the flow of urine through its normal path (the urinary tract), including the kidneys, ureters, bladder, and urethra. Blockage can be complete... read more to the flow of urine, such as a structural abnormality, kidney stone Stones in the Urinary Tract Stones (calculi) are hard masses that form in the urinary tract and may cause pain, bleeding, or an infection or block of the flow of urine. Tiny stones may cause no symptoms, but larger stones... read more Stones in the Urinary Tract , or an enlarged prostate gland Benign Prostatic Hyperplasia (BPH) Benign prostatic hyperplasia (BPH) is a noncancerous (benign) enlargement of the prostate gland that can make urination difficult. The prostate gland enlarges as men age. Men may have difficulty... read more , or the backflow (reflux) of urine from the bladder into the ureters Urinary Reflux Urinary reflux is when urine flows backward from the bladder into the ureter and sometimes the kidney, usually because of a birth defect of the urinary tract. Each kidney continuously filters... read more increases the likelihood of pyelonephritis.

The risk of pyelonephritis is increased during pregnancy. During pregnancy, the enlarging uterus puts pressure on the ureters, which partially obstructs the normal downward flow of urine. Pregnancy also increases the risk of reflux of urine up the ureters by causing the ureters to dilate and reducing the muscle contractions that propel urine down the ureters into the bladder.

In about 5% of cases, infections are carried to the kidneys from another part of the body through the bloodstream. For instance, a staphylococcal skin infection Overview of Bacterial Skin Infections The skin provides a remarkably good barrier against bacterial infections. Although many bacteria come in contact with or reside on the skin, they are normally unable to establish an infection... read more can spread to the kidneys through the bloodstream.

Symptoms of Kidney Infection

Symptoms of pyelonephritis often begin suddenly with chills, fever, pain in the lower part of the back on either side, nausea, and vomiting.

About one third of people with pyelonephritis also have symptoms of cystitis Bladder Infection Cystitis is infection of the bladder. Usually, bacteria are the cause of cystitis. A frequent need to urinate and pain or burning while urinating are the most common symptoms. Doctors can often... read more Bladder Infection (bladder infection), including frequent, painful urination. One or both kidneys may be enlarged and painful, and doctors may find tenderness in the small of the back on the affected side. Sometimes the muscles of the abdomen are tightly contracted. Irritation from the infection or the passing of a kidney stone (if one is present) can cause spasms of the ureters. If the ureters go into spasms, people may experience episodes of intense pain (renal colic). In children, symptoms of a kidney infection Urinary Tract Infection (UTI) in Children A urinary tract infection is a bacterial infection of the urinary bladder ( cystitis), the kidneys ( pyelonephritis), or both. Urinary tract infections are caused by bacteria. Infants and young... read more often are slight and more difficult to recognize. In older adults, pyelonephritis may not cause any symptoms that seem to indicate a problem in the urinary tract. Instead, older adults may have a decrease in mental function (delirium or confusion), fever, or an infection of the bloodstream (sepsis Sepsis and Septic Shock Sepsis is a serious bodywide response to bacteremia or another infection plus malfunction or failure of an essential system in the body. Septic shock is life-threatening low blood pressure ... read more ).

In chronic pyelonephritis, the pain may be vague, and fever may come and go or not occur at all.

Diagnosis of Kidney Infection

  • Urinalysis

  • Urine culture

  • Sometimes imaging tests

  • Examination of a urine specimen under a microscope to count the number of red and white blood cells and bacteria

  • Urine culture, in which bacteria from a urine sample are grown in a laboratory to identify the numbers and types of bacteria

Blood tests may be done to check for elevated white blood cell levels (suggesting infection), bacteria in the blood, or kidney damage.

  • People who have intense back pain (typical of renal colic)

  • People who do not respond to antibiotic treatment within 72 hours

  • People whose symptoms return shortly after antibiotic treatment is finished

  • People who have long-standing or recurring pyelonephritis

  • People whose blood test results indicate kidney damage

  • Men (because they so rarely develop pyelonephritis)

Ultrasonography or helical (spiral) computed tomography (CT) studies done in these situations may reveal kidney stones, Stones in the Urinary Tract Stones (calculi) are hard masses that form in the urinary tract and may cause pain, bleeding, or an infection or block of the flow of urine. Tiny stones may cause no symptoms, but larger stones... read more Stones in the Urinary Tract structural abnormalities, or other causes of urinary obstruction.

Treatment of Kidney Infection

  • Antibiotics

  • Occasionally surgery (to correct abnormality of urinary tract)

Antibiotics are started as soon as the doctor suspects pyelonephritis and samples have been taken for laboratory tests. The choice of antibiotic or its dosage may be modified based on the laboratory test results (including culture results), how sick the person is, whether the bacteria common in the community are susceptible to common antibiotics (and which antibiotics), and whether the infection started in the hospital, where bacteria tend to be more resistant to antibiotics. Other factors that can alter the choice or dosage of antibiotic include whether the person's immune system is impaired and whether the person has a urinary tract abnormality (such as an obstruction Urinary Tract Obstruction Urinary tract obstruction is a blockage that inhibits the flow of urine through its normal path (the urinary tract), including the kidneys, ureters, bladder, and urethra. Blockage can be complete... read more ).

Outpatient treatment with antibiotics given by mouth is usually successful if the person has

  • No nausea or vomiting

  • No signs of dehydration

  • No other disorders that weaken the immune system, such as certain cancers, diabetes mellitus, or AIDS

  • No signs of very severe infection, such as low blood pressure or confusion

  • Pain that is controlled with pain medications taken by mouth

Otherwise, the person is usually treated initially in the hospital. If hospitalization is needed and the person needs antibiotics, the antibiotics are given intravenously for 1 or 2 days, then they can usually be given by mouth.

Antibiotic treatment of pyelonephritis is given for 5 to 14 days so that infection will not recur. However, antibiotic therapy may continue for up to 6 weeks for men in whom the infection is due to prostatitis Prostatitis Prostatitis is pain and swelling, inflammation, or both of the prostate gland. The cause is sometimes a bacterial infection. Pain can occur in the area between the scrotum and anus or in the... read more , which is more difficult to eradicate. A final urine sample is usually taken shortly after the antibiotic treatment is finished to make sure the infection has been eradicated.

Surgery is necessary only occasionally if tests show that something is chronically blocking the urinary tract, such as a structural abnormality or a particularly large stone. Removal of the infected kidney may be necessary for people with chronic pyelonephritis who are about to undergo kidney transplantation Kidney Transplantation Kidney transplantation is the removal of a healthy kidney from a living or recently deceased person and then its transfer into a person with end-stage kidney failure. (See also Overview of Transplantation... read more Kidney Transplantation . Spread of infection to the transplanted kidney is particularly risky because the person takes immunosuppressant medications, which prevent rejection of the transplanted kidney but also weaken the body's ability to fight infection.

Prognosis for Kidney Infection

Most people recover fully. Delayed recovery and the chance of complications are more likely if the person needs hospitalization, the infecting organism is resistant to commonly used antibiotics, or the person has a disorder that weakens the immune system (such as certain cancers, diabetes mellitus, or AIDS) or a kidney stone.

Prevention of Kidney Infection

People who have frequent episodes of pyelonephritis or whose infection returns after antibiotic treatment is finished may be advised to take a small dose of antibiotic on a long-term basis to prevent recurrent infection. The ideal duration of such therapy is unknown. If the infection returns after stopping this antibiotic, preventive therapy may be continued indefinitely. If a woman of childbearing age is taking an antibiotic, she should avoid pregnancy or talk to her doctor about whether to use an antibiotic that is safe during pregnancy in case she becomes pregnant.

quiz link

Test your knowledge

Take a Quiz!