Wild rats act as opportunistic omnivores. They eat whatever fits their habitat, season, and access to food.
Their diet usually includes seeds, grains, nuts, fruits, roots, insects, eggs, and small animals. Near people, scavenged scraps become more important.
Their food choices change quickly with the environment. A rat in a forest may spend most of its time foraging for plant matter.
A rat near homes may switch to garbage, pet food, and discarded human meals, as noted by realitypathing.com and HowStuffWorks.
Main Foods Wild Rats Look For

Wild rats eat a wide mix of plant and animal foods. Their choices usually depend on what is easiest to find.
In most habitats, rats get the base of their diet from energy-rich plant foods. They add protein sources when they are available.
Seeds, Grains, And Nuts
Rats in the wild rely on seeds and grains as major staples, especially in fields, grasslands, and woodland edges. They eat wheat, corn, oats, barley, acorns, hazelnuts, and other hard-shelled foods that provide quick energy and fat.
Fruits, Roots, And Other Plant Matter
Wild rats eat fruits, berries, shoots, stems, leaves, roots, tubers, and fungi when they can find them. Seasonal plant foods matter a lot, because fresh fruits and tender vegetation are easier to reach during warmer months, as noted by a wild rat diet guide.
Insects, Eggs, And Small Animals
Rats in the wild also eat insects, worms, larvae, nestlings, eggs, amphibians, and other small animals when the chance appears. This gives them protein for growth, repair, and reproduction.
How Habitat Changes Rat Feeding

Where rats live shapes what they eat more than almost anything else. Forest, farm, street, and sewer habitats offer different food sources.
City rats, urban rats, and sewer rats often show different feeding patterns from rats in rural areas.
Forest And Field Foraging
In forests and fields, rats spend much of their time searching for seeds, nuts, berries, grains, and green plant matter. These settings reward nocturnal foraging and caching food.
Rats move between shelter and feeding spots. This helps them avoid predators and return to reliable food patches.
City And Street Food Sources
In towns and cities, rats often switch to human-linked foods when they are available. Crumbs, pet food, spilled grain, restaurant waste, and discarded snacks can become major parts of the diet.
Sewers, Garbage, And Human Scraps
Near trash areas and drainage systems, rats eat garbage, grease, leftovers, and other scraps that people leave behind. These food sources are less natural, yet they are dependable.
Sewer rats and urban rats often thrive near dense human activity.
Diet Differences Between Common Rat Species

Different rat species use the same basic strategy. Their feeding habits can lean in different directions depending on habitat and competition.
The brown rat, also called Rattus norvegicus, and the black rat, Rattus rattus, are the best-known examples.
Brown Rat Feeding Patterns
Brown rats often feed close to the ground and do well in damp areas, sewers, fields, and buildings. They eat grains, fruit, roots, scraps, and animal matter.
This flexibility helps brown rats succeed around farms and cities, as described in a rat diet guide.
Black Rat Feeding Preferences
Black rats are more likely to use higher, drier spaces such as trees, rooftops, and stored-food areas. They still eat a broad mix of foods.
They often rely more on fruits, seeds, and plant matter when those foods are easy to reach.
Why Wild Rats Thrive Around People

Wild rats do well near people because human spaces create steady food opportunities. When food is easy to sample, easy to hide, and easy to revisit, rats quickly adjust their behavior and keep returning.
Opportunistic Eating And Sampling Behavior
Rats act cautiously, but they are also curious nibblers. They often sample many foods in small amounts, then return to the safest and most rewarding options.
A small spill or open trash can attracts repeated visits.
Seasonal Shifts In Available Food
Food availability changes through the year, so rats change their diet with it. In warmer seasons, they get more fruit, seeds, and insects.
Colder periods push them toward stored food, carcasses, and human waste, as noted by realitypathing.com.
Food, Water, And Shelter Links
Rats need more than food. This need attracts them to homes, farms, and urban infrastructure.
When food sits near water and shelter, rats can feed without traveling far. This proximity makes the location much more valuable than food alone.