Identify a Bug: Photo ID and Bugs Found at Home

Identify Larvae: A Legs-and-Head Key to Insect Larvae

Quick answer

Identify larvae by their legs: caterpillars have 5 or fewer pairs of prolegs, sawflies 6 or more, beetle larvae none, and fly maggots no true legs at all.

Updated 2026-09-25 · Sources: University of Kentucky Entomology, forum.inaturalist.org, UC IPM, nhm.ac.uk

Found one? Take a photo to identify it.

Download on the App Store

What are the key facts?

  • First question: Does it have jointed legs behind the head? (University of Kentucky larval key)
  • Caterpillar: 3 pairs of true legs plus prolegs on 5 or fewer abdominal segments (UC IPM).
  • Sawfly larva: Prolegs on 6 or more abdominal segments (UC IPM).
  • Beetle larva: True legs but no prolegs (UC IPM).
  • Fly larva (maggot): No true legs; many have no visible head and a cream to white body (UC IPM; University of Kentucky).

How to identify larvae: start with the legs

You can identify most insect larvae to their group by counting legs and checking for a head. The University of Kentucky's larval key starts with one question: does the larva have segmented legs on the thorax, the three segments right behind the head? Then:

  • True legs plus prolegs on 5 or fewer abdominal segments: a caterpillar, the larva of a moth or butterfly (UC IPM). See caterpillar identification.
  • Prolegs on 6 or more abdominal segments: a sawfly larva, which is a relative of wasps (UC IPM).
  • True legs, no prolegs: a beetle larva, or a lacewing larva (UC IPM; University of Kentucky).
  • No true legs, but a distinct head: weevil grubs, mosquito larvae (wigglers), midges, drain flies, fungus gnats and soldier flies (University of Kentucky).
  • No legs and no visible head: maggots of flies, crane fly larvae and some wood borers (University of Kentucky).

Prolegs are the fleshy, unjointed stubs on the abdomen; true legs are the small jointed ones behind the head.

Larvae with legs: hunters and plant feeders

Among larvae with true legs, the University of Kentucky key separates two shapes:

  • Long legs, streamlined and often pointed body, flat head with forward-pointing jaws: predators such as lacewing, lady beetle and ground beetle larvae.
  • Short, thick legs, a box-shaped head and a wider abdomen: plant feeders such as white grubs, wireworms, rootworms and leaf beetle larvae. See grub identification.

Behaviour helps too. On the iNaturalist forum, entomologists point out that sawfly larvae often hold their bodies in an S shape, geometrid caterpillars loop like inchworms, and antlion larvae scoot backwards.

What is the difference between a larva and a maggot?

A maggot is one kind of larva: the larva of a fly. Every maggot is a larva, but most larvae are not maggots. UC IPM separates fly larvae from all the others because they lack true legs and have fleshy bumps on the abdomen or thorax instead, and many have no visible head (University of Kentucky). A caterpillar, grub or wireworm has jointed legs; a maggot does not.

Larvae that look like maggots but are not house fly maggots include rat-tailed maggots, the larvae of drone flies, which live in stagnant water and have a breathing tube at the rear (Wikipedia, Hoverfly), and the headless aphid-eating maggots of hover flies on garden plants (University of Kentucky). Weevil grubs are legless too, but have a distinct head. See maggot identification.

Household larvae: what that small worm is

Indoors, where you find the larva usually tells you what it is. Sizes are from the sources named.

  • In wool, carpets or under furniture, with silk tubes or a small case: clothes moth larvae, shiny white with a dark head (UC IPM), up to about 13 mm (Natural History Museum, London). Damage hides under collars and cuffs and in carpet beneath furniture.
  • Hairy, often tapering at one end, leaving brown bristly cast skins and no webbing: carpet beetle larvae (UC IPM). Black carpet beetle larvae can be 5/16 inch long, tapering to a tuft of long hairs.
  • In flour, cereal or nuts, with silk threads everywhere: Indianmeal moth larvae, about 1/2 inch with a greenish or pinkish tint (UC IPM).
  • In stored grain products, short and bristly: warehouse beetle larvae, about 1/4 inch with stiff hairs from dark plates (UC IPM).
  • In flour, pale and slender: flour beetle larvae, about 3/16 inch, white tinged with yellow (UC IPM).
  • Near pet food, dried meat or dead insects in an attic: larder beetle larvae, about 1/2 inch, hairy, with two curved spines at the tail (Penn State Extension).
  • In a sink or shower drain: often drain fly larvae, legless but with a distinct head (University of Kentucky key).
  • White, legless and headless near garbage: fly maggots.

