You get nail fungus when dermatophyte molds or yeasts invade the keratin between your nail plate and nail bed, and that invasion almost always requires three things at once: a tiny break or separation in the seal, a warm moist environment, and enough time for the organism to colonize. The fungi come from contaminated floors, shared tools, footwear, or your own skin, and they feed on keratin rather than living tissue. Infection is not instantaneous exposure; it is a slow colonization process measured in weeks to months.

The infection chain, step by step

The organisms behind most cases are dermatophytes, chiefly Trichophyton rubrum and Trichophyton interdigitale, though Candida species and non-dermatophyte molds cause a minority of cases. These fungi produce keratinases, enzymes that digest keratin, the structural protein your nail is built from. That is why the infection targets the nail itself and why it is so hard to clear: the fungus is not sitting on the surface, it is eating the material of the nail.

For invasion to begin, the barrier has to fail. The seal between the nail plate and the nail bed, or the cuticle at the base, must develop a microgap. Common sources of that gap include repeated wet-dry cycling that swells and shrinks the nail, minor trauma from tight shoes, aggressive cuticle removal during manicures, and inflammatory skin disease around the nail. Once a gap exists, fungal spores or hyphae lodge in the space and begin colonizing the keratin layer.

Moisture is the accelerant. Dermatophytes grow best in a warm, humid microenvironment, which is exactly what a sweaty sock and a closed shoe create. Occlusion keeps the space wet, keeps the temperature near body heat, and shields the organism from airflow. This is why the infection so often starts at the tip or side of the toenail and marches toward the cuticle over time.

A key and often-missed step is the reservoir. Many people carry dermatophytes on the skin of their feet, particularly between the toes, without a full nail infection. Toenail fungus frequently follows athlete's foot, because the same organism spreads from skin to nail through shared moisture. Treating the nail while ignoring the skin reservoir is a common reason for recurrence. In plain terms, the fungus usually arrives from your own foot before it arrives from the floor.

Transmission from the environment is real but secondary. Walking barefoot on damp communal floors, sharing nail clippers, and wearing borrowed shoes can introduce organisms, but the exposure usually needs the barrier failure and the moisture to take hold. Exposure alone rarely causes infection in an intact, dry nail.

How common it is, and who gets hit hardest

Onychomycosis is the most common nail disorder in adults, and prevalence climbs steadily with age. Large population surveys have put the overall adult prevalence in the range of roughly 10 to 20 percent in Western countries, with figures rising above 30 percent in people over 60. Toenails are involved far more often than fingernails, by a wide margin, because shoes and socks create the occlusive environment the organism needs.

Several conditions raise risk substantially. Diabetes is a major risk factor, both because of reduced circulation and because of slower immune response in the foot. Peripheral vascular disease, immune suppression, psoriasis, and prior nail trauma all increase susceptibility. People whose feet sweat heavily or who wear occlusive footwear for long shifts face higher exposure and better growing conditions. Men tend to be affected more than women in most surveys, and the difference is partly behavioral and footwear-related.

The numbers matter for expectations. A single nail can take many months to become visibly abnormal, and the infection often spreads to adjacent nails before someone seeks help. Studies that sample the skin of the feet find dermatophyte colonization in a meaningful share of people who have no nail symptoms yet, which tells you the reservoir is common and the infection is often caught late.

Edge cases that complicate the picture

Not every discolored, thickened nail is fungal. Psoriasis can produce pitting, lifting, and thickening that mimics onychomycosis closely. Nail trauma, lichen planus, and even some tumors can look similar. Because the treatments are different and oral antifungal drugs carry real risks, confirmation matters before committing to months of therapy.

Fingernail infections are less common but more often caused by yeasts, particularly Candida, especially in people whose hands stay wet or who have frequent manicures. The organism profile differs from toenails, and that can change which treatment works.

Children get nail fungus far less often than adults, and when a child has an abnormal nail, the odds that something else is responsible are higher. A dermatologist evaluating a child's nail should consider trauma and skin disease before assuming fungal infection.

Another edge case is the "two-nail rule" shortcut. Some clinicians treat a single thick, yellow nail as fungal without testing, but studies show the positive predictive value is imperfect. When the diagnosis is uncertain or oral therapy is being considered, laboratory confirmation is the safer path.

What people get wrong

The most common misconception is that nail fungus is purely a hygiene failure. It is not. You can be scrupulously clean and still develop it, because the drivers are moisture, barrier disruption, circulation, and immune status. Framing it as a cleanliness problem leads to shame and to ineffective scrubbing.

A second misconception is that over-the-counter creams clear toenail fungus. Topical agents penetrate nail poorly, and most OTC products are not formulated to reach the nail bed. Some prescription topical formulations exist for specific situations, but they are not equivalent to the drugstore shelf.

