Companion Plants for Cucumbers: What to Plant With (and Avoid)

The best companion plants for cucumbers are dill, borage, pumpkins and peas. Avoid planting cucumbers near potatoes, sage and fennel.

Cucumbers grow fast, climb readily and depend on bees: most garden varieties need pollen carried from male to female flowers before fruit sets. The most useful companions therefore bring pollinators — borage, flowering dill, sunflowers — or make use of the cucumber trellis, like spring peas that finish before cucumbers take over and lettuce that grows in the trellis's shade.

Striped and spotted cucumber beetles are the main cucumber pest because they also spread bacterial wilt. A border of Blue Hubbard squash is a research-backed trap crop that draws beetles away from cucumbers; radishes and nasturtiums are traditional deterrents with weaker evidence.

Potatoes are the classic cucumber enemy in garden lore. The often-repeated blight link doesn't hold — cucumbers don't host potato late blight — but cucumber vines crowd potato rows and both crops need steady moisture. Aromatic sage is also said to stunt cucumbers; there's no evidence for that, though sage's dry-soil needs make it a poor bedmate.

Good companions
11
Plants to avoid
3
Research-supported
3

Cucumis sativus · gourd family (Cucurbitaceae)

Yes — cucumbers and dill are good companions

Pollinators & beneficialsResearch-supported

Flowering dill attracts hoverflies, lacewings and parasitic wasps that attack aphids on cucumbers; the two also share a season and a pickle jar.

What Are the Best Companion Plants for Cucumbers?

Cucumbers grow best with dill, borage, pumpkins, peas and lettuce. 11 plants in our chart pair well with cucumbers, mostly by deterring or trapping pests and providing support or shade; 3 of those pairings are research-supported.

Good companion plants for cucumbers, strongest evidence first.
DillPollinators & beneficialsFlowering dill attracts hoverflies, lacewings and parasitic wasps that attack aphids on cucumbers; the two also share a season and a pickle jar.Research-supported
BoragePollinators & beneficialsBorage is one of the most bee-visited garden flowers; cucumbers need bees to carry pollen between flowers, and better pollination means fuller, better-shaped fruit.Research-supported
PumpkinsPest controlA border of Blue Hubbard or other Cucurbita maxima squash is a researched perimeter trap crop: cucumber beetles and squash vine borers prefer it to cucumbers.Research-supported
PeasSpace & timingSpring peas finish on the trellis just as cucumbers need it, so one support grows two crops.Practical
LettuceSupport & shadeLettuce grows in the shade beneath trellised cucumbers, where it bolts later in summer.Practical
NasturtiumsPest controlNasturtiums are a traditional deterrent for squash bugs and cucumber beetles around cucumbers, and they trap aphids; field trials are inconclusive.Traditional
MarigoldsPest controlMarigolds are a traditional deterrent for cucumber beetles; the effect is unproven, but single-flowered types attract hoverflies.Traditional
RadishesPest controlRadishes are a traditional deterrent for cucumber beetles around cucumbers and are harvested before the vines spread; evidence is anecdotal.Traditional
BeansSoil & nutrientsBeans are a traditional cucumber partner. Their nitrogen mostly benefits the next crop rather than cucumbers this season, but the two grow well side by side.Traditional
CornSupport & shadeCorn stalks can support cucumber vines if the corn has a two- to three-week head start.Traditional
SunflowersSupport & shadeSturdy sunflower stalks act as a living trellis for cucumbers and draw pollinators; plant sunflowers on the north side so they don't shade the vines.Traditional

Good companion plants for cucumbers, strongest evidence first.

What Should You Not Plant With Cucumbers?

Don't plant cucumbers near potatoes, sage and fennel. The conflicts come mainly from competition for space, light or water and conflicting soil or water needs; none of the 3 are research-supported and the rest are practical or traditional rules.

