The short answer
- Hard, shiny, yellowish worms with six tiny legs are wireworms (click beetle larvae) that bore into potatoes and root crops (UC IPM, Missouri). A smooth caterpillar curled in a C next to a cut-off seedling is a cutworm (UC IPM, Minnesota).[1][3][4][5]
- Tiny legless white maggots on radish, cabbage or onion roots are root maggots (Minnesota, UMass). Clear larvae with shiny black heads in potting mix are fungus gnats (UC IPM, Colorado State). Flat, brown, leathery larvae in compost are black soldier flies and are harmless (Texas A&M, Oregon State).[9][10][14][15][17][18]
- An earthworm that thrashes like a snake, has a smooth whitish band all the way around and leaves coffee-ground soil is an invasive jumping worm (Wisconsin DNR, Minnesota DNR).[27][28]
Soil animals on this page
What should I look at first on the thing I just dug up?
Count the legs and look for a head. Most of what turns up in garden soil sorts quickly that way, before color or size matter.[23][25][14][7]
- Six short legs near the head, hard and shiny body: a wireworm, the larva of a click beetle (Missouri Department of Conservation, Alberta).[3][2]
- Six legs, soft cream body curled into a C, brown head: a white grub, a scarab beetle larva (Penn State, Clemson).[7][8]
- Smooth caterpillar that curls into a C when touched: a cutworm (UC IPM, Minnesota).[4][5]
- No legs, tiny, whitish and tapered, on roots or seeds: a root maggot (Minnesota, Iowa State).[9][13]
- No legs, clear or whitish body with a shiny black head, in potting mix: a fungus gnat larva (UC IPM, Colorado State).[14][15]
- No legs, flattened, dark brown and leathery, in compost: a black soldier fly larva (Texas A&M, Oregon State).[17][18]
- No legs, gray-brown, tough-skinned, about an inch long, under turf: a crane fly larva, or leatherjacket (Washington State, Northeastern IPM Center).[20][22]
- Many legs: a millipede (two pairs on most segments) or a centipede (one pair on nearly every segment) (Penn State, Missouri Department of Conservation).[23][25]
- Ringed, soft, no legs and a lighter band partway down the body: an earthworm. A flat, slimy body with a shovel-shaped head and stripes: a hammerhead flatworm (Wisconsin DNR, Illinois Extension).[27][35]
What is the stiff, shiny yellow worm in my potatoes or carrots?
That is almost always a wireworm. UC IPM describes them as slender, cylindrical and usually yellowish, resembling mealworms. Alberta's agriculture staff call them slender, jointed and hard-bodied, with three pairs of legs behind the head and a flattened last segment with a keyhole-shaped notch.[1][2]
Fully grown larvae range from 1 to 4 cm depending on species (Alberta). They feed on seeds, roots and shoots, and bore into stems and potato tubers (UC IPM); Missouri lists beets, carrots, onions, lettuce, beans, melons, peas and strawberries among the crops wireworms damage.[2][1][3]
- Long-lived: UC IPM says common species need 3 to 4 years to complete their life cycle, and Missouri gives 1 to 4 years in the larval stage. That is why the same bed can have them year after year.[1][3]
- Old sod: Alberta notes wireworms of all ages are likely in fields that were long-term grass or pasture, and UC IPM says damage is most common where soil has a high organic content.[2][1]
- Not a millipede: Penn State points out that wireworms have only six legs, are typically dark yellow and do not crawl about on the soil surface the way millipedes do.[23]
My seedling was snipped off at the soil line overnight. What did it?
Dig gently around the base of the plant. A dull brown caterpillar curled into a C just under the surface is a cutworm. UC IPM describes them as smooth-skinned, 1 to 2 inches long when grown, with markings that blend with the soil, and usually active at night.[4]
Minnesota says young larvae feed on leaves or small roots until they reach about 1/2 inch, then move to seedling stems, curling around the stem as they feed so the plant is cut off just above the soil. UNH adds that most species shelter in the soil by day and come out to feed at night.[5][6]
- Not every cutworm stays at ground level: UNH separates surface cutworms, climbing cutworms that feed on buds, leaves and fruit higher up, and subterranean cutworms that stay in the soil eating roots and underground stems.[6]
Is the fat white C-shaped grub in my bed a lawn grub?
Possibly. White grubs are dirty white, soft-bodied beetle larvae with a brown head and six well-developed legs, usually lying curled in a C when uncovered (Penn State, Clemson). Telling the lawn species from compost decomposers takes a look at the tail end; the white grub ID page walks through it.[7][8]
Tiny white maggots on my radish, cabbage or onion roots
These are root maggots, fly larvae. Minnesota describes them as small, legless and whitish, feeding on roots, root hairs and germinating seeds of cabbage-family crops or onions and leaving tunnels in roots and bulbs. UMass also describes white, legless maggots in and around roots.[9][10]
The aboveground sign is a plant that looks discolored, wilted or stunted, and Minnesota says damage is worse in cool, wet springs. UMass notes that in turnips, radishes and rutabaga the tunnels make the root unmarketable.[9][10]
- Cabbage maggot: on cabbage-family crops. UMass describes the adult as a delicate, hump-backed gray-brown fly about 5-7 mm long, and says the three root-maggot flies are hard to tell apart by eye; each is usually found near its preferred crop.[10]
- Onion maggot: Wisconsin Horticulture says larvae feed below ground on seedlings, which can kill them and thin the stand, and tunnel into bulbs of larger plants, which turn flaccid and yellow.[11][9]
- Seedcorn maggot: white or pale, legless, about 1/4 inches long with a tapered body (Iowa State); UC IPM describes the head end as pointed and the rear blunt. They feed on germinating seeds and seedlings, and Iowa State says hollowed-out seeds are a sign of them.[13][12]
- Why rich beds get them: Minnesota says adult flies are drawn to decaying organic matter, recently worked-in cover crops and fresh manure, and Iowa State says seedcorn maggot females seek soil high in organic matter.[9][13]
Clear wiggly larvae with black heads in my potted plant
These are fungus gnat larvae. UC IPM describes a shiny black head and an elongated, whitish-to-clear, legless body; Colorado State calls them wormlike and translucent with a black head capsule. The adults are the tiny dark flies around the pot.[14][15]
Colorado State says the larvae are usually in the top 2 to 3 inches of potting mix and that moist mixes high in peat moss attract egg-laying females. Kentucky reports that a female can lay 100 to 200 eggs on moist soil or near stems.[15][16]
- What they do to plants: they mostly eat fungi and organic matter, but UC IPM says large numbers can damage roots and stunt seedlings and young plants. Outdoors they also feed on roots but don't usually cause serious damage (UC IPM).[14][16]
- A quick check: Colorado State suggests pushing 1/4 inch slices of raw potato into the mix; Colorado State says larvae move to the potato within a few days and can be seen on the underside when the slice is turned over.[15]
Brown, flat, leathery larvae swarming in my compost bin
These are black soldier fly larvae, and they are working for you. Texas A&M describes them as about one inch long, legless, dark brown, flattened and remarkably tough, with a leathery skin. Oregon State says young larvae are gray-white and active, turning dark brown and torpedo-shaped as they mature.[17][18]
- Oregon State says they won't harm you or the compost and are common wherever flies can reach wet, rotting food. The adults look like black wasps but do not bite or carry disease (Oregon State). Texas A&M adds that in manure they can be beneficial because they prey on other insects such as house flies.[18][17]
Gray-brown, tough-skinned larvae under dead patches of lawn
These are crane fly larvae, called leatherjackets. Washington State describes full-grown European crane fly larvae as about an inch long, gray-brown and worm-like with tough, leathery skin; the Northeastern IPM Center says they are dark gray to brown and legless.[20][22]
Cornell says most larvae live in the top 1.18 inches (3 centimeters) of soil, feeding on root hairs, roots and crowns of grasses, and that both European species prefer moist, poorly drained turf with thatch. Washington State says they feed mainly at night and on overcast days, from fall through spring.[19][20]
Lots of legs, in the mulch or under pots
Millipedes have two pairs of legs per body segment, except the first three segments, and many curl into a spiral (Penn State). Clemson says the common garden millipede is gray to brown, active at night, and feeds mainly on dead plant material and occasionally young plants.[23][24]
- Centipedes have a single pair of legs on nearly all segments, usually flattened bodies and one pair of large, straight antennae, and they catch prey such as small insects (Missouri Department of Conservation, Clemson). The centipede and millipede comparison page covers the differences in detail.[25][24]
Is this a good earthworm or an invasive jumping worm?
Earthworm burrowing and feeding improve soil for crops, and their vertical burrows let water soak in quickly (Penn State). In Minnesota and Wisconsin, though, none of the earthworms are native: Minnesota DNR says all terrestrial earthworms there came from Europe and Asia, and Wisconsin DNR says the same of its state.[26][29][27]
Jumping worms (Amynthas species) are a newer arrival. Wisconsin DNR says they are native to eastern Asia and were first confirmed in that state in 2013.[27]
- The band: the clitellum of a jumping worm is cloudy-white to gray, smooth and flush with the body, and goes all the way around, about a third of the way back from the head. A European nightcrawler's band is pink or reddish, slightly raised, and only partly circles the body like a saddle (Wisconsin DNR, UMass).[27][31]
- The behavior: picked up, jumping worms thrash, move like a snake, may spring into the air and can shed their tails (Wisconsin DNR, Minnesota DNR, Wisconsin Horticulture). Nightcrawlers wiggle and stretch and do not drop tail segments (Wisconsin DNR).[27][28][33]
- The soil: jumping worms turn the top layer into dry, granular pellets that look like coffee grounds, which is poor footing for garden plants (Wisconsin DNR, Wisconsin Horticulture). They live in leaf litter and the top few inches of soil and do not make burrows (Minnesota DNR).[27][33][28]
- Size: Minnesota Extension gives 1-1/2 to 8 inches or more; UMass says a mature adult is 4-5 inches long.[30][31]
- Timing: adults die in winter and cocoons carry the population through (Minnesota DNR, Wisconsin Horticulture). Vermont Extension says hatchlings emerge when soil reaches about 50°F and lack the band at first but already move erratically in the top 2 to 3 inches of soil. Sources describe the cocoons differently: about the size of a mustard seed and brown (Vermont) versus microscopic (Wisconsin Horticulture).[28][33][32]
- Moving them: Minnesota DNR says people spread jumping worms in potted plants, soil, compost, mulch and fishing bait, and since July 1, 2024 Minnesota lists jumping worms as a prohibited invasive species. Minnesota Extension asks that sightings be reported through EDDMapS or to the Minnesota DNR.[28][30]
A flat, slimy worm with a shovel-shaped head
That is a hammerhead flatworm (Bipalium), a land planarian. Illinois Extension describes one to several stripes along the body and a flattened, shovel-shaped head; Penn State says they need moist places such as under rocks and logs, in plant pots and mulch, and under dense shrubs.[35][34]
- They are predators, not plant feeders. Penn State says land planarians prey on soft-bodied animals including earthworms, slugs, snails and insects, and the National Invasive Species Information Center lists them as earthworm predators that move with infested plants and soil. Some species carry tetrodotoxin in their mucus (Penn State, Illinois); the hammerhead flatworm profile covers handling.[34][36][35]
Which of these actually hurt my plants?
- Can damage plants: wireworms (seeds, roots, tubers; UC IPM), cutworms (seedling stems; Minnesota), root maggots (roots, bulbs, sprouting seeds; Minnesota, Iowa State), leatherjackets (grass roots and crowns; Cornell), and fungus gnat larvae when numbers are high on seedlings (UC IPM).[1][5][9][13][19][14]
- Mostly harmless or helpful: black soldier fly larvae in compost (Oregon State), centipedes as predators (Missouri), millipedes as decomposers that only occasionally nibble young plants (Clemson), most crane fly larvae outside lawns (Missouri), and ordinary earthworms in garden soil (Penn State).[18][25][24][21][26]
- Harmful mainly through the soil: jumping worms, which change soil texture, strip nutrients and can kill plants (Minnesota Extension, Wisconsin DNR), and hammerhead flatworms, which eat earthworms (Illinois Extension).[30][27][35]
Common questions
- Are the worms in my compost bad for the garden?
- Usually not. Earthworms improve soil (Penn State), and black soldier fly larvae won't harm you or the compost (Oregon State). The exception is jumping worms: Minnesota DNR lists compost and mulch among the ways people spread them.[26][18][28]
- Why are there so many wireworms in my new garden bed?
- Beds dug out of old lawn or pasture often have them. Alberta says wireworms of all ages are likely in long-term grass, and they can live in the soil for several years before becoming beetles (UC IPM, Missouri).[2][1][3]
Photo credits
- Click Beetles: Diane, public domain (CC0), via iNaturalist
- Corn wireworm: Click Beetle - Melanotus communis complex by Judy Gallagher — via Wikimedia Commons, CC BY 2.0
- Cutworms: (c) SteveM4560, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
- Cabbage Maggot: Delia radicum, Deeside, North Wales, May 2012 by janetgraham84 — via Flickr, CC BY 2.0
- Seedcorn Maggot: (c) Zachary Dankowicz, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
- Fungus Gnat: (c) aispinsects, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
- Black Soldier Fly: (c) Peter Chen 2.0, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
- Crane Flies: (c) Louis Imbeau, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
- Greenhouse Millipede: (c) capacoscar, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
- Outdoor centipedes (stone, soil and bark centipedes): (c) Alexis Tinker-Tsavalas, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
- Jumping Worms: (c) geosesarma, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
- Hammerhead Flatworms (Land Planarians): (c) Vítor Jorge, some rights reserved (CC BY) — via iNaturalist, CC BY 4.0
Sources
- UC Statewide IPM Program, “Wireworms (Home and Landscape).” ipm.ucanr.edu/home-and-landscape/wireworms/ (accessed 2026-11-20)
- Government of Alberta, “Wireworm.” www.alberta.ca/wireworm (accessed 2026-11-20)
- Missouri Department of Conservation, “Click Beetles (Elaterids).” mdc.mo.gov/discover-nature/field-guide/click-beetles-elaterids (accessed 2026-11-20)
- UC Statewide IPM Program, “Cutworms (Home and Landscape).” ipm.ucanr.edu/home-and-landscape/cutworms/ (accessed 2026-11-20)
- University of Minnesota Extension, “Cutworms.” extension.umn.edu/yard-and-garden-insects/cutworms (accessed 2026-11-20)
- UNH Cooperative Extension, “Cutworms [fact sheet].” extension.unh.edu/resource/cutworms-fact-sheet (accessed 2026-11-20)
- Penn State Extension, “White Grubs in Home Lawns.” extension.psu.edu/white-grubs-in-home-lawns (accessed 2026-11-20)
- Clemson Cooperative Extension Home & Garden Information Center, “White Grub Management in Turfgrass (HGIC).” hgic.clemson.edu/factsheet/white-grub-management-in-turfgrass/ (accessed 2026-11-20)
- University of Minnesota Extension, “Cabbage and onion maggots.” extension.umn.edu/garden-and-home/yard-and-garden/yard-and-garden-insects/root-maggots (accessed 2026-11-20)
- UMass Amherst Center for Agriculture, Food, and the Environment, “Cabbage Root Maggot.” www.umass.edu/agriculture-food-environment/vegetable/fact-sheets/cabbage-root-maggot (accessed 2026-11-20)
- University of Wisconsin-Madison Division of Extension, Wisconsin Horticulture, “Onion Maggot.” hort.extension.wisc.edu/articles/onion-maggot/ (accessed 2026-11-20)
- UC Statewide IPM Program, “Seedcorn Maggot (Home and Landscape).” ipm.ucanr.edu/PMG/GARDEN/VEGES/PESTS/seedcornmaggot.html (accessed 2026-11-20)
- Iowa State University Extension and Outreach, Integrated Crop Management, “Seedcorn Maggot.” crops.extension.iastate.edu/encyclopedia/seedcorn-maggot (accessed 2026-11-20)
- UC Statewide IPM Program, “Fungus Gnats (Pest Notes).” ipm.ucanr.edu/home-and-landscape/fungus-gnats/ (accessed 2026-11-20)
- Colorado State University Extension, “Fungus Gnats as Houseplant and Indoor Pests (5.584).” extension.colostate.edu/topic-areas/insects/fungus-gnats-as-houseplant-and-indoor-pests-5-584/ (accessed 2026-11-20)
- University of Kentucky Entomology, “Small Flies (ENTFACT-657).” entomology.mgcafe.uky.edu/ef657 (accessed 2026-11-20)
- Texas A&M AgriLife Extension, Urban and Structural Entomology, “Soldier Flies (ENT-2005).” citybugs.tamu.edu/factsheets/household/flies-house/ent-2005/ (accessed 2026-11-20)
- Oregon State University Extension Service, “Soldier fly larvae: Beneficial compost helpers.” extension.oregonstate.edu/news/soldier-fly-larvae-beneficial-compost-helpers (accessed 2026-11-20)
- Cornell University Integrated Pest Management, “European Crane Flies, Tipula paludosa and Tipula oleracea (Ornamental IPM Fact Sheet).” cals.cornell.edu/integrated-pest-management/outreach-education/fact-sheets/european-crane-flies-tipula-paludosa-and-tipula-oleracea-ornamental-ipm-fact-sheet (accessed 2026-11-20)
- Washington State University Extension, “Lawn and Turf: European Crane Fly (Hortsense).” hortsense.cahnrs.wsu.edu/fact-sheet/european-crane-fly/ (accessed 2026-11-20)
- Missouri Department of Conservation, “Large Crane Flies.” mdc.mo.gov/discover-nature/field-guide/large-crane-flies (accessed 2026-11-20)
- Northeastern IPM Center, “European Crane Fly (School IPM Best Practices).” www.northeastipm.org/schools/pests/european-crane-fly/ (accessed 2026-11-20)
- Penn State Extension, “Millipedes.” extension.psu.edu/millipedes (accessed 2026-11-20)
- Clemson Cooperative Extension Home & Garden Information Center, “Millipedes (HGIC).” hgic.clemson.edu/factsheet/millipedes/ (accessed 2026-11-20)
- Missouri Department of Conservation, “Centipedes.” mdc.mo.gov/discover-nature/field-guide/centipedes (accessed 2026-11-20)
- Penn State Extension, “Earthworms.” extension.psu.edu/earthworms (accessed 2026-11-20)
- Wisconsin Department of Natural Resources, “Jumping worms (Amynthas spp.).” dnr.wisconsin.gov/topic/Invasives/fact/JumpingWorm (accessed 2026-11-20)
- Minnesota Department of Natural Resources, “Jumping worm (Amynthas species).” www.dnr.state.mn.us/invasives/terrestrialanimals/jumping-worm/index.html (accessed 2026-11-20)
- Minnesota Department of Natural Resources, “Earthworms.” www.dnr.state.mn.us/invasives/terrestrialanimals/earthworms/index.html (accessed 2026-11-20)
- University of Minnesota Extension, “Jumping worms.” extension.umn.edu/natural-resources/forestry-and-wildlife/invasive-species/jumping-worms (accessed 2026-11-20)
- UMass Amherst Center for Agriculture, Food, and the Environment, “Jumping/Crazy/Snake Worms, Amynthas spp..” www.umass.edu/agriculture-food-environment/landscape/fact-sheets/jumpingcrazysnake-worms-amynthas-spp (accessed 2026-11-20)
- University of Vermont Extension, “Identifying the Jumping Worm, a Recently-Introduced Earthworm.” www.uvm.edu/extension/news/identifying-jumping-worm-recently-introduced-earthworm (accessed 2026-11-20)
- University of Wisconsin-Madison Division of Extension, Wisconsin Horticulture, “Jumping Worms.” hort.extension.wisc.edu/articles/jumping-worms/ (accessed 2026-11-20)
- Penn State Extension, “Hammerhead Flatworms and Other Land Planaria of Eastern North America.” extension.psu.edu/hammerhead-flatworms-and-other-land-planaria-of-eastern-north-america (accessed 2026-11-20)
- University of Illinois Extension, “Hammerhead Worm.” extension.illinois.edu/invasives/hammerhead-worm (accessed 2026-11-20)
- USDA National Agricultural Library, National Invasive Species Information Center, “Hammerhead Worm.” www.invasivespeciesinfo.gov/terrestrial/invertebrates/hammerhead-worm (accessed 2026-11-20)