People get kidney infections when bacteria, usually from the gut, climb the ureter from the bladder into the kidney; this ascending route causes the large majority of cases, while a minority arise when bacteria travel through the bloodstream and seed the kidney directly. The infection is called pyelonephritis, and it is a diagnosis of tissue invasion rather than simple bladder contamination.

The kidney is not a passive filter. It has a blood supply of roughly 1.1 to 1.2 liters per minute, about a fifth of resting cardiac output, and that flow exposes it to anything circulating in the blood. Most kidney infections, though, start below. Bacteria establish themselves in the bladder, multiply, and then move upward against the normal flow of urine. That upward journey is the central mechanism, and it explains why anything that obstructs urine flow or disrupts the one-way valve between bladder and ureter raises risk sharply.

The ascending route: how bacteria climb from bladder to kidney

Urine flows from kidney to bladder. Bacteria that reach the kidney from below are moving against that current, so they need help. The main help comes from two sources: failure of the ureterovesical junction, the valve where the ureter enters the bladder, and physical obstruction that raises pressure in the urinary tract.

The ureterovesical junction normally closes during bladder contraction. When it leaks, bacteria in the bladder get a foothold in the lower ureter. Once there, they can ascend along the mucosal surface. Uropathogenic Escherichia coli, the cause of most uncomplicated kidney infections, carries surface structures that let it adhere to the urinary lining and invade the cells that line it. Adhesion matters because it resists being washed back down by urine flow.

A second mechanism is biofilm formation. Bacteria can aggregate on the inner surface of the ureter and bladder, encasing themselves in a matrix that shields them from antibiotics and immune cells. Biofilms make eradication harder and can serve as a persistent reservoir that re-seeds the kidney after treatment. This is one reason recurrent infections happen without a new external exposure.

A third mechanism is pressure-driven reflux. When urine backs up, either from obstruction or from vesicoureteral reflux, the pressure pushes bacteria and fluid toward the kidney. High pressure also reduces blood flow to infected tissue, which impairs delivery of immune cells and antibiotics. Obstruction and infection together are a recognized emergency because the combination can destroy kidney tissue quickly.

Plain language: bacteria usually walk up the pipe from the bladder, and a leaky valve or a blockage gives them the opening.

How often, how fast, and who is affected

Kidney infections are a common reason for urgent care and hospital admission, but precise population rates vary by country and by how cases are counted. What is well established is the pattern: they are far more common in women than in men, largely because a shorter urethra makes bladder colonization easier and therefore upward spread more likely. Sexually active women and pregnant women are overrepresented among cases.

Pregnancy deserves separate mention because of mechanism, not just frequency. The hormone progesterone relaxes smooth muscle in the ureters, and the growing uterus can compress them. Both slow urine flow and promote stasis, which gives ascending bacteria more time to establish themselves. Untreated kidney infection in pregnancy is linked to preterm labor and low birth weight, which is why pregnant women with fever and flank pain are treated aggressively.

Age shifts the picture in two directions. In older adults, declining immune function and more frequent instrumentation, such as catheters, raise risk. In young children, especially those with anatomic abnormalities or reflux, infection can scar developing kidney tissue. The stakes are highest at the extremes of age, not because the bacteria are different but because the host defenses and the consequences differ.

Exact national incidence figures for pyelonephritis are not consistently reported and vary with coding practices, so no single current number should be treated as definitive. The direction of risk, however, is stable across datasets.

The hematogenous route and other edge cases

A minority of kidney infections start from the bloodstream. Bacteria circulating in blood can lodge in the kidney's dense capillary network, especially where tiny vessels are already damaged or where a clot has formed. This route is less common than ascending infection but explains a distinct set of cases.

The classic hematogenous scenario is Staphylococcus aureus bacteremia, often from a skin or wound source, seeding the kidney. People who inject drugs, those with indwelling vascular catheters, and patients with prosthetic heart valves are at higher risk. In these cases, the kidney infection is a marker of a bloodstream infection that needs its own treatment, and the urinary tract may look completely normal.

Other edge cases change the mechanism:

Obstruction from a kidney stone or tumor blocks urine flow and turns a smoldering infection into a dangerous one; this is a recognized urologic emergency. Diabetes impairs immune cell function and increases glucose in urine, which can feed bacterial growth. Immunosuppression from chemotherapy or transplant drugs reduces the body's ability to contain infection at the mucosal surface. Vesicoureteral reflux, especially in children, allows bladder urine to reach the kidney directly. Instrumentation such as a urinary catheter or a recent cystoscopy can introduce bacteria past the normal defenses.

A professional caveat: not every flank pain with fever is pyelonephritis. Kidney stones, appendicitis, and pneumonia can mimic it, and imaging or urine culture is often what settles the question.

