You keep finding flies on the sill, a stink bug on the curtain or a roach near the window air conditioner, and it is natural to wonder whether bugs are coming in through the window AC unit. They can. A window unit can become an entry point when its side panels, the window sash, the sleeve or the wall around it are not sealed.

A bug near the unit is not proof that the unit is the source, though. It may have come through a torn screen, a crack in the wall, a pipe opening or a neighboring apartment, and it may simply be drawn to light or moisture by the window.

The useful step is to look at the whole opening: the unit, the window and the wall. Once you know where the gaps are, you can close most of them yourself while keeping the air and water paths open, and you will know who to tell about the rest.

Can a Window AC Let Flies, Roaches or Mice Inside?

Yes, through the gaps around it. Most window units sit in a window that was never designed to hold them, so the fit depends on accordion side panels, foam strips and how well the sash closes on top of the unit. When any of those pieces shrink, tear or shift, a small opening forms between your apartment and the outside.

Different pests use those openings in different ways. Flies tend to come in through open or damaged screens and side gaps, often drawn by food odors and damp spots. Brown marmorated stink bugs slip into cracks around windows, siding and vents when they look for shelter, and a loose AC installation can be part of that crack. They generally shelter indoors rather than breed there.

Cockroaches and mice are more likely to be moving through the building itself. Roaches travel along plumbing penetrations, utility lines and cracks in walls, and mice use small openings around pipes, walls and sleeves. The AC perimeter can be one of their routes, but in an apartment building these pests more often use wider wall voids and the paths that lead to food. A mouse in the kitchen and a roach by the window may share one cause that has nothing to do with the air conditioner.

That is why a sighting is a reason to inspect, not a verdict. Look at where you see the pest, how often and at what time of day, and whether it appears when the unit starts.

What Do NYC Pest Violation Numbers Show?

Pest problems in city housing are common. HPD's FY2025 indoor allergen report counts the pest violations the agency issued across New York City in that fiscal year.

HPD pest violations issued in New York City, FY2025

Hover or tap a row to highlight it.

CategoryViolations issued
All pest violations, citywide73,733
Roach violations39,480
Mouse violations30,787
Bronx31,979
Brooklyn20,810
Manhattan12,019
Queens7,313
Staten Island1,612
CategoryAll pest violations, citywide
Violations issued73,733
CategoryRoach violations
Violations issued39,480
CategoryMouse violations
Violations issued30,787
CategoryBronx
Violations issued31,979
CategoryBrooklyn
Violations issued20,810
CategoryManhattan
Violations issued12,019
CategoryQueens
Violations issued7,313
Violations issued1,612

These are violations issued, not a count of apartments with pests or of individual insects and mice. Many problems never reach an inspector, and one building can carry several violations. The city does not track which of these began at a window unit, so treat the AC as one possible entry point and look at the whole window, wall and building around it.

The numbers also show how the city ranks these conditions. Under HPD's pest rules, mice, rats or cockroaches in an apartment or common area are Class C conditions with 21 days to correct, while other pests are Class B with 30 days. NYC Open Data also publishes 311 rodent complaints from 2020 to the present, updated daily. Each entry is a public report, not a confirmed infestation.

Light brown German cockroach with two dark stripes behind the head on the front grille of a window air conditioner
Roaches can hide in and around window AC units, where warmth and shelter are close together.

Does the Type of Building Change What the AC Opening Means?

It does, because the space behind the wall changes from one building to the next. The same gap around a window unit can lead straight outdoors in a detached house and into a shared wall void in an apartment building. Knowing what sits behind your window helps you judge whether sealing the unit is the whole job or only one part of it.

In a pre-war walk-up, older masonry, wood trim, uneven window openings, pipe chases and shared wall voids give pests more places to travel. One AC gap may be part of a larger wall, plumbing or neighboring-apartment problem. In a large apartment building, pests move through shared plumbing, utility openings, trash rooms, hallways and the apartments beside yours, so management needs to look beyond your unit.

