How to Tell the Difference Between a UTI and Kidney Stone

The single most reliable clue is where and how you feel pain. A kidney stone typically announces itself with sudden, severe flank pain that radiates from your back down toward your groin, while a urinary tract infection more commonly produces a burning sensation during urination along with a persistent urge to go. But the distinction is rarely that clean in practice, because both conditions can cause overlapping symptoms like blood in the urine, pelvic discomfort, and frequent urination. Understanding the patterns each condition tends to follow, and knowing when they show up together, can help you decide whether you need antibiotics, pain management, or a trip to the emergency room.

How the Pain Differs

Pain is the symptom people notice first with both conditions, but the character and location are usually different enough to point you in the right direction. Kidney stone pain, often called renal colic, tends to come in intense waves. It typically starts in your flank, the area between your lower ribs and hip on one side, and can radiate downward into the lower abdomen, groin, or even the inner thigh. The waves happen because your ureter, the tube connecting the kidney to the bladder, squeezes rhythmically to try to push the stone along. When the stone shifts position, the pain can suddenly intensify or change location.

UTI pain is usually steadier and more localized. A bladder infection produces a burning or stinging sensation concentrated in the urethra and lower pelvis, and you feel it most acutely during or just after urination. The discomfort tends to be constant rather than wave-like. If a UTI has traveled up to the kidneys (pyelonephritis), the pain can shift to the flank and start to mimic a stone. That overlap is one reason the two conditions are sometimes confused in emergency rooms.

One practical test you can do yourself: if you’re writhing and can’t find a comfortable position, that pattern leans toward a kidney stone. People with renal colic often pace or shift constantly because no position relieves the pain. People with a straightforward bladder infection are uncomfortable but can usually sit still.

Urinary Symptoms That Overlap and Those That Don’t

Both conditions can make you feel like you need to urinate frequently, and both can produce visible blood in your urine. That overlap is the main source of confusion. But the pattern of urinary symptoms usually tells you something useful.

With a UTI, urinary urgency and frequency are front-and-center symptoms. You feel like you have to go constantly, even when your bladder is nearly empty, and the act of urinating burns. The urine itself may look cloudy or have a strong, unpleasant smell. These symptoms are driven by inflammation in the bladder lining, where bacteria have attached to and invaded the tissue.

With a kidney stone, urgency and frequency tend to appear only once the stone has traveled far enough down the ureter to sit near the bladder. If the stone is still high up near the kidney, you may have severe flank pain and blood in the urine but no particular urge to urinate. Cloudy or foul-smelling urine is less typical of a stone alone. If you do see cloudiness along with stone-like pain, that combination raises the possibility that a stone has caused a secondary infection, which is a situation that needs prompt medical attention.

Hematuria, visible or microscopic blood in the urine, shows up with both conditions but for different reasons. A stone physically scrapes the lining of the ureter as it moves, producing blood that’s often visible to the naked eye. A UTI causes blood through inflammation and tissue damage from the bacteria themselves. The blood from a stone is sometimes more dramatic, especially during a pain spike, while UTI-related blood may be subtler.

Fever, Nausea, and Systemic Symptoms

Fever is one of the clearest distinguishing clues. A bladder-level UTI occasionally causes a low-grade fever, but a high fever with chills strongly suggests the infection has reached the kidneys or entered the bloodstream. An uncomplicated kidney stone, by contrast, does not cause fever. If you have stone-like pain and a fever, doctors treat that as a urological emergency because it likely means the stone has caused an obstruction with infection behind it.

Nausea and vomiting are common with kidney stones, especially during intense pain episodes. They’re caused by the shared nerve pathways between the kidneys, ureters, and the gastrointestinal tract. A simple bladder infection rarely causes nausea. Again, a kidney infection (pyelonephritis) can blur this line because it can also produce nausea, but in that case it’s usually accompanied by a high fever and flank tenderness.

In short, if your dominant symptoms are burning urination, urgency, and maybe a low fever, a UTI is the more likely explanation. If your dominant symptoms are severe one-sided pain, nausea, and blood in the urine without burning, a stone is more likely. If you have all of the above plus a high fever, you could have both, and that needs urgent evaluation.

When Both Show Up Together

Kidney stones and UTIs aren’t just conditions that mimic each other. They genuinely coexist more often than most people realize. A systematic review found that patients with urinary stones who developed infections had higher rates of serious complications, including bloodstream infection and kidney damage, compared to infection patients without stones.

