How to Use Trap Plants to Keep Garden Pests Away

Trap plants are sacrificial crops grown specifically to lure pests away from the plants you actually want to harvest. Instead of spraying an entire field or garden, you plant something nearby that the pest finds even more attractive, concentrating the damage on a plant you don’t mind losing. When done well, this strategy can reduce pest populations on your main crop by up to 95% and cut insecticide use by nearly 90%.

How Trap Plants Work

Most garden and agricultural pests find their host plants by scent, visual cues, or both. Trap plants exploit this by offering a stronger signal. A pest flying toward your tomatoes, for example, encounters a row of sorghum first and settles there instead, because sorghum is more chemically attractive to leaffooted bugs than tomato plants are. The trap plant intercepts the pest before it reaches your crop.

The key is choosing a plant that the target pest genuinely prefers. A trap crop that’s only equally attractive won’t pull pests away reliably. The best pairings involve plants that produce stronger volatile compounds or offer a more appealing feeding or egg-laying site than the crop you’re protecting. Once pests concentrate on the trap, you can manage them in that small area, whether by spraying just the trap border, removing infested plants, or letting the pests waste their energy on a crop you’ll never harvest.

Proven Trap Plant and Pest Pairings

Certain combinations have been tested extensively in both research plots and commercial farms:

  • Blue Hubbard squash lures cucumber beetles, squash bugs, and squash vine borers away from zucchini, summer squash, and cucumbers. In trials, over 94% of cucumber beetles ended up on the perimeter trap plants rather than the main crop.
  • Collard greens attract diamondback moths away from cabbage and other cole crops. Two rows of collards surrounding cabbage fields kept pest levels below damaging thresholds in nine commercial fields, while 60% of unprotected control fields exceeded those thresholds.
  • Sunflower and sorghum serve as traps for stink bugs and leaffooted bugs, pulling them away from tomatoes.
  • Mustard effectively controls harlequin bugs on collards and flea beetles on other brassicas.
  • Buckwheat, millet, and triticale also attract stink bugs and can border vegetable plantings for protection.

Notice that some plants serve double duty. Collards protect cabbage from diamondback moths, but collards themselves can be protected from harlequin bugs by planting mustard on the outside. You can layer trap crops to handle multiple pest species at once.

Perimeter Trap Cropping

The most effective layout is perimeter trap cropping: planting the trap species in a complete ring around your main crop, like fortress walls. This works because most pests arrive from the field edges. When they hit a continuous border of their preferred plant, they stop there and never reach the center.

Completeness matters. In trials where the perimeter had gaps, pests poured through the openings. The barrier needs to be closed on all four sides. For cole crops, researchers recommend transplanting two rows of collards on each side, with seven to nine transplants set by hand at the end of each row to seal the corners. A spacing of about 40 inches between rows and 10 to 12 inches between plants within rows works well, or you can match the spacing of your main crop.

The results from commercial farms using this approach are striking. Bell pepper fields surrounded by a trap crop produced at least 98% pest-free fruit, compared to just 85% in fields planted entirely with peppers. Some farms achieved 99.99% clean fruit, outperforming even well-timed full-field insecticide sprays. Farmers reduced insecticide use on peppers by up to 89% and saved between $13 and $378 per hectare in overall profitability improvements.

One practical advantage: the bigger your field, the more economical perimeter trapping becomes. A larger area has a smaller edge-to-area ratio, so proportionally less space goes to the trap crop.

Dead-End Trap Crops

Standard trap plants attract pests but still allow them to feed, reproduce, and potentially spill back onto your main crop if you don’t manage them. Dead-end trap crops solve this problem. These are plants that attract pests to lay eggs or feed, but the pest cannot actually survive or reproduce on them. The plant acts as a biological sink, drawing pests in and eliminating them without any intervention from you.

Wintercress is one of the best-studied examples. Diamondback moth females are strongly attracted to it for egg-laying, but the plant’s natural chemistry kills the larvae after they hatch. The moths waste their reproductive effort on a plant that functions as a trap and a toxin simultaneously. Vetiver grass works similarly against certain stemborer species in corn and rice systems.

Other dead-end trap crops target cotton bollworm, corn earworm, green peach aphid, whiteflies, fruit flies, thrips, and even root-knot nematodes. The dead-end mechanism can come from the plant’s own defensive compounds, from biological control agents released on the trap crop, or in some research settings, from genetically modified trap varieties.

Timing and Management

Trap plants need to be attractive before pests arrive, which means getting them established ahead of your main crop. For spring plantings, transplant or direct-seed your trap border one to two weeks before the main crop goes in. This head start ensures the trap plants are large enough and producing enough scent to intercept incoming pests.

Once pests concentrate on the trap, you have options. You can spray just the trap border (using far less pesticide than a full-field application), physically remove heavily infested plants, or in the case of dead-end traps, simply let the plants do their work. Monitoring matters here. Walk your trap border regularly and look for pest buildup. If populations get heavy enough, pests can overflow from the trap into the main crop, defeating the purpose.

Widen the trap planting along edges that face known pest sources, like overwintering sites, weedy areas, or neighboring fields with host crops. Two rows may be sufficient on calm sides of the field, but you might want three or four rows facing a hedgerow where stink bugs overwinter.

Common Mistakes

The most frequent failure is leaving gaps in the perimeter. Even a short break in the trap border gives pests a clear path to your main crop. If you can’t plant a continuous ring, trap cropping may not work as well for your situation.

Planting the trap crop too late is the second major pitfall. If your main crop is already up and producing scent while the trap plants are still seedlings, pests will bypass the trap entirely. The trap needs to be the first thing pests encounter, and it needs to be mature enough to compete.

Choosing a trap plant that isn’t strongly preferred by your target pest leads to disappointing results. Not every “companion planting” suggestion has research backing. Stick with combinations that have been tested in field trials. A weakly attractive trap doesn’t pull pests away; it just gives them more places to feed.

Finally, ignoring the trap after planting is risky with conventional (non-dead-end) trap crops. These plants concentrate pests, which is exactly what you want, but a concentrated pest population that goes unmanaged can breed and eventually overwhelm both the trap and the main crop. Check the trap border at least weekly during peak pest season, and be ready to act when numbers climb.