What causes nail fungus?

March 10, 2026

What Causes Nail Fungus? 🦶

This article is written by mr.hotsia, a long term traveler and storyteller who runs a YouTube travel channel followed by over a million followers. Over the years he has crossed borders and backroads throughout Thailand, Laos, Vietnam, Cambodia, Myanmar, India and many other Asian countries, sleeping in small guesthouses, village homes and roadside inns. Along the way he has listened to real life health stories from locals, watched how people actually live day to day, and collected simple lifestyle ideas that may help support better wellbeing in practical, realistic ways.

In hot markets, rainy bus stations, guesthouses with shared showers, and long days spent walking in damp shoes, one small problem shows up more often than many people expect: a toenail that slowly turns yellow, thick, rough, or brittle. At first it looks minor. A bit of discoloration. A corner that chips easily. A nail that feels harder to trim. Then months pass, and the change becomes more obvious. That common problem is often called nail fungus, and the medical name is onychomycosis. It is caused by several types of fungi, and these fungi tend to thrive in warm, moist environments.

So what causes nail fungus?

The simplest answer is this: nail fungus happens when fungi get into or under a nail and begin to grow. These organisms like warmth, moisture, and darkness, which is one reason toenails are affected more often than fingernails. Shoes, sweaty feet, shared wet surfaces, and damaged nails can all create the kind of conditions fungi enjoy. In many cases, the same fungi that cause athlete’s foot can also spread into the nails.

The Real Cause Is Fungus, but the Real Story Is Conditions

People sometimes ask what “creates” nail fungus, as if it appears from nowhere. The fungus itself is the direct cause. But usually the fungus needs an opportunity. It needs a place where it can settle in, multiply, and avoid being cleared away. That opportunity often comes from daily conditions such as damp feet, repeated pressure on the nails, skin fungus nearby, shared floors in wet public areas, or a nail that has already been weakened.

Think of it like weeds in a crack between stones. The seed may be the direct cause, but the crack, the moisture, and the lack of disturbance help it grow. Nail fungus works in a similar way. The fungi may be around, but they tend to take hold when the nail or surrounding skin gives them a suitable home. This is one reason prevention habits matter so much.

Warm, Damp Feet Are One of the Biggest Reasons

One of the most common causes behind nail fungus is keeping the feet warm and damp for long periods. Health sources note that fungal nail infections are more likely when feet stay constantly warm and moist, especially inside shoes for hours at a time. Sweaty feet, long use of trainers or closed shoes, and limited airflow can all make fungal growth easier.

This makes a lot of sense in real life. After long travel days, many people spend hours in socks and shoes, walking through heat, rain, puddles, and crowded streets. The feet sweat, the shoes trap moisture, and the nails sit in a dark, humid pocket. For fungus, that is not bad weather. That is luxury housing. The longer those damp conditions continue, the easier it may be for infection to develop.

Athlete’s Foot Can Spread to the Nails

Another major cause of nail fungus is fungus already living on the skin of the feet. Dermatology guidance explains that the fungi responsible for athlete’s foot can spread to the toenails and lead to nail fungus. This means a person may begin with itchy, peeling, cracked, or scaly skin between the toes, and later the nails become involved too.

This is one reason athlete’s foot should not be shrugged off as a tiny annoyance. The skin and nails live side by side. If fungus is active on the skin and conditions remain favorable, the toenail may become the next stop on the journey. That is why treating visible foot fungus early may help reduce the chance of a nail infection taking hold.

Damaged Nails Give Fungus an Opening

A healthy nail is a stronger barrier than a nail that has already been injured. Several NHS and podiatry sources note that nail trauma or damage can make fungal infection more likely. Repeated pressure from tight shoes, stubbing the toe, sports friction, or other nail injury may create small openings or structural weakness that help fungi get in.

This is easy to picture. A smooth wall keeps moisture out better than a cracked one. A damaged nail may become that cracked wall. Runners, hikers, workers who stand all day, and people who wear tight shoes regularly may all experience repeated small trauma to the nails. Those tiny injuries may not seem important at the time, but they can help create the path fungal infection needs.

Shared Wet Surfaces and Grooming Tools Can Spread It

Nail fungus can also be caused by exposure to fungi on everyday surfaces and objects. The American Academy of Dermatology notes that fungi can thrive on unwashed shower floors, nail grooming tools, and towels, which is part of why nail fungus can spread from person to person or from place to place.

Communal showers, locker rooms, pool areas, and shared bathrooms can all play a role, especially if a person walks barefoot and already has vulnerable skin or nails. Shared clippers, files, or poorly cleaned nail tools may also increase risk. This does not mean every shared surface automatically causes infection, but it does mean fungi do not need a grand entrance. Sometimes they just need one damp floor and one small opportunity.

Shoes and Socks Can Keep the Problem Going

The cause is not only where the fungus starts. It is also where it keeps living. Shoes and socks that stay damp may continue to support fungal growth. Dermatology guidance on prevention notes that shoes can harbor the fungi involved in nail infections, particularly when athlete’s foot is also present.

That means a person may treat the skin or trim the nail, but if the footwear remains damp, old, or contaminated, the environment may still favor re-exposure. In daily life this is why dry socks, breathable footwear, and attention to foot hygiene may help support healthier nails. It is not glamorous advice, but many stubborn problems are kept alive by ordinary habits.

Age Can Increase the Risk

Nail fungus is common overall, and older adults tend to be affected more often. Mayo Clinic describes nail fungus as a common infection, and NHS materials also reflect that it becomes more common with age. While age itself is not a fungus, aging may bring slower nail growth, thicker nails, more years of exposure, and more chances for minor trauma or circulation-related foot changes.

