Skip to content
Vegetables

Companion Plants for Cucumbers, and What to Keep Away

Cucumbers need pollinators and hate competition for water. What genuinely helps, what the evidence is thin on, and the two neighbours worth actually avoiding.

A cucumber plant in flower spreading across a garden bed
Photo: H. Zell, CC BY-SA 3.0, via Wikimedia Commons
On this page

Cucumber yield depends on something most companion planting advice skips: bee visits. Each fruit needs multiple visits to a female flower, and poorly pollinated flowers drop or produce pinched, misshapen cucumbers.

So the most valuable companion for a cucumber is not a pest repellent. It is something in flower nearby.

What to plant, and what it actually does

Cucumber companions, with the honest reason
PlantWhat it doesEvidence
BorageStrong bee magnet; flowers for monthsGood — pollinator attraction is well established
CalendulaAttracts pollinators and hoverfliesGood
NasturtiumTrap crop for aphids; draws pollinatorsReasonable — trap cropping is documented
SunflowersLiving support plus pollinator drawGood
Beans, peasFix nitrogen in the soilGood, though the benefit mostly arrives next season
RadishFast catch crop; harvested before cucumbers spreadGood — this is space use, not chemistry
LettuceSame, plus shaded by cucumber foliage laterGood
DillAttracts predatory wasps and hoverfliesReasonable
Marigold (French)Suppresses root-knot nematodes in soilGood for nematodes; weak for airborne pests
CornLiving trellis in a Three Sisters plantingTraditional and effective
Oregano, thymeGround cover, some predator attractionThin

The marigold claim, corrected

French marigolds do have solid evidence behind them — against root-knot nematodes, which they suppress through compounds released by the roots, and the effect needs the marigolds grown as a cover crop and dug in, not dotted between plants. What they do not do well is repel flying pests like cucumber beetles, which is the claim usually made. They still earn a place, because they attract hoverflies whose larvae eat aphids — just for a different reason than the one on the packet.

What to keep away

Potatoes. The one genuine conflict. Potatoes are heavy feeders with dense shallow roots that compete directly for the water cucumbers need, and both crops suffer in the damp, crowded conditions that result. Keep them in separate beds. Potato needs are covered in growing potatoes.

Melons, squash and pumpkins. Not harmful, but they are all cucurbits and share cucumber beetle, squash vine borer, powdery mildew and bacterial wilt. Planting them together concentrates every problem in one place. Spread them out if you can.

Sage, rosemary and lavender. Often listed as harmful. They are not — they simply want the opposite conditions. These are dry-hillside plants that suffer in the rich, constantly moist soil cucumbers need, so the herb does badly rather than the cucumber. See growing rosemary for what those plants actually want.

Fennel. Genuinely allelopathic — it inhibits the growth of many neighbours. Give it its own corner.

Aromatic herbs do not flavour the fruit

A persistent piece of folklore says planting strong herbs near cucumbers makes the fruit taste of them. It does not — plants do not transfer flavour compounds through soil or air to a neighbour’s fruit. Bitterness in cucumbers comes from cucurbitacins produced under stress, usually from inconsistent watering, and blaming the herbs sends people looking in the wrong place for the fix.

The Three Sisters, with cucumbers

The traditional Indigenous American planting of corn, beans and squash works because each part does a job: corn provides the support, beans fix nitrogen and stabilise the corn, and squash shades the ground and suppresses weeds.

Cucumbers substitute for the squash reasonably well, and vining varieties will climb corn stalks.

Two things make it work rather than fail:

  • Plant the corn first and let it reach knee height before the cucumbers go in, or the corn gets swamped.
  • Use a sturdy corn variety. Sweet corn bred for tenderness often cannot carry a mature cucumber vine in wind.

The honest summary on companion planting

Some of it is well documented: legumes fixing nitrogen, trap crops pulling pests off a main crop, physical shading, French marigolds against nematodes, and flowering plants bringing in pollinators and predatory insects.

Most specific “plant X repels pest Y” pairings come from tradition and have not survived controlled trials.

The mechanism that does reliably work is diversity itself. A mixed bed supports more predatory insects and more pollinators than a monoculture, and for cucumbers specifically, more pollinators means more fruit. That is reason enough to plant flowers among the vegetables, whether or not any individual folk pairing holds up.

Common questions

What should you plant with cucumbers?

Flowers that bring pollinators are the highest-value companions, because cucumber yield depends directly on bee visits — borage, calendula, nasturtium and sunflowers all work. Beans and peas fix nitrogen nearby, radishes and lettuce use space before cucumbers spread, and dill and marigolds attract predatory insects. Corn and sunflowers can also act as living supports.

What should you not plant near cucumbers?

Potatoes, which compete heavily for water and nutrients and whose blight can spread through a damp, crowded bed. Aromatic herbs like sage and rosemary suit dry, lean conditions that are the opposite of what cucumbers want, so they do badly as neighbours rather than harming the cucumber. Melons and squash are not harmful but share the same pests and diseases, which concentrates the problem.

Do marigolds actually repel cucumber beetles?

Only partly, and the popular version overstates it. French marigolds have good evidence against root-knot nematodes in the soil, which is a real and specific benefit. Their effect on airborne pests such as cucumber beetles is much weaker. They do attract hoverflies and other predators, which helps indirectly, so they earn their place for a different reason than the one usually given.

Can you plant cucumbers and tomatoes together?

Yes, with care. They want similar warmth, feeding and consistent water, so the conditions match. The problem is practical rather than chemical: both are large plants, both need support, and crowding them reduces airflow, which is what drives the fungal diseases that affect both. Give them more room than feels necessary.

What is the Three Sisters method and does it work with cucumbers?

The traditional Indigenous American planting of corn, beans and squash — corn as a support, beans fixing nitrogen, squash shading the soil. Cucumbers can substitute for the squash, and vining types will climb corn stalks. It works best with sturdy corn varieties and cucumbers planted a few weeks after the corn is established, or the corn gets swamped.

Does companion planting actually have evidence behind it?

Some of it does and much of it does not. Nitrogen fixing by legumes, trap cropping, physical shading, and nematode suppression by French marigolds are all documented. Most specific plant-repels-specific-pest pairings come from tradition rather than trials. The reliably useful principle is diversity: mixed planting attracts more predatory insects and pollinators than a monoculture.

Backyard Weekly

Know what to plant, week by week

Free planting calendar. Join the weekly email for seasonal jobs, fixes for what is going wrong, and gear worth buying.

Set MONETIZATION.email.endpoint in src/config/site.ts to enable this form.

By subscribing you agree to our privacy policy. Grow In Backyard will never sell your address.