Buildup under a toenail is material that collects between the nail plate and the nail bed — the skin underneath. Most often it is keratin debris, a crumbly mix of skin cells and nail fragments. It can also be pus, blood, or drainage from an infection. The buildup itself is a sign, not a disease. What causes it determines whether it clears up with simple care or needs a doctor’s attention.
The most common cause is a fungal nail infection, which affects an estimated 10% of adults in the United States and becomes more common with age. Injury, psoriasis, and a lifted nail can produce similar debris. In a smaller number of cases, buildup signals something that needs medical assessment. Here is what the evidence shows about each cause and what actually helps.
What Is The Buildup Under Toenails? Causes And Treatment
Buildup under the toenail is debris trapped in the space between the nail and the skin beneath it. The material is usually keratin — the protein that makes up skin and nails — shed from the nail bed as the nail lifts or thickens. When infection is present, the debris mixes with pus or fungus. The right treatment depends entirely on which of these is happening, and the two can look alike to the naked eye.
This is where many people go wrong. They assume any crumbly white or yellow material under the nail is fungus and start an over-the-counter treatment. Sometimes that works. Sometimes the real problem is a slowly lifting nail from shoe pressure or a past injury, and antifungal products do nothing because there is no fungus to treat.
A podiatrist or dermatologist can tell the difference. A small nail clipping can be tested in a lab to confirm whether fungus is present. That test matters, because oral antifungal medications carry real risks and are not something to start on a guess.
What Causes Buildup Under a Toenail?
Fungal infection is the leading cause. Dermatophyte fungi — the same organisms behind athlete’s foot — get under the nail through small gaps and feed on keratin. The nail slowly turns yellow or brown, thickens, and crumbles. Debris builds up underneath. Toenails grow slowly, so this process can take months.
Injury is the second major cause. Stubbing a toe, dropping something on it, or repeated pressure from tight shoes can lift the nail from the bed. Blood and keratin collect in the gap. Over time this looks very similar to infection, and the two can even occur together — an injured nail is easier for fungus to invade.
Other causes include:
- Psoriasis — can cause nail pitting, separation, and a buildup that mimics fungus. It is not infectious.
- Shoe pressure — narrow toe boxes and high-impact activity push the toe against the shoe, lifting the nail edge over time.
- Poor circulation or diabetes — slow healing and reduced blood flow make nail problems more likely and more serious.
- Aging — nails thicken and grow more slowly, and the risk of fungal infection rises.
- Bacterial infection — pus and redness around the nail, sometimes with pain, suggest bacteria rather than fungus.
One detail worth knowing: a dark streak or spot under the nail that does not grow out with the nail deserves a doctor’s look. Most such spots are blood from injury. A small number are a type of skin cancer called subungual melanoma, which is rare but serious. This is not something to self-diagnose.
How Do You Tell Fungus From Injury or Other Causes?
You often cannot tell by looking. Fungal infection and injury can produce nearly identical debris, color change, and nail lifting. That is the honest limitation, and it is why testing exists.
Some patterns offer clues. Fungal infection tends to develop slowly over months, often starts at the tip or side of the nail, and may affect several nails. It frequently comes with athlete’s foot — itchy, peeling skin between the toes. Injury usually follows a specific event and often affects one nail. Psoriasis tends to involve other nails and often comes with skin patches elsewhere.
None of these patterns is reliable enough to confirm a diagnosis. A lab test on a nail sample is the only way to know whether fungus is present. Some clinicians treat based on appearance alone, especially when the picture is clear. That is common practice, but it is not the same as confirmed diagnosis.
What Treatment Works for Buildup Under Toenails?
Treatment depends on the cause, and this is where the evidence is strongest for some approaches and weakest for others. For confirmed fungal infection, the most effective treatment is oral antifungal medication, typically terbinafine, prescribed by a doctor. Research consistently shows oral antifungals clear infection more reliably than topical products. They also carry risks — including effects on the liver — so they require a prescription, a blood test before starting in most cases, and medical monitoring.
Topical antifungal nail lacquers are available over the counter and by prescription. Evidence indicates they work better for mild, early infection and are less effective for moderate to severe cases. They need to be applied consistently for many months. Toenails grow slowly — a full replacement takes roughly a year — so any treatment takes patience, and results are judged over months, not weeks.
For buildup from injury or a lifted nail, treatment is different. The debris usually clears as the nail grows out. Keeping the area clean and dry, trimming the nail straight across, and wearing shoes with room in the toe box all help. A doctor may remove loose nail material to relieve pressure.
For psoriasis-related nail changes, treatment targets the psoriasis itself, often with prescription topical or systemic therapy managed by a dermatologist.
What does not have strong evidence: home remedies like vinegar soaks, tea tree oil, and Vicks VapoRub. Some small studies have looked at these, but the evidence is limited and no large human trials confirm they cure nail fungus. They are widely used. They are not established treatment.
When Should You See a Doctor?
See a doctor if the buildup comes with pain, redness, swelling, or pus, which can signal a bacterial infection. Also seek care if you have diabetes, poor circulation, or a weakened immune system — nail problems in these groups can progress to more serious infections and should not be self-treated.
Other reasons to get checked:
- The nail is lifting or separating from the bed.
- A dark streak or spot appears and does not grow out.
- The buildup spreads to other nails or the surrounding skin.
- Over-the-counter treatment has not helped after several months.
For people with diabetes, foot care is not optional. A minor nail problem can become a wound that heals poorly. Regular foot checks are part of standard diabetes care for good reason.
How Can You Prevent Buildup Under Toenails?
Prevention targets the two leading causes: fungus and pressure. Fungus thrives in warm, damp, dark places, so keeping feet dry and shoes aired out matters. Dry thoroughly between the toes after bathing. Alternate shoes so each pair dries fully. Choose socks that wick moisture. Treat athlete’s foot promptly, since it is the usual gateway to nail infection.
For pressure, wear shoes with a roomy toe box. Avoid tight shoes and high heels for long stretches. Trim toenails straight across rather than curving into the corners, which helps prevent ingrown nails. If you play high-impact sports, protect your toes where you can.
None of this guarantees you will avoid a nail problem. Toenails are exposed to years of pressure and moisture, and fungal infection becomes more common with age. But these steps reduce the odds and are low-cost. If buildup does appear, the key step is getting the cause identified rather than guessing.
Frequently Asked Questions
Is buildup under a toenail always fungus?
No. Injury, psoriasis, and shoe pressure can all cause similar debris without any fungus present. A lab test on a nail sample is the only way to confirm which cause is responsible.
Can I treat toenail fungus with home remedies?
No home remedy has been confirmed effective in large human trials. Vinegar soaks and tea tree oil are widely used but lack strong evidence, and confirmed infections respond best to prescription treatment.
How long does it take for a toenail to grow back?
A toenail takes roughly a year to fully replace itself. That is why any treatment for buildup or infection is measured over months, not weeks.
When should I worry about a dark spot under my toenail?
See a doctor if a dark streak or spot does not grow out with the nail or changes over time. Most such spots are blood from injury, but a small number are a serious skin cancer that needs early assessment.

