You get a kidney infection when bacteria — most often Escherichia coli from your own gut — travel up the tube connecting your bladder to your kidney and multiply in the kidney's collecting system. Doctors call this ascending route pyelonephritis, and it accounts for the large majority of cases. The infection is usually a bladder infection that climbed. Less often, bacteria arrive through the bloodstream and seed the kidney from elsewhere in the body.
That single sentence — ascent from bladder to kidney — frames almost everything that follows. The practical question is not whether bacteria exist near your urinary tract, because they always do. The question is what lets them move upward, attach, and overwhelm local defenses.
The ascent: how bacteria climb from bladder to kidney
The ureter is not a passive drain. It is a muscular tube, roughly 25 to 30 centimeters long in adults, that propels urine downward with rhythmic contractions called peristalsis. Normal urine flow and ureteral peristalsis are the main reason bacteria in the bladder usually do not reach the kidney. Infection requires that this one-way traffic fail.
Three things typically go wrong together. First, bacteria attach to the bladder lining using hair-like appendages called fimbriae, which lets them resist being washed out. Second, some strains carry adhesins — P fimbriae are the classic example — that bind receptors on kidney and ureteral tissue, giving them a foothold higher up. Third, something impairs urine flow: a partial obstruction, reflux of urine backward from bladder to ureter, or incomplete bladder emptying.
Once bacteria reach the kidney's collecting system, they provoke an inflammatory response in the tissue itself. This is why kidney infection feels different from cystitis. The kidney is a solid organ with a rich blood supply, so inflammation there produces fever, flank pain, and sometimes bloodstream spillover. A bladder infection stays in a hollow space; a kidney infection enters tissue.
Bloodborne seeding is the minority route. It matters mainly in people with bacteria already in their bloodstream, such as those with indwelling catheters or serious systemic infection. For a previously healthy adult with a routine kidney infection, ascent is the mechanism to assume.
Why women get them far more often than men
Anatomy explains most of the imbalance. A woman's urethra is roughly 4 centimeters long; a man's is about 20. The shorter distance means fecal bacteria reach the bladder more easily, and from the bladder the climb to the kidney is a shorter trip. Roughly one in two women will have at least one urinary tract infection in her lifetime, and a minority of those ascend to the kidney.
Pregnancy adds risk through a different mechanism. Elevated progesterone relaxes the ureters, and the enlarging uterus can compress them, slowing urine flow. This is why clinicians screen for asymptomatic bacteriuria during pregnancy and treat it — the goal is preventing ascent to the kidney, not relieving symptoms.
Men are not immune, and when a man develops a kidney infection the workup differs. Older men with prostate enlargement may not empty the bladder fully, creating a standing reservoir. Any structural or functional obstruction — kidney stones, an enlarged prostate, a narrowed ureter — raises the odds that bacteria that would otherwise be flushed instead settle and climb.
What raises risk, and by how much context allows
The evidence supports several consistent risk factors without supporting precise per-person probabilities. Catheter use is among the strongest: any indwelling urinary catheter bypasses the urethra's defenses and provides a surface for bacterial biofilm. The longer a catheter stays in, the higher the risk of associated infection.
Other well-supported factors include recent urinary tract instrumentation, diabetes, immunosuppression, and anatomical abnormalities of the urinary tract. Sexual activity increases bladder infection risk in women, and because kidney infection usually follows bladder infection, it indirectly raises kidney infection risk too. Voiding after intercourse is commonly advised, though the evidence for that specific habit is weaker than its popularity suggests.
Here is the counterintuitive detail worth sitting with: having bacteria in your urine is not the same as having an infection. Asymptomatic bacteriuria — bacteria present without symptoms — is common and usually needs no treatment outside pregnancy or before certain urological procedures. Treating it in other people does not prevent kidney infection and contributes to antibiotic resistance. The presence of organisms is the setup; symptoms are the signal that tissue is involved.
Common risk factors, grouped by mechanism:
Impaired drainage: kidney stones, enlarged prostate, pregnancy-related ureteral slowing, stricture Bypassed defenses: indwelling catheter, recent instrumentation or surgery Immune compromise: diabetes, immunosuppressive medication, some chronic illnesses Bacterial exposure and adherence: sexual activity, prior urinary tract infection, certain E. coli strains Anatomical variation: vesicoureteral reflux, structural urinary tract differences
Cystitis versus pyelonephritis: where the line sits
The distinction matters because it changes urgency and, in some cases, the setting of care. Cystitis is inflammation of the bladder lining. Pyelonephritis is infection of kidney tissue and the collecting system. Symptoms overlap, which is why clinicians look for specific signals of upper-tract involvement.
| Feature | Bladder infection (cystitis) | Kidney infection (pyelonephritis) |
|---|---|---|
| Typical location of symptoms | Pelvis, lower abdomen | Flank or back, one or both sides |
| Fever | Usually absent or low | Common, often above 38°C (100.4°F) |
| Urinary symptoms | Burning, frequency, urgency prominent | May be present but can be mild or absent |
| Systemic symptoms | Uncommon | Chills, nausea, vomiting, malaise |
| Usual mechanism | Bacteria in bladder lining | Ascent to kidney tissue |
| Typical care setting | Often outpatient | Outpatient if stable; hospital if severe |
| Main concern | Discomfort, spread upward | Bloodstream spread, kidney injury |
A useful rule of thumb: burning and frequency alone point downward; fever with flank pain points upward. Neither pattern is absolute, and older adults may show confusion or general decline rather than classic symptoms.
How a kidney infection unfolds over time
The timeline is approximate and varies with the strain, the host, and whether treatment starts early. It is a course map, not a schedule you can apply to any individual.
| Stage | Approximate timing | What is happening |
|---|---|---|
| Bacterial entry to bladder | Hours after exposure | Gut bacteria colonize the bladder lining |
| Bladder infection | Within a day or so of colonization | Local inflammation; burning and frequency begin |
| Ascent up the ureter | Variable; can be rapid | Adhesins and impaired flow allow upward travel |
| Kidney tissue involvement | Days after bladder symptoms, sometimes without a clear bladder phase | Fever, flank pain, systemic symptoms appear |
| Bloodstream spillover | Possible at any point after tissue involvement | Chills, marked illness; a medical emergency |
| Treatment response | Fever often improves within 48 to 72 hours of effective antibiotics | Inflammation subsides; symptoms ease |
| Resolution | Days to a couple of weeks | Tissue inflammation clears; fatigue can linger |
The window between bladder symptoms and kidney involvement is the practical target. Treating a bladder infection promptly reduces, though does not eliminate, the chance of ascent. Some kidney infections appear without a recognized preceding bladder infection, which is one reason the absence of earlier symptoms does not rule anything out.
Red flags that change the plan
Most kidney infections in otherwise healthy adults are treatable, but certain signs mean the situation has moved beyond routine. Seek urgent care for any of the following:
High fever with shaking chills, or fever that persists beyond 48 to 72 hours of appropriate treatment Severe flank or abdominal pain that is worsening rather than easing Persistent vomiting that prevents keeping fluids or oral medication down Confusion, fainting, or a rapid heartbeat — possible signs of bloodstream infection Symptoms in a pregnant person, a young infant, or someone immunosuppressed Blood in the urine together with fever and flank pain
These are triage signals, not diagnoses. They mean a clinician should assess you promptly rather than that a specific complication has occurred.
Practical steps: reducing ascent and acting early
Prevention focuses on the mechanisms above — keeping urine flowing and reducing bacterial load near the urethra. Individual benefit varies, and no single habit is proven to eliminate risk.
Treat bladder symptoms early rather than waiting them out. Burning, frequency, and urgency that persist beyond a day or two warrant a clinician's input. Urinate when you feel the need; do not habitually hold. Complete emptying reduces the standing reservoir bacteria exploit. Stay hydrated enough that urine is pale. Dilute urine and frequent voiding help flush the bladder, though this is supportive, not protective on its own. For people using catheters, ask care teams about whether the catheter is still needed and about removal timing. Duration is the strongest modifiable factor. If you have diabetes, keep glucose managed. Poor control is associated with more frequent and more severe urinary infections. After treatment for a kidney infection, complete the full antibiotic course as prescribed. Stopping early risks relapse and resistance.
On thresholds, the sources differ in emphasis and should be reconciled explicitly. Clinicians commonly use a fever of 38°C (100.4°F) as the line where upper-tract involvement becomes more likely, but a lower fever with flank pain still counts. The 48-to-72-hour window for expected improvement after starting antibiotics is a general expectation, not a hard cutoff — persistent fever at that point should prompt reassessment rather than a conclusion that treatment failed. And the recommendation to treat asymptomatic bacteriuria applies specifically to pregnancy and certain pre-procedure settings; outside those, the threshold for treating is symptoms, not a positive urine test.
The limits of what this explains
This article describes mechanisms that are well established, but it cannot tell you whether your symptoms are a kidney infection. Diagnosis depends on history, examination, and often urine testing, and treatment decisions depend on your specific situation. Antibiotic choice and duration are clinical judgments that vary with severity, local resistance patterns, and individual factors.
One more limit is worth naming. Much of what is known about ascent comes from studying E. coli in otherwise typical patients. Less common organisms, structural abnormalities, and unusual hosts follow somewhat different rules. The core principle — failure of one-way urine flow lets bacteria climb and enter tissue — holds across most of these cases. The specifics do not.
If there is a single takeaway, it is this: a kidney infection is usually a bladder infection that found a way upward. Early attention to bladder symptoms, preserving normal urine flow, and prompt care when fever and flank pain appear are the levers that matter most.