If you suddenly have flies in your apartment, they have most likely found a food, moisture or breeding source close by, or warm weather has brought adults out of a spot you cannot see. It can seem as if they came from nowhere. A handful one day can turn into dozens a few days later, even in a home you keep clean.

The places to check first are ripe produce, garbage and recycling, drains, houseplant soil, leaks, window screens and any shared trash area in your building. Each kind of fly tends to breed somewhere different, so what the flies look like often tells you where to start.

A sudden surge does not reveal its cause on its own. Noting what the flies look like and where they gather is the quickest way to stop guessing and start on the right fix.

Flies Can Appear Suddenly Even in a Clean NYC Apartment

Most fly problems seem sudden because the early stages happen out of sight. Eggs and larvae develop in a drain, a forgotten onion, damp potting soil or a bag of recycling, and you only notice once the adults come out. A new source can also arrive with the groceries, or a slow leak can start keeping a corner of the kitchen wet. Flies come in from outside as well, through open windows, torn screens, doors, vents and the gaps around a window air conditioner.

Warm weather speeds everything up. Purdue Extension's house fly publication notes that house fly eggs can hatch in about 8 to 12 hours, and that development from egg to adult takes roughly 7 to 45 days in a normal range of 60 to 95 degrees Fahrenheit. In warm weather, two to three generations a month are typical. That pace explains how a few flies can become many over a short run of summer days, and why several adults can come out of one source at the same time.

A clean apartment does not rule flies out. Some kinds breed in the film inside drains or in moist plant soil, and others come from a building trash room, a plumbing leak or a hollow space in a wall. Cleaning cuts down on the food and material flies need, but it cannot fix a pipe or a shared garbage area. Where the flies show up tells you far more than any assumption about housekeeping.

What the Flies Look Like Points to Where They Breed

Telling one fly from another is the most useful step you can take, because each type points to a different place. You do not need a magnifying glass for most of it. Size, color, wing shape and the way the flies move are usually enough to narrow things down, and a clear photo helps if you need to describe them to someone later.

Common indoor flies and where they breed

Hover or tap a row to highlight it.

FlyWhat it looks likeWhere it usually breeds
House flyMedium to large and gray, with four dark stripes on its backGarbage, animal manure and decaying matter
Fruit flySmall and tan to dark brown, often with red eyesRipe or fermenting produce, drinks, recycling and trash containers
Drain flyVery small, fuzzy and moth-like, with broad wingsThe slimy film inside drains, traps and other wet plumbing
Fungus gnatTiny, slender and dark, usually near houseplantsOverwatered or organic-rich potting soil
Phorid flyTiny and humpbacked, often running across surfacesMoist decaying material, including floor drains, garbage and damp soil
Cluster flyLarger, slow and gray, with golden hairsOutdoors in soil; adults come inside to spend the winter
Blow or bottle flySturdy, with a metallic blue, green or bronze shineDead animals, garbage, dumpsters and decaying material
FlyHouse fly
What it looks likeMedium to large and gray, with four dark stripes on its back
Where it usually breedsGarbage, animal manure and decaying matter
FlyFruit fly
What it looks likeSmall and tan to dark brown, often with red eyes
Where it usually breedsRipe or fermenting produce, drinks, recycling and trash containers
FlyDrain fly
What it looks likeVery small, fuzzy and moth-like, with broad wings
Where it usually breedsThe slimy film inside drains, traps and other wet plumbing
FlyFungus gnat
What it looks likeTiny, slender and dark, usually near houseplants
Where it usually breedsOverwatered or organic-rich potting soil
FlyPhorid fly
What it looks likeTiny and humpbacked, often running across surfaces
Where it usually breedsMoist decaying material, including floor drains, garbage and damp soil
FlyCluster fly
What it looks likeLarger, slow and gray, with golden hairs
Where it usually breedsOutdoors in soil; adults come inside to spend the winter
FlyBlow or bottle fly
What it looks likeSturdy, with a metallic blue, green or bronze shine
Where it usually breedsDead animals, garbage, dumpsters and decaying material

Small flies in the kitchen are often fruit flies. University of Minnesota Extension's fruit fly page ties them to ripe or fermenting fruit and vegetables, drinks and food residue. Fuzzy flies resting on bathroom tile point to the drains instead. Penn State Extension's page on moth flies explains that their larvae live in the organic film lining drains and pipes, which is why drain flies in NYC apartments usually call for a stiff brush rather than a spray.

Tiny dark flies around a houseplant are more likely fungus gnats, which University of Minnesota Extension's fungus gnat page links to damp potting soil. Penn State Extension's note on plants coming indoors adds that adults live about a week and can lay up to 300 eggs in moist soil. Small humpbacked flies that run across the counter may be phorid flies, which Utah State University Extension's phorid fly page ties to moist, decomposing material such as floor drains and, at times, broken pipes.

