
At a glance
- Best Role
- One layer in an integrated pest plan
- Start With
- A correctly identified crop pest
- Main Tactics
- Intercrops, trap crops, and insectary flowers
- Success Measure
- Fresh crop damage stays below your action point
- Common Failure
- Using a universal pairing chart without scouting
You will get further by naming the pest first, choosing the tactic that fits how it arrives, laying out the bed at the crop's normal spacing, and counting fresh damage each week. Row cover, hand-picking and the other direct controls stay in the plan for whatever a companion plant cannot reach.
How Does Companion Planting Affect Garden Pests?
A companion plant protects a crop in one of three ways, and the way you are counting on decides what to plant and what to check afterward. It can make the crop harder for an insect to find, it can feed the insects that eat the pest, or it can pull the pest away as a trap.
Some insects use leaf shape, color and odor to find their host, so a plot of one plant may be easier to find than a mix of different heights, colors and textures. Mixed planting can make the crop less likely to be found, and even marigolds, one of the most commonly promoted companions, ward off insects only some of the time.
Flowers do a different job. Hover fly adults feed on pollen and nectar, and their larvae eat pest insects such as aphids for two to three weeks before they pupate. Female lacewings need nectar as part of their diet to lay eggs.
Most of these predators also need a few pests around to stay, and they may not be present when an outbreak begins. A flower strip can take weeks after it blooms to show an effect.
A trap crop is the third route. The pest feeds on the plant it prefers, which spares the harvest crop, but the pests are now gathered on the trap plant, and cucumber beetles left there spread through the field over time. A trap crop needs a plan for killing or removing what collects on it.

Which Companion-Planting Tactic Fits Your Pest?
Before you choose a plant, find out what is eating the crop. Walk the bed in the morning and again in the evening, because the insects you see may change with the light, and look at the damage itself. Small holes in leaves may mean flea beetles, while chewed leaf margins suggest a caterpillar or another insect with chewing mouthparts.
If you find one of these pests, the planting in the second column has a recorded job against it, and the last column is the work that stays with you.
| What you find | Planting with a job | How it works | What stays with you |
|---|---|---|---|
| Flea beetles on brassica seedlings | Mix of arugula, mustard, rapeseed and napa cabbage | These spicier brassicas can serve as a trap crop, and mixes of three or more species cut flea beetle damage more than a single trap species | Check the seedlings often and protect them |
| Aphid colonies | Small open flowers such as alyssum or dill | Nectar feeds adult hover flies and tiny wasps, whose young eat or parasitize aphids | Look for hover fly larvae and aphid mummies before you treat |
| Cucumber beetles in a cucurbit bed | Blue Hubbard squash planted around the bed | Beetles are drawn to the squash instead of the crop | Kill or remove the beetles that gather on the squash |
| Root-knot nematodes confirmed by a soil assay | Marigold grown as a cover crop before the vegetables | A marigold variety that resists your nematode species suppresses it | Match the variety to the species and plant it two months ahead on the same site |
| Holes or wilt with no known cause | No companion yet | A companion cannot target a cause you have not found | Identify the cause first |
Match how far the planting reaches to how the pest arrives. Cucumber beetles come in from outside the plot, so a trap crop planted all the way around meets them at the edge, while flowers set among the rows put food within reach of small natural enemies.
Two direct controls fit alongside any companion planting. A floating row cover put on seedlings early keeps insects from laying eggs under it, and hand-picking into a bottle of water is an easy way to reduce their number.
How Do You Plan a Companion-Planted Bed?
A companion plant takes light, water, nutrients and root room from the crop beside it, so the crop's mature spacing from the seed packet or your local extension comes first. Companions squeezed into every gap can crowd the crop, and a tall companion can shade a shorter vegetable.