In public housing, residents report maintenance and pest problems through NYCHA's Customer Contact Center or 311. In a row house, party walls, basements, rear yards and several window units can connect pest activity between parts of the building. In a detached house, the AC opening often meets the outside directly, which makes screens, side-panel seals, exterior cracks, nearby plants, garbage and standing water more important.

Businesses have extra pest sources in food, refuse, drains and deliveries. A window unit in a shop or restaurant belongs inside the premises' overall pest plan rather than being treated as a separate appliance problem.

How Do You Seal a Window AC Unit Without Blocking It?

To seal a window AC unit against pests, close the gaps between the unit and the building while leaving the unit's own openings alone. The AC needs its intake, exhaust, filter access and drain to work, and blocking them can damage the unit or trap water. Work with the unit turned off, and do not reach into it while it is plugged in.

Stink bugs release a strong odor when crushed, which is why Penn State Extension's stink bug guidance favors a vacuum. Keep food, garbage and recycling in closed containers and wipe up spills, since a sealed window does little if a nearby trash can keeps drawing flies.

A wall sleeve is a slightly different job. The sleeve should be sealed at its outer edge and kept up according to the unit and sleeve instructions. Gaps in the surrounding brick or trim usually need a building repair rather than an appliance fix, and in a rental that repair belongs to the owner.

Some common steps make things worse or create a hazard. Do not block the vents or drain openings, spray insecticide into the unit, set off foggers or bombs, or put loose rodent poison indoors. Do not remove required window guards to fit an AC, rest the unit on loose bricks or blocks, or work on a unit that feels unstable. If you clean the unit or the sill, never mix bleach with ammonia or other cleaners.

Foam weatherstripping and an insulating panel fitted tightly around the sides of a window air conditioner
Foam strips and insulating panels sealed around the sides of a window AC close the gaps pests use to get in.

Do Condensation and Standing Water Attract Pests?

They can when the water collects. A window AC produces condensation every time it cools, and normal drainage is not a sign of an infestation. The questions that matter are whether water is pooling, leaking indoors, standing outside on a ledge or mixing with dirt and organic debris.

Persistent dampness can contribute to cockroach and rodent problems and supports mold, and NYC Health's guidance on indoor moisture treats leaks as a condition to fix promptly. Flies are drawn to damp organic debris. Mosquitoes need standing water to breed, and the EPA's mosquito life cycle page explains that eggs hatch in water, so a clogged drain pan or a pool on the outside ledge is worth clearing. If mosquitoes or flies keep coming back after the water is gone, that is the point to ask about fly and mosquito control.

Do not plug the drain to keep insects out. Fix the drainage instead and keep the area clean.

Some signs point to pests living in or right behind the unit rather than passing by. Look for droppings, egg cases, gnaw marks, nesting material, dead insects, grease or smear marks, an unusual odor, repeated activity at the same gap, or pests appearing when the unit starts. Moisture, mold or debris inside the unit are reasons to turn it off and arrange cleaning or an inspection. They are not proof of a nest.

A damp or moldy unit can also affect the air. The CDC notes that mold exposure can cause congestion, coughing, wheezing and eye or skin irritation in some people. Stop using a visibly contaminated unit and talk to a health care provider about symptoms that persist.

When Should You Tell the Landlord, Call 311 or Bring In a Professional?

Tell your landlord or building manager first, in writing, and keep a copy. Report cockroaches, mice, flies or other pests, along with holes, cracks, leaks, mold, a unit that looks unstable or an AC that was installed unsafely. Your photos and dates will make the request clear.

Renters in buildings with three or more apartments have a specific rule behind them. HPD explains that under Local Law 55, owners must keep apartments free of pests and mold and correct the conditions that cause them. Tenants are expected to report problems and allow access for inspection and repair. If roaches keep turning up in several rooms, not only by the window, that pattern is worth mentioning when you arrange cockroach control.

If the landlord does not fix the condition, you can file a maintenance or pest complaint with HPD through 311, online or by app. HPD may inspect and issue violations. Contact the landlord and 311 as well if a window guard is missing, loose or in the way of a safe AC installation.