Larger flies tell a different story. Slow gray flies at a sunny window may be cluster flies, which Utah State University's winter pest newsletter describes as developing outdoors and moving into buildings to spend the winter. A group of large metallic flies, or a smell that stays near one wall or ceiling, is worth taking seriously. Utah State University Extension's blow fly page notes that many blow flies indoors at once can point to a dead animal in a wall, ceiling, attic or basement. That calls for a professional inspection rather than opening the wall yourself.

Small fruit flies hovering over a bowl of overripe spotted bananas on a kitchen counter
Small fruit flies hovering over a bowl of overripe spotted bananas on a kitchen counter

Season, Moisture and Building Type Shape What You See

Timing depends on the fly. House flies develop faster as temperatures rise, which is why warm months tend to bring more of them. Fruit flies can appear in any month once fermenting produce or food waste is around. Drain flies and phorid flies depend on moisture and organic buildup, so in a heated building they can keep going indoors all year. Cluster flies work the other way, sheltering in walls and attics for the cold months and often turning up at a sunny window when a room warms.

The kind of building you live in also changes where to look:

  • Pre-war walk-ups: Older plumbing, open wall chases, basement moisture and shared garbage areas give flies more ways to move between apartments.
  • Large apartment buildings: A source may sit in a trash room, chute, compactor, basement or another unit, so several affected apartments suggest a shared cause.
  • Public housing: NYCHA's notice on keeping homes pest free focuses on fixing leaks, holes and trash conditions that support pests.
  • Row houses: Shared walls, utility openings and rear-yard garbage areas can link one home's flies to a neighbor's.
  • Detached houses: Outdoor garbage, compost, screens, the attic, basement, crawlspace and roofline all belong in the search.

Finding Where the Flies Are Coming From Starts Where They Gather

When you do not know where the flies are coming from, start with the spot where the adults collect and work outward from there. A cluster on one window, one sink or one corner is a good lead, and the sources nearby are the first ones to check. A few minutes at each of these stops usually narrows the search.

A simple trap or sticky card in each of a few rooms lets you compare activity from one place to the next. The room that catches the most is a good place to search harder. A catch helps narrow the search, but it does not prove the source is right beside the trap, and it does not show that the source is gone.

Some signs mean you should stop searching and report instead. A smell coming from one wall or ceiling, flies coming out of a wall, metallic blow flies or maggots in an unexpected place can all mean hidden organic material or a dead animal. Do not open walls or handle a carcass yourself.

Tiny dark fungus gnats on the damp soil of a potted houseplant on a windowsill
Tiny dark fungus gnats on the damp soil of a potted houseplant on a windowsill

Removing the Source Works Better Than Spraying the Flies

Lasting relief comes from taking away what the flies are breeding in. That means throwing out spoiled or infested food, washing out garbage and recycling containers, scrubbing the film out of drains, fixing leaks, letting plant soil dry out more between waterings, repairing torn screens and sealing gaps around doors and window units. Traps, sticky cards and swatters can cut down the adults you see and help show where they gather, but they work alongside source removal rather than in place of it.

Spraying the flies you can see usually brings only a short break. The spray may kill those adults while eggs and larvae stay put in the produce, drain, soil, garbage or hidden space, and new flies keep coming out. A few common steps also add risk:

  • Foggers and bug bombs: NYC Health's pests and pesticides page warns residents against foggers, bombs and illegal pesticides.
  • Products used off label: The EPA's Home, Safe Home guidance calls for reading the label and following its directions on any pesticide you use.
  • Spraying near food or people: Keep any product off food, counters and other food-contact surfaces, children's areas, pets, pet dishes and bedding.
  • Mixing cleaners: Never combine cleaning chemicals or pour mixed products down a drain to clear flies.

Food deserves extra care while you sort out the source. The CDC's material on domestic flies explains that house flies and related flies can carry microorganisms from garbage, sewage and decaying matter onto food and surfaces. Keep food covered, wipe down preparation areas, and throw out food that flies have contaminated.

Some Fly Problems Belong to the Building, Landlord or Manager

If the flies come from your own produce, garbage, plants or sink drain, the job is mostly cleaning, drying things out and fixing screens. Other sources sit in parts of the building a tenant cannot reach or repair. Flies that keep returning, appear in several rooms, come out of a drain or wall, arrive with a leak or sewage smell, or gather near a trash room, chute, compactor or basement point toward a building condition. NYC has a clear order for reporting those, and NYCHA has its own route.

Tell the Landlord or Manager in Writing

HPD's page on indoor allergen hazards, mold and pests advises tenants to notify the landlord when they see pests, leaks or mold. Tell the owner, managing agent or superintendent promptly and in writing. Include the dates you saw the flies, the rooms involved, any leak or odor, and a few photos, and ask for an inspection of the shared or hidden areas.

Report to 311 if the Condition Is Not Corrected

