The white, smelly buildup under your toenails is most likely a combination of dead skin cells, keratin (the protein your nails are made of), sweat residue, and bacteria. In many cases, especially when there’s a noticeable odor, a fungal infection is either already present or developing. Toenail fungus affects roughly 10% of adults worldwide, making it the single most common nail disease.
What the Buildup Is Made Of
Your toenails are about 80% hard keratin and 20% soft keratin, a tough, sulfur-rich protein that gives nails their structure. As your nail grows, cells from the nail bed flatten, lose their nuclei, and essentially die. Normally these cells shed on their own, but under the toenail they can accumulate instead, forming a chalky or crumbly white paste. Mix in sweat, sock fibers, skin oils, and the warm, enclosed environment inside your shoes, and you’ve created an ideal breeding ground for microorganisms.
The smell comes primarily from bacteria. A group of bacteria commonly found on feet breaks down sweat and dead skin into sulfur-containing compounds, the same chemical process that gives certain aged cheeses their pungent aroma. These bacteria thrive in moist, low-oxygen spaces, and the gap between your nail plate and nail bed is exactly that.
Why It Might Be Toenail Fungus
If the white debris is persistent, getting worse, or accompanied by changes in the nail itself, a fungal infection is the most likely cause. Toenail fungus doesn’t always look dramatic at first. Early signs include white, yellow, or brown discoloration, a chalky or cloudy appearance in patches, and gradual thickening of the nail. The nail may start to lift slightly from the bed underneath, creating more space for debris to collect.
Foul smell is one of the hallmark signs. As fungi colonize the space under the nail, they break down keratin for fuel, producing waste products that smell distinctly unpleasant. The American Podiatric Medical Association notes that when fungal organisms take hold, the nail often darkens in color and develops a foul odor. White marks on the nail surface, debris beneath the plate, and spreading to other toenails are all common progression patterns.
Left untreated, fungal infections don’t resolve on their own. The nail continues to thicken and distort, eventually making it painful to wear shoes or walk comfortably. The infection can also spread to neighboring toenails, the surrounding skin, and even fingernails.
Keratin Granulations: The Harmless Lookalike
Not every white patch signals a fungal infection. If you frequently wear nail polish, the white, chalky residue you see after removing it is likely keratin granulations. Acetone strips moisture and hydrating proteins from the nail surface, causing the top layer of keratin to become rough and opaque. These granulations sit on the nail plate itself rather than building up underneath it, and they don’t smell.
The distinction matters. Keratin granulations can be buffed away with a nail file and will resolve once you give your nails a break from polish. Fungal infections produce debris that collects under the nail, change the nail’s thickness or shape over time, and typically worsen without treatment.
What Causes the Buildup to Get Worse
Several factors accelerate the accumulation of smelly debris under your toenails. Wearing tight, non-breathable shoes traps heat and moisture against your feet for hours. Going long stretches without trimming your nails gives debris more room to collect. Wearing the same socks or shoes day after day without letting them dry out keeps bacterial and fungal populations high. People with diabetes, weakened immune systems, or poor circulation are especially prone to toenail fungus because their bodies have a harder time fighting off the initial infection.
Subungual hyperkeratosis, the medical term for excessive skin cell buildup under the nail, happens when dead cells accumulate faster than they shed. This can be triggered by fungal infection, psoriasis, or repeated minor trauma to the nail (from running, ill-fitting shoes, or stubbing your toes). The thicker the buildup becomes, the more it traps moisture and feeds the cycle.
How to Clean It Safely
Resist the urge to dig aggressively under the nail with sharp tools. Forcing a metal instrument into the space between your nail and nail bed can tear the seal that holds them together, creating an entry point for more bacteria and fungi. Instead, soak your feet in warm water for 10 to 15 minutes to soften the debris, then use a soft nail brush or the edge of a washcloth to gently clean underneath. The CDC recommends scrubbing under nails with soap and water or a nail brush as part of regular hygiene.
After cleaning, dry your feet thoroughly, especially between the toes and around the nail edges. Moisture left behind is the single biggest factor in keeping bacterial and fungal populations active.
Keeping It From Coming Back
Daily foot hygiene makes a significant difference. Wash your feet every day and dry them completely before putting on socks. Change your socks at least once a day, more often if your feet sweat heavily. Rotate between pairs of shoes so each pair has at least 24 hours to air out. Choose well-fitting, breathable footwear whenever possible.
Keep your toenails trimmed short and straight across. Shorter nails leave less overhang for debris to collect under. Check your nails regularly for early signs of discoloration, thickening, or lifting from the nail bed. Catching a fungal infection early, when it’s just a small white or yellow spot, makes it far easier to treat than waiting until the nail is distorted and painful.
Signs That Need Professional Attention
If your toenail is thickening, changing color, pulling away from the nail bed, or becoming painful, those are signs that what started as simple buildup has progressed to something that won’t resolve with hygiene alone. Toenail fungus typically requires antifungal treatment, either applied directly to the nail or taken orally, depending on how deep the infection has gone. A podiatrist can take a small sample of the debris to confirm whether fungus is present and recommend the right approach. Treatment timelines are slow because toenails grow slowly: expect 6 to 12 months before you see a fully clear nail growing in.

