Cloudy urine is urine that looks milky, hazy, or opaque instead of its typical pale yellow and transparent appearance. The most common cause is a high concentration of alkaline minerals, particularly phosphates, that crystallize and scatter light in the urine. While this is often harmless and linked to diet or hydration, cloudy urine can also signal infections, kidney problems, or other conditions worth investigating.
What Makes Urine Look Cloudy
Normal urine is clear because its dissolved substances stay invisible at typical concentrations. Cloudiness appears when something in the urine becomes concentrated enough to form tiny particles that scatter light. The specific substances that cause this include mineral crystals (phosphates, calcium, urates), white blood cells, excess protein, bacteria, mucus, or discharge that mixes with urine on its way out of the body.
Which of these is responsible depends entirely on the underlying cause. A urinalysis can identify what’s floating in the sample, whether it’s harmless mineral sediment or infection-fighting white blood cells. That distinction is what separates a glass-of-water fix from something that needs treatment.
Dehydration
When you don’t drink enough water, your kidneys conserve fluid by producing more concentrated urine. This higher concentration of dissolved waste products, minerals, and salts can push some substances past their solubility limit, causing them to precipitate out as visible particles. Concentrated urine also tends to be darker, so you may notice both a deeper amber color and a hazy quality at the same time.
A normal urine specific gravity (a measure of how concentrated your urine is) falls between 1.005 and 1.030. Values above 1.030 indicate significant concentration, the kind that can produce visible cloudiness. Drinking more water dilutes these substances back below the threshold where they’re visible, and the cloudiness resolves. If your urine clears up after rehydrating, dehydration was likely the explanation.
Diet and Mineral Excretion
Eating large amounts of fruits and vegetables can shift your urine toward a more alkaline pH. In alkaline urine, phosphate and calcium phosphate crystals are far more likely to precipitate out of solution, creating a white or milky cloudiness. This is the single most common cause of cloudy urine and is completely benign.
You might notice this after a particularly plant-heavy meal or if you’ve recently changed your diet. Dairy products, which are high in both calcium and phosphorus, can contribute as well. The cloudiness from dietary phosphates often appears in the toilet bowl after the urine cools slightly, since temperature changes reduce the solubility of these minerals. No treatment is needed, and it doesn’t indicate kidney damage or disease.
Urinary Tract Infections
UTIs are one of the most well-known causes of cloudy urine, and they’re often what people worry about when they notice the change. During a UTI, bacteria multiply in the urinary tract and trigger an immune response. Your body floods the area with white blood cells, and this combination of bacteria, white blood cells, and inflammatory debris turns the urine visibly cloudy or even milky.
UTI-related cloudiness rarely shows up alone. It typically comes with a burning sensation during urination, a frequent or urgent need to pee, pelvic pressure, or urine that smells unusually strong or foul. If the infection moves to the kidneys, you may develop flank pain, fever, chills, or nausea. The presence of these accompanying symptoms is what distinguishes infection-related cloudiness from the harmless dietary or hydration-related kind.
Sexually Transmitted Infections
Several STIs produce discharge that can mix with urine and make it appear cloudy. Gonorrhea is the most obvious culprit, producing thick, cloudy, or bloody discharge from the penis or vagina. Chlamydia causes a lighter discharge that can still alter how urine looks. Trichomoniasis may produce clear, white, greenish, or yellowish vaginal discharge along with penile discharge in men.
Because these infections don’t always cause dramatic symptoms, cloudy urine or unusual discharge may be the first noticeable sign. STI-related cloudiness is more likely if you’ve recently had unprotected sexual contact and notice discharge between urinations, not just cloudiness in the toilet.
Kidney Stones and Kidney Disease
Kidney stones form when minerals in urine crystallize into solid masses. Before a stone becomes large enough to cause pain, the same mineral excess that builds stones can create visible cloudiness. Calcium oxalate and uric acid crystals are the most common types. Uric acid crystals tend to form in acidic urine, while calcium phosphate and struvite crystals precipitate in alkaline urine.
Chronic kidney disease affects the kidneys’ filtering ability and can allow protein to leak into the urine, a condition called proteinuria. Small amounts of protein usually cause no visible change, but higher levels make urine look foamy or bubbly rather than classically cloudy. Persistent foam that doesn’t disappear after flushing is a more specific sign of protein in the urine than general haziness.
Prostate Inflammation in Men
Prostatitis, or inflammation of the prostate gland, lists cloudy urine among its symptoms. The prostate surrounds the urethra, and when inflamed, it can release white blood cells, bacteria, or prostatic fluid into the urinary stream. Men with prostatitis often also experience pelvic pain, difficulty urinating, painful ejaculation, or flu-like symptoms depending on whether the inflammation is caused by bacteria or is non-infectious.
Diabetes
Poorly controlled diabetes can cause sugar to accumulate in the urine when blood glucose levels exceed the kidneys’ ability to reabsorb it. High concentrations of glucose change the urine’s composition enough to create cloudiness. People with undiagnosed or uncontrolled diabetes may also urinate more frequently and in larger volumes, which can make the change in appearance more noticeable. Diabetes-related kidney damage can compound the problem by allowing protein to leak into the urine as well.
Pregnancy
Cloudy urine during pregnancy can result from several overlapping factors: hormonal changes, increased vaginal discharge mixing with urine, higher susceptibility to UTIs, and dietary shifts. One serious pregnancy-specific cause is preeclampsia, a condition involving high blood pressure and protein leaking into the urine. Preeclampsia typically develops after 20 weeks and can cause foamy or cloudy urine alongside swelling, headaches, and vision changes.
How Cloudy Urine Is Evaluated
A standard urinalysis is the first step. This test checks for white blood cells, red blood cells, bacteria, protein, glucose, and crystals. If white blood cells are elevated (a finding called pyuria, defined as more than 3 white blood cells per high-power field under a microscope), infection is the likely cause. If crystals dominate the sample, mineral excretion or stone risk is the focus. If protein levels are high, kidney function gets a closer look.
The type of crystals found can point toward specific conditions. Amber-colored uric acid crystals in acidic urine suggest gout risk or high purine intake. Hexagonal cystine crystals indicate a genetic condition affecting amino acid processing. Coffin-lid-shaped struvite crystals in alkaline urine are associated with certain bacterial infections. For most people, though, the crystals found are ordinary calcium-based minerals with no clinical significance.
When Cloudiness Is Harmless
Isolated cloudy urine that clears up after drinking water, that appears after a heavy vegetable meal, or that shows up once and doesn’t return is almost always benign. Vaginal discharge mixing with a urine sample is another common and harmless explanation, particularly during mid-cycle or pregnancy. If you feel completely well, have no pain, no fever, no burning, and no persistent change in urine appearance, the cloudiness is unlikely to reflect a medical problem.
Cloudiness that persists for more than a day or two, recurs frequently, or appears alongside pain, fever, unusual odor, blood, or changes in urination frequency is worth getting checked. These combinations point toward infections, kidney issues, or metabolic conditions that benefit from early treatment.