A kidney infection is a bacterial infection of one or both kidneys. It is a serious condition that needs medical treatment right away. Doctors prescribe antibiotics as the main treatment for kidney infection, and most people need to start them quickly to stop the infection from spreading or causing lasting kidney damage.
In some cases, treatment starts in a hospital with antibiotics given through a vein. In milder cases, a doctor may prescribe antibiotic pills you take at home. The exact drug and how it is given depends on how sick you are, your health history, and local antibiotic resistance patterns.
What Do Doctors Prescribe For Kidney Infection?
The first-line treatment for a kidney infection is antibiotics. This is not a condition that improves on its own, and it is not something to treat with home remedies alone.
A kidney infection, also called pyelonephritis, usually happens when bacteria travel up from the bladder into the kidneys. The infection can move into the bloodstream if it is not treated. That is why doctors treat it as a medical urgency rather than a wait-and-see problem.
Which antibiotic a doctor chooses depends on several things:
- How sick you are and whether you can keep pills down
- Whether you are pregnant
- Any allergies you have
- Your kidney function
- Local patterns of antibiotic resistance
- Whether you have been on antibiotics recently
For people who are well enough to go home, doctors commonly prescribe oral antibiotics. For people who are very ill, pregnant, unable to keep fluids down, or showing signs of a bloodstream infection, doctors usually give antibiotics through an IV in a hospital. This is not a sign that something has gone wrong — it is simply the fastest and most reliable way to get the drug into the body.
Doctors often start treatment before lab results come back. Waiting for a urine culture can take a day or more, and delaying treatment raises the risk of complications. Once results return, the doctor may switch to a different antibiotic that targets the specific bacteria found.
Which Antibiotics Are Commonly Used?
Several antibiotics are used to treat kidney infections. The choice is guided by guidelines from medical organizations and by what bacteria are common in your area.
Commonly used options include:
- Fluoroquinolones such as ciprofloxacin and levofloxacin
- Trimethoprim-sulfamethoxazole (often called TMP-SMX)
- Cephalosporins given by mouth or by IV
- Aminoglycosides given by IV for more serious cases
- Carbapenems or other broad-spectrum IV antibiotics for severe or resistant infections
Fluoroquinolones are effective but carry real risks, including tendon damage and nerve problems. Because of these risks, many guidelines now recommend them mainly when other options are not suitable. This is a shift from how they were used in the past.
Pregnant women are usually given a different set of antibiotics. Some drugs that are safe for other adults are not safe during pregnancy. If you are pregnant and have a kidney infection, you may be admitted to the hospital for IV antibiotics even if your symptoms seem mild.
Do not take leftover antibiotics from a previous illness. The drug that worked before may not be the right one now, and incomplete or wrong treatment can let the infection worsen.
How Long Does Treatment Usually Last?
Most people take antibiotics for about 7 to 14 days. The exact length depends on the drug, how severe the infection is, and how quickly you improve.
Some research has looked at shorter courses of certain antibiotics for uncomplicated cases. But shorter treatment is not right for everyone, and the decision should come from your doctor. Do not stop antibiotics early just because you feel better. Symptoms often improve within a few days, but the infection may not be fully cleared.
If you stop too soon, the bacteria that survive can regrow. This can lead to a relapse and, in some cases, to bacteria that are harder to treat.
What Happens If a Kidney Infection Is Not Treated?
An untreated kidney infection can become life-threatening. This is the part people often underestimate.
When bacteria spread from the kidney into the bloodstream, it causes a condition called sepsis. Sepsis is a whole-body response to infection that can lead to organ failure and death. A kidney infection is one of the more common sources of sepsis in adults.
Other possible complications include:
- Permanent kidney damage or scarring
- A pocket of pus in the kidney, called a renal abscess
- Spread of infection to other parts of the body
- In pregnant women, premature labor or other serious risks to mother and baby
This is why doctors treat kidney infections quickly and why they may admit you to the hospital even if you feel only moderately sick. The goal is to stop the infection before it has a chance to spread.
What Other Treatments Might Be Given?
Antibiotics are the core treatment, but doctors may add other steps depending on your situation.
Fluids. IV fluids are common in the hospital. They help maintain blood pressure and support kidney function while the body fights the infection.
Pain and fever control. Over-the-counter medications like acetaminophen or ibuprofen can help with fever and pain. Ask your doctor before taking ibuprofen, because it can affect kidney function in some people, especially if you are dehydrated or already have kidney problems.
Drainage or surgery. If a pocket of pus has formed, or if a kidney stone is blocking urine flow, antibiotics alone may not be enough. A doctor may need to drain the abscess or remove the blockage. This is not common, but it happens in some cases.
Hospital monitoring. If you are admitted, your care team will track your vital signs, kidney function, and response to treatment. This lets them adjust the plan quickly if something changes.
What Are the Signs You Need Emergency Care?
Some symptoms mean you should not wait for a regular appointment. Go to an emergency room or call emergency services if you have:
- High fever with shaking chills
- Severe pain in your back, side, or belly
- Confusion or trouble staying awake
- Rapid heartbeat or rapid breathing
- Very little urine, or no urine
- Vomiting that will not stop
These can be signs that the infection has spread or that your kidneys are struggling. They need to be checked right away.
For milder symptoms — like a burning feeling when you urinate, needing to go often, or mild flank discomfort with a low fever — you should still see a doctor promptly. A urinary tract infection that moves to the kidneys can worsen quickly.
Will a Kidney Infection Come Back?
Some people get kidney infections more than once. This is more likely if you have a condition that blocks urine flow, such as kidney stones, an enlarged prostate, or a structural problem in the urinary tract.
If you have repeated infections, your doctor may look for an underlying cause. In some cases, a low-dose antibiotic taken over a longer period is used to prevent new infections. This approach is used in selected patients and is not right for everyone.
Drinking enough water and urinating when you feel the urge can help keep the urinary tract clear. But no lifestyle change replaces prompt treatment when an infection is active.
What Should You Do If You Think You Have a Kidney Infection?
See a doctor the same day. Do not try to treat a suspected kidney infection at home with cranberry juice, herbs, or leftover antibiotics.
Cranberry products have been studied for preventing urinary tract infections, and the evidence there is mixed. There is no good evidence that cranberry juice treats a kidney infection once it has started. Relying on it can delay real treatment.
When you see a doctor, be ready to describe your symptoms, how long you have had them, and any recent antibiotic use. This helps the doctor choose the right drug faster.
Take the full course of antibiotics exactly as prescribed. If your symptoms get worse or do not improve within a few days, call your doctor. Do not wait to see if things turn around on their own.
Frequently Asked Questions
What is the most common antibiotic for a kidney infection?
Fluoroquinolones like ciprofloxacin and levofloxacin are commonly used, along with trimethoprim-sulfamethoxazole and certain cephalosporins. The best choice depends on your health history, pregnancy status, and local resistance patterns.
Can a kidney infection be treated at home?
Mild cases can sometimes be treated at home with oral antibiotics if you can keep them down and are not severely ill. More serious cases, or cases in pregnant women, usually require IV antibiotics in a hospital.
How long does it take to feel better with treatment?
Many people start to feel better within a few days of starting antibiotics, but the full course usually lasts 7 to 14 days. Feeling better does not mean the infection is gone, so finish all medication as prescribed.
Can a kidney infection go away without antibiotics?
No. A kidney infection needs antibiotic treatment, and untreated cases can lead to sepsis, permanent kidney damage, or death. Do not wait to see a doctor if you have symptoms.

