What Causes Roundworms in Dogs and How They Spread
Roundworms in dogs spread through eggs in soil and stool, through infected prey, and from a mother dog to her puppies. This page explains how they spread, why a dog can pick them up again, and when to see your vet.

A roundworm infection is a reason to see your vet, and it comes from swallowing roundworm eggs or larvae or from a mother dog passing them to her puppies. Go to an emergency vet now if your dog is vomiting again and again, has a swollen or painful belly, is weak or collapsing, or is struggling to breathe; otherwise book a same-day appointment. The plain answer to what causes roundworms in dogs is contact with eggs in soil or stool, eating an infected animal such as a mouse or bird, and passing from mother to puppy before birth or through her milk. Roundworms can spread to other dogs through shared ground, some types can pass between dogs and cats, and the eggs can infect people too, so a roundworm infection matters for the whole household. Talk to your vet about testing, treatment and a prevention plan that fits your dog and your home.
When to go to the vet now
Go to an emergency vet now if your dog has any of these signs:
- Vomiting again and again
- A swollen, tight or painful belly
- Weakness, collapse or being unable to stand
- Struggling to breathe
These signs can mean a heavy load of worms is blocking the gut or that larvae are moving through the lungs, and a puppy can get worse quickly. For any other sign of a roundworm infection, book a same-day appointment. Our guide to Dog Emergency Signs covers other signs that need care right away.
What can cause a roundworm infection
Roundworms are parasites that live in the small intestine of a dog. Two types infect dogs: Toxocara canis, the dog roundworm, and Toxascaris leonina, which can also infect cats. In some areas dogs can also pick up the raccoon roundworm. Adult worms lay eggs that leave the body in stool. Those eggs are not ready to infect another animal straight away. They develop in the soil, and once they are ready they can stay infective in the ground for a long time and are hard to clear from a yard. Every route below is a possibility your vet considers when working out how your dog was infected and how to stop it happening again.
One route is swallowing eggs from the environment. A dog can take in eggs by sniffing or licking ground where an infected dog or cat has passed stool, by digging, by eating soil or grass, by chewing sticks or toys that have sat on the ground, or by drinking from puddles. A dog that licks its paws or coat after a walk can swallow eggs picked up along the way. Eating stool, whether its own or another animal's, is another route. Parks, kennels, shelters, daycare yards and gardens shared by several animals can all hold eggs.
Another route runs from mother to puppy. When an adult dog swallows roundworm eggs, some larvae can move out of the gut and rest inside the tissues of the body. In a female dog, these resting larvae can wake during pregnancy and cross to the puppies before they are born. More larvae can pass to the puppies through her milk after birth. This means a puppy can carry roundworms from its first days, even when the mother looks well and has been dewormed, because resting larvae are not reached by every treatment. It is one reason your vet sets a deworming plan for puppies from a young age and may also treat the mother.
Age and life stage matter as well. In a young puppy, swallowed larvae can travel through the liver and lungs before they settle in the gut as adult worms, which is why a puppy with roundworms can cough or have trouble breathing. In an adult dog, swallowed larvae can rest in the tissues instead of growing into adult worms straight away. An adult dog can still carry worms in the gut and shed eggs, and a dog that has had roundworms before can be infected again.
A dog can also be infected by eating another animal that carries roundworm larvae in its body. Mice, rats, rabbits and birds can swallow eggs and hold the larvae in their tissues without the worms growing into adults. When a dog hunts, scavenges or eats a dead animal, those larvae can then grow into adult worms in the dog's gut. Earthworms and some insects can carry eggs as well. A dog that hunts or roams has more chances to meet this route.
Food can be part of the picture too. Roundworm larvae can live in the meat and organs of an infected animal, so raw meat, raw organ meat and whole prey are the food-related routes your vet will ask about. Thorough cooking kills the larvae. A food or water bowl left outside can also be soiled by stool or soil carrying eggs. If you feed a raw diet, your vet can tell you how it fits into your dog's parasite plan.
Roundworms in dogs are contagious, but not in the way a cold spreads. A dog does not catch them from a quick sniff of another dog's face. An infected dog sheds eggs in its stool, those eggs develop in the ground, and other dogs swallow them later from the same yard, park, kennel or bedding. In a home with more than one dog, every dog shares the same ground, so your vet may suggest testing or treating all of them.
Roundworms in dogs and cats overlap. Toxascaris leonina can infect both, and cats have their own roundworm, Toxocara cati. Cats that go outside can leave eggs in the same gardens, flower beds and play areas your dog uses, and cats that hunt can bring in prey carrying larvae. If you have a cat as well as a dog, your vet may want to look at both pets together. A cat needs its own vet care, and a product made for dogs should never be given to a cat.
The dog roundworm can also infect people. A person can swallow eggs from soil, sand or hands that have touched ground soiled by stool. Young children who play in dirt or sand and put their hands in their mouths are at higher risk. In people the larvae can move through the body and in some cases reach the eyes or other organs. Picking up your dog's stool promptly and washing your hands after handling stool or soil can cut down the eggs around your home. Talk to your doctor about any concern for a person in your household.
If your dog keeps getting roundworms, there can be more than one reason. Eggs that stay in a yard or park can infect your dog again after treatment. A deworming medicine works on worms in the gut, but it may not reach larvae resting in the tissues or moving through the body, and those can grow into new adult worms later, which is why your vet sets follow-up treatment. A dog that hunts, scavenges or eats stool keeps meeting new eggs and larvae. Other pets in the home that have not been treated can keep shedding eggs into the same space. A female dog can have resting larvae wake again with each pregnancy. A missed dose, a dose that does not match your dog's weight, or a product that does not cover roundworms can also leave worms behind. Your vet can look at each of these with you and build a plan to break the cycle.
What your vet may do
Your vet will start with questions about your dog's age, diet, lifestyle and deworming history, and about any signs you have seen. A physical exam follows. Your vet checks your dog's weight and body condition, feels the belly, listens to the heart and lungs, checks hydration, and looks at the coat and gums.
The main test for a roundworm infection is a stool test. Your vet may ask you to bring a fresh stool sample, and the clinic looks at it under a microscope for roundworm eggs. Eggs are not passed in every stool, and a young puppy can be unwell before any eggs appear, so a single clear test does not always rule roundworms out. Your vet may repeat the test or start treatment based on your dog's age and history. If you have seen a worm in your dog's stool or vomit, your vet may look at it to confirm the type.
If your dog is weak, vomiting or has a swollen belly, your vet may run blood tests and take X-rays or an ultrasound of the belly to look for a blockage. A dog with breathing trouble may need X-rays of the chest. Some dogs need fluids, a medicine your vet prescribes to control vomiting, or a stay in the hospital, and a blockage can need surgery.
For the infection itself, your vet will prescribe a deworming medicine that matches your dog's age, weight and health. Treatment is given in more than one round, on a schedule your vet sets, because each round reaches worms that have grown up since the last one. Puppies, a pregnant or nursing mother, and other dogs or cats in the home may all be part of the plan. Your vet may also recheck a stool sample after treatment.
Your vet can also set a long-term prevention plan. This can include a parasite prevention product given on a schedule your vet sets, stool tests as part of routine care, and steps to cut reinfection, such as picking up stool from your yard and keeping your dog from hunting or eating stool. Talk to your veterinarian about the plan that fits your dog, your other pets and the people in your home, including any young children. For more on other health problems, see our conditions library.
What to tell your vet
Tell your vet:
- When you first noticed worms in stool or vomit, or any other sign
- Any change since then, such as more worms, a swollen belly or weight loss
- Any bleeding, including blood in stool or vomit
- Any licking, scooting or chewing at the rear end
- Other signs, such as vomiting, diarrhea, coughing or a change in appetite
- Your dog's age, deworming history, any pregnancy or nursing, and whether your dog hunts, eats stool, eats raw food or lives with other pets
If your dog becomes weak, starts vomiting again and again, has a swollen belly or struggles to breathe before the appointment, go to an emergency vet now.
Frequently asked questions
- Is a roundworm infection an emergency in dogs?
- It is an emergency if your dog is vomiting again and again, has a swollen or painful belly, is weak or collapsing, or is struggling to breathe, so go to an emergency vet now if you see any of these. For any other sign of a roundworm infection, such as worms in stool, book a same-day appointment.
- What should I do if my dog has a roundworm infection?
- Call your vet today and book a same-day appointment, or go to an emergency vet now if your dog is vomiting again and again, has a swollen belly, is weak or is struggling to breathe. Tell your vet when you first noticed it, what you have seen, and whether other pets share your home.
- Can I treat a roundworm infection at home?
- No, because your vet needs to confirm the infection and choose a medicine and follow-up plan for your dog. Do not give a dewormer you have at home, put anything on your dog or pull out a worm before the vet visit. For any bleeding, use gentle pressure with a clean cloth on the way to the vet only.
- What causes roundworms in dogs?
- Roundworms in dogs come from swallowing eggs from soil, grass or stool, eating an infected animal such as a mouse, bird or rabbit, or passing from a mother dog to her puppies before birth or through her milk. If you think your dog has roundworms, book a same-day appointment with your vet.
- How are roundworms transmitted in dogs?
- An infected dog passes eggs in its stool, and those eggs develop in the soil until they can infect another animal. Dogs pick them up by sniffing, licking, digging or eating stool. Larvae can also pass from mother to puppy, and a dog can swallow larvae by eating a mouse, bird or other infected animal.
- Why does my dog keep getting roundworms?
- A dog can pick roundworms up again from eggs that stay in the yard or park, from hunting or eating stool, or from other pets that have not been treated. A single treatment may not reach larvae resting in the body. Talk to your vet, who can find the source and set a follow-up plan.
- Are roundworms in dogs contagious to other dogs?
- Yes, they can spread between dogs, but not through a quick sniff or touch. An infected dog sheds eggs in its stool, and other dogs swallow those eggs from shared yards, parks, kennels or bedding. If one dog in your home has roundworms, ask your vet whether every dog needs testing or treatment.
- Can people catch roundworms from dogs?
- Yes, people can be infected by swallowing roundworm eggs from soil or anything soiled by dog stool, and young children who play in dirt or sand are at higher risk. Wash your hands after handling stool or soil, pick up stool promptly, and talk to your doctor about any concern for a person in your home.
- Can roundworms come from dog food?
- Roundworm larvae can live in the meat and organs of infected animals, so raw meat and prey are the food-related routes, and thorough cooking kills the larvae. Bowls left outside can also be soiled by stool or soil. If you feed a raw diet, your vet can tell you how it fits your dog's parasite plan.
- Can dogs and cats pass roundworms to each other?
- Yes, some types can. One type of roundworm, Toxascaris leonina, can infect both dogs and cats, and cats shed eggs into the same yards, gardens and play areas. Cats that hunt can also carry larvae from prey. If you have both, talk to your vet about a plan, and never give a cat a product made for dogs.
- Can puppies be born with roundworms?
- Yes, because roundworm larvae resting in a mother dog's body can wake during pregnancy and move to the puppies before birth, and more can pass through her milk. This can happen even when the mother looks well. Call your vet to set a deworming plan for the puppies and the mother.
Educational content, not veterinary advice. Ask your vet about your dog.