Where Do Rats Live? Common Indoor and Outdoor Rat Habitats

Explore the intricate world of rat habitats, understanding their remarkable adaptability and the diverse places they call home.

Rats live nearly everywhere people do, from the walls and crawlspaces of city apartments to agricultural fields, sewer lines, and remote oceanic islands. The two species responsible for most encounters worldwide, the brown rat (also called the Norway rat) and the black rat (also called the roof rat), have been following human civilization for thousands of years, exploiting our food waste, our buildings, and our underground infrastructure. Their habitat choices are driven by a few basic needs: shelter from predators and weather, a reliable food source, and access to water. But the specific spots they colonize, both indoors and out, vary more than most people realize.

Brown Rats and Roof Rats Pick Different Spots

Understanding where rats live starts with knowing which rat you’re dealing with, because the two most common species have strikingly different preferences. Brown rats are ground dwellers. They are strong diggers that favor burrows, basements, lower floors of buildings, and underground passages like sewers. Roof rats, true to their name, prefer elevated spaces. They are agile climbers that nest in attics, rafters, dense vine growth on walls, and upper stories of buildings. In cities where both species coexist, they often stratify vertically within the same structure: brown rats below, roof rats above.

This split is not absolute. Brown rats will climb when they need to, and roof rats will nest at ground level in warmer climates where the ground-floor food supply is generous. On tropical islands, all three major invasive rat species (brown rats, black rats, and Pacific rats) have been found occupying virtually every available habitat type, from mangrove swamps to arid scrubland. But in temperate cities and suburban neighborhoods, the vertical split between the two species is a useful starting point for figuring out where to look.

Outdoor Habitats on the Ground

When people picture a wild rat, they usually imagine one emerging from a hole in the ground, and that image is accurate. Brown rats dig extensive burrow systems in soft soil, typically along foundations, under slabs and decking, beneath dense vegetation, and beside fences or retaining walls. A single burrow network can include multiple entrance holes, nesting chambers, and even food-storage areas. Rats choose burrow locations that offer overhead concealment, which is why they gravitate toward spots with thick ground cover, leaf litter, or low shrubs.

Research on Norway rat populations in rural England found that rats living near farm buildings strongly selected areas with high levels of ground cover, using hedgerows, tall grass, and debris piles as the core of their home range. When habitat management removed some of that cover, rat survival rates dropped and populations shrank. Rats that lived farther out in field margins also preferred dense cover but maintained much larger home ranges, presumably because food and shelter were more scattered. The practical takeaway: anywhere you let vegetation grow thick and undisturbed against a structure, you’re creating prime rat habitat.

Gardens, compost heaps, woodpiles, and overgrown lot edges all serve as outdoor harborage. Even an uncovered drainage ditch or a pile of construction debris can house a small colony if food is available nearby. The burrow entrance itself is surprisingly modest, often just a few centimeters across, and easy to overlook under a bush or next to a wall.

Farms and Agricultural Buildings

Agricultural settings are some of the richest rat habitats on Earth. Grain stores, livestock feed, and the warmth of barns create ideal conditions. Studies of rodent populations on pig and dairy farms have found that the most important factors driving where rats settle are the structure of the buildings themselves and the proximity of food sources. Brown rats on farms tend to concentrate around feed-storage areas, livestock housing, and any building that offers insulated wall cavities or raised floors where they can nest undisturbed.

Roof rats, where they occur on farms, tend to nest in the upper portions of barns, in hay lofts, or in tree canopy near orchard crops. In warmer agricultural regions, black rats are particularly problematic in fruit orchards and sugarcane fields, where they can cause significant crop losses without ever entering a building.

One reason farms are so difficult to keep rat-free is the sheer abundance of cover. Equipment sheds, hay bales, silage clamps, rubble piles, and hedgerows all offer nesting opportunities within short travel distance of food. Reducing that cover, as the English farm study demonstrated, is one of the more effective non-chemical control strategies, though it only works well for the rats living close to structures. Rats already established in surrounding field margins proved much harder to dislodge with habitat management alone.

Where Rats Settle Inside Buildings

