Plants That Help Deter Gophers in the Vegetable Garden
Gophers are one of the most persistent underground pests in the home garden. They tunnel silently, pull entire plants underground, and can destroy a row of vegetables in an afternoon. While no plant offers a perfect “force field,” certain ornamentals and herbs have strong scents, toxic compounds, or root structures that gophers dislike. Used strategically, these plants can help deter gophers and protect your vegetable beds.
Over more than 30 years gardening in California’s Central Valley and later in Sonoma Valley—both prime gopher country—I’ve learned which plants actually help create a buffer around the vegetable garden.
Do Plants Really Repel Gophers?
A quick truth: plants alone won’t eradicate gophers. I think of deterrent plants as part of a layered strategy—along with traps, barriers, and raised beds lined with hardware cloth. But planting gopher-resistant roots and strongly scented ornamentals around the perimeter of a vegetable patch can discourage gophers from entering in the first place.
Best Plants to Deter Gophers
1. Gopher Spurge (Euphorbia lathyris)
Often called “gopher purge,” this plant is traditionally believed to repel gophers with its milky sap.
My experience: In my garden, it doesn’t make gophers disappear, but planting it in a perimeter ring has reduced new tunnels.
Notes:
- Toxic if ingested; handle with care.
- Self-seeds readily.
2. Castor Bean (Ricinus communis)
Castor bean plants contain ricin, an extremely toxic compound. Gophers avoid its roots and leaves, and the plant’s presence can discourage burrowing.
My experience: Castor bean is highly effective as a visual barrier plant, and its deep scent seems to discourage tunneling in the immediate area.
Notes:
- Very poisonous to people and animals—plant only where children and pets can’t reach it.
- Grows large quickly; great for borders outside the vegetable garden.
3. Daffodils (Narcissus spp.)
Daffodils contain toxic alkaloids that gophers avoid. When planted in dense rows, they form a cheerful yet effective barrier.
My experience: I’ve used daffodils to edge raised beds—they create a reliable “no-go zone” for gophers, especially around garlic, lettuce, and peas.
4. Marigolds (Tagetes spp.)
Marigolds release strong-smelling compounds through their leaves and roots that gophers dislike.
Best use:
- Plant in borders or interplant with tomatoes, peppers, and leafy greens.
- Tagetes minuta (Irish lace) is especially pungent.
My experience: Marigolds help some, but work best as part of a broader deterrent strategy.
5. Lavender (Lavandula spp.)
Strongly fragrant, drought-tolerant, and disliked by gophers.
My experience: I often plant lavender along fences or walkways near the vegetable garden. It fills gaps between other deterrent plants and brings pollinators.
6. Rosemary (Rosmarinus officinalis)
Another aromatic shrub that gophers dislike. As a hardy evergreen, it makes an excellent long-term barrier.
My experience: Rosemary hedging around my orchard and perimeter beds noticeably reduced tunneling.
7. Alliums (Onions, Garlic, Leeks, Chives)
All alliums contain sulfur compounds that gophers avoid.
How to use:
- Plant a thick border of garlic or onion around raised beds.
- Use chives as an edging around lettuce, beets, and spinach beds.
My experience: Alliums are among the most reliable edible deterrents—useful, attractive, and effective.
8. Salvia (Sage)
Many salvia species have strong scents or bitter foliage that gophers avoid.
Best choices:
- Garden sage
- White sage
- Cleveland sage
These can ring a vegetable garden beautifully.
How to Use These Plants for Best Results
1. Create a Perimeter Barrier
Plant deterrent species in a ring around the vegetable garden—12 to 24 inches wide.
A typical barrier mix might include:
- Lavender
- Rosemary
- Daffodils
- Alliums
- Marigolds between shrubs
2. Interplant Within Beds
Add alliums and marigolds among vulnerable crops—lettuce, root crops, peas, and beans.
3. Use Toxic Plants Only Along the Outer Fence
Castor bean and gopher spurge should be planted outside active beds—use them as a “moat” around your garden space where children and pets do not go.
4. Combine Plants With Physical Barriers
From long experience, the only fully reliable protection is hardware cloth under raised beds plus trapping when needed. Deterrent plants enhance the barrier and reduce new gopher pressure.
Final Thoughts
Gopher-resistant plants are one of the most natural ways to discourage these underground pests. They add beauty and structure to the garden while contributing to pest control. While they won’t replace physical barriers, they help shift the odds in your favor—especially when planted densely and maintained year after year.