If the landlord or manager does not fix the problem, NYC311's residential pest complaint page accepts complaints about flies and other pests inside an apartment or in the public areas of a residential building. HPD's guidance on reporting a maintenance issue explains how the agency follows up, which can include an inspection and a violation where one applies.

NYCHA Residents Report Through NYCHA

If you live in public housing, NYCHA's pest control page directs residents to report pest and maintenance problems through MyNYCHA or the NYCHA Customer Contact Center. Mention any leak or trash condition along with the flies.

When a Professional Inspection Helps

A pest professional is worth bringing in when the source seems hidden, when flies continue after cleaning and repairs, when a dead animal may be inside a wall or ceiling, or when a business keeps seeing flies around food or waste. Professional fly and mosquito control can work alongside any plumbing or building repair the source needs.

Kitchen trash can with a tightly closed lid beside a clean empty recycling bin in daylight
Kitchen trash can with a tightly closed lid beside a clean empty recycling bin in daylight

A Few Habits Keep the Next Fly Surge Small

Prevention mostly comes down to taking away the easy places to breed before flies find them. Keep ripe fruit in the refrigerator or eat it soon, and check stored potatoes and onions now and then. Take out garbage often, tie bags closed and rinse recycling before it goes in the bin. Brush out sink, shower and floor drains every so often, and run water through drains you seldom use. Water houseplants only as much as they need so the top of the soil can dry.

The building side matters just as much. Repair torn screens, seal gaps around window air conditioners and doors, and report leaks early, because damp areas give larvae another place to grow. If you notice flies near a trash room or compactor, mention it to the super before it spreads to more apartments.

For restaurants, cafes and food stores, flies near food are a food safety matter as well as a nuisance. The NYC Health Department's food protection course manual covers pest control as part of protecting food. Keep food covered, clean waste and receiving areas, maintain door closers and screens, and check floor drains and the spaces under equipment.

Common Questions About Sudden Flies in NYC Apartments

Once people know what kind of fly they have, a few practical questions tend to follow. Most are about where the flies got in, whether they say something about the apartment and how long they will stay. The answers apply to most NYC apartments and houses. A problem that keeps coming back after careful cleaning is better handled by checking the building than by any general rule.

Can flies come in through a window air conditioner?

Yes. Flies can get in through openings around window units, wall sleeves, vents, screens and doors when those gaps are not sealed or screened. If flies gather around an air conditioner, check the seal around it and look for moisture or buildup nearby as well.

Do flies mean my apartment is dirty?

Not necessarily. Some flies breed in moist drains or plant soil, and others come in through screens and gaps or out of wall spaces. Where the flies appear and what they look like matter far more than any assumption about how you keep your home.

Can flies come from another apartment?

Yes. In a multi-unit building, flies can move through shared plumbing, wall spaces, utility openings, hallways, trash rooms and chutes. When several apartments see flies at the same time, the building should look for a shared source.

Where are the small flies in my kitchen coming from?

Small flies in a kitchen most often come from ripe or fermenting produce, drinks, recycling, the garbage can or the sink drain. Check potatoes and onions too, since they can spoil out of sight, and look under appliances for spills.

How long will the flies last?

It depends on the fly, the temperature and whether the source is gone. House flies can go from egg to adult in roughly 7 to 45 days and fungus gnats in as little as three weeks, so a few adults may keep appearing for a while after you clear the source. Flies that keep coming well after cleaning point to a source that is still there.

Quick check

Several large, shiny green flies keep gathering near one bedroom wall, and there is a smell nearby. What is the best next step?

The Bottom Line

A sudden wave of flies usually means they have found food, moisture or a place to breed nearby, or that warm weather has brought them out of a hidden spot. The type of fly points you toward the source, whether that is the fruit bowl, a drain, a houseplant or a wall. Removing that source does far more than spraying the adults. When the flies come from a drain, a wall or a shared area, the landlord or manager needs to know in writing.

Dealing with the source tends to end the cycle rather than pause it. Clear notes and photos also give your building what it needs to fix a leak or a trash problem before it spreads.

If flies keep coming back to your home or business anywhere in New York City, Hall Pest Control NYC can help. We serve the Bronx, Brooklyn, Manhattan, Queens and Staten Island, and fly and mosquito control is one of our services, along with bed bug, rodent, cockroach, ant and dust mite control. Send us an inspection request that says what the flies look like and where you see them, and we will follow up to arrange the visit.

Indoor fly terms

Tap a term to see what it means.

Breeding source. The food, garbage, drain film, soil or other material where fly eggs hatch and larvae grow into adults.

Larva. The young, wormlike stage of a fly that develops in the breeding source before it becomes an adult; maggots are fly larvae.

Drain film. The slimy layer of organic material inside drains and traps where drain fly larvae live.

Overwintering. Spending the cold months sheltered inside a building, as cluster flies do in walls, attics and basements.

Sticky monitor. A sticky card or trap set out to show where adult flies gather, used to narrow the search rather than to end the problem.