Harmful Household Insects

Which is dirtier, a fly or a cockroach?

Flies and cockroaches both carry germs, but house flies may spread more of them. How each one contaminates food, which is worse to have at home, and how to keep both out.

On this page
  1. The short answer
  2. Why house flies are so good at spreading germs
  3. Why cockroaches are a health problem too
  4. Fly vs. cockroach: a side-by-side comparison
  5. Which one is worse to have in your home?
  6. Should you throw away food a fly or roach has touched?
  7. Keeping both out of your kitchen

The short answer

Both are dirty, but the house fly is often considered the bigger germ carrier. Research from the University of Florida, funded by a pest control company, found that house flies may carry roughly twice as many kinds of disease-causing bacteria as cockroaches. That figure comes from a single study, so it’s best treated as a rough comparison rather than a firm rule.

Cockroaches have their own serious downside: their droppings and shed skins contain allergens that can trigger asthma. So which is “dirtier” depends on what you’re worried about. Flies are probably the worse carrier of food-borne germs, while a cockroach infestation can be the bigger long-term health problem in a home.

Why house flies are so good at spreading germs

House flies spend their lives around filth. They breed in garbage, manure, compost and rotting food, and adults visit the same places to feed. Then they fly into kitchens and land on food, plates and counters.

A few habits make flies especially effective at spreading germs:

  • They can’t chew. To eat solid food, a fly releases saliva and digestive fluids onto it, then sponges up the liquid. Anything it has picked up can end up on your food in the process.
  • They defecate often, including while feeding.
  • Their bodies are covered in fine hairs, and their feet have sticky pads that pick up bacteria.
  • They move around a lot, visiting many surfaces in a short time.

House flies have been linked to the spread of bacteria such as Salmonella, Shigella and E. coli, especially in places with poor sanitation. A single fly landing briefly on your sandwich isn’t usually cause for panic, but many flies around uncovered food is a real hygiene problem.

Why cockroaches are a health problem too

Cockroaches also travel through drains, sewers, garbage and other dirty places, and they eat almost anything, including decaying food and waste. They can carry bacteria on their legs and bodies and leave them on food and surfaces as they forage at night.

What sets cockroaches apart is the allergen problem. Their saliva, droppings and shed skins break down into particles in household dust. In homes with heavy infestations, these allergens are a well-known trigger for asthma and allergies, particularly in children. That effect lasts as long as the infestation does, and it can persist for a while after the roaches are gone, until the home is thoroughly cleaned.

Cockroaches are also hard to get rid of once they settle in. The German cockroach, the most common indoor species in many countries, breeds quickly and hides in tight spaces near warmth and moisture, such as behind fridges and under sinks.

Fly vs. cockroach: a side-by-side comparison

House fly Cockroach
Where it breeds Garbage, manure, rotting organic matter, often outdoors Inside the home, in warm, hidden spaces
How it contaminates food Saliva, vomit and droppings while feeding; germs on legs and body Germs on legs and body; droppings
Allergen risk Low High in infested homes
Activity Daytime Mostly at night
Typical problem Short-lived, seasonal swarms Persistent infestations

Which one is worse to have in your home?

For most households, a cockroach infestation is the bigger problem. A few flies usually come in from outside and can be dealt with by finding and removing whatever is attracting them. Cockroaches, on the other hand, live and breed indoors, and a small number can become a large population over time.

That said, if you suddenly have many flies indoors, something is probably breeding nearby, such as forgotten food waste, a dirty trash can or a dead animal in a wall or attic. Our guide on what causes house flies in the house covers the usual sources. With cockroaches, it helps to know how to identify common types of cockroaches, since some species just wander in from outside while others are signs of an indoor infestation.

Should you throw away food a fly or roach has touched?

Food safety agencies generally recommend covering food to keep insects off it. If a fly lands briefly on your food, the risk is usually low for healthy adults, though many people prefer to discard the spot it touched. Food that has been sitting out with many flies on it, or food that cockroaches have been in, is safer to throw away. Be more cautious with food for young children, older adults, pregnant people and anyone with a weakened immune system.

Keeping both out of your kitchen

The same habits help with both pests:

  • Keep food covered or in sealed containers, and don’t leave dishes out overnight
  • Use trash cans with tight lids and empty them often
  • Clean up crumbs, grease and spills, especially under appliances
  • Fix leaky pipes and dry out damp areas under sinks
  • Repair window screens and seal gaps around pipes and baseboards
  • Keep outdoor bins and compost away from doors

Persistent cockroach problems often need baits or professional treatment. For a broader look at other household pests, see our examples of harmful insects at home.

The complete guide to harmful household insects

Examples of Harmful Insects at Home
Read the guide

Keep exploring

Guides from other topics

All topics →