What to Eat When You Have a UTI and What to Avoid

Discover how diet impacts UTI recovery. Learn which foods to prioritize and what to limit for better comfort.

Drinking significantly more water is the single best-supported dietary move during a urinary tract infection, and cranberry products have moderate evidence for prevention. Beyond those two, the list of foods that help is shorter than most wellness sites suggest, while the list of things worth avoiding is surprisingly specific. The research on diet and UTIs has grown considerably in the last decade, and some of the findings contradict old advice.

Water Is the Most Important Thing You Can Consume

If you change nothing else about your diet during a UTI, drink more water. A well-designed randomized trial of women who suffered recurrent UTIs found that adding about 1.5 liters of water per day (roughly six extra cups) cut the average number of infections nearly in half over a year, from about 3.2 episodes down to 1.7. The women who drank more water also went almost twice as long between episodes and used far fewer courses of antibiotics. A systematic review and meta-analysis pooling data from multiple studies confirmed the pattern: increased fluid intake reduced recurrent UTIs by roughly half overall.

The logic is straightforward. The bacteria that cause most UTIs, uropathogenic strains of E. coli, attach to the lining of the bladder using hair-like structures called type 1 pili. More water means more frequent urination, which physically flushes bacteria out before they can establish a foothold. When you already have an infection, flushing helps dilute the bacterial load and may shorten symptoms alongside whatever antibiotic your doctor prescribes. Plain water is the ideal choice, though herbal teas and other non-irritating beverages count toward your total. Aim for enough fluid that your urine stays pale yellow throughout the day.

Cranberry Products and What the Evidence Actually Shows

Cranberry is the most studied food-based intervention for UTIs, and the evidence supports it for prevention rather than treatment of an active infection. A large Cochrane review found that cranberry juice, tablets, or capsules reduced UTI rates in women with recurrent infections, in children, and in people at higher risk after medical procedures like bladder radiotherapy. The benefits did not show up in elderly institutionalized men and women, people with neurological bladder conditions, or pregnant women. A more recent systematic review and network meta-analysis also concluded, with moderate to low certainty, that cranberry juice supports UTI prevention.

Cranberry works by blocking bacteria from sticking to the bladder wall. The active compounds are a specific type of proanthocyanidin with an A-type chemical linkage, and researchers have confirmed that traces of these compounds show up in urine after someone drinks cranberry juice. Not all cranberry products are equal, though. Lab testing of different cranberry supplement fractions showed that only those containing soluble proanthocyanidins produced anti-adhesion activity. In practical terms, this means a cranberry supplement capsule full of insoluble fiber from cranberry skins may do nothing useful, while actual juice or a well-formulated extract can.

If you choose cranberry juice, look for unsweetened or lightly sweetened versions. The heavily sweetened “cranberry cocktail” products at most grocery stores contain so much added sugar that any benefit from the proanthocyanidins may be offset by other problems, including feeding the very bacteria you are trying to fight.

D-Mannose as a Supplement

D-mannose is a simple sugar found naturally in small amounts in fruits like apples, oranges, and peaches. As a supplement, it works through the same general principle as cranberry: it prevents E. coli from latching onto the bladder wall. The bacteria’s type 1 pili have a protein at their tips called FimH that binds to mannose-containing structures on bladder cells. When you take D-mannose by mouth, some of it ends up in your urine, where it essentially acts as a decoy, occupying the bacteria’s binding sites so they cannot grip the bladder lining and instead get washed out when you urinate.

Several clinical studies have demonstrated that D-mannose helps prevent recurrent UTIs, and there is limited but growing evidence that it may help during an acute episode as well. Research into synthetic mannoside compounds that could block FimH even more effectively is ongoing. For now, D-mannose powder dissolved in water is a reasonable supplement to consider if you are prone to UTIs, though it is not a replacement for antibiotics when you have a confirmed infection.

Foods and Drinks That Can Make Symptoms Worse