This helps explain why a person may go decades without trouble and then start noticing nail changes later in life. The nail may grow more slowly, previous shoe pressure may have changed its shape, and the feet may not dry as quickly or recover as easily. In that setting, fungi may find it easier to settle in and harder to remove.

Frequent Water Exposure Can Matter for Fingernails

Toenails are affected more often, but fingernails can develop fungal infection too. NHS material notes that fingernail infections may be more likely in people whose hands are in water a lot, such as cooks or cleaners, because frequent washing or wet work may affect the protective skin around the nail and make entry easier for fungi.

So while toenails usually attract the spotlight, fingernails are not immune. Repeated wet work, small skin damage, and ongoing exposure around the nail folds may create a similar opening for fungal infection. The setting changes, but the pattern is familiar: moisture, weakened barriers, and time.

Not Every Thick or Yellow Nail Is Fungus

This point matters. A nail may look thick, brittle, or oddly colored for reasons other than fungus. Mayo Clinic notes that a healthcare professional may examine the nails and sometimes take scrapings or clippings because other conditions can mimic nail fungus.

That means the “cause” is not always fungus even when the nail looks suspicious. Injury, psoriasis, and other nail changes can resemble fungal infection. So while fungus is a common cause of thickened or discolored nails, guessing at home is not always enough. If the nail has changed and stays changed, proper evaluation may be wise.

Why Toenails Get Hit More Often Than Fingernails

Health sources consistently note that toenails are more commonly affected than fingernails. That pattern likely reflects their environment: less airflow, more darkness, more sweating, more pressure, and more time trapped inside shoes.

A fingernail lives in daylight and air most of the time. A toenail lives in a warm cave made of leather, cloth, friction, and sweat. It is not surprising which one the fungi prefer. In tropical and humid settings especially, the feet may spend many hours in conditions that support fungal growth, which helps explain why toenail infections are so common in the real world.

Nail Fungus Often Builds Slowly

Another reason people ask what “causes” it is because the infection often appears gradually. Mayo Clinic describes nail fungus as beginning as a small white or yellow-brown spot under the tip of a nail, then potentially going deeper and leading to discoloration, thickening, and crumbling.

Because the change is slow, people often miss the early cause. They do not remember the athlete’s foot from months earlier, the tight shoes from a long trip, the repeated sweaty days, or the nail injury that seemed trivial at the time. By the time the nail is thick and rough, the original trigger may feel invisible. But the path was often being laid long before the nail clearly changed.

A Practical Way to Understand the Cause

If you want the cleanest summary, here it is.

Nail fungus is caused by fungi. But those fungi usually need help from conditions such as:

  • warm, damp feet

  • sweaty or tight shoes

  • athlete’s foot

  • damaged nails

  • shared wet surfaces

  • contaminated grooming tools

  • repeated moisture exposure

  • time and neglect

That combination is what often turns a normal nail into a fungal one.

Imagine a door in the rainy season. If the wood stays dry and solid, mold has a harder time taking hold. But if the door remains damp, cracked, shaded, and never fully aired out, tiny growth can settle in and spread. A nail works much the same way. The fungus is the direct cause, but the daily environment decides how welcome it feels. This is an inference from the medical guidance on warm, moist environments, trauma, and spread from athlete’s foot.

Final Thoughts

So, what causes nail fungus?

Nail fungus is caused by fungi that infect the nail, most often when conditions favor their growth. Warm, moist feet, sweaty shoes, athlete’s foot, damaged nails, shared damp surfaces, and contaminated nail tools are some of the most common reasons it develops. Toenails are more often affected because they spend long hours in exactly the kind of environment fungi prefer.

The useful lesson is not fear, but attention. Nail fungus rarely arrives with a drumroll. It usually enters quietly through routine. A damp sock. A cracked toe web. A tight shoe. A neglected athlete’s foot rash. A nail that took one hit too many. When you understand the causes, the whole issue becomes less mysterious. And once something becomes less mysterious, it usually becomes easier to manage wisely.

FAQs About What Causes Nail Fungus

1. What is the direct cause of nail fungus?

The direct cause is infection by fungi that get into or under the nail and begin to grow.

2. Can sweaty feet cause nail fungus?

Sweaty, constantly damp feet can increase the chance of fungal nail infection because fungi thrive in warm, moist environments.

3. Can athlete’s foot cause nail fungus?

Yes. The fungi that cause athlete’s foot can spread to the toenails and lead to nail fungus.

4. Can damaged nails lead to fungus?

Yes. Trauma or damage to the nail can make infection more likely by giving fungi an easier way in.

5. Can you get nail fungus from public showers?

Shared wet surfaces may carry fungi, so communal showers and similar damp areas can increase risk, especially if you walk barefoot.

6. Can nail clippers spread nail fungus?

Yes. Grooming tools can harbor fungi if not properly cleaned, which may help spread infection.

7. Why do toenails get fungus more often than fingernails?

Toenails are usually kept in warm, dark, damp shoes for long periods, which creates conditions fungi prefer.

8. Can old shoes contribute to nail fungus?

Shoes can help keep the environment moist and may harbor fungi, especially when athlete’s foot is present.

9. Is every thick yellow nail caused by fungus?

No. Other nail conditions can look similar, so a changed nail is not always fungal.

10. Does nail fungus usually come from one single cause?

Often it is a combination of factors, such as fungi plus moisture, shoe pressure, athlete’s foot, or nail damage.

Mr.Hotsia
I’m Mr.Hotsia, sharing 30 years of travel experiences with readers worldwide. This review is based on my personal journey and what I’ve learned along the way.

Mr.Hotsia

I’m Mr.Hotsia, sharing 30 years of travel experiences with readers worldwide. This review is based on my personal journey and what I’ve learned along the way. Learn more