The most common reason toenails turn yellow is a fungal infection, which affects roughly 10% of adults worldwide. But fungus isn’t the only explanation. Nail polish, diabetes, psoriasis, smoking, and rare systemic conditions can all change the color of your nails. The cause matters because each one calls for a different response.
Fungal Infections Are the Leading Cause
Fungal nail infections, known clinically as onychomycosis, account for the majority of yellow toenails. The fungi responsible are mold-like organisms that produce enzymes capable of breaking down keratin, the tough protein that makes up your nail. Once they penetrate the nail plate, they colonize the space beneath it. That space then becomes a reservoir for fungi and bacteria, giving the nail a yellowish-brown appearance that deepens over time.
The infection typically starts at the tip or edge of a toenail and works its way toward the base. Early on, you might notice a small white or yellow spot. As it progresses, the nail thickens, becomes brittle, and can start to crumble at the edges. The nail may also lift away from the nail bed, and in some cases there’s a mild odor. Toenails are more vulnerable than fingernails because shoes create the warm, damp environment fungi thrive in, and because toes get less blood flow, which makes it harder for your immune system to detect and fight the infection early.
Certain groups face higher risk: older adults (slower nail growth means more time for fungi to establish), people who sweat heavily, those who walk barefoot in communal areas like gym showers or pool decks, and anyone with a weakened immune system.
Nail Polish and Smoking
If your toenails turned yellow after removing polish, the culprit is likely staining rather than infection. Deep red polishes are the most common offenders, particularly those containing certain red pigments (D&C Reds No. 6, 7, 34, or 5 Lake). Staining happens when the pigment dissolves into the nail plate rather than sitting on top of it. After about seven days of continuous wear, the nail underneath takes on a yellow tint. The good news: this fades on its own within about two weeks once the polish comes off. Using a clear base coat before applying color helps prevent it.
Smoking causes a different kind of staining. Tar and nicotine concentrate at the point where skin meets cigarette, depositing pigment on the fingers and, for some smokers, the toenails. The staining is physical, not a sign of nail disease, though nicotine may also slow the skin’s ability to repair and shed stained cells. The discoloration is typically most obvious on the dominant hand but can appear anywhere smoke residue accumulates.
How Diabetes Affects Toenails
Diabetes can yellow toenails through two separate pathways. The first is simply that people with diabetes are more prone to fungal infections due to reduced immune function and impaired circulation. The second is a direct chemical effect: chronically elevated blood sugar causes a process called glycation, where sugar molecules bind to proteins like collagen and keratin in the nail. This reaction changes the nail’s structure and color, producing a yellow tint even without any fungus present.
Over time, diabetes also damages the tiny blood vessels supplying the toes. The walls of these capillaries thicken, blood becomes more viscous, and red blood cells grow stiffer and clump together. The result is reduced oxygen delivery to the nail matrix, the tissue that generates new nail growth. This oxygen deficit contributes to nails that grow slowly, thicken, change shape, and discolor. One study of 60 diabetic patients found yellow discoloration in 33% of them, with higher rates among those with poor blood sugar control and older age.
Psoriasis and the “Oil Drop” Sign
Nail psoriasis can mimic a fungal infection closely enough to fool even experienced clinicians. One of its hallmark features is the “oil drop sign,” a yellowish-red patch visible through the nail plate that looks like a drop of oil trapped beneath the surface. This discoloration is caused by abnormal skin cell buildup in the nail bed.
Psoriatic nails often show other changes alongside the yellowing: tiny pits across the nail surface, lifting of the nail from the bed, and a buildup of chalky material underneath. If you already have psoriasis on your skin or joints, nail changes are common. Nail psoriasis is especially prevalent in people with psoriatic arthritis. The distinction from fungus matters because the treatments are completely different.
Yellow Nail Syndrome
Yellow nail syndrome is rare but worth knowing about because it signals problems beyond the nails themselves. The condition involves three features that often appear at different times: thickened yellow nails, swelling in the legs or ankles from fluid buildup (lymphedema), and recurring respiratory problems like chronic sinusitis, bronchitis, pneumonia, or fluid around the lungs. You don’t need all three to be diagnosed, and they may develop months or years apart.
First described in 1894, yellow nail syndrome is sometimes linked to autoimmune diseases, lymphatic disorders, or cancers. The nails in this condition grow extremely slowly, become thick and heavily curved, and take on a deep yellow or greenish-yellow color across the entire nail plate. If your toenails have yellowed alongside persistent coughs, sinus infections, or unexplained leg swelling, this is a possibility your doctor should evaluate.
How Doctors Identify the Cause
A doctor can often narrow down the cause by looking at the nail and asking about your medical history, but confirming a fungal infection requires a lab test. The most common one involves clipping a piece of the affected nail and treating it with a chemical (potassium hydroxide, or KOH) that dissolves keratin, making any fungal structures visible under a microscope. This test is highly specific: when it says fungus is present, it’s right about 95% of the time. Its weakness is sensitivity. It misses infections in roughly 40% of cases, meaning a negative result doesn’t rule out fungus entirely. If results are unclear, your doctor may also send a nail sample for a fungal culture, which takes longer but can identify the exact organism involved.
This diagnostic step matters because treating a non-fungal yellow nail with antifungal medication wastes time and money, while ignoring an actual fungal infection lets it spread.
Treatment Options for Fungal Yellowing
Mild fungal infections limited to the tip of the nail can sometimes be managed with a topical antifungal lacquer painted directly onto the nail. For more extensive infections, oral antifungal medication is the standard approach and is significantly more effective. In clinical trials, oral treatment achieved a mycological cure rate of about 65%, and combining it with a topical lacquer pushed that rate to 88%. Combination therapy worked especially well in younger patients and those who caught the infection early.
Treatment timelines are long. Oral antifungals are typically taken for three months, but because toenails grow slowly (roughly 1 to 1.5 millimeters per month), it can take 12 to 18 months before the nail looks fully normal again. The discolored portion has to grow out completely and be replaced by healthy new nail. Recurrence is common, particularly if the conditions that allowed the infection, like sweaty shoes or communal shower use, haven’t changed.
Preventing Yellow Toenails
For fungal prevention, the basics come down to keeping feet dry and reducing exposure. Wear moisture-wicking socks, alternate shoes so each pair dries fully between wears, and use sandals in locker rooms and pool areas. Trim nails straight across and keep them short so there’s less surface area for fungi to colonize.
For polish-related yellowing, apply a base coat before colored polish and give your nails periodic breaks between applications. For diabetes-related changes, consistent blood sugar management is the most effective way to slow the vascular damage that drives nail discoloration. If you smoke, the staining resolves gradually after quitting as the affected nail grows out and is replaced.

