Earwax exists because your ear canal needs a self-maintaining defense system. It traps debris, fights off bacteria and fungi, waterproofs the delicate skin lining the canal, and slowly carries all of it out of your ear without you lifting a finger. Far from being waste or a sign of poor hygiene, earwax is one of the body’s more elegant solutions to protecting a vulnerable opening.
How Your Ear Canal Makes Earwax
Earwax is produced by two types of glands tucked into the outer third of your ear canal, the section closest to the outside world. Ceruminous glands, which are modified sweat glands, secrete a watery component. Sebaceous glands, attached to the tiny hairs in the canal, add oily, fatty secretions called sebum. These two secretions mix together with shed skin cells and hair to form the sticky or flaky substance you recognize as earwax.
Only the outer portion of your ear canal produces wax. The deeper two-thirds, closer to the eardrum, has no wax-producing glands at all. This means earwax found deep in the canal has usually been pushed there, often by cotton swabs or earbuds, rather than forming in place.
What Earwax Is Made Of
Earwax is one of the most chemically diverse substances on the surface of your body. It contains a rich mixture of fats, including fatty acids, cholesterol compounds, wax esters, and triglycerides. Researchers using advanced chemical analysis have identified six broad classes of fat molecules in earwax: alkanes, alkenes, fatty acids, esters, triglycerides, and cholesterol esters. Beyond fats, earwax also contains amino acids, carbohydrates, and proteins.
This complex makeup isn’t random. Each component serves a purpose. The fatty acids and wax esters give earwax its sticky, water-repelling texture. The proteins include powerful antimicrobial agents. The overall mixture creates a substance that can simultaneously lubricate, trap particles, and kill microbes.
Protection Against Infection
One of the most important reasons your body produces earwax is to keep the ear canal free of infection. Earwax contains a surprisingly sophisticated arsenal of antimicrobial weapons. Multiple types of defensive proteins have been identified in it, including defensins that attack a wide range of bacteria, cathelicidin that disrupts bacterial cell membranes, and lactoferrin that starves bacteria of the iron they need to grow. Earwax also contains immunoglobulins (IgG and IgA), the same type of immune proteins found in saliva and breast milk.
The fat content itself contributes to infection control. Certain fatty acids in earwax, particularly lauric acid and sapienic acid, have direct antimicrobial effects against both bacteria and fungi. Sphingoid compounds in the wax work against gram-positive and gram-negative bacteria as well as viruses. On top of all this, earwax helps maintain an acidic environment in the ear canal, with a pH between 5.2 and 7.0, which discourages microbial growth the same way the acidic surface of healthy skin does.
A Physical Barrier for Dust and Insects
The sticky texture of earwax turns the outer ear canal into a flytrap for airborne particles. Dust, dirt, pollen, and tiny debris stick to the wax before they can reach the eardrum. Without this barrier, particles could accumulate against the eardrum and interfere with hearing or cause irritation.
Earwax also serves as an insect deterrent. The bitter taste and waxy consistency discourage small insects from crawling deeper into the ear canal. The tiny hairs lining the canal work alongside the wax to create an environment that most insects will avoid or get stuck in before reaching sensitive structures.
Lubrication and Waterproofing
The skin inside your ear canal is thin and prone to drying out or cracking. The fatty secretions in earwax coat this skin and keep it supple. Without adequate lubrication, the canal would become dry and itchy, and the skin could crack open, creating entry points for infection. This is actually observed in populations that naturally produce very little earwax. People of Japanese and Chinese descent, for instance, have a significant tendency to underproduce earwax, which can result in dryness of the external ear canal.
The waterproofing function matters too. When water enters the ear during swimming or showering, the waxy coating prevents it from soaking into the canal skin and causing it to swell and break down, a process called maceration. This is one reason why people who swim frequently and have insufficient earwax are more prone to swimmer’s ear.
How the Ear Cleans Itself
Your ear canal has a built-in conveyor belt. The skin lining the canal constantly grows outward, from the eardrum toward the ear opening, carrying earwax and trapped debris with it. This process, called epithelial migration, moves at a measurable pace: about 0.1 millimeters per day along the ear canal. That’s roughly the speed your fingernails grow.
The migration works through two mechanisms. Skin cells are passively pushed outward as new cells form behind them, and individual cells also actively crawl forward using tiny internal protein structures. The movement starts at the center of the eardrum and fans outward along the canal walls. Jaw movement from chewing and talking helps the process along by gently flexing the cartilage portion of the canal, loosening wax so it can continue its journey out.
Once earwax reaches the outer opening, it typically falls out on its own or washes away during bathing. The entire cycle means the ear canal is continuously replacing its lining and refreshing its wax coating without any intervention.
Why Earwax Type Varies by Genetics
Not everyone’s earwax looks the same, and the difference comes down to a single gene. The ABCC11 gene determines whether you produce wet or dry earwax. One version of the gene produces the honey-colored, sticky wet type. A variant with a single change in the DNA sequence produces the gray, flaky dry type.
The distribution of these types follows a striking geographic pattern. The dry earwax variant is found in close to 100% of people from northern China and Korea, at intermediate frequencies in Japan and southern Asia, and at only 10 to 20 percent in western European populations. It is almost completely absent in people of African descent. The same gene variant also affects body odor and sweat production, which is why dry earwax is associated with less underarm odor.
Why Earwax Sometimes Builds Up
When the self-cleaning system works properly, earwax takes care of itself. But several factors can disrupt the process and lead to buildup or blockage. Some people simply produce more wax than their canals can clear. Others have narrow or unusually shaped ear canals that interfere with the outward migration of wax. Excess hair in the ear canal can also trap wax and slow its movement.
Age plays a role. People over 55 are more prone to impaction, partly because earwax tends to become drier and harder with age, making it more difficult to migrate out naturally. Skin conditions like eczema can alter the environment of the ear canal and change how wax behaves.
The most common cause of problematic buildup, though, is self-inflicted. Cotton swabs push wax deeper into the canal rather than removing it, compacting it against the eardrum where it was never meant to be. Cotton swabs also stimulate the tiny hairs inside the ear canal, which send signals to the wax-producing glands to increase output. Hearing aids, earplugs, and earbuds create similar problems by blocking the canal’s natural exit route and stimulating additional wax production. If you regularly use any of these devices, you’re more likely to experience buildup than someone who leaves their ears alone.

