Why Do Centipedes Smell When Killed?

Centipedes smell when killed because crushing them ruptures specialized chemical-defense glands that run along their bodies. These glands store a cocktail of noxious compounds, including hydrogen cyanide and benzaldehyde, that the animal normally releases in small, controlled doses to repel predators. When you squash a centipede, dozens of those glands break open at once, dumping their entire chemical payload into the air and creating a sharp, often bitter or medicinal odor that is far stronger than what a living centipede would ever release on its own.

What You Are Actually Smelling

The smell is not a single chemical. Research on soil-dwelling centipedes in the order Geophilomorpha has identified a complex mixture of volatile and semi-volatile compounds in their defensive secretions. In the species Clinopodes flavidus, for example, the ventral secretion was found to contain hydrogen cyanide, benzaldehyde, benzoyl cyanide, mandelonitrile, benzoic acid, a fatty acid tentatively identified as 2-methyloctanoic acid, 2-methylpentanoic acid, and methyl 2-phenylacetate, along with several large proteins.1PubMed. Chemical defence of a centipede (Clinopodes flavidus) A related Mediterranean species, Himantarium gabrielis, produces a partly overlapping but distinct blend that includes benzyl nitrile, mandelonitrile benzoate, and an unusual compound called himantarine, alongside hydrogen cyanide and benzaldehyde.2PubMed. Chemistry of the sternal gland secretion of the Mediterranean centipede Himantarium gabrielis (Linnaeus, 1767) (Chilopoda: Geophilomorpha: Himantariidae)

Two compounds dominate the odor profile for most people. Hydrogen cyanide has a distinctive bitter-almond smell, though not everyone can detect it due to genetic variation in olfactory receptors. Benzaldehyde also smells like almonds or marzipan, but sweeter and less acrid. Together they give many centipede encounters that characteristic “chemical almond” note. The organic acids in the mix add a sour, rancid edge, which is why some people describe crushed centipedes as smelling less like almonds and more like a harsh cleaning product or an overripe, unpleasant sweetness.

Where the Chemicals Are Stored

The defensive glands in geophilomorph centipedes sit on the underside (ventral surface) of many body segments. Each segment can have a cluster of individual glandular units whose openings are arranged in defined sternal pore areas.3Zoological Journal of the Linnean Society. The sternal pore areas of geophilomorph centipedes (Chilopoda: Geophilomorpha) In Clinopodes flavidus, these glandular units are tucked into the space between the outer cuticle and the trunk muscles, so they do not reach deep into the body cavity.1PubMed. Chemical defence of a centipede (Clinopodes flavidus) Think of them as shallow pockets of toxic fluid, lined up segment by segment along the belly. A centipede can have dozens of these gland-bearing segments.

Because the glands are right under the skin and spread across much of the body’s length, any significant physical trauma will breach multiple glands simultaneously. A living centipede that is merely startled might squeeze secretion out of a few segments at a time, producing a faint whiff. A centipede that gets stepped on has almost all of those reservoirs ruptured at once, which is why the smell on a dead specimen is dramatically stronger.

The Chemistry Gets Worse After the Glands Break Open

Something interesting happens to the secretion after it leaves the gland. The most volatile and dangerous component, hydrogen cyanide, is not simply stored in free form. Instead, the glands hold precursor molecules, especially mandelonitrile, which are more chemically stable and less volatile while sealed inside the gland. Once the secretion is exposed to air, enzymes and spontaneous chemical breakdown convert those precursors into free hydrogen cyanide. Research on Himantarium gabrielis directly observed this post-secretion release of hydrogen cyanide from the breakdown of mandelonitrile and benzoyl nitrile using nuclear magnetic resonance analysis.2PubMed. Chemistry of the sternal gland secretion of the Mediterranean centipede Himantarium gabrielis (Linnaeus, 1767) (Chilopoda: Geophilomorpha: Himantariidae)

This delayed-release system matters because it means the smell you notice from a crushed centipede actually intensifies over the first few seconds after the kill. The initial rupture releases whatever free volatiles are in the glands, and then the precursor molecules keep generating hydrogen cyanide and other breakdown products as the secretion sits on your shoe, the floor, or wherever the centipede met its end. It is a chemical time bomb with a fuse measured in seconds, and it explains why a freshly killed centipede may smell worse a moment later than at the instant you squashed it.

