Story
What you eat, your urine shows
Urine is a filtrate of blood, so small molecules you eat can show up in it. Beets turn it red and asparagus gives a sulfur smell; foam only suggests a test, and judging protein takes a urine test.
Last updated
Overview and key questions
In short: Urine is filtered out of your blood.
Educational content, not medical advice. See a clinician about your own case.
Story path
Chapter 1
Urine is a filtrate of your blood
Urine is filtered out of your blood. As blood flows through the glomeruli in the kidneys, part of the plasma is filtered out and becomes the forming urine; the glomerular filtration rate measures how fast plasma is filtered here.
So anything you eat, once the gut has absorbed it into the blood, can turn up in urine either unchanged or in altered form. In an animal experiment, beet pigment injected straight into the blood mostly came out in the urine unchanged; neither the liver nor the kidneys held it back. Whether a pigment reaches the urine is decided at the gut, not at the kidney.
A common example: take a multivitamin containing vitamin B2, and the B2 your body cannot use leaves in the urine and turns it bright yellow. How concentrated urine is also depends on how much you drink. Drink too little and it becomes concentrated, dark yellow and strong-smelling; drink enough through the day and it is pale.
Watch for this: muscle soreness, cramps and darkened urine after hard exercise, or painful urination with fever, chills and back pain, need medical care right away.
So anything you eat, once the gut has absorbed it into the blood, can turn up in urine either unchanged or in altered form. In an animal experiment, beet pigment injected straight into the blood mostly came out in the urine unchanged; neither the liver nor the kidneys held it back. Whether a pigment reaches the urine is decided at the gut, not at the kidney.
A common example: take a multivitamin containing vitamin B2, and the B2 your body cannot use leaves in the urine and turns it bright yellow. How concentrated urine is also depends on how much you drink. Drink too little and it becomes concentrated, dark yellow and strong-smelling; drink enough through the day and it is pale.
Watch for this: muscle soreness, cramps and darkened urine after hard exercise, or painful urination with fever, chills and back pain, need medical care right away.
Evidence · Beet pigment injected into rat blood
Watts 1993 injected two beet pigments straight into the veins of rats, bypassing the gut. About 80% of the pigment was recovered unchanged in the urine, and the kidneys cleared it almost as fast as it was cleared from the plasma.
From this the authors concluded that the differences between people in how red their urine turns do not come from liver metabolism, nor from excretion by the kidneys. This is a rat experiment, and the same injection has not been done in people.
From this the authors concluded that the differences between people in how red their urine turns do not come from liver metabolism, nor from excretion by the kidneys. This is a rat experiment, and the same injection has not been done in people.
Chapter 2
Why beets can turn urine red
When urine turns red after eating beets, the red is pigment that was not metabolized and came out unchanged. The red of beets is mainly betanin, one of the betacyanins. The red flesh of red dragon fruit also gets its color from betacyanins: besides betanin it holds several related pigments, in proportions that vary with the variety. By the same logic it may reach the urine too, but the studies cited here all tested beets; none measured urine color after eating red dragon fruit.
This pigment loses its color easily along the way. In the test tube, hydrochloric acid, ferric iron ions and colonic bacteria can all bleach it, while pancreatic enzymes and enzymes from the gut lining cannot. Most of the pigment is broken down in the digestive tract this way; only a very small amount reaches the colon intact, is absorbed into the blood there, and is then passed into the urine by the kidneys.
So whether your urine turns red depends on how much pigment from that meal made it through the gut. The beet variety, how it was prepared and how much you ate all change the result, and the same person eating it again a few months later may get a different result. Once the pigment is in the blood, it leaves quickly.
This pigment loses its color easily along the way. In the test tube, hydrochloric acid, ferric iron ions and colonic bacteria can all bleach it, while pancreatic enzymes and enzymes from the gut lining cannot. Most of the pigment is broken down in the digestive tract this way; only a very small amount reaches the colon intact, is absorbed into the blood there, and is then passed into the urine by the kidneys.
So whether your urine turns red depends on how much pigment from that meal made it through the gut. The beet variety, how it was prepared and how much you ate all change the result, and the same person eating it again a few months later may get a different result. Once the pigment is in the blood, it leaves quickly.
Evidence · 100 people, one dose of beet extract
In a trial of 100 healthy people, each was given the same dose of beet extract (60 mg), and their urine was collected over the next 8 hours. The betacyanins recovered in urine were all under 1% of what was eaten.
Everyone's urine held a measurable trace. The amounts formed one continuous spread, skewed toward the low end, with no split into two groups of excreters and non-excreters. Only 4 people had urine that looked red to the eye, and the amounts they passed all sat at the high end.
In another small analysis, 18 people drank beet juice. The kidneys passed only about 0.13% of the pigment taken in, and it left quickly. The authors call this pilot work.
Everyone's urine held a measurable trace. The amounts formed one continuous spread, skewed toward the low end, with no split into two groups of excreters and non-excreters. Only 4 people had urine that looked red to the eye, and the amounts they passed all sat at the high end.
In another small analysis, 18 people drank beet juice. The kidneys passed only about 0.13% of the pigment taken in, and it left quickly. The authors call this pilot work.
Mechanism · How stomach acid and oxalate shift color
Betacyanins are most stable between pH 4 and 5; they fade in alkaline conditions and are broken down irreversibly in strong acid. In the rat stomach, the pigment declined quickly over time. From this, Watts 1993 suggested that whether urine turns red may depend mainly on how strong stomach acid is and how fast the stomach empties, but this has not been tested directly in people. The only support for this hypothesis is a single case: an older man who first had red urine while taking ranitidine, a drug that suppresses stomach acid.
Eastwood 1995 found that when the pigment was taken with 1 g of oxalic acid, healthy people who had not had red urine before now did; people with an ileostomy, whose food does not reach the colon, did not. The authors' interpretation is that oxalic acid protects the red color until it reaches the colon, and that the pigment is absorbed mainly in the colon.
Eastwood 1995 found that when the pigment was taken with 1 g of oxalic acid, healthy people who had not had red urine before now did; people with an ileostomy, whose food does not reach the colon, did not. The authors' interpretation is that oxalic acid protects the red color until it reaches the colon, and that the pigment is absorbed mainly in the colon.
Myth · Red urine is not an iron test
A commonly cited figure is that about 10% to 14% of people get red urine after eating beets, and that it is more common in people with iron deficiency or malabsorption. But the rates reported across studies run from 0 to nearly 100%, and the beet variety, when it was grown and harvested, how it was prepared and the portion size all change the result.
The same person is not consistent either. When 8 people repeated the test within a week, their results matched; when 4 people repeated it 5 times over several months, the result swung from obvious to almost nothing. The review's author concluded that it is not decided by a single gene.
The link to iron deficiency comes from old studies. In one old study of boys, half of whom were anemic, serum iron was not correlated with red urine. So red urine cannot serve as a test for iron deficiency, and the absence of red urine does not rule iron deficiency out.
The same person is not consistent either. When 8 people repeated the test within a week, their results matched; when 4 people repeated it 5 times over several months, the result swung from obvious to almost nothing. The review's author concluded that it is not decided by a single gene.
The link to iron deficiency comes from old studies. In one old study of boys, half of whom were anemic, serum iron was not correlated with red urine. So red urine cannot serve as a test for iron deficiency, and the absence of red urine does not rule iron deficiency out.
Chapter 3
Asparagus pee: some make it, some can't smell it
The sharp, sulfurous smell in urine after eating asparagus comes from sulfur compounds in the asparagus itself. Among them, only asparagusic acid and its relatives appear to be unique to asparagus, and it may be the precursor of the smell; in limited experiments, after asparagusic acid was taken by mouth, small volatile sulfur molecules such as methanethiol and dimethyl sulfide appeared in the urine.
There are two ends to this, and each varies between people: some people make almost none of the smell, and some cannot smell it, and the two are not linked. Not being able to smell it is linked to variants in a cluster of olfactory receptor genes on chromosome 1, close to a gene called OR2M7.
There are two ends to this, and each varies between people: some people make almost none of the smell, and some cannot smell it, and the two are not linked. Not being able to smell it is linked to variants in a cluster of olfactory receptor genes on chromosome 1, close to a gene called OR2M7.
Mechanism · Asparagusic acid and sulfur volatiles
Asparagus holds many sulfur compounds, and the review's author considers only asparagusic acid and its derivatives to be unique to asparagus, so they may be the precursors of the smell. Asparagusic acid is high in young shoots and falls quickly as the plant matures. In one small experiment, 2 people known to produce the smell took asparagusic acid by mouth, and the same volatiles appeared in their urine; 1 person who did not produce the smell had none.
In the air above odorous urine, several small volatile sulfur molecules were detected, at concentrations that can be thousands of times higher than usual. The most pungent are methanethiol and dimethyl sulfide.
In the air above odorous urine, several small volatile sulfur molecules were detected, at concentrations that can be thousands of times higher than usual. The most pungent are methanethiol and dimethyl sulfide.
Evidence · A smell test after 38 people ate asparagus
In Pelchat 2011, 38 adults ate 125 g of roasted asparagus, gave a urine sample 2 hours later, and were tested with a two-choice method: each time they were given two samples and asked to pick the one with the smell.
In 3 of 37 people (8.1%), the urine had no detectable odor, and 2 of 31 (6.4%) could not smell it; whether someone made the odor and whether they could smell it were not correlated. Not being able to smell it was linked to a site called rs4481887, which lies in a cluster of 50 olfactory receptor genes, near OR2M7.
Why some people do not make the odor is still unknown: it may be a difference in metabolism, or they may simply not absorb asparagusic acid. The sample was small, the genetic analysis included only white participants, and the odor molecules have not been confirmed.
In 3 of 37 people (8.1%), the urine had no detectable odor, and 2 of 31 (6.4%) could not smell it; whether someone made the odor and whether they could smell it were not correlated. Not being able to smell it was linked to a site called rs4481887, which lies in a cluster of 50 olfactory receptor genes, near OR2M7.
Why some people do not make the odor is still unknown: it may be a difference in metabolism, or they may simply not absorb asparagusic acid. The sample was small, the genetic analysis included only white participants, and the odor molecules have not been confirmed.
Numbers · Six in ten on a survey, 6% when tested
In a genetic study of 6909 European-American adults, by questionnaire, 58.0% of men and 61.5% of women, about six in ten overall, did not clearly report smelling the odor. The definition here is broad: only those who strongly agreed that their urine has a distinct odor after eating asparagus counted as able to smell it; those who only somewhat agreed were counted as unable.
The genetic signals all fell in that cluster of olfactory receptor genes on chromosome 1, and which variant actually matters has not been validated.
The six in ten is a questionnaire definition and the roughly 6% comes from a two-choice smell test. The two methods answer different questions and cannot be merged into one rate. This study asked only once, included only people of European descent, and has not been replicated in other populations.
The genetic signals all fell in that cluster of olfactory receptor genes on chromosome 1, and which variant actually matters has not been validated.
The six in ten is a questionnaire definition and the roughly 6% comes from a two-choice smell test. The two methods answer different questions and cannot be merged into one rate. This study asked only once, included only people of European descent, and has not been replicated in other populations.
Chapter 4
Foamy urine: is the kidney leaking protein?
Foam alone cannot tell you how your kidneys are doing. Among people who see a doctor about foamy urine, about one in five to one in three turn out to have proteinuria and most do not; it takes a urine test that measures the protein.
For foam to last, it needs a kind of substance with one end that likes water and one end that likes fat to wrap around the bubbles. Protein is one such substance. Experts also suggest that some bile-salt-type substances in normal urine may produce a layer of foam when the urine is concentrated.
When the kidney's filter is damaged, large amounts of protein leak into the urine, and some people notice their urine is foamy because of it.
For foam to last, it needs a kind of substance with one end that likes water and one end that likes fat to wrap around the bubbles. Protein is one such substance. Experts also suggest that some bile-salt-type substances in normal urine may produce a layer of foam when the urine is concentrated.
When the kidney's filter is damaged, large amounts of protein leak into the urine, and some people notice their urine is foamy because of it.
Evidence · 72 patients who came in for foamy urine
Kang 2012 looked back at 1248 new patients at the nephrology clinic of a veterans' hospital in Seoul; 72 of them came in because of foamy urine. Of these 72, 16 (22.2%) had overt proteinuria, meaning a spot-urine protein-to-creatinine ratio above 200 mg/g; of the 38 with albumin data, 12 (31.6%) had microalbuminuria or overt proteinuria. People with higher serum creatinine and phosphate were more likely to have overt proteinuria.
This was a single-center retrospective study, and foam had no objective definition. Of the 72 people, 59 were men, with a median age of 65.5 years, and people who come to a nephrology clinic already tend to have more coexisting illness, so they do not represent the general population. Experts give a similar estimate: of people who bring up foamy urine themselves, about one in three is found to have abnormal proteinuria, and for most the cause stays unexplained.
This was a single-center retrospective study, and foam had no objective definition. Of the 72 people, 59 were men, with a median age of 65.5 years, and people who come to a nephrology clinic already tend to have more coexisting illness, so they do not represent the general population. Experts give a similar estimate: of people who bring up foamy urine themselves, about one in three is found to have abnormal proteinuria, and for most the cause stays unexplained.
Mechanism · Foam without protein
An expert review notes that no study has specifically measured the physical and chemical properties of urine that foams. Besides protein, there are three suggested kinds of substance that might foam, each tied to a different situation.
The first is bile-salt-type substances. In a database of human metabolites, the authors found 16 amphiphilic metabolites in normal urine, 15 of them bile salts. How much of them urine contains could not be found; the authors suggest they may explain the single layer of foam some people see when they urinate, especially when the urine is concentrated. The second is free amino acids, which only come into play when the proximal tubules of the kidney are not working and large amounts of amino acids leak into the urine. The third is membrane phospholipids released from ruptured cells, in urine that contains blood or pus.
The first is bile-salt-type substances. In a database of human metabolites, the authors found 16 amphiphilic metabolites in normal urine, 15 of them bile salts. How much of them urine contains could not be found; the authors suggest they may explain the single layer of foam some people see when they urinate, especially when the urine is concentrated. The second is free amino acids, which only come into play when the proximal tubules of the kidney are not working and large amounts of amino acids leak into the urine. The third is membrane phospholipids released from ruptured cells, in urine that contains blood or pus.
Clinical · When foamy urine needs a test
New foamy urine raises one question: is protein leaking into the urine? Foam alone cannot tell, and a dipstick can miss some proteins, so the protein has to be measured in a urine test arranged by a doctor; if no proteinuria is found, experts do not recommend investigating further. A single abnormal result cannot establish that the problem is chronic and needs repeating; blood in the urine, menstruation, exercise and urinary tract infection can all raise the result falsely.
The most common first sign of nephrotic syndrome is new swelling, usually starting in the legs, and swelling around the eyes can also occur; some people report foamy urine, weight gain from retained fluid, and tiredness. If the foam keeps coming back along with swelling or weight gain, get urine protein checked.
The most common first sign of nephrotic syndrome is new swelling, usually starting in the legs, and swelling around the eyes can also occur; some people report foamy urine, weight gain from retained fluid, and tiredness. If the foam keeps coming back along with swelling or weight gain, get urine protein checked.
Chapter 5
Which colors, smells and foam need a check
If a change in your urine matches what you ate in the last meal or two, it most likely comes from the food; if it does not match, or comes with the signs below, get it checked. Red after beets and a sulfur smell after asparagus can both be matched to food. Red from food pigment usually fades within a day. If it is still red the next day, or comes with painful urination or fever, get a urine test to see whether it contains red blood cells.
The following changes that do not match any food need a check. Red urine or visible blood when you have not eaten red food needs assessment by a doctor. Muscle soreness and cramps with darkened urine after hard exercise may mean large-scale muscle breakdown and needs medical care right away. Dark urine together with pale stools may mean bile cannot drain; see a doctor promptly. Painful, frequent urination with fever and chills and pain in the back or side needs medical care right away. Foamy urine that keeps happening, along with swollen eyelids or feet and weight gain, calls for a urine protein test.
The following changes that do not match any food need a check. Red urine or visible blood when you have not eaten red food needs assessment by a doctor. Muscle soreness and cramps with darkened urine after hard exercise may mean large-scale muscle breakdown and needs medical care right away. Dark urine together with pale stools may mean bile cannot drain; see a doctor promptly. Painful, frequent urination with fever and chills and pain in the back or side needs medical care right away. Foamy urine that keeps happening, along with swollen eyelids or feet and weight gain, calls for a urine protein test.
Red flag · Two causes of dark urine
Exercise-induced rhabdomyolysis is a large-scale breakdown of skeletal muscle cells after intense exercise, which raises or myoglobin in the blood and can harm the kidneys. The researchers urge screening for people who have muscle soreness, cramps or dark urine after hard endurance events. It can be life-threatening and needs prompt recognition and treatment.
Dark urine with pale stools is a different matter. Bilirubin that the liver has processed is called conjugated bilirubin, and it dissolves in water. People with a blocked bile duct may have dark urine and pale stools, and may also have fever, itching, abdominal pain and weight loss. These are possible signs, not a basis for diagnosis; blood tests and imaging are needed to find out.
Dark urine with pale stools is a different matter. Bilirubin that the liver has processed is called conjugated bilirubin, and it dissolves in water. People with a blocked bile duct may have dark urine and pale stools, and may also have fever, itching, abdominal pain and weight loss. These are possible signs, not a basis for diagnosis; blood tests and imaging are needed to find out.
Red flag · Painful urination with fever and back pain
The symptoms of kidney infection in adults listed by the NIDDK are: fever and chills; urine that is cloudy, dark, bloody or foul-smelling; frequent, painful urination; pain in the back, side or groin; and nausea or vomiting.
With these symptoms, seek care right away. A kidney infection uncommonly progresses to sepsis, but when it does, it can be life-threatening.
With these symptoms, seek care right away. A kidney infection uncommonly progresses to sepsis, but when it does, it can be life-threatening.
Clinical · Visible blood and a positive dipstick
The American Urological Association's microhematuria guideline notes at the outset that most experts agree visible blood in the urine needs to be assessed, with tests including cystoscopy and imaging of the upper urinary tract. Blood that cannot be seen and only turns up on a test counts as confirmed only when red blood cells are counted under a microscope, not on a positive dipstick alone.
References (19)
- Levey, A. S., & Inker, L. A. (2017). Assessment of glomerular filtration rate in health and disease: a state of the art review. Clinical Pharmacology & Therapeutics, 102(3), 405-419. 10.1002/cpt.729
- Watts, A. R., Lennard, M. S., Mason, S. L., Tucker, G. T., & Woods, H. F. (1993). Beeturia and the biological fate of beetroot pigments. Pharmacogenetics, 3(6), 302–311. 10.1097/00008571-199312000-00004
- National Institutes of Health, Office of Dietary Supplements. (2022). Riboflavin — Fact Sheet for Health Professionals. ods.od.nih.gov/factsheets/Riboflavin-HealthProfessional
- NHS. (2026). Dehydration. www.nhs.uk/conditions/dehydration
- Rawson, E. S., Clarkson, P. M., & Tarnopolsky, M. A. (2017). Perspectives on exertional rhabdomyolysis. Sports Medicine, 47(Suppl 1), 33-49. 10.1007/s40279-017-0689-z
- Bäcker, H. C., Richards, J. T., Kienzle, A., Cunningham, J., & Braun, K. F. (2023). Exertional rhabdomyolysis in athletes: systematic review and current perspectives. Clinical Journal of Sport Medicine, 33(2), 187-194. 10.1097/JSM.0000000000001082
- National Institute of Diabetes and Digestive and Kidney Diseases. (2024, October). Symptoms & causes of kidney infection (pyelonephritis). National Institutes of Health. www.niddk.nih.gov/health-information/urologic-diseases/kidney-infection-pyelonephritis/symptoms-causes
- Mitchell, S. C. (2001). Food idiosyncrasies: Beetroot and asparagus. Drug Metabolism and Disposition, 29(4 Pt 2), 539–543. dmd.aspetjournals.org/content/29/4/539
- Wybraniec, S., & Mizrahi, Y. (2002). Fruit flesh betacyanin pigments in Hylocereus cacti. Journal of Agricultural and Food Chemistry, 50(21), 6086–6089. 10.1021/jf020145k
- Eastwood, M. A., & Nyhlin, H. (1995). Beeturia and colonic oxalic acid. QJM: An International Journal of Medicine, 88(10), 711–717. 10.1093/oxfordjournals.qjmed.a068995
- Wang, Y., Adekolurejo, O. O., Wang, B., McDermott, K., Do, T., Marshall, L. J., & Boesch, C. (2024). Bioavailability and excretion profile of betacyanins – Variability and correlations between different excretion routes. Food Chemistry, 437(Pt 1), Article 137663. 10.1016/j.foodchem.2023.137663
- Pelchat, M. L., Bykowski, C., Duke, F. F., & Reed, D. R. (2011). Excretion and perception of a characteristic odor in urine after asparagus ingestion: A psychophysical and genetic study. Chemical Senses, 36(1), 9–17. 10.1093/chemse/bjq081
- Markt, S. C., Nuttall, E., Turman, C., Sinnott, J., Rimm, E. B., Ecsedy, E., Unger, R. H., Fall, K., Finn, S., Jensen, M. K., Rider, J. R., Kraft, P., & Mucci, L. A. (2016). Sniffing out significant "Pee values": Genome wide association study of asparagus anosmia. BMJ, 355, i6071. 10.1136/bmj.i6071
- Kang, K. K., Choi, J. R., Song, J. Y., Han, S. W., Park, S. H., Yoo, W. S., Kim, H. W., Lee, D., Moon, K. H., Lee, M. H., & Kim, B. (2012). Clinical significance of subjective foamy urine. Chonnam Medical Journal, 48(3), 164–168. 10.4068/cmj.2012.48.3.164
- Khitan, Z. J., & Glassock, R. J. (2019). Foamy urine: Is this a sign of kidney disease? Clinical Journal of the American Society of Nephrology, 14(11), 1664–1666. 10.2215/CJN.06840619
- Kidney Disease: Improving Global Outcomes (KDIGO) CKD Work Group. (2024). KDIGO 2024 Clinical Practice Guideline for the Evaluation and Management of Chronic Kidney Disease. Kidney International, 105(4S), S117-S314. 10.1016/j.kint.2023.10.018
- Kodner, C. (2016). Diagnosis and management of nephrotic syndrome in adults. American Family Physician, 93(6), 479–485. www.aafp.org/pubs/afp/issues/2016/0315/p479.html
- Barocas, D. A., Boorjian, S. A., Alvarez, R. D., et al. (2020). Microhematuria: AUA/SUFU Guideline. Journal of Urology, 204(4), 778-786. 10.1097/JU.0000000000001297
- Fargo, M. V., Grogan, S. P., & Saguil, A. (2017). Evaluation of jaundice in adults. American Family Physician, 95(3), 164–168. www.aafp.org/pubs/afp/issues/2017/0201/p164.html
Written from the sources listed above. Checked sentence by sentence against them in . No physician reviews this site: it explains how the body works, and it is not medical advice. How we make content
Spotted an error, or something unclear? Email us. We read every message, check it against the sources, and fix what's wrong.