The relationship runs in both directions. A stone can obstruct urine flow and create a pool of stagnant urine behind it, which becomes an ideal breeding ground for bacteria. In the other direction, certain bacteria can actually cause stones to form. The bacterium Proteus mirabilis, a common cause of complicated UTIs, produces an enzyme called urease that raises the pH of urine. That alkaline environment promotes the formation of struvite stones, a type of stone specifically linked to infection.1PubMed Central. Deacidification by FhlA-dependent hydrogenase is involved in urease activity and urinary stone formation in uropathogenic Proteus mirabilis Studies have confirmed that the prevalence of Proteus species is significantly higher in patients with urinary stones than in those without them.2PubMed Central. Association of Kidney Stones and Recurrent UTIs: the Chicken and Egg Situation. A Systematic Review of Literature

Beyond struvite stones, bacteria may also play a role in the more common calcium-based stones. Researchers have found bacteria embedded within calcium oxalate and calcium phosphate stones, raising the possibility that bacteria contribute to their formation in ways that are still being studied.3PubMed Central. The association between bacteria and urinary stones This chicken-and-egg dynamic, where stones promote infections and infections promote stones, helps explain why some people cycle between the two conditions repeatedly.

How Doctors Tell Them Apart

When you show up at a clinic or emergency department, the workup for each condition is different, and knowing what to expect can reduce some anxiety.

For a suspected UTI, the first step is a urinalysis and urine culture. The urinalysis checks for white blood cells, bacteria, and nitrites, all signs of infection. A culture identifies the specific bacterium responsible and which antibiotics will work against it. This process is straightforward and inexpensive.

For a suspected kidney stone, imaging is the key diagnostic step. Ultrasound is usually the first choice because it doesn’t involve radiation and can quickly identify larger stones or signs of obstruction like a swollen kidney. For more detailed evaluation, a CT scan without contrast is the gold standard. It can detect stones of almost any size and composition and can reveal exactly where the stone is lodged.4Journal of Healthcare Sciences. Imaging of Kidney Stones: CT Urography, Ultrasound, and Stone Composition Analysis

In ambiguous cases where both conditions are possible, doctors often order both a urinalysis and imaging. The urinalysis can reveal blood (pointing toward a stone) or bacteria and white blood cells (pointing toward infection), and the imaging clarifies whether a stone is present. When the urinalysis shows both blood and signs of infection, that’s the combination that triggers concern about an obstructing stone with a UTI behind it.

Risk Factors That Lean One Way or the Other

Your personal risk profile can sometimes give you a useful prior before you even get to a doctor.

UTIs are far more common in women, partly because of anatomy: a shorter urethra gives bacteria a shorter path to the bladder. Sexual activity, certain types of birth control, and menopause all increase UTI risk in women. Men get UTIs too, but when they do, it often suggests an underlying issue like an enlarged prostate or a structural abnormality. Uropathogenic E. coli, the bacterium responsible for the majority of UTIs, invades bladder cells and can persist there for long periods, which is one reason UTIs tend to recur.5PubMed. Mechanisms and consequences of bladder cell invasion by uropathogenic Escherichia coli

Kidney stones are more common in men overall, though the gender gap has been narrowing. Dehydration is the single biggest modifiable risk factor. Dietary factors including high sodium, high animal protein, and low fluid intake all contribute to stone formation.6PubMed Central. Nutrition and Kidney Stone Disease A family history of stones roughly doubles your own risk. Hot climates, obesity, and certain metabolic conditions like gout also raise the odds. Urine is routinely supersaturated with the minerals that form stones; whether those minerals crystallize into a problem depends on the balance between supersaturation and the natural inhibitors in your urine.7PubMed. Normal calcium oxalate crystal growth inhibition in severe calcium oxalate nephrolithiasis

If you’re a woman with a history of recurrent UTIs, burning urination and urgency probably are another infection. If you’re a man in your 40s who doesn’t drink much water and has a family history of stones, sudden flank pain is more likely a stone. These aren’t diagnostic certainties, but they’re reasonable starting assumptions while you arrange to be seen.

When to Go to the Emergency Room