Inside a home or commercial building, rats don’t just wander randomly. They follow a predictable logic: they want to be close to food and water while staying hidden inside structural voids. The specific indoor spots depend on the species. Brown rats favor basements, crawlspaces, and ground-level wall cavities. Roof rats prefer attic spaces, dropped ceilings, and upper wall voids. Both species will nest inside stored clutter, especially boxes of paper or fabric that provide soft nesting material.

Kitchens and bathrooms are the indoor zones most vulnerable to rat intrusion, largely because of the plumbing. Every pipe that enters a wall or passes through a floor creates a potential gap. A study of low-income apartment buildings in New Jersey found that around 70% of apartments had improperly sealed plumbing penetrations under kitchen or bathroom sinks, with gaps large enough for a rodent to squeeze through. Cold water, hot water, and drain pipes were all frequently missing escutcheon plates or had gaps exceeding six millimeters. That’s not much space, but rats can compress their bodies through surprisingly small openings.

Once inside walls, rats travel along pipe runs, electrical conduits, and the gaps between joists. They can move vertically through a multi-story building this way, which is why a rat problem in one apartment unit often spreads to neighbors above and below. Insulation inside wall and ceiling cavities is attractive nesting material. Research on house mice living inside insulated panels found that populations grew several-fold over six months, and every insulation type tested sustained significant damage. Rats, being larger and more destructive chewers, can cause even greater structural harm to the same materials.

Sewers and Subway Tunnels

For brown rats in cities, the sewer system is arguably the single most important habitat. Sewers provide everything a rat needs: constant water, a stable temperature that stays warmer than the surface in winter, protection from predators, and a steady supply of organic material flushed down drains. A systematic review of the scientific literature on rat ecology in urban sewers confirmed that these underground networks serve as a primary habitat and movement corridor for brown rat populations.

What many people don’t appreciate is how connected these underground systems are. A rat in the sewer beneath one block can travel substantial distances underground without ever surfacing. Broken sewer pipes, aging infrastructure, and improperly sealed lateral connections between buildings and the main sewer line all create entry points into basements and ground floors. This is one of the main reasons urban rat infestations can seem to appear from nowhere: the rats were already living underground and found a crack to exploit.

Subway systems extend the underground highway further. Genetic research on brown rats across Manhattan found that the presence of subway tunnels was the single best predictor of how easily rat populations moved and mixed across the borough. The analysis estimated that subway tunnel infrastructure was roughly 635 times more permeable to rat movement than areas without tunnels. In practical terms, subway tunnels don’t just house rats; they connect distant rat populations into a single interbreeding network, making city-wide control that much more difficult.

Waste Infrastructure as Habitat

Anywhere large volumes of food waste are concentrated, you’ll find rats. In high-rise residential buildings, refuse chute systems channel household garbage from every floor into a compactor room at ground level, where collection trucks pick it up daily. Those ground-floor refuse rooms become hotspots for rat activity when doors don’t seal properly, when waste spills accumulate, or when the building’s exterior has gaps that connect to burrow systems outside. The pattern is consistent across cities worldwide: dumpster enclosures, outdoor trash corrals, restaurant loading docks, and food-market waste storage areas all function as de facto feeding stations.

Rats are not picky about what constitutes food waste. Pet food left in outdoor bowls, birdseed beneath feeders, fallen fruit under trees, and grease residue around outdoor grills all sustain colonies. The proximity of these food sources to shelter is what determines whether a rat population becomes entrenched. A dumpster sitting next to a wall with a gap in the foundation is an almost guaranteed problem.

Coastal and Island Environments

Rats are not limited to human-built environments. On remote oceanic islands, introduced rat populations have established themselves in habitats that look nothing like a city. On South Georgia island in the South Atlantic, feral brown rats live primarily in dense stands of coastal tussock grass, which provides both shelter and food. They dig burrows directly into the tussock root stools, build nesting chambers in the leaf canopy above, and forage along the seashore, supplementing a carbohydrate-rich grass diet with beetles and other invertebrates.