When you already have a UTI, certain foods and beverages can aggravate your urinary tract even though they did not cause the infection. The most consistent irritants identified across patient surveys and research studies are:

  • Coffee and tea: Caffeine stimulates the bladder and increases urgency, which is the last thing you want when urination already burns. Research on people with urinary urgency symptoms found that those with incontinence had significantly lower odds of consuming caffeine, suggesting that experience teaches most people to cut back.
  • Citrus fruits and tomatoes: The acidity in oranges, grapefruits, lemons, and tomatoes irritates an inflamed bladder lining.
  • Spicy foods: Capsaicin and other compounds in hot peppers can worsen bladder discomfort during an active infection.
  • Carbonated drinks: Both the carbonation itself and the acids or sweeteners in soda can irritate the bladder.
  • Artificial sweeteners: Aspartame, saccharin, and similar sugar substitutes are frequently reported as symptom triggers.
  • Alcohol: It acts as a diuretic and a bladder irritant, and it can also interact with antibiotics.

These items were identified as the most consistent symptom triggers in large surveys of patients with bladder pain and interstitial cystitis, where about 90% of respondents reported that certain foods worsened their symptoms. While interstitial cystitis is a different condition from a bacterial UTI, the bladder irritation pathway is similar enough that the same foods tend to make both conditions more uncomfortable. Once your infection clears, most people can go back to coffee and citrus without problems.

Why Sugar Matters More Than You Might Expect

High blood sugar creates a urinary environment that actively helps UTI-causing bacteria thrive. When glucose spills into the urine, a condition called glycosuria that is common in poorly controlled diabetes, uropathogenic E. coli responds by ramping up biofilm formation and altering the expression of genes central to virulence and colonization. This effect is not limited to E. coli: research on Proteus mirabilis, another common UTI pathogen, found that experimentally increasing urinary glucose in mice significantly enhanced bacterial colonization.

Lab studies have also shown that glucose in the presence of an acidic pH dramatically boosts the metabolic activity of E. coli, Klebsiella pneumoniae, and Pseudomonas aeruginosa, all common UTI pathogens. The practical takeaway is not that eating a cookie will give you a UTI, but that chronically elevated blood sugar is a genuine risk factor. If you are diabetic or prediabetic, keeping your blood sugar well managed is one of the more meaningful dietary choices you can make to reduce UTI frequency. And during an active infection, cutting back on sugary drinks and heavily sweetened foods is sensible.

The Urine pH Question

You might assume that making your urine more acidic would kill bacteria faster, and this is the reasoning behind the old advice to drink cranberry juice “because it acidifies your urine.” In reality, cranberry’s benefit comes from anti-adhesion compounds, not from pH changes. And the evidence on acidic urine is actually worrying rather than reassuring. A study testing the effects of acidic pH on uropathogenic E. coli and Klebsiella pneumoniae in a mouse model found that acidic conditions led to higher bacterial concentrations in the kidneys and more severe systemic symptoms, including bacteremia.

This does not mean you need to obsess over the pH of everything you eat, since the body tightly regulates blood pH regardless of diet. But it does undercut the folk wisdom about loading up on acidifying foods or supplements to “fight” a UTI. Along similar lines, vitamin C supplements are sometimes recommended for UTI prevention based on the idea that they acidify urine. A review of the evidence found that ascorbic acid cannot be recommended for UTI prevention. You can eat vitamin C-rich foods for general health, but do not expect them to clear or prevent a UTI.

Probiotics and the Gut-Bladder Connection

Most UTIs begin in the gut. The E. coli strains responsible for bladder infections typically live in the intestinal tract first, then migrate to the urethra and bladder. This means the composition of your gut bacteria can influence how often UTI-causing strains get the opportunity to cause trouble. A healthy gut microbiome produces short-chain fatty acids from dietary fiber, which help maintain the gut barrier and normal intestinal motility, potentially limiting the migration of harmful bacteria.

Eating plenty of fiber-rich foods like vegetables, whole grains, legumes, and fruits supports the production of these protective compounds. Probiotic-rich foods such as yogurt, kefir, sauerkraut, and kimchi may also help, though the evidence for oral probiotics reducing UTIs remains mixed. A review of probiotic interventions found some efficacy in treating and preventing urogenital infections, with increasing signs that regulating the urinary microbiome through probiotics may reduce risk.

The most promising probiotic research has focused on vaginal rather than oral probiotics. A phase 2b trial of a Lactobacillus crispatus vaginal probiotic called LACTIN-V found robust colonization in the vaginal tract during and for two months after treatment, with the probiotic strain reaching above 90% relative abundance during the active dosing period. Restoring healthy lactobacilli to the vaginal environment creates a barrier that makes it harder for E. coli to reach the urethral opening. This is specifically relevant to women, who experience the vast majority of UTIs partly because of the short distance between the rectum, vagina, and urethra.