Plants to keep away from cucumbers.
PotatoesCompetitionGarden lore links cucumbers and potatoes to blight, which doesn't hold — cucumbers don't host potato late blight. The real issue is that cucumber vines crowd potato rows and both crops need steady moisture.Traditional
SageConflicting needsSage is said to stunt cucumbers, which is folklore, but sage needs dry soil while cucumbers need constant moisture.Traditional
FennelAllelopathyFennel is widely said to stunt cucumbers. Fennel extracts inhibit germination in lab tests, but garden-scale evidence is thin; its size and water use are the practical reasons to keep it apart.Traditional

Plants to keep away from cucumbers.

Which Cucumber Companion Claims Are Backed by Research?

3 of the 14 cucumber pairings in our data are research-supported: dill, borage and pumpkins. Of the rest, 2 rest on practical horticulture and 9 are traditional claims.

Research-supported pairings rest on documented biology: shared pathogens, pollination, nematode suppression or insects that feed on specific flowers. Practical pairings are plain logic about space, shade and timing. Traditional companions such as nasturtiums, marigolds, radishes and beans are harmless to grow with cucumbers, but don't rely on them for pest control — row covers, crop rotation and regular checks do more.

How Should You Plant Cucumbers With Companions?

Grow cucumbers on a trellis along the north side of the bed, with lettuce or spinach in its shade and dill or borage at the ends. Sow peas on the same trellis in early spring and plant cucumbers at its base as the peas finish.

Companions still need room of their own, so work out how many cucumbers and partner plants fit in a bed with the plant spacing calculator. Planting dates for cucumbers and their companions follow your local spring and fall frost dates, so warm-season partners go in together after the last spring frost, while cool-season fillers such as spinach and radishes use the bed before then.

Watering, feeding, light and harvest timing for cucumbers are covered in the cucumber plant care guide.

Which Crops Share Companions With Cucumbers?

Zucchini, melons and dill share companion plants or growing conditions with cucumbers, so their companion guides help plan the same bed or rotation.

  • The guide to companion plants for zucchini overlaps with this one: both crops grow well with dill, borage and pumpkins; as members of the same plant family, the two should rotate together.
  • The guide to companion plants for melons overlaps with this one: both crops grow well with borage, lettuce and nasturtiums; as members of the same plant family, the two should rotate together.
  • The guide to companion plants for dill overlaps with this one: both crops grow well with lettuce, and dill is a good companion for cucumbers too.

To check cucumbers against every other plant at once, or test a whole bed plan, use the companion planting chart and garden checker.

Frequently Asked Questions

What is the best companion plant for cucumbers?
Dill is one of the best-supported companions for cucumbers. Flowering dill attracts hoverflies, lacewings and parasitic wasps that attack aphids on cucumbers; the two also share a season and a pickle jar.
What should you not plant with cucumbers?
Avoid planting cucumbers near potatoes, sage and fennel. The most important conflict is with potatoes: Garden lore links cucumbers and potatoes to blight, which doesn't hold — cucumbers don't host potato late blight. The real issue is that cucumber vines crowd potato rows and both crops need steady moisture.
Can you plant cucumbers and zucchini together?
Yes, cucumbers and zucchini can share a bed; neither is known to help or harm the other. Both belong to the gourd family (Cucurbitaceae), so they share pests and diseases — rotate them together and don't follow one with the other.
Does companion planting really work for cucumbers?
Partly. 3 of the 14 cucumber pairings in our data are backed by research, 2 are practical space or timing rules, and 9 are traditional. Flowers that feed beneficial insects and separating crops that share diseases have the strongest evidence.
Can cucumbers and melons cross-pollinate?
Cucumbers and melons can't cross-pollinate. They are different species (Cucumis sativus and Cucumis melo) that don't hybridize, so planting them together won't change the flavor of either. Bitter or oddly shaped fruit comes from heat, drought or poor pollination instead.

Companion data: PlantoScan's own editorial compilation, written from general horticultural knowledge, plant pathology and published intercropping research. Evidence labels are our editorial judgment; results vary with climate, soil, variety and pest pressure.