9 Cucumber Companion Plants That Actually Work (and 4 to Keep Away)

By: Anh
Last update:

The first companion planting list I followed told me to ring my cucumber bed with marigolds, scatter dill at the corners, and tuck nasturtiums underneath. I did all of it. The cucumber beetles arrived right on schedule, the aphids didn’t care about the nasturtiums, and the dill bolted into the cucumber row and stunted half the plants.

Some of those plants do help cucumbers. Just not the way Pinterest articles tell you. After three seasons of paying attention and digging into actual extension research, here’s what I’ve sorted into three honest tiers: the ones with real evidence, the ones that work if you do them right, and the ones to plant somewhere else.

I also added the part most lists skip: plants that hurt cucumbers, and what actually works against cucumber beetles (spoiler: not herbs).

The Lowdown: 3 Tiers in 5 Lines

  • Strong picks (research-backed): French marigolds, chives, borage.
  • Conditional (good if managed correctly): young dill, nasturtiums, bush beans, radishes, sunflowers, oregano.
  • Skip near cucumbers: potatoes, sage, fennel, mature dill.
  • Cucumber beetles: companion herbs barely help. Row covers and Blue Hubbard trap crop actually work.
  • Most overhyped: nasturtiums as a beetle repellent. They trap aphids only, and only if you remove the aphids.

Strong Picks (Evidence-Backed)

These three earn a place in or around any cucumber bed. Each one has documented research behind it, not just folklore.

Marigolds (French Marigolds Specifically)

The marigold most articles recommend isn’t specified, and the species matters. French marigold (Tagetes patula) has peer-reviewed evidence for suppressing root-knot nematodes via a root compound called alpha-terthienyl. African marigold (Tagetes erecta) is less effective. The generic “marigold” you grab at the nursery may be either.

Look for varieties like ‘Tangerine’, ‘Petite Harmony’, ‘Petite Gold’, or ‘Janie’. These are the documented French dwarf types. Plant them densely around the cucumber bed, not as a sparse border.

Honest caveat: the nematode effect matters most in nematode-infested soil. Most home gardens don’t have heavy nematode pressure on cucumbers anyway. The aphid-repelling effect from above-ground marigolds is much weaker and largely anecdotal. But the plants also bring pollinators, so they’re never a wasted spot.

Chives (Best-Evidenced Herb on This List)

This one surprised me when I first dug into the research. Chives and other Alliums (garlic, onions) produce sulfur-containing volatile compounds that repel aphids. The mechanism is documented in peer-reviewed papers; aphid odor receptors get masked, and the host plant becomes harder to find.

Chives are also low-growing, compact, and don’t compete with cucumber roots. A clump or two at the corners of the bed adds real protection against aphids and looks pretty when they flower.

This is the herb to plant if you only plant one near cucumbers.

Borage (For the Bees)

Borage is one of the most attractive plants to bees in any garden. It produces high-nectar blue flowers that bumblebees and honeybees can’t resist. Since cucumbers are entirely insect-pollinated and poor pollination is one of the top causes of misshapen fruit, anything that brings bees to the bed pays off.

The pest-repellent claims you’ll see about borage (deters tomato hornworms, repels cucumber beetles) are mostly folk tradition. The pollinator effect is the real benefit.

One thing to know: borage self-seeds enthusiastically. By year two you’ll have volunteers everywhere, which is either a feature or a bug depending on your tolerance for free plants.

Conditional Picks (Work If You Manage Them Right)

These six are commonly listed as cucumber companions and they can help, but only if you handle them correctly. The default “just plant them and walk away” advice misses the conditions that make the difference.

Dill (Young Only, Never Mature)

Young dill attracts parasitic wasps and predatory flies that prey on aphids and small caterpillars. That part is well-documented. But mature dill (the kind that’s bolted and gone to seed) becomes a problem; multiple sources flag it as allelopathic to cucumbers, meaning its root compounds inhibit cucumber growth.

The rule: let dill stay young. Harvest sprigs regularly, succession-sow every 3 weeks, and pull plants the moment they start to bolt. Or plant dill 4 to 5 feet away from your cucumbers so the roots don’t tangle.

This caveat is missing from almost every “plant dill with cucumbers” article. Dill that’s allowed to mature in the row hurts more than it helps.

Nasturtiums (Trap Crop, Requires Active Management)

Nasturtiums work as a trap crop for aphids. Aphids prefer nasturtium leaves to cucumber leaves, so they aggregate on the nasturtium and (in theory) leave the cucumbers alone.

Here’s the honest part most articles skip: the trap crop only works if you actively remove the aphids. A neglected nasturtium covered in aphids becomes a breeding ground that eventually spreads aphids to your cucumbers anyway. You have to hose them off, prune the infested leaves, or pull infested plants.

The cucumber-beetle and squash-bug repellent claims about nasturtium are largely anecdotal. Stick to the aphid trap framing.

Bush Beans (Soil Building, Not Same-Season Boost)

Bush beans are nitrogen-fixing legumes. The marketing line says they “feed your cucumbers” because they pull nitrogen from the air. The honest reality: most of that nitrogen releases when the bean roots die back, not during the growing season.

So bush beans aren’t a same-season cucumber booster, despite what you’ll read. They’re a soil-improver for next season. They also occupy a different vertical zone (under 18 inches) than cucumbers (climbing), so they share space without competing.

Plant them if you like beans and want soil improvement. Don’t expect a yield bump on the cucumbers this year.

Radishes (Space Efficient, Beetle Trap Claim Is Weak)

