
by Bethany Hayes (revised and updated)
The 30-second version: Cucumbers are pest-prone and pollinator-dependent, so the companions worth your time mostly do one of three jobs: pull beetles and aphids away (nasturtium, marigolds, radishes), bring in the bees and beneficial insects that cucumbers need to set fruit (borage, dill, calendula), or share space without a fight (corn and sunflowers as living trellises; lettuce, beets, and carrots as tidy gap-fillers). A few pairings are worth avoiding — fennel releases natural chemicals into the soil that stunt the plants around it, and you shouldn’t crowd cucumbers in with their own relatives like squash and melons, which share every pest and disease. And one honest note up front: companion planting nudges the odds in your favor. It’s a helpful layer on top of good soil, spacing, and watering, not a substitute for them.

What companion planting actually does for cucumbers
Cucumbers have two real vulnerabilities: they’re a magnet for pests like cucumber beetles and aphids, and they can’t set fruit without pollinators visiting the flowers. Most of the good cucumber companions earn their spot by helping with one of those two problems — repelling or distracting pests, or drawing in bees and beneficial insects.
I want to be straight about how much to expect, though. You’ll read that companion planting is ancient wisdom that works whether or not it makes scientific sense. I’d put it differently: some of these pairings have real research behind them, some are reasonable but unproven garden tradition, and a few are just convenient ways to share space. I’ll tell you which is which as we go. None of it replaces the basics — healthy soil, enough sun, steady water, and good airflow matter far more than which neighbor you pick.
One claim worth correcting right away: you’ll often hear that beans and peas “feed” nearby cucumbers by adding nitrogen to the soil. They mostly don’t, at least not during the season. Legumes fix nitrogen for their own use and hold onto most of it; the soil benefit comes later, after the roots decompose. So beans and peas are fine cucumber neighbors, just not the in-season fertilizer they’re often sold as.
Quick reference: the 14 companions
| Companion | What it actually does | Type of help |
|---|---|---|
| Nasturtium | Trap crop for aphids and beetles; draws ladybugs | Pest control |
| Marigolds | Deter some beetles; French types suppress nematodes | Pest control |
| Radishes | Some evidence they reduce cucumber beetles | Pest control |
| Calendula | Lures aphids away; attracts hoverflies | Pest control |
| Dill | Attracts pollinators and parasitic wasps | Pollinators |
| Borage | Strong pollinator draw; self-seeds | Pollinators |
| Corn | Living trellis for smaller cucumbers | Space/support |
| Sunflowers | Living trellis for lightweight vines | Space/support |
| Beans | Good neighbors; soil benefit comes later | Space/soil |
| Peas | Same as beans; harvest early, free the space | Space/soil |
| Carrots | Roots below, cukes above — no competition | Space-sharing |
| Lettuce | Quick, shallow gap-filler | Space-sharing |
| Beets | Neutral; harmless space-sharer | Space-sharing |
| Celery | Neutral; easy to space alongside | Space-sharing |
The pest fighters
These are the companions I reach for first, because pests are cucumbers’ biggest headache.
Nasturtiums are the standout. They work as a trap crop — aphids and cucumber beetles flock to them instead of your vines — and they pull in ladybugs that eat aphids. They’re edible, they sprawl prettily alongside cucumbers, and they ask for almost nothing. If I could plant only one cucumber companion, this would be it.
Marigolds earn their reputation, with a caveat. They help deter some beetles, and French marigolds (Tagetes patula) release a compound that suppresses root-knot nematodes — though that effect is strongest when they’re grown thickly as a cover crop over a whole bed, not scattered as a few border plants. Even scattered, they’re a cheerful, low-risk addition.
Radishes are the one folk remedy here with actual research behind it: intercropping studies have found radishes (alongside other companions) can reduce cucumber beetle pressure on cucurbits. Tuck a few radish seeds right in with your cucumber hills. They mature so fast you’ll harvest them before the cukes need the room, and any you let flower will draw beneficial insects.
Calendula (often called pot marigold, though it isn’t a true marigold) acts as another aphid trap and brings in hoverflies, whose larvae devour aphids. An easy, pretty annual that does real work.
The pollinator magnets
Cucumbers need insects moving from flower to flower to set fruit, so plants that bring in bees are doing something genuinely useful.

