Yellow discharge from the penis almost always signals an infection in the urethra, the tube that carries urine out of the body. The most common causes are sexually transmitted infections, particularly gonorrhea and chlamydia. While the discharge itself isn’t dangerous, the underlying infection can cause serious complications if left untreated, including infertility and chronic pain.
Why Yellow Discharge Happens
The yellow color comes from pus, a mix of white blood cells, bacteria, and dead tissue that your body produces when fighting an infection. When bacteria infect the lining of the urethra, a condition called urethritis, the immune response generates this fluid, which leaks from the tip of the penis. The discharge can range from a small amount you only notice on your underwear to a heavy, obvious flow.
The four most common infectious causes are gonorrhea, chlamydia, mycoplasma genitalium, and trichomoniasis. Gonorrhea tends to produce the thickest, most noticeable discharge, often described as thick, cloudy, or bloody. Chlamydia and mycoplasma genitalium typically cause lighter discharge that may look more watery or whitish-yellow. Trichomoniasis, caused by a parasite rather than bacteria, can produce clear to yellowish discharge. All four are sexually transmitted.
In rare cases, chemical irritation from soaps, body washes, or lubricants can inflame the urethra enough to cause discharge. This type of irritation tends to start suddenly during or after bathing and usually resolves once the irritant is removed. It’s far less common than infection, though, especially if you’ve had recent sexual contact.
When Symptoms Typically Appear
If the discharge is from an STI, it usually shows up within days to a few weeks after exposure. Gonorrhea is the fastest, with symptoms often starting within five days. Chlamydia symptoms typically begin 5 to 14 days after exposure. Trichomoniasis has a wider window of 5 to 28 days. Some infections, particularly chlamydia, can also be completely silent for weeks or months before producing noticeable symptoms, which is why discharge can seem to appear “out of nowhere.”
Other Symptoms to Watch For
Yellow discharge rarely shows up alone. You may also notice:
- Burning or pain while urinating, one of the most common accompanying symptoms
- Itching at the tip of the penis, particularly at the urethral opening
- Pain during sex
- Swelling of the penis or the lymph channels along it
- Pelvic or lower abdominal pain, though this is less common in men
- Blood in the discharge or urine
If you have discharge but no pain at all, an infection is still likely. Chlamydia in particular is known for causing mild or barely noticeable symptoms even when the infection is active and transmissible.
How It Gets Diagnosed
Testing is straightforward. In most cases, you’ll provide a urine sample, which is tested using a molecular method that can detect the genetic material of gonorrhea, chlamydia, and other pathogens with high accuracy. No swab is usually necessary for a standard urine test, though a provider may swab the urethral opening if discharge is visible. Results typically come back within one to three days, depending on the lab.
If your first round of treatment doesn’t clear the infection, your provider may test specifically for mycoplasma genitalium, which causes an estimated 15 to 20 percent of non-gonococcal urethritis cases and is a common culprit in infections that persist or come back after initial treatment.
What Treatment Looks Like
Bacterial urethritis is treated with antibiotics, and most cases clear up within a week or two. For non-gonococcal infections (anything other than gonorrhea), the standard course is a week-long oral antibiotic. Gonorrhea is treated with a different antibiotic, often given as a single dose. Your provider will choose the right treatment based on your test results.
If the infection turns out to be trichomoniasis, it’s treated with a single oral dose of a different medication designed to kill parasites. Mycoplasma genitalium infections sometimes require a longer, two-step antibiotic course, especially if the bacteria show resistance to first-line drugs.
During treatment, you should avoid sexual contact until both you and any partners have completed the full course and symptoms have resolved. Sexual partners from at least the past 60 days need to be tested and treated, even if they have no symptoms, because reinfection from an untreated partner is one of the most common reasons symptoms come back.
What Happens Without Treatment
Ignoring yellow discharge doesn’t just mean living with uncomfortable symptoms. Untreated urethral infections can spread deeper into the reproductive tract and cause serious problems. Epididymitis, an infection of the coiled tube behind the testicle, causes pain and swelling and can lead to permanent damage. Repeated or chronic infections have been linked to male infertility, urethral strictures (scarring that narrows the urethra and makes urination difficult), and abscesses around the urethra.
In rarer cases, untreated chlamydia or gonorrhea can trigger reactive arthritis, a condition where the immune system attacks the joints, eyes, and urinary tract. This can develop weeks after the initial infection and may cause lingering joint pain even after the infection itself is treated. The risk of all these complications drops dramatically with prompt antibiotic treatment, which is why getting tested quickly matters.

