Zucchini repay a little planning around what grows beside them. Zucchini plants need full sun, soil with a pH of 6.0–7.5, 36–48 inches of space and 45–55 days to reach maturity, so their neighbours need to suit the same bed and the same season. This guide lists the companions for zucchini from our crop data, how each one is thought to help, and which close relatives to keep apart.

There are 4 companions listed for zucchini here: marigolds, basil, onions, lettuce. Companion planting is traditional garden practice rather than proven science, so benefits below are described in those terms — what gardeners have long said and done. Zucchini are in the Cucurbitaceae family, need moderate water, and are sown directly or started indoors; it is tender, so frost will kill it and it should only go outside once all danger of frost has passed. Check any pairing first with the companion-planting finder.

Best companion plants for zucchini

Companion Why it is grown with zucchini
Marigolds Grown as a border or dotted through the bed; roots are traditionally said to discourage some soil pests, and flowers attract beneficial insects.
Basil Traditionally said to improve flavour; its strong scent may confuse pests. Draws pollinators when it flowers.
Onions Take up little space at the bed edge; strong scent is traditionally said to confuse pests that hunt by smell.
Lettuce Grows low and fast, shading the soil and acting as a living mulch while zucchini grow taller.

Basil is the classic partner for zucchini, and it earns its place for practical reasons too. It is compact enough to fit into the gaps at the edge of the bed without competing for the space zucchini need, and it is harvested all summer. Plant it at the sunny edge where it will not be shaded out, pinch the tips to keep it bushy, and let a few plants flower late in the season to draw in pollinators.

How companion planting works

Companion planting works through four overlapping mechanisms.

Pest confusion. Many pests find their host plant by scent. Strong-smelling companions such as onions, basil and aromatic herbs are traditionally said to mask that scent, so the pest passes by. It is a delaying effect, not a barrier.

Pollinator and beneficial-insect attraction. Several companions here flower — marigolds, basil — drawing pollinators and beneficial insects in. Let a few flower.

Nitrogen fixing. Nitrogen fixing does not apply here — none of the listed companions is a legume.

Ground cover and root layers. Ground cover comes from lettuce, whose low growth shades the soil and holds moisture in. Deep roots beside shallow ones also compete less for water and nutrients.

None of this replaces the basics. Spacing, watering, rotation and weekly inspection matter more than any pairing.

Plants to avoid near zucchini

The plants to keep away from zucchini are its own relatives. Zucchini belong to the Cucurbitaceae family, and plants in the same family share the same pests and diseases — here, cucumber beetles, squash bugs, aphids — so problems pass easily between them and build up in the soil.

Plant to avoid Why
Cucumbers Same Cucurbitaceae family; shares pests such as cucumber beetles, squash bugs, aphids.
Butternut Squash Same Cucurbitaceae family; shares pests such as cucumber beetles, squash bugs, aphids.
Pumpkins Same Cucurbitaceae family; shares pests such as cucumber beetles, squash bugs, aphids.
Yellow Squash Same Cucurbitaceae family; shares pests such as cucumber beetles, squash bugs, aphids.

Keep these relatives in a different bed and rotate the Cucurbitaceae family to fresh ground each year. Others in the same family in our crop data include Spaghetti Squash, Watermelon, Cantaloupe, Honeydew Melon.

Planting layout and spacing

Give zucchini their full spacing of 36–48 inches between plants. Crowded zucchini mean poor airflow, more disease and smaller harvests, and no companion plant compensates for it. Work out how many plants fit your bed with the plant-spacing calculator or the square-foot garden planner.

Plant companions in the spaces the spacing leaves, not instead of it. Low companions go in the gaps and along the bed edges; taller ones go at the north side so they do not shade the zucchini; scented herbs go closest to the crop, dotted through the row.

Zucchini can be sown directly or started indoors. Starting indoors gives an earlier crop; direct sowing is simpler and avoids transplant shock. Germination takes 7–10 days either way. Zucchini need full sun and soil with a pH of 6.0–7.5. Water needs are moderate, so keep the soil consistently moist with deep, regular watering rather than a light daily sprinkle, and mulch thickly to hold moisture in. The watering calculator gives a starting point for your bed size. Expect 45–55 days from sowing to maturity.

Common problems and fixes

The pests most often reported on zucchini are cucumber beetles, squash bugs, aphids, powdery mildew. Companions may reduce pressure, but they do not prevent them — inspect leaf undersides and new growth weekly and act while numbers are low.

Problem What you see First fix
Cucumber beetles Striped or spotted beetles chew leaves and flowers. Row cover until flowering; hand-pick in the morning.
Squash bugs Flat grey-brown bugs suck sap; bronze eggs on leaf undersides. Scrape off egg clusters; hand-pick adults.
Aphids Sap-sucking insects on new growth; leaves curl. Wash off with water; encourage ladybirds.
Powdery mildew A white powdery coating on leaves in warm, humid weather. Space for airflow; water at the base.

Cucumber beetles

Cover young plants with row cover until flowering, then hand-pick beetles in the morning.

Squash bugs

Check leaf undersides weekly, scrape off egg clusters, and hand-pick adults.

Aphids

Wash them off with a strong jet of water and leave ladybirds and lacewings alone to eat them.

Powdery mildew

Space plants so air moves freely, water at the base in the morning, and remove badly affected leaves.

Unsure what you are seeing? Try the pest-identifier helper or the plant-disease checker. Remove badly affected leaves and rotate the Cucurbitaceae family next year.

Frequently asked questions

What is the best companion plant for zucchini?

The most widely recommended companion is marigolds. Grown as a border or dotted through the bed; roots are traditionally said to discourage some soil pests, and flowers attract beneficial insects.

What should not be planted near zucchini?

Avoid other members of the Cucurbitaceae family, including Cucumbers, Butternut Squash, Pumpkins. They share the same pests and diseases as zucchini, so problems move easily between them. Rotate the family to a fresh bed each season.

Can I plant zucchini with basil?

Yes. Basil is on the companion list for zucchini. Traditionally said to improve flavour; its strong scent may confuse pests. Draws pollinators when it flowers.

How far apart should zucchini and their companions be planted?

Space zucchini plants 36–48 inches apart, and put companions in the gaps, along the edges and at the ends of rows. The plant-spacing calculator works out how many plants fit your bed.

Does companion planting replace pest control?

No. It may reduce pest pressure, but it does not replace inspection, spacing, watering, rotation and good airflow. Check plants weekly and act early.

Related guides