How to Keep Mice Out of Your Pantry for Good

Keeping mice out of your pantry comes down to three things: sealing every gap they could enter through, eliminating the food sources that attract them, and storing everything in containers they can’t chew through. Mice can squeeze through a hole smaller than a dime, so even tiny cracks around pipes, baseboards, or cabinet backs are open invitations. A systematic approach that combines exclusion, proper storage, and sanitation will solve the problem far more reliably than any repellent or single fix.

Find and Seal Every Entry Point

Mice don’t need much space. They can compress their skulls and squeeze through gaps roughly the diameter of a pencil. Start by pulling everything out of your pantry and inspecting the walls, floor, and ceiling with a flashlight. Pay close attention to where pipes or wiring enter the wall, corners where baseboards meet, gaps beneath the door, and any cracks in the drywall or plaster. Check behind shelving units and along the back wall where it meets the floor.

For small gaps, stuff steel wool or copper mesh tightly into the opening. Mice can’t chew through either material, and the sharp edges discourage them from even trying. Copper mesh has the added benefit of being rust-resistant, so it won’t corrode and break down over time. For larger holes, the most effective technique is a layered seal: push a small amount of expanding foam into the hole, press steel wool or copper mesh into the foam while it’s still wet, then finish with a sealant or caulk matched to the surrounding surface. Expanding foam alone won’t work because mice chew right through it.

Don’t overlook the gap beneath your pantry door. If you can slide a pencil under it, a mouse can get through. A door sweep or a strip of weatherstripping closes that route.

Switch to Containers Mice Can’t Chew Through

Cardboard boxes, plastic bags, cellophane wrappers, and thin plastic packaging are no barrier at all. Mice chew through all of them easily. If your pantry is stocked with cereal boxes, bags of rice, or flour in paper sacks, you’re essentially setting a buffet.

Glass jars and metal containers are completely mouse-proof. Mice cannot chew through either material. Thick, hard-sided plastic containers with tight-fitting gasket lids are a solid second tier, but thin or flexible plastic won’t hold up. Mason jars, glass canisters with clamp lids, and stainless steel bins all work well. Transfer dry goods like flour, sugar, rice, pasta, cereal, and pet food into these containers as soon as you bring them home. Even items you think are sealed, like bags of chips or boxes of crackers, should go into hard containers if you’ve had mouse activity.

Remove Every Crumb and Food Source

Mice are drawn to pantries because they offer a concentrated, reliable food supply in a dark, undisturbed space. Eliminating scattered food debris makes your pantry far less attractive. Pull out all shelving liners and wipe down every shelf, wall, and corner. Vacuum or sweep up crumbs, grain dust, and spilled sugar. Clean the floor thoroughly, including along the edges where walls meet the floor, since mice travel along these lines rather than crossing open space.

Make this a regular habit rather than a one-time deep clean. A weekly wipe-down of shelves and a quick sweep of the pantry floor removes the small accumulations of food debris that draw mice back. Don’t leave open packages of anything in the pantry, and clean up spills immediately. If you store pet food in or near the pantry, that’s a major attractant and should go in a sealed metal or glass container too.

Why Peppermint Oil and Ultrasonic Devices Don’t Work

Peppermint oil sachets and ultrasonic plug-in devices are among the most commonly recommended “natural” mouse deterrents, but controlled testing consistently shows they’re ineffective. Ultrasonic devices produce only marginal effects on mouse activity (roughly a 30 to 50 percent reduction in movement at best), and mice habituate to the sound within three to seven days. After that first week, the devices have no measurable repellent effect at all. The ultrasound is also absorbed by soft materials like cloth, insulation, and even cardboard, which means a pantry full of goods blocks most of the signal anyway.

A review of six commercial ultrasonic devices found them insufficient for rodent control in both preventive and corrective applications, even when combined with traps or bait stations. Peppermint oil faces a similar problem: the scent dissipates quickly, and a hungry mouse with an established food source nearby will simply ignore it. Your time and money are far better spent on physical exclusion and proper food storage.

Trapping Mice Already Inside

If you’re finding droppings, chewed packaging, or greasy rub marks along walls, you already have mice in or near the pantry and need to trap them alongside your exclusion work. Snap traps remain the most effective option for most homeowners. Make sure you’re using mouse-sized traps, not rat traps. A rat trap is too large to catch a mouse, and a mouse trap is too small for a rat.

Peanut butter is the best all-around bait: it’s strongly scented, sticky enough that a mouse can’t grab it and run, and cheap. Use a pea-sized amount. Too much lets the mouse eat without triggering the mechanism. Chocolate, dried fruit, bacon bits, and sunflower seeds also work well. One underused trick is tying a small tuft of cotton or a piece of dental floss to the trigger. Female mice actively collect soft fibers for nesting, especially in fall and winter, and will tug on the material hard enough to trip the trap.

Place traps along walls, not in the middle of the floor. Mice run along edges and linear surfaces in the dark, so position traps with the trigger facing the wall or set two traps side by side with triggers pointing away from each other. Set multiple traps. A single trap rarely solves the problem, and several traps placed in different spots along known travel routes dramatically improve your chances. Check traps daily and dispose of caught mice promptly.

Cleaning Up Safely After Mice

Mouse droppings and urine aren’t just unpleasant. They carry real health risks. Mice can transmit salmonella through contaminated food surfaces, and their droppings can harbor hantavirus, a rare but serious infection that damages the lungs and kills up to half the people who contract it. Hantavirus spreads when dried droppings or urine are disturbed and tiny particles become airborne, which is exactly what happens if you sweep or vacuum a contaminated area.

To clean up safely, open a window or door and let the area air out for at least 30 minutes before you start. Wear rubber or latex gloves and an N-95 mask. Spray droppings, urine stains, or nesting material thoroughly with a bleach solution (one and a half cups of bleach per gallon of water, or about one part bleach to ten parts water) and let it soak for at least five minutes. Wipe everything up with paper towels and bag them in a sealed plastic bag for the trash. Do not vacuum or sweep dry droppings. Mopping and sponging with the bleach solution is the right approach.

Discard any food that mice may have contacted, even if the packaging looks intact. After cleaning, wash your gloved hands with soap and water, remove the gloves, then wash your bare hands again. Throw out any food, containers, or shelf liners that can’t be fully disinfected.

Keeping Mice Out Long Term

Mouse-proofing a pantry isn’t a one-time project. Inspect your seals every few months, especially as seasons change. Mice are most likely to push indoors in fall and early winter as temperatures drop and they seek warmth and food. Gaps can reopen as houses settle, caulk ages, or new utility work creates fresh entry points.

Keep the area around your pantry clutter-free. Stacked cardboard boxes, old newspapers, and piles of bags give mice nesting material and hiding spots. A clean, well-organized pantry with food in sealed hard containers and no debris on the shelves is an environment where mice have no reason to stay, even if one occasionally finds its way in. The combination of physical barriers, airtight storage, and consistent sanitation is what makes the difference between a quick fix and a permanent solution.