Why Does My Kidney Hurt When I Pee? Key Causes

Kidney pain during urination usually means something is irritating or inflaming your urinary tract, and the physical act of peeing is making it worse. The most common cause is a urinary tract infection that has spread from the bladder up to one or both kidneys. But kidney stones, swelling, and even a structural problem that pushes urine backward can all produce that same sharp or aching flank pain that flares when you urinate.

How to Tell It’s Your Kidney, Not Your Bladder

Bladder pain tends to sit low, just above your pubic bone, and feels like pressure or burning right where the urine exits. Kidney pain is different. You feel it higher up, under your ribs on one or both sides of your spine, sometimes wrapping around toward your groin. It can be a dull ache or a sudden, sharp stab. If the pain you notice while peeing is in that higher, deeper location rather than down near your pelvis, the kidney itself is likely involved.

Some people feel both at once: burning lower down plus a deeper ache in the flank. That combination is a strong clue that an infection or stone is affecting more than just the bladder.

Kidney Infection: The Most Common Cause

Most kidney infections start as a simple bladder infection. Bacteria from the bowel enter the urethra, multiply in the bladder, and if the infection isn’t cleared, travel up the ureters into one or both kidneys. Once the kidney is inflamed, the pressure changes that happen every time your bladder contracts to push out urine can send a wave of pain up toward the infected kidney.

A large study of over 400,000 women with bladder infections found that about 1.4% of those who went untreated developed a kidney infection within 30 days. That number is relatively low, but among the women who did progress to a kidney infection, nearly 80% had never taken an antibiotic for the original bladder infection. In other words, treating a simple bladder infection early is one of the most effective ways to prevent kidney pain down the line.

Kidney infection symptoms go beyond just pain while urinating. You’ll typically also notice fever, chills, nausea or vomiting, cloudy or foul-smelling urine, and a constant ache in your side or back. The pain often gets worse when you urinate because the act of voiding creates pressure shifts in the ureters and kidney.

Kidney Stones and Urination Pain

A stone lodged in the ureter, the narrow tube connecting your kidney to your bladder, can cause intense flank pain that seems to spike when you pee. The ureters have three natural narrow points where stones tend to get stuck: where the ureter meets the kidney, where it crosses the pelvic brim, and where it enters the bladder wall. A stone near any of these spots stretches and irritates the ureter wall, and the sensory nerves running alongside the ureter (which connect to spinal segments from roughly mid-back down to the lower spine) fire pain signals in response to that distension.

When your bladder contracts during urination, it can tug on or change pressure around a stone sitting near the bladder end of the ureter. That’s why the pain may pulse or sharpen at the exact moment you’re peeing. You might also see blood in your urine, since the stone scrapes the ureter lining as it moves.

Urine Flowing the Wrong Direction

A less well-known cause is vesicoureteral reflux, a condition where urine flows backward from the bladder up toward the kidneys instead of only flowing downward. Normally, a small valve where each ureter meets the bladder prevents backflow. When that valve doesn’t close properly, every time the bladder squeezes during urination, some urine gets pushed upward into the kidney. That backward surge stretches the kidney’s collecting system and can cause immediate flank pain timed perfectly with voiding.

This condition is more common in children, but adults can have it too, especially after repeated infections or bladder surgery. Beyond the pain, reflux raises the risk of kidney infections because bacteria from the bladder hitch a ride on that backward-flowing urine straight into the kidney. Symptoms overlap heavily with a UTI: burning during urination, frequent urges to go, cloudy urine, and side or groin pain.

What Testing Looks Like

If you’re experiencing kidney pain when you pee, the first step is almost always a urine test. A simple urinalysis can detect bacteria, white blood cells, and blood, all of which point toward infection or irritation. If infection is confirmed, a urine culture identifies the specific bacteria so the right antibiotic can be chosen.

Imaging comes next when the cause isn’t obvious or symptoms are severe. A kidney ultrasound is painless and can reveal blockages, stones, or swelling in the kidney. If a stone is suspected but not visible on ultrasound, a CT scan provides a more detailed picture. For suspected reflux, a specialized test called a voiding cystourethrogram captures images of your bladder and ureters while you’re actively urinating, making it possible to see urine flowing in the wrong direction in real time.

How Kidney Infections Are Treated

Kidney infections require antibiotics, and the course is typically short. Current guidelines recommend 5 to 7 days if you’re responding well to treatment. For people whose infection has reached the bloodstream but who are still improving, 7 days is generally sufficient. Most people start feeling noticeably better within 48 to 72 hours of starting antibiotics, though you should finish the full course even after symptoms fade.

If nausea or vomiting prevents you from keeping pills down, or if you have a high fever with shaking chills, treatment may need to start with intravenous antibiotics in a hospital setting before switching to oral medication once you’re improving.

Kidney Stones and Reflux: What to Expect

Small kidney stones (under about 5 to 6 millimeters) often pass on their own with plenty of fluids and pain management. Larger stones may need a procedure to break them up or remove them. The timeline varies: a small stone near the bladder might pass in days, while one higher up in the ureter can take weeks.

Vesicoureteral reflux treatment depends on severity. Mild reflux in adults is sometimes managed by treating and preventing UTIs aggressively, since the reflux itself may not cause damage if infections are kept at bay. More significant reflux can be corrected with a minimally invasive procedure or surgery to repair the faulty valve.

Symptoms That Need Urgent Attention

Kidney pain during urination paired with any of the following warrants prompt medical care: fever above 101°F (38.3°C), shaking chills, vomiting that won’t stop, visible blood in your urine, or pain so severe you can’t find a comfortable position. These can signal a kidney infection that’s spreading to the bloodstream or a stone that’s completely blocking urine flow, both of which can cause serious complications if left untreated for even a day or two.