How to Keep Mice Out of Your House: Find the Gaps and Seal Them
A mouse needs a hole about as wide as a pencil. That is the CDC's measure: a quarter inch, or 6 millimeters. If you can slide a pencil into a gap beside a pipe, a mouse can find its way in. So the plan to keep mice out is a sealing job first and a trapping job second. Everything below follows the CDC's three steps (seal up, trap up, clean up), with University of California pest guidance where it adds detail. It covers where mice get in, what to plug the gaps with, how to set snap traps, and how to clean up after a mouse infestation without breathing in what they leave behind.

Know the signs before you see a mouse
The CDC says the first signs of rodents usually show up before the animal does. Look for droppings, gnaw marks on boxes, wires or food packaging, and nesting material such as shredded paper or fabric tucked into corners. Check inside and outside the house on a regular schedule, because food, water and shelter are what draw mice in, and removing those three is the base of prevention.
Walk the house and find the entry points
Do this in daylight with a flashlight. Inside, look under and behind kitchen cabinets, behind the stove and refrigerator, around the fireplace, around pipes under sinks and washing machines, around floor drains, and around floor air vents and dryer vents. Then check the attic, basement and crawl space.
Outside, the CDC lists these spots: the roof line among the rafters, gables, eaves and soffits; the gap between the foundation and the ground; the holes where electrical, plumbing, cable and gas lines enter; attic and crawl space vents; and the edges of windows and doors, especially any without weather stripping. A door with a visible gap at the bottom needs a door sweep. If daylight shows under it, so does an opening for a mouse.
Seal the gaps with the right material
Rodents chew, and the University of California says typical weatherproofing materials may not hold them out, so caulk alone is a weak patch. The CDC's advice is to stuff small holes with steel wool and hold it in place with caulk or spray foam. For larger holes, use lath screen, sheet metal, cement or hardware cloth, which is a stiff wire mesh. University of California pest guidance gives the same cutoff: seal every hole larger than a quarter inch. Cover vents and openings with metal wire screen rather than plastic or foam.
- Small cracks and pipe gaps: steel wool packed in tight, then caulk or foam over it.
- Bigger holes in the foundation or siding: hardware cloth or metal sheeting, fastened down, or cement.
- Doors: a door sweep or weather stripping along the bottom.
- Attic and crawl space vents: metal wire screen.
Seal the outside entry points before you start any baiting outdoors. Otherwise a mouse that has eaten bait can wander back into the house.
Take away food sources and shelter
Mice stay where food is easy to reach. Keep dry food, pet food and birdseed in thick plastic or metal containers with tight lids, and never leave a bag of grain or animal feed sitting in the garage or basement. Wipe up crumbs, and do not leave pet bowls out overnight if you are chasing a mouse problem.
Outdoors, the CDC says to keep compost bins and woodpiles at least 100 feet from the house and to raise firewood off the ground. Trim grass and shrubs back from the foundation and clear brush and weeds. In the basement and garage, get stored items off the floor and into lidded plastic bins so a nest has fewer places to hide.

Trap the mice already inside
Sealing stops new mice. It does not remove the ones already inside. The CDC recommends traditional snap traps to reduce rodents around the home. It advises against glue traps and live traps, because they can scare the rodent into urinating.
- Bait: chunky peanut butter on the bait pan. University of California guidance says a pea-sized amount is enough.
- Placement: set the baited end against the wall, where mice run. Good spots are behind the stove and refrigerator and in the back of cabinets and drawers, plus the attic, basement and crawl space if you have signs there.
- Check them every day. The CDC says to dispose of dead rodents right away. Wear gloves and follow the double-bag steps in the cleanup section below.
- Keep going: the CDC says to keep traps out for at least 15 days and to continue trapping until the signs stop.
The CDC says to keep all baits and traps out of reach of children and pets, so set them behind appliances and inside cabinets your kids and your cat or dog cannot open.
Be careful with poison
Poison baits are dangerous for people and animals, and the CDC says they must be used exactly as the label directs. The University of California notes that all rodenticides are toxic to pets, people and other non-target animals, and it advises sealing entry points first so poisoned rodents do not come back inside to die. For most households with kids or pets, snap traps plus sealing is the safer plan. If the problem persists, call a licensed pest professional rather than adding more bait on your own. Our post on when to call pest control professionals covers what to look for and what to ask.
You may see products sold as scent repellents, such as peppermint oil. They are not part of the CDC's prevention steps, so this guide leaves them out.
Clean up droppings the safe way
Never sweep or vacuum rodent droppings, urine or nesting material. That can send virus-carrying particles into the air. The CDC lists diseases that rodents can spread, including hantavirus, salmonellosis and lymphocytic choriomeningitis. The CDC's cleanup steps are:
- Open all doors and windows for 30 minutes before you start and leave while the room airs out.
- Put on rubber or plastic gloves.
- Mix 1.5 cups of household bleach in 1 gallon of water, make it fresh, and spray the droppings and urine until they are very wet.
- Let it soak for 5 minutes, or as the disinfectant label says.
- Wipe it up with paper towels, then mop or sponge the surface with the disinfectant.
- Put used towels in a covered garbage can. Seal dead mice and nesting material in a plastic bag, put that bag inside a second bag, then throw it out.
- Wash your gloved hands, then take off the gloves and wash your bare hands with soap and warm water.
Check again every few months
New gaps open up as a house settles and as caulk dries out. Walk the outside once a season, look at the foundation and the pipe and wire openings, and check that your steel wool and screens are still in place. If you keep finding droppings after you have sealed and trapped, there is likely an entry point you have not found yet, and that is the time to bring in a professional.
Sources: CDC Healthy Pets (Seal Up, Trap Up, How to Clean Up After Rodents, and Rodent Control) and the University of California Statewide IPM Program.