15 Best Companion Plants for Summer Squash (Plus Those to Avoid)
I still remember the July morning I found my zucchini plant lying flat on the ground, healthy the night before and dead by breakfast. That is what a squash vine borer does, and it is the single biggest reason gardeners search for summer squash companions in the first place.
That single loss taught me something most garden blogs gloss over: a summer squash plant’s fate depends heavily on what grows around it. The wrong neighbors compete for water and space. The right ones bring pollinators, confuse pests, and feed the soil while your squash focuses on producing fruit.
Summer squash covers zucchini, yellow crookneck, straightneck, and pattypan varieties. All of them grow fast, produce heavily, and share the same weak spot: a soft, hollow stem that pests love to tunnel into.
Ohio State University Extension notes that squash vine borer larvae destroy the plant’s vascular tissue from the inside, and by the time wilting appears, the damage is often already done. Companion planting will not make that risk vanish, but the right neighbors genuinely tilt the odds back in your favor.
This guide covers 15 companion plants for summer squash, why each one earns its spot, and how to arrange them for real results.
Pressed for time? Here is a quick answer.
The strongest companions for summer squash are nasturtium, marigold, borage, radish, dill, corn, pole beans, buckwheat, sunflowers, oregano, zinnias, calendula, sweet alyssum, parsley, and tansy.
Together, these plants attract pollinators, distract or trap pests, and build healthier soil. The sections below explain exactly how, and where, to plant each one.
1. Nasturtium
Nasturtium remains the most recommended flower for any squash bed, summer squash included.
Its peppery-scented leaves can mask the smell squash bugs use to locate host plants, and aphids strongly prefer nasturtium foliage over squash leaves. That makes it a genuine trap crop, not just a pretty border plant.
Planting tip: Keep nasturtium about 18 to 24 inches from the base of your squash. Close enough to help, far enough that pest buildup on the nasturtium does not spread directly onto your crop.
2. Marigold
French marigold belongs in nearly every vegetable bed, and summer squash is no exception.
Its roots release compounds that can suppress root-knot nematodes in the soil over time, and its scent confuses several pest species while its blooms draw in ladybugs and hoverflies.
Planting tip: Plant a solid marigold border around the entire squash bed rather than scattering a few plants randomly. Density matters more than placement here.
3. Borage
If I could only add one flower to a summer squash bed, it would be borage.
It blooms nonstop from early summer through frost, and bees treat its blue star-shaped flowers as a reliable food source. More bee traffic directly translates into better fruit set and fewer curled, underdeveloped squash.
Planting tip: One or two borage plants per bed is usually enough. It self-seeds readily, so once established, it tends to return on its own each year.
4. Radish
Radish is cheap, fast, and does real work as a trap crop for early-season pests.
Flea beetles and some cucumber beetles are drawn to radish foliage, pulling pressure away from tender squash seedlings during their most fragile stage. Radish also matures in under a month, so it clears out before it competes for space.
Planting tip: Direct-sow radish seed right alongside squash seedlings, and harvest promptly once the roots mature.
5. Dill
Dill’s flat, umbrella-shaped flower heads are a magnet for beneficial predator insects.
Parasitic wasps, hoverflies, and tachinid flies all visit dill blooms, and several of them prey directly on squash bug eggs and young larvae.
Planting tip: Let a portion of your dill bolt and flower on purpose. The benefit comes from the flowers, not the leafy growth most cooks want.
6. Corn
Corn earns a spot for two practical reasons: light shade and tradition.
As one-third of the Three Sisters system developed by Indigenous farmers across North America, corn provides a living trellis for climbing beans and casts light afternoon shade that can ease heat stress on nearby squash.
Planting tip: Plant corn first. Once it reaches roughly 6 inches tall, add pole beans, then summer squash a week or two later around the outer edge.
7. Pole Beans
Beans handle the nitrogen side of the Three Sisters system.
As legumes, their roots host bacteria that convert nitrogen from the air into a form usable by nearby plants, including nitrogen-hungry summer squash. This steady feed genuinely matters, since squash is a heavy feeder throughout its fruiting period.
Planting tip: Choose pole beans rather than bush varieties so they climb corn stalks instead of tangling into your squash vines.
8. Buckwheat
Buckwheat rarely appears on companion lists, and that is a shame, because it works quietly and well.
Its small white flowers attract syrphid flies, better known as hoverflies, whose larvae feed heavily on aphids and other soft-bodied pests. Buckwheat also grows fast enough to double as a short-term living mulch between squash rows.
Planting tip: Broadcast buckwheat seed thinly along pathways between squash plants and let it flower before it goes to seed.
9. Sunflowers
Sunflowers do more than look impressive next to a squash patch.
Their large, pollen-heavy blooms pull in bees and other pollinators, and their height offers light wind protection for sprawling summer squash vines. Some gardeners also use them as a sacrificial aphid magnet, since aphids cluster heavily on sunflower stalks.
Planting tip: Place sunflowers on the north side of the bed so their height does not shade your squash during peak daylight hours.
10. Oregano
Oregano functions as a living ground cover rather than a pest deterrent in the traditional sense.
Planted at the base of squash, it shades the soil, slows moisture loss, and adds its own strong scent to the aromatic mix that can make pests work harder to find their target plant.
Planting tip: Keep oregano trimmed low so it never competes with young squash seedlings for light.
11. Zinnia
Zinnias are one of the easiest, longest-blooming flowers available for a summer squash bed.
They show resistance to root-knot nematode damage, similar to marigold and salvia, and their flat, open blooms are excellent at drawing in butterflies and native bees throughout the entire season.
Planting tip: Stagger zinnia colors along a border row so blooms continue steadily from early summer through the first frost.
12. Calendula
Calendula, also known as pot marigold, is often mistaken for true marigold but belongs to a separate plant family.
It shares a similar pest-deterring reputation and produces cheerful orange and yellow blooms that attract beneficial insects. Many home gardening guides also credit it with modest nematode suppression in surrounding soil.
Planting tip: Direct-sow calendula along pathways near your squash bed. It handles light afternoon shade better than most flowering companions on this list.
13. Sweet Alyssum
Sweet alyssum is small, but it does outsized work in a pest-management plan.
Its tiny blooms are especially attractive to hoverflies and parasitic wasps, two of the most effective natural predators against aphids and small pest larvae. Clemson Cooperative Extension lists these predator-attracting flowers among the most practical additions for controlling pest populations without chemicals.
Planting tip: Use sweet alyssum as a low, living border around the entire squash bed. It never grows tall enough to shade the plants it protects.
14. Parsley
Parsley is a quiet but consistent performer alongside dill and sweet alyssum.
Left to flower in its second growth stage, it draws in the same beneficial wasps and hoverflies, along with swallowtail butterflies, which pose no threat to squash.
Planting tip: Tuck parsley into shaded corners of the bed, since it tolerates partial shade from taller squash leaves better than most herbs.
15. Tansy
Tansy carries a strong garden reputation, and I want to be straightforward about it.
Many gardening guides claim tansy repels squash bugs and beetles outright. University extension entomologists are more cautious, generally describing such claims as largely anecdotal rather than confirmed by controlled research.
That said, tansy’s bright yellow button flowers do attract beneficial insects, and it is a hardy, low-maintenance perennial. Just do not treat it as a guaranteed pest shield.
Planting tip: Tansy spreads aggressively through its root system. Contain it in a pot or a firmly edged bed, well away from your squash roots.
Plants to Avoid Near Summer Squash
A few common garden plants work against summer squash rather than for it.
Potatoes compete heavily for nutrients and can raise overall disease pressure when planted too close to squash.
Fennel releases root compounds that can inhibit the growth of many neighboring vegetables.
Other cucurbits — cucumbers, melons, and additional squash varieties — attract the same pests and diseases. Crowding them together concentrates squash bugs, vine borers, and powdery mildew instead of spreading the risk apart.
Give every cucurbit plant, summer squash included, roughly 3 to 4 feet of breathing room regardless of what surrounds it.
Why Summer Squash Needs Companion Planting
Two problems drive most summer squash failures: weak pollination and stem-boring pests.
Summer squash flowers are unisexual, so a bee must physically carry pollen from a male bloom to a female one before fruit can form. The USDA Agricultural Research Service describes squash as a half-billion-dollar crop in the United States that depends entirely on bee visits for fruit set.
Then there is the squash vine borer. Cornell University’s College of Agriculture and Life Sciences explains that its larvae feed on the xylem and phloem inside the stem, cutting off water and nutrients until the whole plant collapses.
University of Maryland Extension adds that zucchini is more susceptible to this pest than crookneck varieties, while butternut and tromboncino resist it almost entirely. That single detail is worth remembering if borers have wrecked your garden before.
Good companion planting will not eliminate either risk completely. It does, however, stack several small advantages that add up over a full growing season.
Timing matters just as much as plant choice. Squash vine borer moths are most active in late June and early July across much of the country, so a companion layout that supports strong, fast-growing plants during that window gives your squash a better chance of outrunning the worst pressure.
ALSO READ: 10 Effective Squash Vine Borer Prevention Strategies That Actually Works
How to Lay Out Companions Around Summer Squash
You do not need a complicated design. A simple, layered bed beats an overcrowded one every time.
Put summer squash at the center, since its leaves will spread 3 to 4 feet wide by midsummer. Ring the outside with marigold, calendula, or zinnia for steady pest deterrence and pollinator support.
Add borage or sunflowers at one corner to keep bees returning to the bed daily. Tuck dill, parsley, or sweet alyssum along the edges, where their small flowers pull in the wasps and flies that hunt pest eggs.
Use radish as a fast, disposable trap crop right around new seedlings, since this is when plants are most vulnerable to early pests.
Squash Vine Borer: The Pest That Makes Companion Planting Worth It
Most gardeners searching for summer squash companions are really trying to solve one problem: the squash vine borer.
Illinois Extension describes the telltale sign of infestation as sudden wilting of a single runner, or the entire plant, often discovered only after the damage is already severe.
Companion planting alone will not stop this pest. North Carolina State University Extension recommends combining it with crop rotation, since squash vine borer pupae overwinter directly in garden soil and reinfest the same bed year after year.
The most reliable defense combines several tactics: rotate planting locations, stagger planting dates, use companion plants for pollinator and predator support, and inspect stems weekly during early summer for the telltale sawdust-like frass.
Succession planting pairs especially well with this companion strategy. Sowing a second round of summer squash three to four weeks after the first gives you a backup crop if borers strike the earlier planting, and the companion bed you already built continues supporting both rounds without extra work.
ALSO READ: 15 Best Companion Plants for Yellow Squash (And Those to Avoid)
Quick-Reference Companion Chart
| Companion Plant | Main Benefit | Ideal Distance from Squash |
| Nasturtium | Trap crop, pest masking | 18–24 inches |
| Marigold | Nematode suppression, beneficial insects | Bed border |
| Borage | Pollinator magnet | 1–2 plants per bed |
| Radish | Flea beetle trap crop | Interplanted at seeding |
| Dill | Beneficial predator attraction | Bed edge |
| Corn | Light shade, structure | Three Sisters layout |
| Pole beans | Nitrogen fixation | Three Sisters layout |
| Buckwheat | Hoverfly attraction, living mulch | Between rows |
| Sunflower | Pollinator draw, windbreak | North side of bed |
| Oregano | Living ground cover | Base of plant |
| Zinnia | Nematode-resistant, pollinator draw | Border row |
| Calendula | Beneficial insects | Pathway edges |
| Sweet alyssum | Aphid predator habitat | Living border |
| Parsley | Beneficial wasp attraction | Shaded corners |
| Tansy | Pollinator support (mild) | Contained bed or pot |
Frequently Asked Questions
What is the best companion plant for zucchini specifically? Borage and nasturtium top most gardeners’ lists. Borage keeps bees returning throughout the season, while nasturtium works as both a scent mask and an aphid trap crop.
Can companion planting actually stop squash vine borers? Not on its own. It reduces overall pest pressure and supports the predator insects that help, but crop rotation and weekly stem inspection remain the most reliable defenses.
Does marigold really work against squash pests? Its effect on nematodes is well documented, and it reliably attracts beneficial predator insects. Direct pest repellence claims are less consistently supported by research.
How far apart should I space companion plants from summer squash? Most flowers and herbs perform best 18 to 24 inches away. This allows aromatic and visual benefits to reach the squash without pest problems spreading directly between plants.
Is zucchini more vulnerable to pests than yellow squash? Generally, yes. Zucchini and standard yellow squash show similar susceptibility to most pests, while crookneck varieties tend to fare somewhat better against vine borers.
Should I still plant the classic Three Sisters combination with summer squash? Yes, though summer squash sprawls more aggressively than the winter squash traditionally used. Give it extra room, or train vines outward from the corn and bean mound.
Will planting flowers near summer squash attract more pests instead of fewer? Occasionally, in the short term. Trap crops like nasturtium and radish are meant to draw some pests toward themselves. Keeping the recommended distance from your squash prevents that pest load from spreading directly onto the crop you actually want to protect.
Final Thoughts
Companion planting will not turn a squash bed pest-proof, and I would rather be upfront about that than promise more than the research supports.
What it reliably delivers is stronger pollination, fewer concentrated outbreaks, and a more resilient garden overall. Combine two or three of these companions rather than leaning on a single plant, and keep checking stems and leaves regularly no matter what surrounds them.
If you are starting fresh this season, begin with nasturtium, marigold, and borage. Build outward from there based on what pressures your own garden actually faces.
Every yard carries its own mix of soil, climate, and pest history. Treat this list as a working map rather than a fixed formula, and adjust it as you learn what your squash bed truly needs.
If a companion is not pulling its weight after one season, replace it rather than forcing it to work. A summer squash bed built around a handful of proven, reliable neighbors will almost always outperform one crammed with every plant on this list at once. Patience and observation, more than any single plant, are what carry a garden through to a strong harvest.
References
- Ohio State University Extension, Ohioline — Squash Vine Borer Damage and Management: What to Look for and When to Act https://ohioline.osu.edu/factsheet/ent-0106
- USDA Agricultural Research Service — Squash Pollination https://www.ars.usda.gov/pacific-west-area/logan-ut/pollinating-insect-biology-management-systematics-research/docs/squash-pollination/
- Cornell University, College of Agriculture and Life Sciences (CALS) — Squash Vine Borer (Melittia cucurbitae) Vegetable IPM Fact Sheet https://cals.cornell.edu/integrated-pest-management/outreach-education/fact-sheets/squash-vine-borer-melittia-cucurbitae-vegetable-ipm-fact-sheet
- University of Maryland Extension — Squash Vine Borer on Vegetables https://extension.umd.edu/resource/squash-vine-borer-vegetables
- Clemson Cooperative Extension, Home & Garden Information Center — Plant Partners: 5 Benefits of Companion Planting https://hgic.clemson.edu/plant-partners-5-benefits-of-companion-planting/
- University of Illinois Extension — Squash Vine Borer https://extension.illinois.edu/insects/squash-vine-borer
- North Carolina State University Extension, Pamlico County Center — Controlling Squash Vine Borers: Protect Your Squash and Zucchini Plants https://pamlico.ces.ncsu.edu/news/controlling-squash-vine-borers/
Tim M Dave is a gardening expert with a passion for houseplants, particularly cacti and succulents. With a degree in plant biology from the University of California, Berkeley, he has vast experience in gardening. Over the years, he has cultivated a vast collection of desert plants and learned a great deal about how to grow and care for these unique companions.
