Nail fungus starts when a microscopic fungal spore slips beneath the nail plate and settles in the space between the nail and the nail bed. That gap is warm, dark, and slightly moist, and it holds a thin layer of keratin, the protein that makes up the nail. Fungi eat keratin. Once a spore lands there and finds a break in the seal, it germinates, grows as branching threads called hyphae, and begins digesting the nail from below. The visible changes people notice come later.
The phrase "nail fungus" usually means onychomycosis, and roughly 90 percent of cases are caused by a group of molds called dermatophytes, with Trichophyton rubrum responsible for most of them. Yeasts and non-dermatophyte molds account for the rest. The organism does not need to be strong to infect you. It needs an opening, moisture, and time.
The keratin invasion mechanism
Human nails are built from tightly packed keratin, a durable protein that resists most microbes. Dermatophytes are one of the few organisms that evolved enzymes, called keratinases, specifically to break keratin down into nutrients. That is why these fungi target skin, hair, and nails and rarely cause deep internal infection.
The infection begins at the nail unit's weakest point, which is almost always the free edge or the side of the nail where it meets the skin. This entry route is called distal and lateral subungual onychomycosis, and it is the most common pattern. A spore or a fragment of hyphae lodges in that crevice. The nail plate sits above it, the nail bed below it, and the seal that normally keeps debris out is compromised by a tiny separation. The fungus then grows slowly toward the cuticle and deeper into the nail bed.
Fungal growth in a nail is slow because the environment is nutrient-poor and the organism's metabolism is adapted to patience. Hyphae advance through the keratin layer at a rate measured in fractions of a millimeter per month. That sluggish biology explains why an infection can be present for months before anything looks wrong, and why successful treatment takes months of continuous drug exposure.
As hyphae digest keratin, three things change the nail's appearance. First, the fungal mass itself appears as yellow or white debris under the nail. Second, the nail bed inflames and thickens, lifting the nail plate away, a process called subungual hyperkeratosis. Third, the nail plate loses its structural integrity and becomes brittle, crumbly, or discolored. The nail is not being "eaten" by a single organism so much as remodeled by an ongoing enzymatic assault.
How long an infection takes to show
The timeline below reflects the typical course for a healthy adult with distal subungual infection. Individual timing varies with circulation, immune status, nail growth rate, and how much of the nail is involved.
| Stage | Typical time from exposure | What is happening |
|---|---|---|
| Spore landing | Day 0 | Spore or hyphal fragment lodges under the free edge |
| Germination | Days to weeks | Hyphae form and begin releasing keratinases |
| Establishment | 1-3 months | Fungus spreads quietly along the nail bed; no visible change |
| First visible sign | 3-12 months | Yellow or white streak near the free edge; subungual debris |
| Nail separation | 6-18 months | Plate lifts from the bed; thickening and crumbling |
| Full nail involvement | 12-24+ months | Matrix and much of the nail bed colonized |
These ranges are broad on purpose. Toenails grow roughly 1 to 1.5 millimeters per month, slower than fingernails, and that slow growth is one reason toenail infections dominate. Onychomycosis affects an estimated 5 to 10 percent of adults in the general population and a much higher share of people over age 60, according to dermatologic survey data. The fungus does not need a dramatic entry, just a persistent one.
The opening: why healthy nails stay clear
Most people are exposed to dermatophyte spores repeatedly and never develop nail fungus. The intact nail unit is a remarkably good barrier. The space under the free edge is sealed by the hyponychium, a thin layer of skin that forms a waterproof barrier. When that seal is disrupted, the space becomes permissive.
Several everyday events break the seal. Trimming the nail too short, aggressive cleaning under the nail, or a minor injury like a stubbed toe creates a gap. Tight shoes that repeatedly press the toe against the shoe box cause micro-trauma at the free edge. Walking barefoot in damp communal areas, such as pools, locker rooms, and shared showers, exposes the nail to spore-laden skin scales from other people. Occupational moisture, such as long shifts in sweaty work boots, keeps the environment humid.
Dermatophytes grow best at a pH near neutral and a temperature near body temperature. A closed shoe is close to a perfect incubator. The inside of a shoe can stay warm and humid for hours, and the sweat trapped against the skin loosens keratin and softens the nail seal. This combination, warmth plus moisture plus footwear, is why athletes, military personnel, and people whose jobs involve long periods in occlusive footwear carry higher risk.
A supporting infection that travels
Nail fungus rarely appears out of nowhere. The same dermatophytes that infect nails commonly infect the skin of the foot first, causing athlete's foot, also known as tinea pedis. That infection lives between the toes and on the soles, where it is not visible as nail change. Skin scales carrying the fungus shed onto socks, shoes, and floors.
From that reservoir, the fungus reaches the nail via direct spread or through a shared towel or footwear. This is why treating the nails without addressing foot skin leaves a persistent source of reinfection. Studies of recurrence consistently show that untreated tinea pedis predicts the nail infection coming back after an apparent cure.
The reverse direction also occurs. A fungal nail can seed the surrounding skin, and in some people the skin around the nail, the paronychia, becomes inflamed. When the skin barrier is broken by inflammation or injury, bacterial infection can enter alongside the fungus. A sudden red, swollen, painful nail fold with pus is not a fungal symptom but a warning of likely bacterial infection and needs evaluation promptly.
A counterintuitive detail: the worst nails are not always infected
The most important professional caveat in nail disease is that abnormal-looking nails are frequently not fungal at all. A large share of nails that look thick, yellow, or crumbly turn out to have dystrophy, trauma, or another condition. Nail psoriasis can mimic onychomycosis closely, and it does not respond to antifungal drugs. A form of nail injury from repeated footwear pressure, called traumatic onychodystrophy, is common in runners and in older adults.
Laboratory confirmation changes management. A nail clipping examined under a microscope, with a simple stain, or tested with molecular methods can establish whether a fungus is present. Treating by appearance alone risks months of unnecessary drug exposure if the cause is not infectious. The authoritative guidance is that diagnosis of onychomycosis should rest on evidence of the organism, not visual appearance, because the visual overlap with other nail disorders is wide.
Another counterintuitive point concerns severity. The amount of visible nail damage does not track reliably with how long the infection has been present or how hard it will be to treat. A nail that has detached from the bed often involves the nail matrix, the tissue that makes new nail, and matrix involvement is a reason treatment may be less effective.
What helps and what does not
The evidence is clear on a few practical points and murky on others. Moisture control and barrier protection are supported. Preventing the fungus from reaching the nail is more reliable than trying to kill it after it has established in the nail bed.
Keep feet dry and toes separated; change socks when damp; allow shoes to dry fully between uses. Sweat-soaked shoes need at least a full day to dry and a second pair helps. Do not share clippers, towels, or footwear; clean clippers after use on an infected nail; use a dedicated set for infected feet. Do not cut nails extremely short or aggressively clean under the free edge; this creates the opening the fungus exploits. Wear footwear in communal showers, pool decks, and locker rooms; the risk is real even when the surface looks clean. Treat skin-scale athlete's foot when present, because untreated skin infection predicts nail reinfection.
Red-flag findings that call for prompt evaluation rather than self-care include: sudden pain, redness, or swelling around the nail fold; pus or foul odor; a dark streak or pigmented band in the nail; the nail loosening with no clear cause; and nail changes in a person with diabetes or poor circulation, who should not attempt self-management because warning signs can be blunted.
A table helps separate prevention from treatment, because the two are often confused in consumer advice.
| Approach | What it targets | Evidence status |
|---|---|---|
| Keeping feet dry and separated | Moisture and spore exposure | Well supported as preventive |
| Antifungal skin creams for athlete's foot | Skin reservoir of dermatophytes | Well supported; prevents spread |
| Oral antifungal drugs | Established nail bed infection | Well supported when confirmed; requires prescriber monitoring |
| Antifungal nail lacquers | Mild distal infection | Modest evidence; limited penetration |
| Home vinegar soaks | Fungus on the nail surface | No reliable evidence; may irritate skin |
| Laser and light devices | Fungal nail bed | Limited evidence; inconsistent outcomes |
| Tea tree oil | Surface fungus | No robust evidence; avoid if skin irritation |
Comparison of treatment routes is really a comparison of drug delivery. The nail plate is dense and relatively impermeable, so a cream or lacquer must penetrate it to reach the nail bed where the fungus grows. Oral drugs reach the nail matrix through the bloodstream and are deposited into the growing nail. That is why oral therapy treats the infection from the inside and why it takes months, because the nail must grow out the already-infected portion.
Why some infections return and why treatment is slow
Cure rates for oral regimens are good but not universal. Published trials and treatment guidance report that a substantial minority of patients do not achieve complete cure, and recurrence within one to several years is common. Reinfections are often new infections from the same environmental (shoes, socks, towels, and damp indoor floors) reservoirs, not failures of the drug.
The slow-outgrowth problem is the key limitation. A drug can stop fungal growth, but the previously infected nail must be replaced by healthy nail from the matrix, and toenail growth takes 12 to 18 months for the whole nail. Any treatment shorter than that leaves infected material behind. This is the single most common reason people abandon therapy and conclude it "didn't work."
Drug interactions and liver monitoring apply to oral antifungals. Treatment should be prescribed and followed by a clinician, and monitoring recommendations vary with the specific drug and the patient's health status. Do not start oral therapy based on a web description. And do not expect any topical product to cure an infection that has reached the nail matrix or detached the nail.
Aging slows nail growth and reduces circulation, and immune suppression, including diabetes, transplants, and some medications, magnifies risk. In these groups the infection is harder to clear and recurrence is more likely. This is not a reason to delay care. It is a reason to confirm the diagnosis and follow through on the full course.
The plain-language version of everything above: nail fungus starts as a tiny hitchhiker on skin scales that finds a soft, warm, dark gap under your nail, and it wins by slow digestion rather than aggressive invasion. The way to stop it is to close the gap before it gets in, and once it is in, to treat long enough for the whole infected nail to grow out.