- Name the problemWrite down the crop, the pest, when it usually arrives and the plant stage that suffers most.
- Choose one tacticPick a tested intercrop, a pest-specific trap crop or flowers for a known natural enemy.
- Draw the crop at full spacingMark every food plant at its mature spacing, then fit the companions around it.
- Place the tacticPut a trap crop where the pest enters, an intercrop beside the host, and flowers in a strip or cluster.
- Leave room to workKeep space to inspect leaf undersides, remove a trap plant and harvest.
- Keep a comparison patchWhen space allows, grow a similar patch without the tactic and compare damage.
Companions differ a lot in size. A low alyssum edge and a tall dill plant shade a crop very differently, so go by each companion's mature width and height and skip any fixed ratio of companions to vegetables. Trim a companion only when it starts to block light or inspection.
Spreaders need their own pot. Mint is known for spreading aggressively, so grow it in a container about 12 to 16 inches across.
How Do You Use a Trap Crop Without Spreading Pests?
A trap crop is a plant the pest likes better than the crop you plan to harvest, so it works only when the pest chooses it early and you deal with the pests that gather there. With cucumber beetles, if they are not controlled on the trap crop they disperse through the field over time, and higher levels of bacterial wilt, which the beetles spread, can follow.
Blue Hubbard squash attracts cucumber beetles, squash bugs and squash vine borer, and planting it pulls cucumber beetles away from other cucurbits. It is recommended because it comes up fast with a lot of foliage and is not easily overrun when beetles arrive, and stopping the beetles at the seedling stage could eliminate most of the damage.
For flea beetles, the trap is the spicier brassicas, namely arugula, mustard, rapeseed and napa cabbage. A mix of three or more of them works better than any single one.
Cucumber beetles chew seedlings from the cotyledon stage to the third true leaf, the same stage when plants are most open to the bacterial wilt the beetles spread. The trap crop therefore goes in no later than the main crop, and the planting needs a few specifics.

- Timing. In Missouri research, 2-week-old Blue Hubbard seedlings go out when you sow cucurbit seeds, and at least 2 weeks before cash-crop transplants.
- Size. The trap plants should stay at least as big as the main crop from emergence to bloom.
- Layout. The trap crop circles the whole crop without large gaps, with more rows possibly needed along a tree line, where the heaviest pest pressure usually occurs as beetles arrive from overwintering sites in the woods.
- Number. The same research found that a small garden of 100 or so cucurbit plants can be protected from cucumber beetles and squash bugs with 6 to 8 Blue Hubbard plants.
Check the trap plants while the pest is arriving, and hand-pick pests into a bottle of water. If a treatment becomes justified, use only a product labeled for that pest and crop, and follow the label. Trap plants can be pulled at bloom so they do not compete with the main crop.
Before you commit space to a trap plant, confirm these four things.
- The trap plant is a preferred host for the specific pest you identified
- You can reach every trap plant to inspect it and remove pests
- You know how you will kill or remove the eggs, larvae or adults you find there
- The trap plant will not shade or climb over the main crop
If pests ignore the trap crop, it is not doing its job in your bed, and row cover or hand-picking still has to protect the seedlings. A squash border is built for cucurbit pests, so caterpillars on cabbage need a different tactic.
Which Flowers Help Beneficial Insects?
Some beneficial insects eat pests only while they are young. Hover fly larvae feed on aphids and other pest insects, while the adults feed on pollen and nectar, so a flower planting beside the crop can bring in beneficial insects. Small flowers attract small parasitic wasps and flies, and each flower family attracts different insects.