The strategy is elegant from the centipede’s perspective. Storing cyanide as a stable precursor protects the animal’s own tissues from being poisoned by its defensive arsenal. It is only when the secretion is deployed outward, onto a predator’s mouth or skin, that the full toxic payload activates. Crushing short-circuits that control, dumping all the precursors at once and letting them react in a burst rather than a slow, targeted release.

Not Every Centipede Smells the Same Way

Centipedes belong to the class Chilopoda, which includes several distinct orders with very different lifestyles and body forms. The cyanide-producing species discussed above are almost entirely geophilomorphs, the long, slender, soil-dwelling centipedes that can have well over a hundred leg pairs. These are the group with the most elaborate ventral gland systems and the strongest defensive odors.

The common house centipede, Scutigera coleoptrata, belongs to a different order (Scutigeromorpha) and relies more on speed and agility than chemical defense. If you crush a house centipede, you are less likely to notice the sharp cyanide smell, though the experience is still unpleasant in its own way. House centipedes are fragile and tend to shed legs when grabbed, which is a different kind of anti-predator strategy altogether.

Large tropical centipedes in the order Scolopendromorpha, including the intimidating giant centipedes of the genus Scolopendra, invest heavily in venom delivered through modified front legs. Their chemical defense story emphasizes offensive weaponry rather than passive secretions. That said, their body tissues are not odorless, and the venom system itself contains bioactive peptides with antimicrobial properties. A novel antimicrobial peptide called scolopendin 1, isolated from Scolopendra subspinipes mutilans, was found to kill the fungus Candida albicans by triggering a buildup of reactive oxygen species inside the fungal cells, without damaging human red blood cells.4Insect Molecular Biology. Identification of a novel antimicrobial peptide, scolopendin 1, derived from centipede Scolopendra subspinipes mutilans and its antifungal mechanism The smell from crushing one of these large centipedes is more “biological” and less sharply chemical than the cyanide punch of a geophilomorph.

So the odor you encounter depends a lot on which centipede you’ve encountered. A soil centipede pulled from under a rock might give you a bitter-almond blast. A house centipede squished on the bathroom wall is more likely to leave a faint, vaguely musty smear. A large scolopendrid crushed outdoors may smell more like raw meat or a general “bug” smell. The cyanide-producing geophilomorphs are the ones responsible for the most memorably pungent encounters.

Venom and Defensive Secretions Are Completely Separate Systems

A common point of confusion: the smell from a crushed centipede is not venom. Centipede venom is produced in glands connected to the forcipules, which are the pair of modified front legs that act like fangs. Venom is an offensive tool, injected into prey or aggressors through a bite. The defensive secretion from sternal or ventral glands, on the other hand, is a passive chemical barrier that oozes from the body’s underside. A centipede uses these two systems for entirely different purposes, and the chemical compositions are largely distinct.

When researchers describe the sternal gland secretion of Himantarium gabrielis as a “viscous and proteinaceous” fluid containing cyanogenic compounds, they are talking about a substance that comes from pores on the belly segments, not from anything near the head.2PubMed. Chemistry of the sternal gland secretion of the Mediterranean centipede Himantarium gabrielis (Linnaeus, 1767) (Chilopoda: Geophilomorpha: Himantariidae) The smell you get when crushing a centipede is almost entirely from the defensive secretion, not from the venom. Venom in centipedes is protein-rich and enzymatic, and it does not have the same sharp volatile character. You would not smell a centipede’s venom unless you were doing something unusual, like handling a freshly milked venom sample.

Is the Smell Dangerous to You?

Hydrogen cyanide is genuinely toxic, so it is reasonable to wonder whether the smell from a crushed centipede poses a health risk. The short answer is no, at least not at the scale of one or a few centipedes crushed indoors or outdoors. The amount of hydrogen cyanide produced by a single centipede is minuscule compared to the concentrations needed to harm a person. Cyanide gas becomes dangerous to humans at sustained concentrations well above what a single small arthropod can generate, and the gas disperses rapidly in any ventilated space.

Skin contact with the secretion is a different matter, though still minor for most people. The organic acids and cyanogenic compounds can cause mild irritation, especially on sensitive skin or mucous membranes. If you’ve handled a crushed centipede and your fingers tingle or burn slightly, that is likely the benzoic acid and related compounds acting as mild irritants. Washing your hands with soap and water takes care of it quickly. People who are allergic to arthropod secretions could, in theory, have a stronger reaction, but documented severe allergic responses to centipede defensive secretions are extremely rare. The venom from a centipede bite is far more likely to cause a significant medical reaction than the defensive smell.