What the symptoms are actually telling you

The symptoms of kidney infection are best understood as the body's response to tissue invasion, not merely to bacteria in the urine. Fever and chills reflect systemic immune activation. Flank pain reflects inflammation of the kidney capsule, which is stretched by swelling. Nausea and vomiting are common and can be a sign of systemic illness rather than a stomach problem.

A counterintuitive detail: the severity of a kidney infection does not track the bacterial load in the urine. A patient can have relatively modest urine bacteria counts and still be seriously ill, because the key event is invasion of kidney tissue, not the number of organisms in the bladder. Conversely, a heavily colonized bladder does not always mean the kidney is involved.

Red-flag warnings worth acting on immediately:

Fever with shaking chills and flank pain that does not improve. Confusion, dizziness, or fainting, which can signal sepsis. Inability to keep fluids down, which risks dehydration and hampers treatment. Very low urine output or blood in the urine. Pregnancy with fever and flank pain. Symptoms that worsen despite 48 hours of appropriate care.

Comparison: how kidney infections differ from cystitis and from bloodstream seeding

Feature Cystitis (bladder) Ascending pyelonephritis Hematogenous pyelonephritis
Typical source Gut bacteria entering urethra Bladder bacteria climbing ureter Bacteria in bloodstream
Main organisms E. coli, Klebsiella E. coli, Klebsiella, Proteus S. aureus, sometimes Candida
Fever Usually absent or low Usually present Present
Flank pain Absent Common Common
Urine culture Positive Positive May be negative
Mechanism bottleneck Urethral entry Ureterovesical valve, obstruction Vascular seeding, host immunity
Risk escalators Sexual activity, catheters Obstruction, reflux, pregnancy Injection drug use, catheters, valve disease

The table makes one point clear: the same urinary tract can host very different infections depending on where the bacteria enter and what route they take.

Timeline: from bladder colonization to treated kidney infection

Stage Approximate timing What is happening
Urethral entry Hours to days before symptoms Bacteria enter the bladder, often from the gut
Bladder colonization Hours to days Bacteria adhere to the bladder lining and multiply
Ureteral ascent Hours to a few days Bacteria move up the ureter, aided by valve failure or reflux
Kidney invasion Within days of ascent Bacteria invade kidney tissue, triggering fever and flank pain
Symptom onset Often 1 to 3 days after kidney invasion Systemic signs appear as inflammation spreads
Treatment window First 24 to 48 hours matter most Antibiotics reduce risk of scarring and sepsis
Resolution Days to weeks depending on severity Symptoms improve within 48 to 72 hours of effective treatment

The timing is approximate and varies with host factors and organism. What is consistent is that the window between early symptoms and serious complications can be short, which is why prompt evaluation matters.

Practical actions that reduce risk and catch it early

Because the dominant route is ascending, most prevention targets the bladder and the flow of urine. Concrete steps:

Drink adequate fluid so urine output stays dilute and frequent; this mechanically flushes bacteria before they adhere. Empty the bladder after sex; this reduces the chance that bacteria introduced during intercourse establish in the bladder. For people with recurrent bladder infections, clinicians sometimes use preventive strategies, but these should be individualized rather than self-prescribed. Treat and remove obstructions, such as kidney stones, when they are identified; obstruction is the single most dangerous amplifier of infection. In pregnant women, screen and treat asymptomatic bacteriuria, which is a recognized way to reduce the risk of ascending infection. In children with reflux, follow the monitoring plan set by the care team rather than assuming all reflux needs the same approach.

For someone with fever and flank pain, the decisive action is getting evaluated the same day. A urine culture guides treatment, and imaging may be used when obstruction is suspected. Do not start leftover antibiotics at home; that can delay correct treatment and drive resistance.

Limitations and what the evidence cannot settle

The mechanisms above are well established and stable. What remains uncertain is the exact contribution of each risk factor across populations, the optimal duration of treatment for every severity level, and how much of a role biofilm plays in specific recurrent cases. Recommendations for imaging and for preventive antibiotics in children with reflux have shifted over time and depend on individual circumstances.

There is also a limit to what urine tests can tell you. A positive urine culture confirms bacteria in the bladder, not invasion of the kidney. The diagnosis of kidney infection is clinical, supported by tests, and occasionally by imaging. This gap is why the same urine result can mean very different things in a person with flank pain and fever versus one without.

Finally, antibiotic resistance patterns change by region and over time, so treatment choices must follow local guidance rather than fixed rules. The deeper explanation of how kidney infections happen does not change, but the practical handling of each case does.

This article explains mechanisms and general principles. It is not a diagnosis or a treatment plan, and anyone with suspected kidney infection should be evaluated promptly by a clinician.