Cloudy urine is often harmless: crystals, mucus, semen or vaginal secretions can all make a sample look milky, and urine that has been concentrated or left standing can change appearance. It can also be a sign of a urinary tract infection (UTI), especially when it comes with burning, needing to pee more often or a fever. A urine dipstick that shows "leukocytes" means white blood cells may be present, which often points to infection but not always.
What makes urine cloudy?
Normal urine is described in the StatPearls reference chapter on urinalysis as "clear or translucent." Cloudiness (doctors call it turbidity) happens when something is suspended in the urine and scatters light. The same chapter lists a wide range of possible reasons: bacteria, white blood cells (pyuria), blood clots, mucus, lymph fluid, crystals of calcium phosphate, calcium oxalate or uric acid, semen, vaginal creams or secretions, faecal contamination, contrast dye from a scan, and a diet high in purine-rich foods.
Importantly, the authors note that only in a few instances are the colour, odour or appearance of urine clinically significant. Cloudiness tells you something is in the sample, not what it is: your other symptoms, and a urine test if needed, separate a harmless cause from an infection.
StatPearls also calls urine "an unstable fluid" that changes once passed, so labs examine samples within the first hour or refrigerate them.
Common causes of cloudy urine at a glance
| Cause | Typical clues | Usually a concern? |
| Phosphate crystals | Milky urine with no other symptoms; linked to alkaline urine, low urine volume and a calcium-rich diet | Usually no |
| Contamination (vaginal secretions, creams, semen, mucus) | Cloudiness after sex or with discharge; sample not collected midstream | Usually no |
| Concentrated urine | Dark yellow urine after exercise or not drinking enough | Usually no |
| Urinary tract infection | Burning when peeing, needing to go more often, new night-time peeing, smelly urine | Yes, see a doctor or pharmacist |
| Sexually transmitted infection | Discharge from the penis or vagina, itching, pain when peeing; may have no symptoms | Yes, get tested |
| Kidney infection | Fever, shivering, pain in the back under the ribs, feeling sick | Yes, urgent |
Is cloudy urine a sign of a UTI?
It can be. The NHS lists "pee that looks cloudy" as a UTI symptom alongside pain or burning when peeing and needing to pee more often during the night. Healthdirect Australia lists "smelly or cloudy urine" in the same way.
UK primary care guidance treats cloudy urine as one of three key signs. The UK Health Security Agency (UKHSA) diagnostic tool tells clinicians to use painful urination (dysuria), new night-time peeing (nocturia) or cloudy urine to guide treatment in women under 65, and to use a dipstick when only one of these is present. In other words, cloudy urine alone is not enough to diagnose an infection, but cloudy urine together with burning or new night-time peeing is the pattern the guidance treats as pointing to a UTI.
The Infectious Diseases Society of America (IDSA) 2019 guideline lists cloudy and malodorous urine as possible UTI signs specifically in people with spinal cord injury, who may not feel the usual burning.
Leukocytes in urine and the leukocyte esterase test
Leukocytes are white blood cells. When a urine dipstick shows "leukocytes," it is reporting a leukocyte esterase test. As MedlinePlus explains, leukocyte esterase is a substance that suggests white blood cells are in the urine. StatPearls describes it as an enzyme present in most white blood cells (though not lymphocytes). A negative result is normal.
A positive result indicates a possible UTI. MedlinePlus says the urine should then be examined under a microscope for white blood cells, where up to 0 to 5 cells per high-power field is considered normal according to StatPearls. Having more white blood cells than this is called pyuria.
Things that can make the test falsely positive: contamination of the sample, vaginal secretions (such as blood or heavy mucus discharge), trichomonas infection, highly pigmented urine and strong oxidising chemicals.
Things that can make it falsely negative: very concentrated urine, glucose or ketones in the urine, high protein levels, high vitamin C levels and some medicines.
A clean-catch, midstream sample reduces contamination from bacteria around the penis or vagina. Both MedlinePlus and StatPearls recommend it.
How accurate is a urine dipstick?
Dipsticks are better at ruling infection out than ruling it in. A meta-analysis of 70 publications in BMC Urology found that in general (non-urology) patients, leukocyte esterase picked up about 62% of infections (sensitivity) and was negative in about 70% of people without one (specificity). The nitrite test was less sensitive, at about 45% to 60% in most settings, but more specific, at 85% to 98%. Using both together raised sensitivity to between 68% and 88% depending on the group. The authors concluded that the dipstick's usefulness "to rule in infection remains doubtful."
That is why UKHSA reads dipstick results in combination for women under 65:
- Nitrite positive, or both leukocytes and blood positive: UTI likely.
- Leukocytes positive but nitrite negative: UTI equally likely to another diagnosis.
- Nitrite, leukocytes and blood all negative: UTI less likely.
For men, UKHSA says a positive nitrite makes a UTI more likely, but dipsticks should not be used to rule infection out because they are unreliable for this. StatPearls also notes a negative nitrite result does not rule out a UTI, partly because urine needs time in the bladder (around 4 hours) for bacteria to produce nitrite.
Leukocytes in urine without infection (sterile pyuria)
White blood cells in the urine with no bacteria growing on a standard culture is called sterile pyuria: there is inflammation somewhere, but the usual urine germs are not the cause.
Sexually transmitted infections are a common explanation, especially in younger adults. The CDC 2021 STI treatment guidelines include a positive leukocyte esterase test on first-void urine as one of the criteria for urethritis (inflammation of the tube that carries urine out of the body). In cases not caused by gonorrhoea, the CDC says chlamydia accounts for 15% to 40%, Mycoplasma genitalium for 15% to 25% in the US and trichomonas for 1% to 8%, while no germ is found in about half. Symptoms can include burning, itching and a discharge, but many people have none: a 2021 review in American Family Physician reports that 42% of people with urethral chlamydia have no symptoms, compared with 10% with gonorrhoea. So chlamydia, gonorrhoea, Mycoplasma genitalium and trichomonas can all cause cloudy pee, and a specific STI test is the only way to tell which.
Other causes are less common but are why persistent unexplained leukocytes are investigated. A 2024 review of unresolved pyuria discusses genitourinary tuberculosis, interstitial cystitis (a long-term bladder pain condition) and genitourinary cancers. To answer a common question directly: cancers of the urinary and genital tract are among the causes reviewers consider when pyuria has no clear explanation, but a positive leukocyte test on its own does not mean cancer. Visible blood in the urine is the warning sign that always needs checking.
Bacteria and leukocytes without symptoms
Many people, especially older adults, have bacteria in their urine without infection: asymptomatic bacteriuria. The IDSA guideline defines it as bacteria in the urine with or without pyuria but without UTI symptoms, and states that pyuria "do[es] not reliably discriminate" between this and a true infection. A 2020 American Family Physician review adds that treating it "is not beneficial for most patients and may be detrimental."
UKHSA goes further for older people: it says clinicians should not perform urine dipsticks in people over 65, because by age 80 about half of older adults living in care homes can have bacteria in the urine without infection. The IDSA guideline similarly recommends against screening for or treating bacteriuria in older people with functional impairment, and advises that confusion (delirium) in someone with bacteria in their urine should prompt a search for other causes and careful observation rather than automatic antibiotics.
The main exception is pregnancy. The IDSA recommends screening for and treating bacteria in the urine in pregnancy, usually with a urine culture early on, even without symptoms.
Does cloudy pee mean diabetes? Food, fluids and other questions
Diabetes: none of the guidance reviewed for this article lists cloudy urine as a symptom of diabetes. Diabetes is still relevant: the NHS advises anyone with diabetes who has UTI symptoms to get an urgent GP appointment or call 111, and UKHSA lists loss of diabetic control as a possible sign of infection in older adults. Glucose in the urine can also make a leukocyte esterase test falsely negative.
Food: StatPearls links a diet high in purine-rich foods to cloudy urine, and links amorphous phosphate crystals to alkaline urine, low urine volume and a calcium-rich diet. This kind of diet-related cloudiness is not harmful in itself.
Flushing it out: StatPearls links concentrated, dark urine to dehydration and exercise, so drinking enough fluid is the first step. The NHS advice for a mild UTI is to rest and drink enough fluids to pass pale urine regularly during the day. For people with repeated UTIs, Healthdirect suggests drinking up to 1.5 litres of water a day. Healthdirect notes that research on cranberry products for preventing UTIs has shown mixed results.
Hydration and kidney function are measured far better by blood tests such as the BUN blood test and eGFR than by how urine looks.
When to see a doctor about cloudy urine
Cloudy urine that clears up and comes with no other symptoms is rarely a problem. See a doctor, nurse or pharmacist if it comes with symptoms of a UTI or an STI, keeps coming back, or a urine test shows leukocytes and you are not sure why. On the NHS, pharmacists can assess suspected UTIs in women aged 16 to 64 who are not pregnant or breastfeeding.
The NHS advises an urgent GP appointment or a call to 111 if you have UTI symptoms and you are 65 or over, are a man, use a catheter, have diabetes or a weakened immune system, keep getting UTIs (2 within 6 months or 3 within 12 months), or your symptoms do not improve within 48 hours.
Get urgent help if cloudy or smelly urine comes with signs of a kidney infection or sepsis: fever or shivering, pain in your back just under the ribs, feeling sick or vomiting, or new confusion or drowsiness. UKHSA uses a temperature of 37.9°C or above as a warning sign, while Healthdirect gives above 38°C. The NHS says to call 999 or go to A&E if someone is confused, drowsy or has difficulty speaking, and Healthdirect advises calling 000 for symptoms of a kidney infection.
How strong is the evidence?
We rate this article as moderate evidence. The advice on symptoms, urgent warning signs and who should not be dipstick tested comes from current national guidance (UKHSA, NHS, Healthdirect, CDC) and the IDSA clinical practice guideline. The accuracy figures for dipsticks come from a large meta-analysis, but it is from 2004 and pooled studies mostly published before 2000, so newer dipsticks may perform slightly differently. The list of causes of cloudiness comes from reference texts rather than trials. You can find more explainers like this in our tests and screening section.
What we still don't know
Researchers are rethinking what "sterile" urine means. The 2024 review of unresolved pyuria notes that newer DNA-based tests suggest urine may not be truly sterile, and that some unexplained pyuria could reflect low-level infections or changes in the urinary microbiome that standard cultures miss.
Frequently asked questions
When should I worry about leukocytes in urine?
See a doctor if leukocytes come with symptoms such as burning when peeing, needing to pee more often, discharge or fever, or if they keep showing up without a clear reason. Get urgent help for back pain under the ribs, shivering, fever or confusion, which can mean a kidney infection.
Which foods cause cloudy urine?
A diet high in purine-rich foods is linked to cloudy urine, and a calcium-rich diet, alkaline urine and low urine volume are linked to harmless phosphate crystals that can make urine look milky.
Does cloudy pee mean diabetes?
Cloudy urine is not listed as a symptom of diabetes in the guidance reviewed for this article. People with diabetes who have UTI symptoms are advised by the NHS to get an urgent GP appointment or call 111.
Which STD causes cloudy pee?
Chlamydia, gonorrhoea, Mycoplasma genitalium and trichomonas can all inflame the urethra and add white blood cells or discharge to urine. Many people with chlamydia have no symptoms, so a specific STI test is the only way to know.
How do you flush out cloudy urine?
If cloudiness comes from concentrated urine, drinking enough fluid to pass pale urine regularly is the NHS advice. Fluids will not treat an infection, so see a doctor or pharmacist if cloudy urine comes with UTI symptoms.
Sources
- UK Health Security Agency. Diagnosis of urinary tract infections: quick reference tools for primary care. Updated 7 July 2025. gov.uk
- NHS. Urinary tract infections (UTIs). Last reviewed 11 July 2025. nhs.uk
- Healthdirect Australia. Urinary tract infection (UTI). Last reviewed May 2026. healthdirect.gov.au
- Nicolle LE, Gupta K, Bradley SF, et al. Clinical practice guideline for the management of asymptomatic bacteriuria: 2019 update by the Infectious Diseases Society of America. Clin Infect Dis. 2019;68(10):e83-e110. doi:10.1093/cid/ciz021
- Centers for Disease Control and Prevention. Diseases characterized by urethritis and cervicitis. Sexually Transmitted Infections Treatment Guidelines, 2021. cdc.gov
- MedlinePlus Medical Encyclopedia. Leukocyte esterase urine test. US National Library of Medicine. Reviewed 13 July 2025. medlineplus.gov
- Queremel Milani DA, Jialal I. Urinalysis. In: StatPearls. Treasure Island (FL): StatPearls Publishing; updated 1 May 2023. NCBI Bookshelf NBK557685
- Devillé WLJM, Yzermans JC, van Duijn NP, Bezemer PD, van der Windt DAWM, Bouter LM. The urine dipstick test useful to rule out infections. A meta-analysis of the accuracy. BMC Urol. 2004;4:4. doi:10.1186/1471-2490-4-4
- Colgan R, Jaffe GA, Nicolle LE. Asymptomatic bacteriuria. Am Fam Physician. 2020;102(2):99-104. aafp.org
- Sell J, Nasir M, Courchesne C. Urethritis: rapid evidence review. Am Fam Physician. 2021;103(9):553-558. aafp.org
- Xu R, Ritts R, Badlani G. Unresolved pyuria. Curr Bladder Dysfunct Rep. 2024;19:7-15. doi:10.1007/s11884-023-00730-6
This article is for general information and isn't a substitute for advice from your doctor or another qualified health professional. See our medical disclaimer and editorial standards. Spotted an error? Tell us.