The short version
- Seal every hole larger than 1/4 inch. UC IPM gives that single size for keeping out rats and mice alike.
- Close gaps with hardware cloth, sheet metal, mortar or concrete. Rats chew through foam, plastic, wood and caulk.
- Walk outside-in, low first: doors, vents and pipe holes, then branches, wires and the roofline.
- Seal and trap together, and leave the trapping to a pest professional. San Francisco's own advice is not to use poison.
- Under the city's Health Code, the owner and the occupant are both responsible for keeping a building free of rodents.
It usually starts at night. Something runs across the ceiling over the bed, or the drawer under the kitchen sink has droppings in it by morning. In a San Francisco house the way in is rarely a mystery once you look: daylight under a garage door at sidewalk level, a rusted screen on a foundation vent, a hole a cable installer left in the stucco, a lemon tree resting on the eaves. This guide walks the house the way a good rodent-proofing job starts, from the outside in.
Think of it as building repair rather than pest work. UC's IPM program calls exclusion the most successful and longest-lasting way to control rats around buildings, and the most permanent control for house mice. Traps remove the animals already inside. Only a closed gap keeps out the next ones.
Roof rats, Norway rats or mice: who is in the house
San Francisco's Department of the Environment counts three rodents that matter here: the Norway rat, the roof rat and the house mouse (its IPM sheet). UC IPM describes roof rats as climbers that favor attics, wall voids, false ceilings and cabinets, and that prefer warm, coastal places. Norway rats burrow along foundations and, indoors, tend to stay in basements and on the ground floor. When both share a building, Norway rats take the lower floors and roof rats the upper ones.
Put that on the houses here. A Sunset tract house is one story over an integrated garage on a 25-foot lot, and much of the Richmond is tract housing with built-in garages too (SF Planning). Its ground floor is the garage: Norway rat territory. Victorians often stand on raised basements (SF Planning, Bulletin 18), so start there.
What are you hearing, or finding?
Most likely roof rats, the climbers. Start high, with points 9 to 12 on the walk-around drawing: tree limbs, wires, eaves and roof vents, then the attic.
Think Norway rats or mice at ground level. Points 1 to 8 on the drawing take you from the garage door to the pipes, vents and back doors.
Size tells you who left them. The city's IPM sheet gives about 1/4 inch and pointed for a house mouse, 1/2 inch and pointed for a roof rat, and 3/4 inch and blunt for a Norway rat. Then work through the inside checklist.
Good timing. Mice move in as the nights cool, so walk the house now, while the gaps are still empty.
How do mice and rats get in? Through gaps this small
You will read that a mouse needs a dime-sized hole and a rat a quarter-sized one. The official figures are smaller, and they are the ones to work to. UC IPM says house mice can squeeze under a gap 1/4 inch tall and through an opening 3/8 inch wide; the CDC puts it as a hole the width of a pencil. A rat, young ones especially, gets under a door with a 1/2-inch gap, and on a wood door it may gnaw the gap bigger.
¼ inch
Seal every hole larger than this. It is the one size UC IPM gives for keeping out both rats and mice. University of California Statewide IPM Program
| The opening | What gets through | What closes it |
|---|---|---|
| A gap 1/4 inch tall under a door | House mice (UC IPM) | A sweep that meets the threshold, with sheet metal on any gnawed edge |
| A hole the width of a pencil | A mouse, by the CDC's measure | Copper mesh or steel wool packed tight and held with caulk; mortar in masonry |
| A slot 3/8 inch wide | House mice (UC IPM) | Galvanized hardware cloth with 1/4-inch openings |
| A 1/2-inch gap under a door | Rats, young ones especially (UC IPM) | A new bottom seal or threshold, and sheet metal where the wood is chewed |
| A torn vent or crawlspace screen | Rats, mice, birds and bats | Corrosion-resistant metal screen over the whole opening, never chicken wire |
| The ring of gap around a pipe or conduit | Rats and mice | Hardware cloth, copper mesh, sheet metal, concrete or mortar, the city's own list |
Walk the house from the sidewalk to the roof
Go out once in daylight and again at dusk with a flashlight, when rats travel fences and wires. Circle the house low first, then look up. On an attached row, check where your house meets the next one and tell the neighbors what you find. UC IPM notes that a roof rat may live in one yard and eat in another.
- Garage door bottom From inside with the lights off, look for daylight under the door and at its corners. A worn seal, a warped wood door or a slab that has settled can each leave the 1/2-inch gap a young rat needs.
- The tradesman door and side doors Sunset houses often have a small tradesman door inside the recessed garage opening, SF Planning's survey notes. It and every side and back door need a tight threshold and ungnawed bottom corners.
- Pipes, cables and the gas line Water, gas, power and cable lines each leave a ring of gap where they pass through the wall. Seal around the line in the wall itself, and never touch the gas meter or a valve. More
- Dryer vent hood A flap that hangs open, or a hood with no flap at all, lets mice walk in. Replace the hood rather than blocking the duct.
- Base of the wall Stucco cracks at grade, gaps where siding meets the foundation, holes left by fixtures long gone. Firewood stacked against the wall hides all of these and gives rats cover. More
- Back doors and French doors Where two doors meet, at the astragal, UC IPM says to seal the gap as well as the threshold. French doors onto a back deck are easy to miss.
- Yard: woodpile, bins and feeder San Francisco wants stored wood and lumber raised 6 inches off the ground and 6 inches from walls and fences, and garbage in lidded bins, not bags (sf.gov). Rats gnaw through plastic compost bins, UC IPM warns, and the city's rules say to take a bird feeder down until they're gone. More
- Tree limbs, vines and fruit The city's rodent rules want trees, shrubs and vines trimmed 3 feet back from the roof and balconies; UC IPM's full Pest Note says to remove overhanging limbs within 6 feet. Ivy, star jasmine, pyracantha and palms shelter roof rats, which eat citrus right on the tree. More
- Overhead wires Roof rats run the utility lines at the back of the lot around dusk. UC IPM's advice is to call a pest professional or the utility company; nobody else should work near those lines.
- Eaves, vents and the parapet Torn screens on eave, soffit and gable vents, gaps where the roof meets the wall, a parapet whose tile cap has loosened. Look from the ground with binoculars and leave the ladder work to a pro; soft wood up there is also a dry rot question.
- Chimney, roof vents and the attic UC IPM recommends a spark arrester on every chimney and screens over rooftop plumbing vents wider than 2 inches, both roof work for a pro. In the attic, look for droppings, shredded insulation and gnawed wiring; chewed wires are a fire risk for a licensed electrician to check. More
Inside: wherever a pipe comes through
Builders cut pipe holes a little bigger than the pipe, and mice don't roam far: UC IPM says house mice seldom go more than 30 feet from their nest and food, so droppings in one cabinet mean the gap is close. The CDC's list covers every indoor spot; these matter most in an older house.
Inside the house and garage
0 of 8 doneWhat to close gaps with, and what they chew through
Most do-it-yourself rodent-proofing fails right here. The patch has to be harder than a rodent's teeth, and much of the sealant aisle at a hardware store is not.
- Galvanized hardware cloth, 1/4-inch openings. For vents and larger holes. The city's 2026 owner guidelines name 1/4-inch hardware cloth for openings in outside walls. UC IPM's vent spec uses 1/2-inch mesh, which stops rats but not a mouse that fits a 3/8-inch slot.
- Sheet metal. For gnawed door bottoms and corners, and to cover large holes; UC IPM suggests it on door and window edges that get chewed.
- Concrete or mortar. For holes in foundations and around pipes through masonry, both on the city's list.
- Copper mesh or steel wool, held with sealant. For small holes around pipes, the way the CDC does it. UC IPM calls steel wool a temporary plug that may rust; copper mesh, also on the city's list, won't.
- Not expanding foam. The city's 2026 guidelines say expandable foam sealer is not acceptable rodent proofing.
- Not chicken wire. UC IPM says never to use it; rats pass through the openings.
- Not weatherstripping alone. A foam or vinyl draft seal stops air, not teeth, and UC IPM warns that typical weatherproofing may not keep rodents out. A rodent-proof door bottom has metal in it.
A rodent-proof house has no opening bigger than a pencil, and every patch is harder than a rat's teeth.
The weekend list, easiest first
Close the house up before the first cold night
0 of 10 doneSeal, trap, clean: the order matters
If rodents are already inside, sealing and removal happen together. Close every gap but one and you herd them to it; close them all while a roof rat nests in the attic and it may chew a new way out. UC IPM notes that roof rats are strongly tied to their nest sites and come back if the nests stay. That timing is the part worth paying a pest professional for.
Leave trapping and baiting to that professional. San Francisco's own advice is blunt: snap traps can work if used right, and do not use poisons, because poisoned rodents die where you can't reach them. The city asks building owners to hire a company that practices Integrated Pest Management and holds a current state license; the Structural Pest Control Board confirms licenses at (916) 561-8704.
San Francisco rules: owners, tenants and 311
Tenants carry part of it. The city expects them to keep units reasonably clean, store garbage and pet food properly and allow inspection and treatment (sf.gov). The health department and the Rent Board recommend reporting an infestation to the landlord in writing and keeping a copy (DPH rules). The city's 2026 owner guidelines give owners 48 hours to investigate a report; its vermin web page still says 72.
Questions people ask
Can rats chew through steel wool?
Steel wool is a stopgap. UC IPM calls steel wool pads a good temporary plug that may rust, and the CDC holds it in small holes with caulk around it. For a lasting repair, use what San Francisco's health department lists: hardware cloth, copper mesh, sheet metal, concrete or mortar.
Does expanding foam keep rats and mice out?
Not by itself. San Francisco's 2026 vector control guidelines say expandable foam sealer is not acceptable rodent proofing, and UC IPM says rats chew through foam. Foam can hold steel wool or copper mesh in a small hole, as the CDC describes, but the barrier itself has to be metal or masonry.
Will rats leave once I seal the holes?
Don't count on it. Roof rats return to their nest sites if the nests stay, UC IPM notes, and sealing every opening while rats are inside can leave them chewing a new way out. Close the gaps while a pest professional removes the ones already in.
How do rats get into the walls and the attic?
Mostly from above. Roof rats climb trees, vines, fences and utility lines, then slip in through gaps at the eaves, torn vent screens and openings where the roof meets the wall. UC IPM notes that overhanging limbs give them a route onto the roof and into attics and soffit vents. Inside, they nest in attics and wall voids, so close the high gaps and cut back the ramps.
Who pays to rodent-proof a rental in San Francisco?
Generally the owner, for the building and every area the landlord controls. The city's Health Code puts the duty on the owner and the occupant, and Civil Code 1941.1 lists freedom from rodents and vermin among a rental's basic standards. Report in writing, keep a copy, and call 311 if nothing happens. This is general information, not legal advice.
Do ultrasonic repellers work on rats and mice?
UC IPM finds little evidence that sound, magnetic or vibration devices drive established rats or mice out of buildings or keep them out. Rodents get used to repeated sounds, and ultrasound is directional, fades with distance and doesn't reach behind furniture. Hardware cloth and a tight door sweep do more.
Why do mice come inside in the fall?
They are looking for shelter from the cold. UC IPM notes that where house mice live outdoors, they often move into homes in autumn as nighttime temperatures drop. That makes October the month to walk the house and close the gaps, before the mice find them.
Pros who take this work
Where these facts come from
Checked against these public pages in October 2026. Programs and rules change; the agency's own page is the final word. This guide is general information, not legal or engineering advice.
- Pest Notes: Rats (Publication 74106, updated June 2025) University of California Statewide IPM Program
- Pest Notes: House Mouse (Publication 7483, updated July 2025) University of California Statewide IPM Program
- How to Seal Up to Prevent Rodents U.S. Centers for Disease Control and Prevention
- How to Clean Up After Rodents U.S. Centers for Disease Control and Prevention
- Keeping your building free of vermin City and County of San Francisco, Department of Public Health
- Get help with vermin in your building City and County of San Francisco, Environmental Health
- San Francisco Health Code, Section 92: Rodent Control American Legal Publishing (San Francisco's code publisher)
- Residential Building Owner/Operator Guidelines for Vector Control (2026) San Francisco Department of Public Health, Environmental Health
- Director's Rules and Regulations for Prevention and Control of Rodents and other Vectors San Francisco Department of Public Health
- Integrated Pest Management: Rats and Mice San Francisco Department of the Environment
- California Civil Code Section 1941.1 California Legislative Information
- Sunset District Residential Builders, 1925-1950: Historic Context Statement San Francisco Planning
- Preservation Bulletin 18: Architectural Periods and Styles in San Francisco San Francisco Planning
- Gas safety: what to do if you smell gas Pacific Gas and Electric Company
