Squash benefits significantly from companion planting. The plant's main challenges — Squash Vine Borer and Squash Bug pressure, and the pollination needs that drive fruit set — are directly addressed by the right neighboring plants. Below are the companions with the strongest evidence, their specific benefits, recommended spacing, and the plants to keep squash away from.

Companion Planting for Squash
Published: April 21, 2026

Best Companions for Squash
| Companion | Benefit | Spacing |
|---|---|---|
| Corn | Provides trellis for climbing beans; shades out weeds with squash | 12–18 in (Three Sisters spacing) |
| Bush Beans | Fix nitrogen in soil; mutual pest deterrence with most vegetables | 12–18 in |
| Nasturtium | Acts as a trap crop drawing aphids away; attracts predatory insects | 18 in |
| Marigold | Root secretions kill soil nematodes; deters whitefly and aphids above ground | 12 in |
| Dill | Attracts beneficial wasps and hoverflies when in flower | 12–18 in (remove before flowering) |
Plants to Avoid Near Squash
| Avoid | Reason |
|---|---|
| Potato | Same family (Solanaceae) — share blight and pest pressure; compete for nutrients |
| Fennel | Releases allelopathic compounds toxic to most vegetables; grow in isolation |
Squash in a Raised Bed — Layout
Squash needs significant space — plan for 2 to 3 plants in a 4×8 bed, spaced 36 inches apart. Put bush beans between the squash plants to fix nitrogen. Add nasturtiums at the bed perimeter to deter squash bugs. Marigolds at the corners deter soil nematodes. Do not crowd the squash — their large leaves fill the bed within 4 to 6 weeks of planting.
When to Plant Companions with Squash
Plant corn at the same time as squash transplants — both need soil above 65°F and consistent warmth for establishment. Marigolds and other flowering companions can be started from seed 4 weeks earlier indoors, then transplanted at the same time as the main crop. Legume companions like bush beans direct-sow 1 week after last frost; nitrogen fixation does not start for 3 to 4 weeks, so timing them just ahead of peak squash demand works best. Fast-crop companions (radish, lettuce) can be direct-sown between transplants the same day for a 30 to 45 day harvest before the main crop fills in.
Companion Planting & Squash Pest Control
Squash’s most common pests — Squash Vine Borer, Squash Bug, Powdery Mildew — are directly addressed by the right companions. Corn provides trellis for climbing beans; shades out weeds with squash. Bush Beans adds a second defense — fix nitrogen in soil; mutual pest deterrence with most vegetables. These effects are strongest when the companion is planted within 18 inches of the main crop, and when multiple companion species are layered together rather than used singly. Beneficial insects (hoverflies, parasitic wasps, ladybugs) drawn in by companion flowers provide additional control against aphids and caterpillars — flowering companions like dill, borage, and marigold all attract these predators.
Frequently Asked Questions
What is the best companion plant for squash?
Corn is the best all-around companion for squash — provides trellis for climbing beans; shades out weeds with squash. Plant corn 12–18 in (Three Sisters spacing) from squash for the strongest effect. Bush Beans is a close second — fix nitrogen in soil; mutual pest deterrence with most vegetables.
What should I not plant near squash?
Avoid Potato and Fennel. Potato same family (solanaceae) — share blight and pest pressure; compete for nutrients. Keep these at least 6 feet from your squash or plant them in a separate bed to avoid the competition and shared pest pressure.
Can I grow squash and potato in the same garden?
Yes, in separate beds. Potato and squash same family (solanaceae) — share blight and pest pressure; compete for nutrients, but placing them 6+ feet apart with a buffer of other crops usually prevents problems. Rotation is also important — don't plant the same family in the same bed two years in a row.
How far apart should companion plants be from squash?
Pest-deterrent companions like corn work within 12 to 18 inches of squash. Nitrogen-fixing legumes work at 18 to 24 inches. Trap crops (nasturtiums, for example) need 18+ inch spacing so pests congregate on the trap rather than the main crop. Flowering companions for pollinator attraction can be anywhere in the bed — their bee-attracting effect reaches 10 to 20 feet.
Does companion planting help with squash vine borer on squash?
Yes, for the specific companions that target Squash Vine Borer. Corn and Bush Beans are documented squash vine borer deterrents and should be planted within 18 inches of squash. Companion planting is one part of integrated pest management — combine it with floating row covers during peak squash vine borer season and hand-picking for best results.