A third error is assuming oral treatment is a quick fix. Oral antifungals can be effective, but courses run for weeks to months, require monitoring in some cases, and interact with other medications. The nail grows slowly, so visible improvement lags well behind microbiological cure.

The counterintuitive professional caveat: even successful treatment does not restore a normal nail immediately, and some nails never fully normalize because of permanent damage to the nail matrix. A cured infection can leave a thickened or discolored nail behind. Judging success by appearance too early leads people to stop treatment prematurely or to repeat courses unnecessarily.

Red flags that warrant prompt medical evaluation: spreading redness, warmth, or pain around the nail suggesting bacterial infection. A dark streak or band under the nail that is new or changing, which needs assessment to rule out melanoma. Nail changes in a person with diabetes or poor circulation. Rapid worsening or pus, which suggests a different or combined problem. Nail lifting with significant pain or discharge.

Comparing the main approaches

Approach What it targets Typical role Key limitation
Oral antifungal Organism throughout the nail unit Moderate to severe infection, multiple nails Requires prescription, monitoring, drug interactions
Prescription topical Organism near the nail surface Mild, early, or limited infection Poor penetration through thick nail
OTC topical products Surface-level organism Cosmetic or adjunctive use Weak evidence for cure in toenails
Nail removal (chemical or surgical) Removes infected material Severe or refractory cases, adjunct Temporary; regrowth can reinfect
Laser and light devices Heat or light to damage organism Niche or adjunctive use Inconsistent evidence, cost
Treating the skin reservoir Skin dermatophytes Prevention and recurrence reduction Does not clear established nail infection

The table makes one thing clear: no single approach dominates for every case, and the choice depends on severity, organism, nail count, and the person's health. The skin reservoir row is the one people skip, and skipping it is a frequent cause of reinfection.

The timeline you should expect

Phase Approximate timeframe What is happening
Exposure and barrier breach Days to weeks Spores lodge in a microgap; no visible change
Early colonization Weeks Organism spreads in keratin; subtle tip or side change
Visible infection 1 to 3 months Discoloration, thickening, crumbling at the edge
Spread to other nails Months Adjacent nails and skin reservoir involved
Treatment course 6 weeks to 12 weeks (oral), longer for some Drug suppresses organism; nail grows out slowly
Visible improvement 3 to 6 months New healthy nail emerges from the base
Full nail replacement 9 to 18 months (toenails) Slow growth determines final appearance

Toenails grow roughly 1 millimeter per month, which is why a completely new toenail can take a year or more to replace an infected one. Fingernails grow faster, closer to 3 millimeters per month, so fingernail timelines are shorter but still measured in months. These growth rates explain why every treatment plan must be judged over a long horizon, not weeks.

Practical actions and thresholds

Prevention is where the leverage is, and the steps are specific. Dry your feet thoroughly after bathing, especially between the toes, and give shoes at least 24 hours to dry between wears by rotating pairs. Choose moisture-wicking socks and change them when damp. Treat athlete's foot promptly, because the skin reservoir feeds the nail. Disinfect nail tools and avoid sharing clippers, and wear shower shoes in communal wet areas. Keep toenails trimmed straight across and avoid digging into the corners.

For decisions about treatment, a practical threshold is this: if a nail is discolored, thickened, or crumbling for more than a few weeks, get it assessed rather than self-treating. A dermatologist or podiatrist can confirm the diagnosis with a clipping or scraping, which distinguishes fungal infection from mimics. Confirm before committing to oral therapy, given the monitoring and interaction burden. If you have diabetes or circulation problems, treat any foot change as a priority rather than watching it.

For people with a confirmed infection, the practical sequence is to clear the organism with an appropriate agent, treat the skin reservoir at the same time, and maintain drying and footwear habits throughout and after treatment. Reinfection is common when habits revert. Expect visible improvement in months, not weeks, and plan for the timeline in the table above.

Limits of what is known and where certainty runs out

Several things remain genuinely uncertain. Topical and device-based treatments have uneven evidence, and the field lacks large head-to-head trials for many comparisons. Recurrence rates after successful treatment are substantial, but estimates vary widely by population and follow-up method, so any single number should be treated cautiously. The contribution of non-dermatophyte molds is debated, and their role in treatment failure is not fully settled. We also cannot reliably predict which individual nails will respond to a given approach; response depends on nail thickness, organism, immune status, and how much of the nail matrix is damaged.

What is well established is the mechanism: keratin invasion, barrier breach, moisture, and a skin reservoir. What is less certain is the best strategy for every edge case. That gap is exactly why confirmation and individualized planning matter more than any single product claim. If a source promises a fast, universal cure for nail fungus, the mechanism and the growth timeline say otherwise.