On tropical islands, rat population densities can reach levels far higher than most temperate-zone populations. Pacific rats have been recorded at well over 100 individuals per hectare, and black rats at up to 119 per hectare, saturating every available habitat from coastal scrub to dense interior forest. These island populations cause severe ecological damage, preying on seabird eggs, native reptiles, and invertebrates. Their success in such diverse settings underscores a key point about rat habitat: wherever there is food and shelter from the elements, rats can make a home, regardless of whether humans are part of the picture.

Why Rats Live Where They Do

The common thread across every habitat described above is a combination of three resources: food, water, and concealment. Rats are prey animals for owls, hawks, snakes, cats, and many other predators, so they strongly prefer environments that minimize their exposure. Dense ground cover outdoors, enclosed wall cavities indoors, and dark underground tunnels all serve the same purpose: keeping the rat hidden while it feeds, sleeps, and raises young.

Temperature regulation also plays a role. Rats can survive a wide range of temperatures, but they prefer environments that don’t force them to spend excessive energy staying warm or cool. Burrows and indoor wall cavities maintain more stable temperatures than the open air. Some rat species take this further: bush Karoo rats in southern Africa construct elaborate stick lodges that maintain temperatures closer to their comfort zone and higher humidity than the surrounding environment, reducing both energy expenditure and water loss. The common brown and black rats achieve the same benefit by choosing human-built structures that are already climate-controlled.

Water availability is the resource people most often underestimate. A dripping outdoor faucet, a leaky basement pipe, condensation on cold-water lines, and standing water in a plant saucer all sustain rats that might otherwise need to range farther for hydration. Sewer-dwelling populations obviously have unlimited water. Removing water sources is often more immediately effective than removing food, since rats can survive on surprisingly small and varied food inputs but need regular access to water.

How They Get In

Rats enter buildings through gaps that most homeowners never think to inspect. The New Jersey apartment study is instructive here: the most common failure points were plumbing penetrations where pipes pass through walls and floors without proper sealing. But plumbing is only part of the story. Other common entry points include gaps where utility lines enter a building, deteriorated door sweeps on exterior doors, broken vent screens, gaps between siding and foundation, cracked sewer laterals, and open weep holes in brick facades.

Young rats can squeeze through a gap roughly the diameter of a quarter. Their skulls are the widest rigid part of their body; if the skull fits, the rest follows. This means exclusion work needs to be thorough. Sealing the obvious large holes while leaving dozens of smaller gaps around pipes and wiring accomplishes very little. Effective exclusion, often called “rat-proofing,” typically involves:

  • Escutcheon plates: Metal or hard-plastic rings that seal the gap where pipes pass through walls and floors.
  • Steel wool or copper mesh: Stuffed into gaps before being sealed over with caulk or cement, since rats chew through foam and soft caulk alone.
  • Hardware cloth: Quarter-inch galvanized mesh installed over vent openings, weep holes, and crawlspace access points.
  • Door sweeps: Metal or heavy rubber sweeps that eliminate the gap beneath exterior and garage doors.

Exclusion is widely regarded by pest management professionals as the most durable form of rat control. Trapping and baiting remove current occupants, but if the entry points remain open, recolonization from outdoor or sewer populations is essentially guaranteed.

How Human History Created Rat Habitat

The brown rat’s status as a global pest is inseparable from the history of human civilization. The species originated in Asia and transitioned from a wild animal to a commensal one, meaning it came to depend on human environments for food and shelter, over a period of millennia. Agricultural development, urbanization, and changing waste management practices all created new ecological niches that brown rats were well suited to exploit. Grain storage attracted early rat populations to human settlements. Growing cities with their sewers, cellars, and abundant refuse provided even richer habitat. Global shipping spread brown rats to every continent except Antarctica.

This evolutionary history explains why rats are so good at exploiting human structures. They have been doing it for thousands of years, and the rats that survived and bred most successfully were the ones best adapted to nesting in walls, eating our food waste, and navigating our underground plumbing. Modern rat behavior, from their tendency to follow pipes and wiring runs through buildings to their preference for the same starchy and fatty foods we eat, is a product of this long co-evolution with human environments. It also means that any human-built structure, from a rural barn to a high-rise apartment, comes pre-loaded with the features rats evolved to exploit. The question isn’t really where rats can live; it’s where they can’t.