I love asparagus, and it's incredibly good for you [1] — full of vitamin K, plus A and C and folate. But if you've ever eaten a lot of it, you might have noticed a rather odd side effect. There's really no delicate way to say this, so I'll just come right out with it: Eating asparagus can make your pee smell funny.
It doesn't happen to everyone, but if it happens to you, don't worry: The effect is totally harmless. The odor is merely a byproduct of digesting the veggie. According to WebMD [2], a compound called mercaptan, present in the green stalks, causes the ammonia- or sulfur-like smell to be released.
It is estimated that 40 to 50 percent of people [3] experience this effect from asparagus; it's all a matter of genetics. If you've never noticed it, you may be immune, or you may simply be unable to smell it. The odor could appear the next day or in a matter of minutes. But aside from the obvious unpleasantness, the aroma of asparagus is nothing to be concerned about. Now aren't you glad we had this little chat?
Source [4]