The most common reason your pee smells like garlic is simply that you ate garlic. Your body breaks garlic down into sulfur-containing compounds that pass through your kidneys and into your urine, sometimes within an hour of eating it. But garlic isn’t the only explanation. Other sulfur-rich foods, certain supplements, and occasionally an underlying health issue can produce the same smell.
How Garlic Changes Your Urine
Garlic is packed with sulfur compounds. When you digest it, your body converts those compounds into a family of volatile metabolites that circulate through your bloodstream and eventually get filtered out through your kidneys. These are the same types of molecules responsible for garlic breath, but they show up in your urine too.
Research tracking garlic metabolites in urine found that concentrations typically peak between one and two hours after eating garlic. A second spike can occur anywhere from three to eight hours later, likely because garlic compounds get absorbed at different points along the digestive tract. The metabolites were still detectable up to 26 hours after a single serving, which explains why the smell can linger well into the next day, even if you only had garlic at dinner.
The more garlic you eat, the stronger and longer-lasting the effect. In one analysis, participants who consumed about 3 grams of garlic (roughly one clove) showed a continuous rise in urinary metabolites over the entire sampling window rather than a quick peak and decline.
Other Foods That Cause the Same Smell
Garlic belongs to a broader group of sulfur-rich foods that can all alter urine odor in similar ways. Onions, leeks, and shallots are close relatives and share many of the same sulfur compounds. Cruciferous vegetables like Brussels sprouts, broccoli, and cabbage also contain sulfur that your body processes and excretes through urine.
Asparagus is probably the most well-known offender when it comes to smelly urine, though its odor is usually described as more pungent than garlicky. Coffee and heavily spiced foods, particularly those with curry, can also shift your urine’s scent profile. If you’ve eaten any combination of these foods recently, that’s almost certainly the explanation.
Supplements and Topical Products
Garlic supplements, including odorless varieties, still deliver sulfur compounds to your system. If you take a daily garlic capsule for heart health or cholesterol, it can produce the same urinary odor as eating whole cloves.
A less obvious culprit is DMSO (dimethyl sulfoxide), a compound sometimes used topically for joint pain and inflammation. DMSO penetrates the skin rapidly, enters the bloodstream, and gets converted into a sulfur-containing gas in the lungs. This makes your breath smell like garlic and can do the same to your urine and sweat. The garlicky smell from DMSO is so distinctive and reliable that researchers use it as a marker to confirm the compound has been absorbed.
When the Smell Points to Something Else
If you haven’t eaten garlic or other sulfur-heavy foods and aren’t using supplements or topical products containing sulfur, a persistent garlic-like smell in your urine is worth paying closer attention to.
Liver disease is one condition that can produce a sulfurous odor sometimes compared to rotten eggs mixed with garlic. When the liver can’t properly filter certain toxic substances from the blood, those compounds build up and get released through breath, sweat, and urine. This is most commonly associated with advanced liver disease and would typically come with other noticeable symptoms like yellowing of the skin or eyes, dark urine, abdominal swelling, or persistent fatigue.
Urinary tract infections can also change urine odor, though the smell is more often described as foul or ammonia-like than specifically garlicky. Accompanying signs include a burning sensation when you pee, needing to urinate more frequently or urgently, and urine that looks cloudy. Blood in the urine or lower abdominal pain alongside a strong odor warrants prompt medical attention.
Dehydration concentrates everything in your urine, including sulfur compounds that might otherwise go unnoticed. If your urine is dark yellow and the smell is strong, drinking more water throughout the day may be enough to resolve it.
How Long the Smell Lasts
If garlic or a related food is the cause, expect the smell to clear within about 24 to 36 hours after your last serving. Staying well hydrated helps dilute the metabolites and can speed things along. For people who eat garlic daily, the odor may simply become a baseline feature of their urine, which is harmless.
If the smell persists for several days after you’ve stopped eating sulfur-rich foods, or if it appeared without any obvious dietary trigger, that’s a good reason to bring it up with your doctor. On its own, garlicky urine is almost always a sign that your body is doing exactly what it should with the food you gave it.