- The carrot family, including dill, parsley and cilantro, has each flower as a cluster of dozens of tiny ones with shallow, easy nectar, which suits small parasitic wasps and flies.
- Alyssum and other mustard-family flowers are shallow and open with four petals and produce plenty of pollen and nectar for hover flies and ladybugs.
- Yarrow and other aster-family flowers form heads that act as landing pads for lady beetles and soldier beetles.
- Buckwheat has easily accessible nectar and attracts beneficial wasps, generalist predators, hover flies and bees.
A strip also has to feed insects for the whole season and give them somewhere to stay.
Bloom from spring to fall
Hover flies and mason bees are active early, while other insects show up from summer into fall, so overlapping bloom keeps nectar available all season.
Single-flowered varieties
Breeding for extra petals can reduce how much pollen and nectar an insect can reach, so simple single blooms are the better choice.
A few pests left alone
Most predators need some prey to stay, so a few pests left in the garden keep them there.
Water and shelter
Beneficial insects need water and habitat as well as food, and a less manicured garden gives them space to hide and nest.
Bought lady beetles do not replace that habitat. The ones sold at garden centers are collected in the wild in winter and kept refrigerated, and they typically disperse when released, so they scatter instead of staying where the pests are. A garden with food, prey, water and shelter holds predators that arrive on their own, which is likely the better long-term fix.
Spraying blooming plants can harm the pollinators and predators that visit them, so read the pesticide notes in the last section before you treat any flowering planting.
Which Companion Planting Combinations Have Evidence?
Before you plant a pairing, check whether a study supports it for your pest. The upper rows below have studies behind them, and the last two have little or none.
| Main crop | Companion | Pest | What the research found |
|---|---|---|---|
| Broccoli | Thyme, onion or nasturtium | Cabbage looper and imported cabbageworm | Reduced damage in an Iowa study |
| Cabbage | Marigold, onion or nasturtium | The same two cabbage worms | Reduced damage |
| Tomato | Basil or marigold | Thrips | Reduced thrips in a few field and greenhouse studies |
| Squash | Nasturtium or marigold | Squash bugs and cucumber beetles | Both reduced damage in an Iowa study, and nasturtium alone reduced squash bug numbers in other research |
| Brassicas | Marigold or green onion | Flea beetles | Listed on gardening sites, but little research supports it and some contradicts it |
| Potato | Marigold | Colorado potato beetle | Multiple studies showed it does not deter the beetle |
Marigolds show why the details decide the result. French and African marigolds are the species most often grown as a cover crop to suppress root-knot nematodes before a susceptible vegetable, and they should grow at least two months on the exact site where the vegetables will go. The stand should also be thick, with plants less than 7 inches apart, because nematodes can reproduce on weeds and nullify the effect of the marigolds.
The variety you buy matters as much as how you plant it. A lab assay of your soil tells you which nematodes you have, and that decides the variety, since Cracker Jack marigold may control southern root-knot nematode well and still host stubby-root and reniform nematodes. Marigolds cannot eradicate nematodes, so the cover crop has to be repeated before each vegetable planting.
A few marigolds interplanted among tomatoes do not give the same result. Root-knot nematodes typically find and reproduce on the roots of a susceptible crop or weed, so interplanting probably does not work.
Basil with tomato also needs a narrow reading. The studies measured thrips on tomato, and basil may even promote tomato growth, but that says nothing about whether basil protects tomato from its other pests.
Plenty of pairings have nothing to do with pests. Saving space (radishes beside carrots, or lettuce harvested before tomatoes fill the bed), building soil health and giving mutual support (corn, beans and squash) are separate reasons to plant together. A pairing with one of those reasons is worth making, and it becomes pest control only when a study shows an effect on a pest.
When Should You Plant and Maintain Companions?
Start from the date the pest first shows up. Last season's notes, your local extension's pest calendar and your own first sighting of damage give you that date, and each companion is counted back from it. A trap crop has to be growing when the adults arrive, flowers have to be in bloom when predators need nectar, and a marigold cover crop for nematodes needs at least two months on the site.
Days to flower and mature size differ between cultivars, so the seed packet sets the lead time for each one. Before you plant, write down three things.

- When the pest or its first damage appeared last season
- The date each trap crop has to be up and each flower strip has to be in bloom
- Days to flower or mature size for each companion cultivar
Flowers that bloom at different times keep nectar available through the season, so stagger the sowings of annuals and add perennials that bloom at other times. As the plants fill out, trim a companion that shades the crop or hides it from inspection, because the harvest crop keeps priority and you need to see the leaves to scout them.

