Curious Minds

Clear answers to science and history questions

Why Do Earthworms Come Out at Night?

· 6 min read · Science

Earthworms come out at night primarily because the surface is moister and cooler than during the day, which helps them avoid drying out and overheating. They also use the darkness to move across the soil surface in search of food, mates, or new burrows with less risk of predation and desiccation.

The Basics: Earthworm Biology and Habitat

Earthworms are annelids—segmented worms—that live mostly underground in moist soil. They breathe through their skin, which must stay damp for oxygen to diffuse in and carbon dioxide to diffuse out. Their bodies are largely water, and they have no lungs or specialized respiratory organs. This makes them highly vulnerable to drying out (desiccation). During the day, especially in sunny or dry conditions, the soil surface can become hot and dry quickly, so earthworms typically remain in their burrows where humidity is high and temperature is stable.

There are thousands of earthworm species worldwide, but the ones most people see are often the common nightcrawlers (such as Lumbricus terrestris) and garden worms. Nightcrawlers are deep-burrowing and come to the surface at night to feed on dead leaves and other organic matter, which they pull into their burrows. Other species may stay closer to the surface but still avoid daylight.

Why Darkness Matters: Moisture and Temperature

The main reason earthworms surface at night is to avoid drying out. Even at night, the air can be drier than their burrows, but the absence of direct sunlight means lower temperatures and higher relative humidity near the ground. Dew often forms overnight, adding a film of moisture to soil and vegetation. This gives worms a safer window to venture out.

During the day, solar radiation heats the soil surface. On a warm day, the top few centimeters of soil can become much hotter than the air, and moisture evaporates quickly. Earthworms are ectotherms (cold-blooded), so their body temperature tracks the environment. If they are exposed to direct sun, they can overheat and die within minutes to hours, depending on conditions. Nighttime conditions are simply less lethal.

Food and Foraging Behavior

Many earthworm species are detritivores, feeding on decaying plant material. Nightcrawlers in particular emerge at night to collect fallen leaves, which they drag into their burrows. This behavior is well documented: they often leave the leaf petioles (stems) sticking out of the burrow entrance. By foraging at night, they reduce exposure to predators and harsh conditions while still accessing food on the surface.

Earthworms also ingest soil as they burrow, extracting organic matter and microorganisms. But surface foraging is important for species that rely on fresh litter. Some species are more active on the surface after rain, when the soil is saturated and the air is humid—this is why you often see worms on sidewalks after a heavy rain, even during the day.

Predation and Avoidance

Darkness offers some protection from visual predators such as birds. Many birds, including robins and blackbirds, eat earthworms and hunt by sight. At night, most diurnal birds are roosting, so the risk is lower. However, nocturnal predators exist—hedgehogs, shrews, ground beetles, and some frogs eat worms—so nighttime is not entirely safe. Still, the combination of lower predation pressure and better moisture makes night the lesser evil for many species.

Earthworms have other defenses: they can retreat quickly into burrows, and some species exude coelomic fluid (which can be distasteful) when handled. But their primary strategy is to stay hidden in the soil most of the time.

Dispersal and Mating

Earthworms occasionally move across the surface to disperse to new areas, especially when local conditions become unfavorable (overcrowding, food depletion, or soil waterlogging). Nighttime movement reduces the risk of drying out during these journeys. Some species also mate on the surface at night, though many mate within burrows. Mating typically involves two worms aligning their bodies and exchanging sperm; the clitellum (a swollen band) secretes a mucus tube that later forms the egg cocoon.

Why Rain Brings Them Out—Even in Daylight

A common misconception is that earthworms come out during rain to avoid drowning. In fact, earthworms can survive in waterlogged soil for some time, and they can even survive immersion in water for days if oxygen is available. The more likely explanation is that rain provides a moist, cool surface that mimics nighttime conditions, allowing worms to move safely above ground. Also, rain may flood burrows, forcing worms to the surface, but they are not fleeing to avoid drowning—they are simply responding to changed conditions. The exact reasons are still debated, but the moisture and temperature explanation is well supported.

Common Misconceptions and What Science Says

  • Myth: Earthworms come out at night because they are nocturnal. They are not strictly nocturnal; they are crepuscular/nocturnal in behavior, but their activity is driven by environmental conditions, not an internal clock alone. They can be active during the day if it is wet and cool enough.
  • Myth: Worms come out to avoid drowning in rain. They can survive submerged for extended periods. Rain likely makes the surface habitable by providing moisture and cooling.
  • Myth: All earthworms behave the same. Species vary: some are deep burrowers that surface at night, others live in leaf litter and may be active at any time if conditions are right.
  • Myth: Earthworms are harmful to gardens. They are generally beneficial, improving soil structure, aeration, and nutrient cycling.

Frequently Asked Questions

Do earthworms really come out at night to avoid predators?

Predation is one factor, but the primary driver is moisture and temperature. Darkness reduces the risk of drying out and overheating, and it also happens to be when many visual predators are inactive. The relative importance of each factor varies by species and habitat.

Why do earthworms come out after it rains?

Rain creates a cool, moist surface that resembles nighttime conditions, allowing worms to move above ground without drying out. It is not because they are trying to escape drowning—they can survive in waterlogged soil. The exact reason is still not fully understood, but moisture and temperature are key.

Can earthworms come out during the day?

Yes, especially after rain or in very humid, cool conditions. However, direct sunlight and dry air are dangerous to them, so daytime surface activity is risky and usually brief.

What do earthworms do at night?

They forage for food (such as dead leaves), move to new areas, and sometimes mate. Nightcrawlers often pull leaf litter into their burrows, which they consume later.

Are earthworms harmful if they come out at night?

No, they are harmless and beneficial. They help break down organic matter and improve soil health. If you find them on paved surfaces in the morning, you can move them to soil if you wish, but it is not necessary.

Do earthworms have eyes?

They do not have eyes as such, but they have light-sensitive cells in their skin, especially at the front end. These help them detect light and avoid it, which is one reason they stay underground during the day.

In this article
  1. The Basics: Earthworm Biology and Habitat
  2. Why Darkness Matters: Moisture and Temperature
  3. Food and Foraging Behavior
  4. Predation and Avoidance
  5. Dispersal and Mating
  6. Why Rain Brings Them Out—Even in Daylight
  7. Common Misconceptions and What Science Says
  8. Frequently Asked Questions