Radishes get listed as a cucumber beetle trap crop. The evidence is thin. One study mixed radishes with several other plants and found reduced beetle pressure overall, but radishes alone aren’t proven to do much.

What radishes do offer is practical: they mature in 25 to 30 days, which means you can sow them between cucumber transplants and harvest before the cucumbers need the space. That’s real value, just not pest control.

Sunflowers (Only on the North Side, Small-Fruited Cukes Only)

Sunflowers as a living trellis for cucumbers is a great idea on paper. In practice, it works only with two conditions met.

  • Plant on the north side of the cucumber row only. Sunflowers will shade out cucumbers planted south of them, killing the harvest.
  • Use pickling or small-fruited cucumbers. Sunflower stalks are thick, and cucumber tendrils prefer thin supports. Heavy slicing cucumbers are too much weight for the climbing relationship.

There’s also a mild allelopathy concern; sunflowers release compounds that can suppress some neighboring plants. The effect on cucumbers specifically isn’t quantified, but spacing the sunflowers at least 18 inches from the cucumber base reduces the risk.

Oregano (Plausible Mechanism, Weak Evidence)

Oregano contains carvacrol, a compound documented to repel insects in laboratory tests. Whether the volatile compounds emitted by a living plant in your garden are concentrated enough to deter pests on cucumbers nearby is a different question, and one that hasn’t been answered with field trials.

So oregano is plausible, not proven. It’s a perennial herb that takes up little space, attracts hoverflies (which prey on aphids), and you’ll want some in the kitchen anyway. Plant it for the cooking, treat any pest protection as a bonus.

Plants to Keep Away From Cucumbers

This is the section most companion planting lists skip. Some plants actively work against cucumbers.

  • Potatoes. Both are heavy feeders competing for the same nutrients. They also share fungal disease vulnerabilities (Phytophthora blight in particular). Plant them in separate beds, on opposite sides of the garden if possible.
  • Sage. Sage produces allelopathic compounds (rosmarinic acid, camphor) that stunt cucumber growth. Sage and cucumbers also have opposite water needs; sage wants dry, cucumbers want consistent moisture.
  • Fennel. Fennel is broadly allelopathic and inhibits most vegetable crops. Keep it in its own corner of the garden.
  • Mature dill. Covered above. Young dill is fine, mature dill stunts cucumbers.
  • Melons (squash, pumpkins, watermelons). Not because of cross-pollination (that’s a myth; cross-pollination only affects seeds saved for next year), but because the same pests (cucumber beetles, squash bugs) concentrate where their hosts cluster. Spread the cucurbit family across the garden to dilute pest pressure.

What Actually Stops Cucumber Beetles (It Isn’t Herbs)

Most “plants to repel cucumber beetles” lists are wishful thinking. Marigolds, oregano, nasturtiums, none of them stop a real beetle outbreak. Cucumber beetles are persistent flying insects that find your cucumbers no matter what you’ve planted nearby.

What actually works:

  • Floating row covers. Mesh fabric draped over young cucumbers physically excludes beetles. The catch: you have to remove it once flowers open, so bees can pollinate. Most beetle damage happens early, so this is the cleanest defense.
  • Blue Hubbard squash as a perimeter trap crop. University research shows that 6 to 8 Blue Hubbard transplants placed around the perimeter of a cucumber patch reduce beetle damage by up to 95%. Beetles strongly prefer Blue Hubbard to other cucurbits, so they cluster there. You can hand-pick or spot-treat the trap plants without spraying your cucumbers.
  • Hand-picking in the morning. Beetles are slow in cool weather. A 10-minute morning patrol with a cup of soapy water removes the early adults before they multiply.
  • Yellow sticky traps. Beetles are attracted to yellow. Sticky traps at the bed edges catch enough to give you a useful pest pressure read.

If you want one tactic to actually save a cucumber crop from beetles, it’s the row cover. Marigolds are a nice border. They aren’t a defense system.

Frequently Asked Questions

Will cucumbers cross-pollinate with melons or zucchini?

No, this is one of the most stubborn garden myths. Cucumbers (Cucumis sativus) don’t cross with melons (Cucumis melo) or squash (Cucurbita), and even if they did, cross-pollination only affects seeds saved for next year, never the current fruit. The reason to spread cucurbits out is shared pests, not pollination.

Can I grow basil with cucumbers?

Basil isn’t on most companion lists for cucumbers and there’s not much research either way. It doesn’t actively hurt cucumbers, but it doesn’t measurably help them either. If you want basil in the kitchen, plant it wherever’s convenient. It’s neutral.

Do tomatoes work with cucumbers?

They can grow together but have different needs. Tomatoes prefer slightly drier soil and more potassium; cucumbers want consistent moisture and more nitrogen. They share some pests too. They’re not enemies, just not natural partners.

How close should companion plants be to cucumbers?

For most herbs and flowers, 12 to 18 inches from the cucumber base is close enough to share microclimate without root competition. For sunflowers, 18 inches plus, on the north side only. For dill, 3 to 5 feet so root contact stays minimal as the dill matures.

Pick Your Lineup and Plant

If I’m setting up a cucumber bed this year, here’s my lineup: a row of French marigolds along the south edge, two chive clumps at the corners, a couple of borage plants at the back for the bees, and a row cover ready to go on the day I see the first cucumber beetle.

That’s it. No magic combinations, no 15-plant guild, no dill scattered everywhere. Companion planting helps at the margins, but the basics (good soil, consistent water, exclusion netting against beetles) do 90% of the work.