In this article
The reality is more nuanced: foam can arise for purely physical reasons, such as the force of the stream or more concentrated urine, but it can also accompany protein loss in the urine, an important sign of kidney damage.
This article explains the possible causes, from the most ordinary to those that require assessment, and shows why the answer lies not in the foam's appearance but in a simple test. Visual inspection cannot reliably distinguish one situation from another, and scientific evidence on foam as an isolated symptom is limited. What is well established is how to measure protein and albumin in the urine and what to do with the result.
Why urine becomes foamy
When a liquid falls from a height into another liquid, it traps air and forms bubbles. In urine, as in any liquid, this happens particularly when the stream is strong or the bladder was very full. These bubbles are usually large and irregular and disappear within seconds or a few minutes.
Proteins and other substances with detergent-like properties reduce the liquid's surface tension and stabilise bubbles. This is why, when there is a large amount of protein in the urine, the foam tends to be finer, more abundant and longer-lasting, sometimes forming a whitish layer resembling the head on beer. This description is useful but not diagnostic: the appearance of foam varies with many factors.
Harmless causes
Many people with foamy urine have no illness. The way someone urinates, the amount of urine held in the bladder and hydration levels all affect foam. Cleaning products left in the toilet may also react with urine and create foam, which is easy to check by urinating into a clean container.
| Cause | How to recognise it | Comment |
|---|---|---|
| Strong stream or very full bladder | Foam with large bubbles that disappears quickly | No clinical significance |
| Concentrated urine (too little water, heat, exercise) | Darker urine; foam improves with hydration | Corrected by drinking more water, unless fluids have been medically restricted |
| Cleaning products in the toilet | Foam only in the toilet, not in a clean container | Simple test at home |
| Urinating while standing, from a greater height | More trapped air | Physical phenomenon |
Foam and protein in the urine
Normal urine contains only small amounts of protein because the kidney's filters (glomeruli) retain most of it. When these filters are damaged, proteins such as albumin pass into the urine. In large amounts, they can make urine foamy. At moderate levels, which are already significant, the foam may be unnoticeable.
The KDIGO 2024 guidelines on chronic kidney disease place great importance on albuminuria: it is a marker of kidney damage and cardiovascular risk and, together with the glomerular filtration rate, determines the classification of chronic kidney disease. Increased albuminuria lasting more than three months is in itself a criterion for chronic kidney disease, even when kidney function is normal.
Diabetes and high blood pressure, the most common causes
In adults, the most common causes of albumin loss in the urine are diabetes and high blood pressure, which progressively damage the kidney's small blood vessels. Guidelines therefore recommend that people with these conditions have regular urine albumin tests, even if they have no symptoms.
Obesity, cardiovascular disease and a family history of kidney disease also increase the likelihood. In these people, persistent foamy urine is a good reason to have the test, but the absence of foam does not remove the need for recommended monitoring.
| Situation | Why it increases the risk of protein in the urine |
|---|---|
| Diabetes | Damage to the kidney's small blood vessels |
| High blood pressure | Strain on and damage to the kidney filters |
| Obesity | Hyperfiltration and association with diabetes and high blood pressure |
| Cardiovascular disease | Shares risk factors with kidney disease |
| Family history of kidney disease | Possible hereditary component |
Diseases of the kidney filters
Some diseases directly affect the glomeruli, including IgA nephropathy, membranous nephropathy, minimal change disease and focal segmental glomerulosclerosis. Some cause very high protein losses, resulting in nephrotic syndrome: very foamy urine, swelling of the legs, ankles, around the eyes or abdomen, weight gain from fluid retention, low blood albumin and high cholesterol.
The KDIGO 2021 guidelines on glomerular diseases describe how these conditions are assessed, including measuring protein in the urine, assessing kidney function, immunological blood tests and, often, a kidney biopsy. They are less common causes of albuminuria than diabetes or high blood pressure, but specific treatment may be available, so early diagnosis matters.
| Sign accompanying the foam | What it may suggest |
|---|---|
| Swelling of the legs, ankles or around the eyes | Significant protein loss |
| Rapid weight gain | Fluid retention |
| Dark or bloody urine | Inflammation of the filters (glomerulonephritis) |
| New high blood pressure | Possible kidney disease |
| Reduced urine output | Possible change in kidney function |
Other causes and temporary situations
Fever, intense physical exercise, acute stress and some acute illnesses can temporarily increase protein in the urine. Young people may also have orthostatic proteinuria, where protein appears in urine collected during the day while upright but not in the first urine of the morning. It is usually benign, but the diagnosis must be made by a doctor.
A urinary tract infection can alter the appearance of urine and slightly increase protein levels. In men, retrograde ejaculation (when semen enters the bladder instead of leaving the body) can make the next urine cloudy or foamy; this can happen, for example, with some prostate medicines or after prostate surgery. Very dark urine caused by bilirubin in liver disease may also form yellowish foam.
| Cause | Special feature |
|---|---|
| Fever, intense exercise | Temporary protein; repeat the test afterwards |
| Orthostatic proteinuria | Typical in young people; absent from the first urine of the morning |
| Urinary tract infection | Accompanied by burning and urgency |
| Retrograde ejaculation | Cloudy or foamy urine after ejaculation |
| Bilirubin in the urine | Dark urine, possible yellowing of the skin; requires assessment |
Diet, supplements and medicines
People often ask whether a high-protein diet or protein supplements used at the gym make urine foamy. Protein that is eaten is digested and does not pass directly into the urine, but very high-protein diets increase the kidney's filtration workload. Evidence on the effects of these diets in people with healthy kidneys is limited and does not support firm conclusions. In people with known kidney disease, KDIGO guidelines advise avoiding a high protein intake.
Some medicines can damage the kidneys and increase protein in the urine, including prolonged or high-dose use of non-steroidal anti-inflammatory drugs. Others are used specifically to reduce albuminuria and are available only on prescription. In all cases, medicines should not be changed or stopped without speaking to a doctor.
| Factor | What is known |
|---|---|
| Very high-protein diet | Increases the filtration workload; limited evidence in healthy kidneys |
| Protein supplements | No strong evidence that they cause foam by themselves; tell your doctor |
| Long-term use of anti-inflammatory drugs | May damage the kidneys; avoid without medical advice |
| Herbal products | Some may be toxic to the kidneys; always tell your doctor |
What is, and is not, known about foam
It would be useful to know what proportion of people with foamy urine actually have raised protein levels. Research on this specific symptom is scarce and of limited quality, and there are no reliable figures showing how often foam reflects disease. Foam is a subjective sign influenced by physical factors, and people with moderate albumin loss may notice nothing.
For this reason, guidelines do not use foam as a criterion. They use objective measurements: a urine dipstick for protein and, more accurately, the albumin-to-creatinine or protein-to-creatinine ratio in a urine sample. It is important to acknowledge this limitation: foam is a reasonable reason to have a test, not a diagnosis.
First steps
If you notice persistent foam over several days, particularly if you have diabetes, high blood pressure or swelling, the sensible next step is to speak to your doctor. Initial assessment usually includes urinalysis with a dipstick and sediment examination, the urine albumin-to-creatinine ratio (preferably using the first urine of the morning, according to KDIGO) and a blood creatinine test to estimate the glomerular filtration rate.
A single high result should be confirmed in repeat samples because there are many temporary causes. The doctor who ordered the tests will interpret the result in the light of your blood pressure, blood glucose, medicines and family history.
At Clínica Alegre in Setúbal and Seixal, you can have laboratory tests and ask our team any questions about the results.
Frequently asked questions
Does foamy urine mean kidney disease?
Usually not. Only a urine test can show whether there is excess protein.
How can I tell if the foam comes from toilet cleaner?
Urinate into a clean container: if there is no persistent foam there, the toilet is the likely explanation.
Does drinking more water help?
Yes, if the urine is concentrated. If you have been told to restrict fluids, follow that medical advice.
Which test should I ask for?
A doctor will usually request urinalysis with an albumin-to-creatinine ratio and a blood creatinine test.
Could the foam be caused by diabetes?
Diabetes is one of the most common causes of protein in the urine, so people with diabetes should be tested for it regularly.
I have foamy urine and swollen legs. Is it urgent?
This warrants prompt medical advice. If you are short of breath or passing little urine, seek help the same day.
Do protein shakes cause foamy urine?
There is no strong evidence that they cause foam by themselves. If you use supplements and have persistent foam, have a test and tell your doctor what you take.
Did you enjoy this article?
Scientific references2
- Kidney Disease: Improving Global Outcomes (KDIGO) CKD Work Group. KDIGO 2024 Clinical Practice Guideline for the Evaluation and Management of Chronic Kidney Disease. Kidney Int. 2024;105(4S):S117–S314.
- Kidney Disease: Improving Global Outcomes (KDIGO) Glomerular Diseases Work Group. KDIGO 2021 Clinical Practice Guideline on the Management of Glomerular Diseases. Kidney Int. 2021;100(4S):S1-S276.





