The Millipede That Protects Itself with Cyanide

Cyanide millipedes use chemical warfare to ward off predators. They also make critical nutrients available in forest ecosystems, and yet these amazing critters are understudied.

Keep an eye on the ground and any decaying trees as you’re walking the trails of the Pacific Northwest and you’re likely to see bright yellow spots moving along the ground, look closer and you’ll notice those spots are on the “keels” of a dark millipede about 2 inches long. That’s the yellow-spotted millipede (Harpaphe haydeniana) — AKA almond-scented millipede, AKA cyanide millipede.

Just like the bright colors of the monarch butterfly, and other aposematic species, these yellow spots are a warning to potential predators – “Don’t mess with me!”

If you were to pick up a yellow-spotted millipede, it would likely curl into a spiral and exude hydrogen cyanide on you, accompanied by the strong scent of toasted almonds (that’s the smell of cyanide). The amount secreted by an individual millipede is not enough to seriously harm a human, though it may stain the skin or burn and blister if you’re sensitive (wash your hands if you handle one). This amount is lethal, however, to birds and rodents. Similar cyanide producing millipedes in the Appalachians can produce 18 times the amount of the toxin needed to kill a pigeon. The threat is enough to protect these abundant arthropods from most predators (they do have a beetle nemesis).

Cyanide is so toxic to most living organisms that it was once thought that cyanide millipedes were running the risk of killing themselves each time released this secretion; that they must close off the openings that they use to breathe in order to survive. But scientists found that the millipedes are immune to cyanide — able to process it and convert it into harmless chemicals.

Cyanide millipede taken at Cape Lookout State Park in Oregon. Photo © Lisa Feldkamp / The Nature Conservancy

Abundant may be an understatement for the yellow-spotted millipede. In some places, yellow-spotted millipedes can reach densities of 20-90 individuals per square meter, an unusually high density for millipedes in a conifer forest. So many millipedes with so few predators eat a lot of food and their favorite food is leaf litter, primarily needles from trees like the Douglas fir and Sitka spruce.

“They are in fact the most important detritivore, or organism that actually feeds on dead leaves and litter and turns it into feces so it can enter the soil decomposition recycling chain,” Andrew Moldenke of Oregon State University said, as reported by the Nature Conservancy in Washington. “From a conservation point of view, they’re absolutely critical.”

Within their range yellow-spotted millipedes eat 33 to 50 percent of all coniferous and deciduous leaf litter. For a millipede, eating is a complex process – they crush their food, filter it, and crush it again increasing the availability of nutrients 40,000-fold. The millipede uses the nutrients it needs and then excretes much of that rich nutrient load onto the forest floor where it becomes part of a complex food web.

And if you think all that is crazy, this is how they reproduce.

“What people are totally blown away by are their mating habits,” Moldenke reports. “They get together by tens of thousands to millions in one spot and mate.”

Despite their abundance and importance, millipedes remain understudied. 12,000 species of millipedes have been identified globally, but estimates of the true number of species out there on Earth range from 15,000 to 80,000 – either way there are at least 3,000 millipede species out there to discover. You can contribute to scientific knowledge of millipedes by reporting your sightings to iNaturalist.

Join the Discussion

Join the Discussion

Please note that all comments are moderated and may take some time to appear.


  1. Hidayah69 says:

    Cara berantas kaki seribu bagaimana.

  2. John Cooper says:

    I have a massive infestation in my house in Bali. How do you get rid of them? What kind of product can I use?

  3. Kelly Marang says:

    I am trying to determine if the leaf eaters I photographed today in North Idaho are in fact the Harpaphe millipede or if they may be a caterpillar disguised as one because I certainly don’t see the “legs” in the ones I found appearing as a millipedes would but more of what I would consider a caterpillar. Everything I read said the Harpaphe eats leaf litter and the ones I found were concentrated on a live sapling definitely being killed by the “bug” and when I inspected the saplings around where I found them they all appeared severely damaged, likely to the point of no return. I’m an Idaho native and either because I’ve not really paid much attention in the past or because they aren’t the millipede but instead an invasive species of insect. The ones I photographed don’t have the prominent yellow all the way down the body but just a couple on each side near the head. I’ve got pictures but there’s no way to attach them to this. Any information would be greatly appreciated.

  4. Vish says:

    I was it on my way home. It was on a tree and when I tried to touch it with the help of a stick, it curled up. I then got to know that it has a hard shell on the outside. I kept touching it with the stick a few times and then it sort of stayed in the same curled up state, most probably trying to fake it’s death so that I leave him alone. I live in India btw

  5. Vish says:

    I was it on my way home. It was on a tree and when I tried to touch it with the help of a stick, it curled up. I then got to know that it has a hard shell on the outside. I kept touching it with the stick a few times and then it sort of stayed in the same curled up state, most probably trying to fake it’s death so that I leave him alone.

  6. Halo Bule says:

    They are everywhere in our backyard in Bali Indonesia, they’ve even gotten in our house. One was crawling on my neck while asleep. Everyday I sweep them up and transport them somewhere else but they keep coming back in numbers. I’ve also witnessed there group sex habits. They’re a bit annoying.

  7. Tim Sweet says:

    Why am I not seeing millipedes in the same quantities in the same forests as 20 years ago ?

  8. Nicola Jane Walker says:

    I have seen many of these in Bali

  9. Divit says:

    Are mellipede edible?

  10. Joshua S says:

    Me and my mom just found a Millipede in the front yard. We are trying to find out what it needs to live. Her name is Bee because she is black and yellow like a bubble bee. Can you help us please.

    Joshua S.- 9 years old

  11. Hanny says:

    Wow! That’s just amazing

  12. Abraham.Lillian says:

    A person’s success does not depend on his wisdom, but perseverance

  13. Mr. Termsak C. says:

    Hi Lisa, not sure whether this forum is still active. Anyway, just one question: How do the yellow-spotted millipedes reproduce? I assume they lay eggs. But I have never seen their eggs or smaller ones.

    I live in Singapore near the westcoast. At a traffic island on my way to work, there are many millipedes moving around in the morning. They have emerged from a newly-planted lawn with some compost on it.
    They don’t seem interested in one another; they just move without any obvious intention. We have to step carefully to avoid them. And now I realize why birds ignore them. They have the cyanide poison.

  14. lance russell says:

    i live in lincoln alabama and i am curious of about all things. about a year ago i ordered a uv flashlight and was determined to find out what all glows out in my 50 acres of woods. to my surprise not alot. but i did find a millipede that glows under the light. and by the hundreds all over the place after a rain shower. couldnt find much info on it tho. or maybe theres lots of information just maybe the researchers wasnt aware that they glow. i will continue exploring

  15. Millicent S. Ficken says:

    Congratulations, Lisa. Not only did you write a fascinating account of an understudied group, you also provide references which makes your article outstanding for those of us who want to learn more.

    1. Lisa Feldkamp says:

      Thank you Millicent!