How to Get Rid of Rats: Cut Supply, Trap and Seal
A rat in the house feels different from any other pest. It is bigger than you expect, bolder than you want and it leaves evidence that is hard to ignore: gnawed wires, a greasy trail along the wall, a smell in the attic. If you are looking at that evidence now, the first thing to know is that rats are very beatable once you stop treating them as a one trap problem.
This guide explains how to get rid of rats in the house and around it, whether the signs are in the attic, the walls, the garage or the yard. The plan has three parts: cut off their supply, trap them, and close every way in.
Quick answer
To get rid of rats, secure all food and trash, set several snap traps where you see droppings and gnawing, check them every day, then seal every opening wider than a quarter inch with steel wool, metal mesh and caulk. Trim branches and plants away from the building. If activity continues after two weeks, call a licensed pest professional.
Which rat do you have?
The species decides where you put the traps, so it is worth a minute to identify it.
- Norway rats are stocky, with a tail shorter than the body. They burrow beside foundations, under sheds and beneath trash, and indoors they stay in basements and on the ground floor. They are also called house rats, brown rats or sewer rats.
- Roof rats are slimmer and have a tail longer than head and body together. They climb well and nest above ground in attics, trees, vines and dense shrubs. They often travel along fence tops and utility lines at dusk.
- Pack rats are a western species that stockpile sticks and objects in a nest, often in sheds and car engine bays.

Common signs are dark pellet droppings (Norway droppings are roughly three quarters of an inch long, blunt ended), gnaw marks, burrows along walls, greasy rub marks and scratching in walls or the attic at night.
Step 1: Cut off food, water and shelter
Rats arrive for food and stay for shelter. Take both away and traps work faster.
- Use trash cans with tight lids and keep them off bare soil if possible.
- Never leave pet food out overnight, and sweep up bird seed under feeders.
- Keep compost covered and use enclosed bins for food scraps.
- Pick up fallen fruit and fix leaking taps, hoses and outdoor drips.
- Clear woodpiles, junk and clutter from against the house and garage.
- Pull plants back from walls and keep a bare strip around the perimeter.

Step 2: Trap them
Snap traps are the safest, most effective and cheapest choice for homes. Trapping gives you proof of what you caught and avoids a poisoned rat dying out of reach inside a wall, where it causes smell and flies.
- Use several traps. A single trap rarely works. Put out multiple and keep checking.
- Pre bait. Rats are cautious. Leave traps unset with bait for a day or two so they get used to them, then set them.
- Bait well. Peanut butter, oatmeal, bacon, hot dog or nuts tied securely to the trigger all work.
- Place them correctly. For Norway rats, put traps against walls, behind objects and in dark corners where you found droppings. For roof rats, place traps on beams, branches, fences and other above ground routes.
- Check daily and dispose of any catch with gloves.
If children or pets are around, use traps inside a covered box with a small entry hole, or in a tamper resistant station, out of reach.

Poison baits are the most hazardous option: they are toxic to pets, wildlife and children, and the rat can die inside the walls. If you decide to use them, use a locked station and follow the label, or leave it to a licensed professional.
Step 3: Rat proof the building
Rats can squeeze through openings around half an inch, and young ones can fit through less. Inspect the whole outside, particularly where pipes, cables and vents enter the wall, the gaps under garage doors, the roof edge and the attic vents.
- Fill gaps with steel wool or copper mesh and finish with cement or caulk. Rats chew through plastic, foam, wood and soft caulk alone.
- Cover vents and openings with quarter inch hardware cloth.
- Fit door sweeps, and make sure doors and screens close tightly.
- Cut tree limbs back so none are within about three feet of the roof, and remove climbing vines from walls.

How to get rid of rats in the attic and in walls
Scratching above the ceiling at night is usually roof rats. Set traps along the joists and beams where you find droppings, and bait them lightly. Find the way in, which is often a gap at the roofline, a vent without mesh or a branch touching the roof, and plan to seal it once the traps stop catching. For sounds inside walls, trap near the entry point or where droppings show up, and do not seal the last exit until activity has stopped.
How to get rid of rats outside, in the yard, the garage and the chicken coop
Yard and backyard. Look for burrows along fences, under sheds and beneath decks. Remove their food source first, because burrows without food are abandoned. Fill empty burrows only after they are confirmed unused.
Garage. Keep boxes off the floor and in lidded bins, store bird seed and pet food in metal bins and close off gaps at the door seal.
Chicken coop. Feed in the morning, remove leftover feed each evening, keep feed in a metal bin with a tight lid and line the base of the run with hardware cloth buried a short way into the ground.
Do natural methods work?
Peppermint oil, ultrasonic devices and similar remedies have not been shown to clear an infestation. A rat that has food and shelter simply ignores them. The natural approach that does work is the same as the plan above: no food, no cover and sealed gaps, backed by traps.
How long does it take to get rid of rats for good?
With enough traps and good sealing, many homes see the catches stop within a week or two. Rats sometimes take longer because they avoid new objects, so be patient and keep traps out for a couple of weeks beyond the last catch. Lasting control means keeping the food and cover away and checking the building each year. Call a licensed professional if you see rats in daylight, hear them in several areas or keep catching them after a few weeks. A handy reference is the UC Integrated Pest Management guide to rats.
Clean up safely
Wear gloves and a mask, spray droppings and nests with disinfectant before wiping them up, and never sweep or vacuum them dry. Bag the waste, dispose of it, and wash your hands well afterwards.
Frequently asked questions
What attracts rats to a house?
Accessible food, water and shelter: open trash, pet food, bird seed, leaks and clutter or dense plants against the walls.
How can I tell if the rats are still around?
Look for fresh droppings, new gnawing or sounds at night. Put a small pile of flour or an unset trap near the old route and see whether it is disturbed.
Are rats dangerous?
They can contaminate food, spread germs through droppings and urine, and damage wiring. Clean up carefully and see a doctor if you feel unwell after exposure.
Do rats come back after being removed?
They can if food and entry points remain. Sealing the building is what keeps them out.
Is it safe to use traps around pets?
Use covered boxes or tamper resistant stations placed where pets and children cannot reach them.