Green Tea as an Emerging Option

Green tea is not a traditional UTI remedy, but there is interesting preliminary evidence behind it. The catechins in green tea, particularly one called EGC (epigallocatechin), have antimicrobial effects against E. coli and other bacteria. What makes EGC stand out from other catechins is that it is actually excreted in urine after you drink green tea, meaning it can reach the bladder at potentially useful concentrations. Studies have estimated that drinking a cup of Japanese green tea (brewed from roughly 7.5 grams of dried leaves) provides about 150 milligrams of EGC, and urinary concentrations of EGC peaked about eight hours after intake at levels that could plausibly have antimicrobial effects.

Green tea also has the advantage of being a non-irritating beverage that contributes to your fluid intake. Unlike coffee, it contains relatively modest amounts of caffeine, especially if you brew it at lower temperatures. This makes it a reasonable swap for your morning coffee during an active UTI. The evidence is not strong enough to call green tea a treatment, but there is no downside and a plausible mechanism of benefit.

Curcumin and Anti-Inflammatory Foods

Much of the pain during a UTI comes from inflammation in the bladder wall rather than from the bacteria directly. This is why some people continue to feel burning and urgency even after a urine culture comes back negative, the inflammation lingers. Curcumin, the active compound in turmeric, has been studied for its anti-inflammatory properties in the context of chronic UTIs. In a rat model, curcumin significantly improved symptoms of chronic urinary tract infection, protected kidney tubular function, and reduced levels of multiple inflammatory markers by influencing signaling pathways involved in the inflammatory response.

This is animal research, and we cannot directly extrapolate it to humans eating turmeric in their food. But the broader principle holds: an anti-inflammatory diet, one rich in vegetables, fruits, omega-3 fatty acids from fish, and spices like turmeric, is unlikely to hurt and may help your body manage the inflammatory cascade that causes most UTI misery. The foods that tend to be anti-inflammatory (leafy greens, berries, fatty fish, nuts) also happen to be the ones that support a diverse gut microbiome, which circles back to keeping opportunistic E. coli in check.

Ketogenic Diets and Blood Sugar Drugs

An emerging and somewhat counterintuitive area of research involves ketone bodies and bladder health. Interventions that raise ketone levels, including fasting, ketogenic diets, ketone supplements, and a class of diabetes drugs called SGLT2 inhibitors, have been shown to improve lower urinary tract symptoms related to metabolic syndrome. The catch with SGLT2 inhibitors is that they work by dumping glucose into the urine, which, as discussed above, can actually make UTIs more likely by giving bacteria an easy fuel source. It is a genuine trade-off: the ketone-related bladder benefits may coexist with increased infection risk from glycosuria.

If you are on an SGLT2 inhibitor like dapagliflozin or empagliflozin and you keep getting UTIs, this is worth bringing up with your doctor. For people not on medication, the broader metabolic point is more relevant: keeping blood sugar stable through diet, whether via low-carb eating, portion control, or simply limiting sugary beverages, reduces the amount of glucose available in your urine, which gives bacteria less to work with. You do not need to go fully ketogenic. Just managing blood sugar spikes, particularly during an active infection, is a practical step almost anyone can take.

A Practical Eating Pattern During an Active UTI

Putting this research together, the eating pattern that best supports your body during a UTI is not exotic or complicated. Drink plenty of water throughout the day, enough to keep your urine dilute. Add a glass or two of unsweetened cranberry juice if you can find it, or take a cranberry supplement that specifies soluble proanthocyanidins. Consider D-mannose powder mixed into water. Eat fiber-rich meals with plenty of vegetables and whole grains to support your gut bacteria. Include fermented foods if you enjoy them. Swap coffee for green tea or herbal tea until the infection resolves. Avoid soda, alcohol, and heavily sweetened drinks. Go easy on citrus, tomatoes, and spicy food if they seem to worsen your symptoms. Keep sugary snacks and refined carbohydrates to a minimum.

None of these dietary measures replace antibiotics for a confirmed bacterial UTI. But they create conditions that make it harder for bacteria to thrive and easier for your body and medication to do their jobs. For people who get recurrent infections, many of these habits, especially staying well hydrated and consuming cranberry products regularly, have good enough evidence to adopt long-term as a preventive strategy.