Worms fall into three main biological groups: flatworms, roundworms, and segmented worms. Within those groups, you’ll find everything from microscopic soil organisms less than a millimeter long to tapeworms that stretch 10 meters inside a human gut. Some are parasites, some are essential to healthy ecosystems, and a few have even found their way into modern medicine.
The Three Main Groups
All worms are invertebrates with a clear head end and tail end, and they share the basic strategy of getting around efficiently without legs. Beyond that, they diverge sharply in anatomy.
Flatworms (phylum Platyhelminthes) are the simplest. Their bodies are flattened like a ribbon, which lets every cell sit close to either the outer surface or the digestive cavity. That’s important because flatworms have no specialized respiratory system; oxygen just diffuses in. They also lack a complete digestive tract. Food goes in and waste comes out through the same opening. This group includes free-living species like planaria, plus parasitic tapeworms and flukes.
Roundworms (phylum Nematoda) are a step up in complexity. Cut one in cross-section and you’ll see a round tube, which gives them their name. Unlike flatworms, roundworms have a complete digestive system with a mouth at one end and an exit at the other. They are considered the most abundant multi-celled animals on Earth, thriving in soil, freshwater, oceans, and inside other organisms.
Segmented worms (phylum Annelida) are the most complex of the three. Their bodies are divided into repeating ring-like segments, each containing its own set of muscles, nerves, and sometimes bristles. Earthworms, leeches, and the huge variety of marine bristle worms all belong here.
Flatworms: Tapeworms and Flukes
The flatworms most people encounter (or worry about) are parasitic. Tapeworms latch onto the intestinal wall and absorb nutrients directly through their skin. The beef tapeworm can grow up to 10 meters long, making it one of the largest parasites found in humans. The pork tapeworm and Asian tapeworm are somewhat smaller, typically around 3 meters. In rare cases, tapeworm segments migrate into the appendix or block the bile and pancreatic ducts.
Flukes are the other major parasitic flatworm. They target specific organs depending on the species: liver flukes settle in bile ducts, blood flukes live in veins around the intestines or bladder, and lung flukes embed in lung tissue. People typically pick up flukes by eating undercooked freshwater fish, crab, or aquatic plants carrying the larvae.
Free-living flatworms also exist. Planaria, common in freshwater streams, are famous in biology classes for their ability to regenerate. Cut one in half and both halves grow into complete worms.
Roundworms: From Soil to Gut
Roundworms are staggeringly diverse. In soil alone, they split into three functional roles: some feed on bacteria and fungi, some parasitize plants, and some attack insects. Plant-parasitic roundworms are typically less than 1 millimeter long, yet they cause billions of dollars in crop damage each year.
The roundworms that infect humans are a major global health concern. An estimated 1.5 billion people, roughly 24% of the world’s population, carry soil-transmitted roundworm infections. The largest human roundworm, Ascaris, produces females up to 30 centimeters long and 2 to 6 millimeters in diameter. Hookworms are much smaller (about 1 centimeter) but cause chronic iron-deficiency anemia by feeding on blood in the intestinal wall. Pinworms, also about 1 centimeter for females, are the most common worm infection in temperate countries and spread easily among children.
Many of these infections produce no obvious symptoms. When they do, the signs are usually gastrointestinal: abdominal pain, diarrhea, or nausea. Chronic hookworm infection can lead to fatigue and pale skin from ongoing blood loss. Diagnosis typically involves examining a stool sample under a microscope to identify eggs.
Guinea Worm: Nearly Eradicated
One roundworm worth special mention is the guinea worm. People swallow its larvae in contaminated drinking water, and the adult female eventually emerges through the skin, usually on the foot or leg, causing intense pain. A decades-long global campaign has reduced cases from millions per year to just 15 human cases worldwide in 2024. Only six countries still have active transmission: Angola, Cameroon, Chad, Ethiopia, Mali, and South Sudan. During the first half of 2025, a single human case was reported.
Segmented Worms: Earthworms and Beyond
Earthworms are the most familiar segmented worms, and they play an outsized role in soil health. Scientists categorize them into three lifestyle types based on where they live and feed. Epigeic earthworms stay near the surface and break down leaf litter. Endogeic earthworms burrow horizontally through the topsoil, mixing organic matter into the ground as they go. Anecic earthworms, like the common nightcrawler, dig deep vertical burrows that channel rainwater downward and pull surface debris underground. Together, these worms drive nutrient cycling, improve soil structure, help regulate water flow, and even influence carbon storage.
Marine Bristle Worms
The ocean holds thousands of species of polychaetes, or bristle worms. Each body segment sports tiny bristle-like appendages that help with movement and oxygen absorption. Some are burrowers: lugworms (Arenicola marina) live in U-shaped tunnels on sandy beaches and play a key role in aerobic decomposition of marine sediment. Others, like ragworms, are active predators. Christmas tree worms anchor into coral and extend spiraling, brightly colored feeding structures. The bobbit worm, one of the more dramatic examples, buries its body in the seafloor and ambushes fish with snap-trap jaws.
Leeches
Leeches are segmented worms with suckers at both ends. Most are freshwater predators or blood-feeders, though some live on land in tropical forests. The European medicinal leech has been used in medicine for centuries and remains relevant today, particularly in reconstructive surgery. When surgeons reattach a finger or ear, leeches can relieve dangerous blood congestion in the tissue while it heals. Their saliva contains over 20 identified bioactive substances, including a powerful blood-thinning compound that keeps blood flowing at the bite site long after the leech detaches.
Microscopic Worms You Can’t See
Not all worms are visible to the naked eye. The nematode Caenorhabditis elegans is about 1 millimeter long and lives in soil, feeding on bacteria. It became one of the most important organisms in modern biology because its body contains exactly 959 cells in the adult form, and scientists have mapped every single neural connection it has. Research on this tiny worm has led to Nobel Prize-winning discoveries about how genes control cell development and programmed cell death.
Countless other microscopic nematodes live in every handful of garden soil, cycling nutrients, controlling insect populations, and interacting with fungi and bacteria in ways that keep the ecosystem running. Some are even used as biological pest control: entomopathogenic nematodes seek out and kill soil-dwelling insect larvae, offering an alternative to chemical pesticides for grubs, weevils, and other crop pests.