One practical note: if you crush a centipede on a porous surface like wood, fabric, or grout, the organic acids and oily compounds in the secretion can leave a lingering odor. The smell dissipates as the volatile components evaporate, but the less volatile fatty acids and esters can stick around for hours. Wiping with a mild alkaline cleaner or simply with soap and water speeds the process up.

Why Centipedes Did Not Evolve to Smell Worse

Given that the secretion’s job is to repel predators, you might expect natural selection to have pushed it toward being as foul as possible. But the compounds in centipede defensive glands were not selected for their smell alone. Hydrogen cyanide is an acute respiratory toxin. Benzaldehyde and the organic acids are irritants to mucous membranes and skin. The cocktail works not because it smells bad to a predator’s nose, but because it is genuinely painful and toxic when a bird, lizard, or small mammal bites into the centipede. The smell is almost incidental, a byproduct of the fact that the active defensive compounds happen to be volatile.

The precursor strategy described earlier reinforces this interpretation. Storing hydrogen cyanide as mandelonitrile and releasing it upon tissue disruption is a widespread defense mechanism in arthropods and even some plants. Certain millipedes, some beetles, and various plant species use essentially the same biochemical trick. In centipedes, the system is particularly well developed in the geophilomorphs, which are slow-moving burrowers without the speed to outrun most predators.1PubMed. Chemical defence of a centipede (Clinopodes flavidus) A fast house centipede can sprint away from danger. A geophilomorph buried in soil cannot, so it leans heavily on chemical deterrence instead.

Centipedes and Millipedes Sometimes Get Confused

People often lump centipedes and millipedes together, and both groups include species that produce hydrogen cyanide for defense. But the systems are anatomically distinct. Millipedes (class Diplopoda) typically produce cyanide from ozopores, which are lateral openings along their body segments. Centipede cyanide comes from ventral sternal glands, as described above.3Zoological Journal of the Linnean Society. The sternal pore areas of geophilomorph centipedes (Chilopoda: Geophilomorpha) The chemical endpoint is similar, but the plumbing is different.

Millipedes are generally more famous for defensive chemistry because they are slower, more conspicuous, and more frequently handled by curious humans. Many millipede species produce brightly colored secretions alongside their cyanide, sometimes staining skin brown or yellow. Centipede secretions tend to be less visually dramatic, which is why the smell catches people off guard. You might not see anything on the dead centipede, but the odor hits you seconds after the kill.

If you’ve ever picked up a large flat-backed millipede and noticed an almond-cherry smell on your fingers, you’ve experienced the millipede version of the same basic chemistry. The centipede version tends to be somewhat sharper and more acrid, partly because the blend of accompanying organic acids differs and partly because centipede secretions often contain a higher proportion of benzaldehyde relative to the total mix.

Antimicrobial Functions Beyond Predator Defense

The defensive glands may serve a secondary purpose that has nothing to do with predators. Soil-dwelling centipedes spend their lives in an environment saturated with bacteria and fungi. Several of the compounds found in their secretions, including hydrogen cyanide and benzoic acid, have well-documented antimicrobial properties. It is plausible, though not conclusively proven for wild populations, that the ventral gland secretion helps protect the centipede’s soft ventral cuticle from microbial infection.

Research on centipede antimicrobial compounds has focused more on the venom side, particularly in scolopendrids. The discovery of scolopendin 1 and its ability to kill fungal cells through oxidative stress has generated interest in centipede-derived peptides as potential sources of new antifungal drugs.4Insect Molecular Biology. Identification of a novel antimicrobial peptide, scolopendin 1, derived from centipede Scolopendra subspinipes mutilans and its antifungal mechanism Whether similar bioactive peptides exist in the sternal gland secretions of geophilomorphs is an open question. The large proteins found in the defensive secretions of both Clinopodes flavidus and Himantarium gabrielis have been identified by molecular weight but their specific biological functions remain largely uncharacterized.1PubMed. Chemical defence of a centipede (Clinopodes flavidus) Some could be enzymes involved in activating the cyanogenic precursors. Others might have antimicrobial roles. The chemistry of centipede defensive secretions is still a relatively small field, and much of what these proteins do remains unknown.