Borage is a pollinator powerhouse — its blue, cucumber-flavored flowers are covered in bees all season, and it self-seeds happily once established. (You’ll see it credited with repelling hornworms; treat that as garden lore rather than proven, but plant it for the bees regardless.)
Dill draws in pollinators and parasitic wasps that prey on pests. Worth one heads-up: dill can subtly affect cucumber flavor if grown right on top of them, so give them a little space if that bothers you.
Living trellises and space-savers
Corn and sunflowers can both serve as natural trellises for cucumbers, which saves space in a small garden. The trick is timing — the stalks need a head start so they’re tall and sturdy before the vines start climbing. Sunflowers in particular only work with lightweight pickling-type cucumbers; a heavy slicing vine will drag a sunflower down.
Beans and peas are good neighbors that share space well. Grow bush beans around the base of a cucumber trellis, or start peas early so they finish and free up the space as the cucumbers sprawl. Just remember the soil benefit is a next-season thing, not an in-season feeding.
Carrots pair neatly because they work different layers — carrots root down, cucumbers climb up — so they don’t compete. Lettuce, beets, and celery round out the list as honest neutrals: they won’t help your cucumbers, but they won’t hurt them either, and they’re tidy ways to use gaps while the cucumbers fill in. I’d rather tell you that plainly than pretend every plant on a “companion” list is pulling weight.

What to keep away from cucumbers
Fennel
This is the one true antagonist. Fennel is what gardeners call allelopathic — a fancy word that just means it releases natural chemicals from its roots and leaves that interfere with other plants, keeping their seeds from sprouting and stunting their growth. Cucumbers are among the plants it bothers. Give fennel its own bed, well away from everything else.
Other cucurbits — squash, melons, gourds
Cucumbers share the Cucurbitaceae family with squash, melons, pumpkins, and gourds, which means they share the same pests (cucumber beetles, squash bugs) and the same diseases. Crowding them together concentrates that pressure and lets problems spread fast. You can still grow them all — just spread them out rather than clustering them.
Potatoes
Keep cucumbers and potatoes apart, but for the right reason. Potatoes are heavy feeders that will out-compete shallow-rooted cucumbers for nutrients and water, and packing dense foliage together traps humidity that invites fungal disease in both. (You may read that cucumbers “give potatoes blight” — that’s overstated. True late blight is a tomato-and-potato disease; the real issue here is competition and crowded, humid foliage, not cucumbers spreading blight.)
Strongly aromatic herbs — sage and mint
Sage is widely reported to slow cucumber growth, and it’s a common enough caution from gardeners and extension sources that I’d keep them apart to be safe. Mint (including peppermint) is a different problem — it’s not toxic to cucumbers, it’s just a relentless spreader that will overrun anything nearby, so always confine it to a pot.
Basil — a softer “maybe not”
You’ll see basil on a lot of “never plant with cucumbers” lists. Honestly, the evidence is thin. The real concerns are ordinary competition for water and a chance that strong basil oils tweak cucumber flavor if they’re crowded together — not some dramatic incompatibility. Some gardeners even pair them happily. Give them room and it’s likely fine; I just wouldn’t plant them on top of each other.
Common Questions
What’s the single best companion for cucumbers?
Nasturtium. It pulls double duty as a pest trap and a beneficial-insect magnet, and it asks almost nothing of you.
Do beans and peas really fertilize cucumbers?
Not during the season. Legumes keep most of the nitrogen they fix; the soil benefit shows up later as roots decompose. They’re still good, easygoing neighbors.
What should never go near cucumbers?
Fennel (it releases natural chemicals that stunt nearby plants) and other cucurbits like squash and melons (shared pests and diseases). Keep potatoes apart too, mainly for competition and disease pressure.
Will companion planting fix a pest problem on its own?
No — think of it as one helpful layer. Healthy soil, good spacing, airflow, and steady water do most of the heavy lifting. Companions tilt the odds; they don’t run the garden.
Final Thoughts
The honest version of cucumber companion planting is simpler than the long lists suggest. Plant a few nasturtiums and marigolds for the pests, some borage or dill for the bees, and use corn or sunflowers if you want a living trellis. Keep fennel and your other cucurbits at arm’s length. Do that on top of good soil and steady watering, and you’ve given your cucumbers every reasonable advantage — which is all companion planting was ever meant to do.