A pest professional makes sense when activity continues after you seal the gaps, you see signs of nesting, droppings are widespread, several apartments are affected or treatment is needed. If the AC itself is leaking, damaged, unstable, electrically unsafe or sits in a high window that is hard to reach, a qualified HVAC technician or building staff should handle it.

Window air conditioner on the outside of a brick apartment building with a drip of condensation water falling onto the ledge
Condensation dripping from a window AC leaves damp spots on ledges and brick that attract insects.

Should a Window AC Come Out for Winter?

NYC has no general rule that every window AC must be removed or covered for winter, so the answer depends on the manufacturer's instructions and your building's rules. Removing the unit closes the opening and leaves you with a window that seals normally. It can also be a fall risk, and a heavy, high or bolted unit should be taken out by qualified people.

A cover can cut drafts and block some debris, but it should never go on a running unit or trap moisture against the appliance. Leases, window guard requirements and the way the unit was installed may limit what you can do, so ask the landlord or manager before removing anything.

Timing helps with prevention. Window AC pest questions come up most in warm weather, when windows are open, the unit runs often and condensation builds. Stink bugs look for indoor shelter in early fall and may come out later from cracks around windows and trim, so sealing the AC perimeter before fall is useful. Mice may become more noticeable as it gets colder, though that depends on the building and access to food.

If droppings or gnaw marks have shown up near the sleeve, mention where you found them when you ask about rodent control, since mice often reach a window through the wall behind it.

Common Questions About Bugs and Window AC Units

Does a bug near the AC mean the unit is infested?

No. The bug may be using a gap around the unit, coming from another part of the building or drawn to light or moisture at the window. Inspect the unit and the wall around it before deciding where treatment is needed.

Can bugs get in through a window AC while it is running?

They can enter through unsealed gaps around the unit while it runs. Running the AC does not seal the installation, and a pest near it may also have come in somewhere else.

Should I spray bug killer into my window air conditioner?

No. Do not spray pesticides into an operating appliance or air path. Follow the product label and bring in a professional when treatment is needed.

Can cockroaches come out of air conditioner ducts?

Cockroaches travel through building voids, plumbing routes, ducts and cracks. A roach near a vent or AC does not prove it came through the duct, so check the surrounding wall, utility openings, neighboring areas and the installation before treating.

Do I need a permit to install a window AC in NYC?

A common window unit does not need a work permit or equipment-use permit. Units over three tons, or 36,000 BTU per hour, need an equipment-use permit. The unit should be fastened securely, supported safely, tilted slightly for drainage and installed so the window cannot move by accident.

Quick check

You keep finding stink bugs near your window AC. What should you do with the ones you find indoors?

The Bottom Line

A window AC can let flies, stink bugs, roaches and mice in through the gaps around it, but a pest near the unit is a reason to look at the whole window, wall and building rather than proof of a nest. Seal the side panels, sash, sleeve edges and wall cracks with the right materials, and keep the vents and drain open. Clear standing water, skip the sprays and foggers, and put every report to your landlord in writing.

Small repairs to the window opening tend to last. Once the gaps are closed and the drain works, the window stops being an easy route, and any pests that still appear point you toward the real source in the building.

If pests keep showing up after you have sealed the opening, Hall Pest Control NYC can help. We serve homes and businesses across New York City, in all five boroughs, with cockroach, rodent, fly and mosquito control. Send us an inspection request with what you have seen, where the unit is and your borough, and we will follow up to arrange a visit.

Window AC and pest terms

Tap a term to see what it means.

Side panels. The accordion or foam pieces that fill the space between the sides of a window unit and the window frame.

Wall sleeve. A metal housing set into an exterior wall that holds a through-the-wall air conditioner; its outer edge needs to stay sealed.

Sash. The movable part of the window that closes down on top of the unit.

Drain pan. The tray that collects condensation inside the unit so water can drain out; if it clogs, water can stand and support pests and mold.

Local Law 55. The NYC law requiring owners of buildings with three or more apartments to keep apartments free of pests and mold and correct the conditions that cause them.

Class C violation. HPD's most serious violation class; mice, rats or cockroaches in an apartment or common area carry 21 days to correct.