For the adults that go with these, see household bug identification.

Can you identify larvae from a picture?

Usually to the group, often to the species for common pests, but not always further. Larvae change shape as they grow, and experienced entomologists on the iNaturalist forum note that precise identification can need a microscope and a technical key. The Prairie Haven moth caterpillar gallery, with more than 200 species, confirms most of its identifications by rearing the larva to an adult.

To give a photo the best chance:

  • a side view that shows the legs along the whole body, so prolegs can be counted;
  • a close view of the head;
  • something for scale, such as a coin or ruler;
  • a note of where you found it and what it was eating.

InsectLens names larvae from a photo; if the result is only a group, the leg count above will usually tell you whether it matters.

How this page was made

Research and drafting for this page used AI assistance. Every figure, date and quotation was then checked line by line against the sources listed at the bottom of the page, each of which was opened while writing. Nothing here is a diagnosis. If a bite, sting or contact with an insect is followed by trouble breathing, swelling of the face or throat, spreading redness, fever or any symptom that worries you, get medical care; in the United States Poison Help (1-800-222-1222) is free and open 24 hours a day.

Common larvae found in homes, with sizes

University of Maryland Extension's household pest guide lists these larvae as the ones most often found indoors, all rated as nuisance pests:

  • Fly maggots (house or blow flies): 1/2 inch or slightly longer, whitish, no visible head; near trash, on floors, in fireplaces and vents.
  • Indianmeal moth larvae: 1/2 inch, whitish with a brown head; in stored products or crawling on walls.
  • Carpet beetle larvae: 1/4 inch or less, carrot-shaped and furry; in closets, bathrooms and kitchens. See carpet beetle identification.
  • Flea larvae: about 1/5 inch when mature, worm-like and whitish; in carpet, cracks in wood floors and pet bedding. See fleas.

Two more worth knowing: clothes moth larvae, shiny white with a dark head, in wool (see clothes moth identification), and mealworms, the tan-to-brown larvae of the darkling beetle Tenebrio molitor, up to about 1.25 inches (Wikipedia).

FAQ

Can you identify larvae using a picture?

Yes, usually to the group and often to the species for common larvae, if the photo shows the legs from the side and the head up close. Some larvae can only be confirmed with a microscope or by rearing them to adults (iNaturalist forum; Prairie Haven).

How can I identify household larvae?

By where they are: in wool or carpet, clothes moth or carpet beetle larvae; in flour or cereal with silk, Indianmeal moth larvae; in drains, drain fly larvae; near dead insects or pet food, larder beetle larvae (UC IPM; Penn State; University of Kentucky).

What is the difference between a larva and a maggot?

A maggot is the larva of a fly. Fly larvae have no true legs and often no visible head, while caterpillars, grubs and wireworms have jointed legs behind the head (UC IPM; University of Kentucky).

What larvae look like maggots?

Weevil grubs (legless but with a head), crane fly larvae, rat-tailed maggots of drone flies in stagnant water, and the aphid-eating larvae of hover flies (University of Kentucky; Wikipedia).

Can I use Google to identify a bug?

Photo search can suggest a match, but larvae are hard because they change as they grow. Check the result against the leg count on this page, or use a dedicated identifier.

What is the best free insect identifier?

InsectLens identifies adults and larvae from a photo. For difficult larvae, the iNaturalist community forum lists specialist guides and has volunteer experts.

What are some common larvae found in homes?

Fly maggots, Indianmeal moth larvae, carpet beetle larvae and flea larvae are the ones University of Maryland Extension lists most often, plus clothes moth larvae in wool and mealworms.

More in Identify a Bug: Photo ID and Bugs Found at Home

Related

See what's really crawling, flying, and buzzing past.

Start with a single photo.

Found one? Take a photo to identify it.

Sources

Compiled by the InsectLens editorial team

Every fact on this page is taken from the sources listed above; numbers and prices are copied from the source, and prices name the guide or auction and its date. Research and drafting were assisted by AI, and each claim was then checked against the cited sources. Checked 2026-09-25. We do not buy, sell or grade items; the app identifies what you photograph and points you to these references.

Help us understand what works

With your permission, we use privacy-limited analytics to measure page use and App Store clicks. We do not load analytics or send events unless you allow it.

Read the Privacy Policy