Most bladder infections and many small kidney stones can be managed in an outpatient setting. But certain combinations of symptoms signal a situation that needs urgent care:

  • Fever with flank pain: this combination suggests an infected obstructing stone or pyelonephritis, both of which can progress to sepsis without treatment.
  • Inability to keep fluids down: severe nausea and vomiting from renal colic can lead to dehydration, which makes the stone harder to pass and can impair kidney function.
  • Pain unresponsive to over-the-counter medication: if ibuprofen and acetaminophen together aren’t touching the pain, you likely need IV medication and evaluation.
  • Decreased urine output or no urine at all: this can mean complete obstruction, particularly dangerous if you only have one functioning kidney.
  • Blood in urine that doesn’t clear: while some hematuria is expected with stones, persistent heavy bleeding needs evaluation.

A kidney stone complicated by infection is treated differently from either condition alone. The infection needs antibiotics, and the obstruction often requires a procedure to relieve it before the antibiotics can work effectively. Emergency physicians are particularly alert to this scenario because an infected stone with a blocked ureter can deteriorate quickly.

How the Picture Looks Different in Children

Children can get both UTIs and kidney stones, but their symptoms often look nothing like what adults describe. Young children can’t articulate where or how they hurt, so the presentation tends to be vague. A study of 175 pediatric patients with urinary stones found that in younger children, irritability was the most common complaint, reported in about 29% of cases. Pain and visible blood in the urine were more likely to be reported by older children, who could better describe what they were feeling.8Journal of Health Sciences and Medicine. Urinary stone disease in pediatric patients: a mixed-methods study

Pediatric UTIs similarly present with nonspecific symptoms in very young children: unexplained fever, poor feeding, and irritability rather than the classic burning and urgency that older kids and adults describe. Because the symptoms overlap so heavily in small children, doctors rely more heavily on urinalysis and imaging to separate the two conditions rather than symptom patterns alone. If your young child has unexplained fussiness, fever, or vomiting with no clear cause, a urine test is one of the first things a pediatrician should consider.

The Microbiome Connection

Emerging research is revealing that the community of bacteria living in your urinary tract and gut may influence your susceptibility to both conditions in ways that aren’t obvious. Healthy people tend to have urinary microbiomes dominated by beneficial bacteria like Lactobacillus and Streptococcus, while people who form kidney stones have reduced diversity in both their urinary and gut microbiomes, with fewer oxalate-degrading bacteria and sometimes a higher concentration of pathogenic species.9PubMed Central. How is the human microbiome linked to kidney stones?

The gut microbiome matters because certain bacteria in the intestine break down oxalate, a compound that contributes to the most common type of kidney stone. When those bacteria are depleted, perhaps by a course of antibiotics or by a diet that doesn’t support microbial diversity, more oxalate gets absorbed into the bloodstream and ultimately filtered into the urine, raising stone risk. The urinary microbiome may also influence stone growth directly within the kidneys.10PubMed Central. Mechanisms of the intestinal and urinary microbiome in kidney stone disease

This line of research is still in its early stages, but it’s reshaping how researchers think about the relationship between UTIs and kidney stones. Rather than being entirely separate plumbing problems, they may share underlying biological terrain. A disrupted microbiome could leave you vulnerable to infections and to the mineral imbalances that seed stones, which would help explain why some people seem prone to cycling between the two.

Antibiotics and When They Help or Hurt

One practical decision that hangs on correctly distinguishing between a UTI and a kidney stone is whether to take antibiotics. A UTI caused by bacteria needs antibiotics to resolve. A kidney stone does not, unless it’s complicated by infection. Prescribing antibiotics for an uncomplicated stone doesn’t help and contributes to antibiotic resistance.

Despite this, data from U.S. emergency departments show that a substantial portion of kidney stone patients receive antibiotic prescriptions even when there’s no coded infection. One analysis found that among stone patients without a concurrent infection diagnosis, roughly 18% still received antibiotics at discharge. While the rate declined between 2015 and 2019, it reversed course and climbed to about 32% of encounters by 2022.11Mary Ann Liebert, Inc., publishers. Trends in Antibiotic Use for Kidney Stone Patients Discharged from United States Emergency Departments The reasons likely include diagnostic uncertainty, the pain and urgency of the clinical situation, and precautionary prescribing when UTI can’t be entirely ruled out.

If you’ve been diagnosed with a kidney stone and offered antibiotics, it’s worth asking whether the urinalysis showed signs of infection. If it didn’t, you may not need them. Conversely, if you’ve been told you have a UTI but your symptoms include severe flank pain, nausea, and hematuria without much burning on urination, it’s reasonable to ask whether imaging has been done to check for a stone. Getting the diagnosis right matters because the treatment paths diverge significantly, and the complications of getting it wrong, an untreated infection or unnecessary antibiotic exposure, are both worth avoiding.