At the end of the season, pull the trap plants and clear diseased crop residue. If you grow cucurbits, rotate them as well, because a perimeter trap crop and crop rotation work together to keep some cucumber beetles from overwintering within the field. Healthy perennial plantings and a few untidy corners can stay, since they give beneficial insects a place to hide, find food and nest.
How Do You Know Whether Companion Planting Works?
Judge the planting by the damage on the harvest crop. Bees on the flowers or aphids on a nasturtium do not show that the crop beside them is protected.
- Inspect on a scheduleCheck the same plants weekly during the pest period, at the edge and the center of the bed.
- Mark old damageMark or photograph damaged leaves so fresh feeding stands out on the next visit.
- Count both sidesRecord pest numbers on the crop and on any trap crop, plus any predators you find.
- Compare the patternUse a patch without the tactic when you can, or last year's notes from a similar planting.
- Set an action pointDecide in advance how much fresh damage or pest increase triggers hand removal, a cover or a treatment.
- Review the tacticKeep, move or drop the companion based on repeated results across several checks.
Where you set the action point depends on the part you harvest and the plant's age. A few holes in leaves are expected, so ask whether the damage reaches a harvestable part. Beetles feeding on potato leaves early in the season prevent proper tuber development, while later in the season most tubers have already formed and a few beetles matter less.
In cucurbits, Missouri's trap-crop guidance says one or two cucumber beetles or squash bugs on the cash crop do not mean you need to spray.
Natural enemies leave signs on the same leaves you are checking.
- Aphid mummies, which are dry shells that may be gold, tan, brown or black, with a small exit hole where a wasp emerged
- Hover fly larvae among the aphids
- Lady beetle larvae, which are soft-bodied and elongated and look like tiny alligators
Where you find these, watch for a while before treating, because natural enemies need time to arrive, reproduce and reduce the pests.
When fresh damage keeps rising across several checks, recheck the diagnosis first. Then add the least disruptive control that can protect the crop in time, moving up from the cultural and physical controls before a spray.
What Should You Use When Companion Planting Is Not Enough?
Integrated pest management is a decision process that looks for the least toxic method that works, and it does not aim to wipe out a pest. Penn State's version moves up through three layers, and companion planting fits the first one, next to plant selection and cover crops, in a natural pest control plan.
- Cultural controls, such as plant selection, clearing diseased plants, crop rotation and cover crops
- Physical controls, such as row covers, weeding, mulching and removing diseased plant parts
- Chemical controls, mainly synthetic pesticides, which are the most toxic option and come last
For young plants, a floating row cover works as a physical barrier as long as it goes on early, so insects cannot lay eggs under it. Covers normally stay on only during the seedling and young-plant stages and can come off once the plant tolerates some damage. A cover can make it harder to check the plants and to water unless you have drip irrigation, so plan your inspections around it.
If damage still passes your action point, choose a product labeled for the pest, the crop and the site, treat only the affected plants where the label allows, and follow the label, since more is not better.
Pro Tips
- Photograph the pest and its fresh damage before you change the bed, so later checks use the same reference.
- Let a few dill, parsley or cilantro plants flower, because their small umbels give tiny wasps and flies shallow nectar.
- Choose single-flowered varieties of companion flowers, since extra petals can reduce the pollen and nectar insects can reach.
- Keep mint in its own container, about 12 to 16 inches across, so it cannot take over the bed.
- Plant a trap crop at the same time as the main crop, or earlier, and inspect it from the first pest arrival through the vulnerable seedling stage.
- Record combinations that fail as carefully as the ones that help, because both improve next year's plan.
Frequently Asked Questions
Does companion planting really work for pest control?
It can reduce some pests when a particular crop, companion, pest and layout have a sound mechanism or research support. University of Minnesota Extension says online pairing charts are not always accurate or backed by research, so a pairing counts only when a study shows an effect on your pest.
Use it as one layer of integrated pest management and keep it only when repeated checks show less fresh damage.
How close should companion plants be to vegetables?
There is no universal companion-plant spacing. Keep the vegetable at its recommended mature spacing, then place the intercrop, flower patch or trap crop where it can do its job without blocking light, inspection or harvest.
A trap crop circles the whole crop, while a flowering edge sits along one side, so they need different layouts.
Do marigolds keep pests away from every vegetable?
No. Research supports some marigold combinations for certain pests, such as cabbage worms on cabbage and thrips on tomato, while multiple studies found marigolds do not deter Colorado potato beetles.
French and African marigolds grown thickly as a cover crop for at least two months can suppress some root-knot nematodes, but a few flowers interplanted beside tomatoes probably do not.
Can companion planting replace row cover or pesticides?
Usually not. A row cover put on early keeps insects from laying eggs under it, while companion planting tends to pull pests away or support natural enemies over time.
Use direct controls when damage is urgent, and apply any pesticide only when its label covers the crop, pest and site.
Can I use companion planting in raised beds and containers?
Yes, if every plant has enough root room, light and water at mature size. A low flower at the edge of a raised bed or one flowering herb in a large container can support beneficial insects without crowding the crop.
Keep spreaders such as mint in their own pot, and do not use a fixed ratio of companions to vegetables.
How long does companion planting take to reduce pests?
It depends on the tactic. A trap crop works when it is growing before the pest arrives, so it goes in at the same time as the main crop or earlier. Beneficial-insect habitat helps only after the flowers open and natural enemies arrive, reproduce and reduce the pests.
Track fresh damage on the same plants through the vulnerable crop period.
Sources & References
- University of Minnesota Extension, Companion Planting in Home Gardens
- Oregon State University Extension, Encouraging Beneficial Insects in the Garden
- Sustainable Agriculture Research and Education, Impact of Cover Crops on Natural Enemies and Pests
- Sustainable Agriculture Research and Education, Perimeter Trap Cropping
- University of Florida IFAS Extension, Marigolds for Nematode Management
- Penn State Extension, Steps to Controlling Insect Pests in the Garden
- UC Statewide IPM Program, Protective Covers
- University of Connecticut IPM, Directions for Using a Perimeter Trap Crop Strategy to Protect Cucurbit Crops
- University of Missouri IPM, Controlling Cucumber Beetles and Squash Bugs in Cucurbit Crops
- University of Maryland Extension, Growing Mint in a Home Garden


