Companion planting
Cucumber Companion Plants (and What to Keep Apart)
Good cucumber companions are beans and peas for nitrogen and vertical layering, corn or sunflowers for support, and flowers like nasturtium and dill to draw pollinators. The honest win is anything that brings bees, since most cucumbers need them to set fruit.

The short answer
Good cucumber companions are beans and peas (they fix nitrogen and climb the same trellis), corn or sunflowers (a living support, the Three Sisters idea), and nasturtium, dill, and flowers that draw pollinators and beneficial insects. Quick growers like lettuce and radish use ground space early. Keep cucumbers from potatoes (competition and disease) and the traditional aromatic herbs. The real win is pollinator support, since most cucumbers need bees to set fruit.
Cucumber companion planting is half good sense and half garden lore. This guide sorts the two, so you spend your bed space on pairings that actually do something.
The one mechanism that matters most is pollination. Most cucumbers need bees, so the companions that earn their keep are the ones that bring bees in.
What to plant with cucumbers
Lead with the plants that pull their weight. A companion is worth the space only if it feeds the soil, climbs without crowding, or draws in the insects cucumbers depend on.
| Plant with cucumbers | Why it works |
|---|---|
| Beans, peas | Fix their own nitrogen through soil bacteria, so they feed rather than compete. Illinois Extension confirms pea and bean family plants form nitrogen-fixing partnerships. |
| Corn, sunflowers | Tall stalks give vines something to climb, the Three Sisters idea. Support is real, though the yield boost is not well proven. |
| Nasturtium | A documented trap crop. UMN Extension says research shows nasturtium can reduce squash bug populations. Its flowers also feed pollinators. |
| Dill, alyssum, other flowers | Bring in bees and the natural enemies of aphids and beetles. Illinois Extension notes flowering plants improve pollination. |
| Lettuce, radish | Quick, low growers that use ground space early, before the cucumber vine spreads out. |
Notice the pattern. The strong picks do something concrete: fix nitrogen, offer support, or flower. That last group is the real lever.
What to keep apart from cucumbers
Now the avoid list, with an honest note on which cautions hold up and which are tradition.
| Keep apart | Why (and how solid the reason is) |
|---|---|
| Potatoes | Some basis. Both are heavy feeders that compete for water and nutrients, and both can carry disease. The competition logic is real. The specific "they poison each other" claim is not. |
| Aromatic herbs (sage, rosemary) | Mostly traditional. The old rule says strong herbs stunt cucumber flavor or growth. There is little research behind it. Plant them apart if you like, but it is not a hard rule. |
| Anything, if crowded | Well supported. The firmest rule is spacing. UMN Extension says powdery mildew is more likely to infect densely planted vines. Crowding is the real enemy, not a specific neighbor. |
The takeaway from the avoid list is simple. Most "enemy plant" rules are soft. The one that matters is not crowding the vines.
The real mechanisms (what actually works)
Three things move cucumber yield, and all three are documented. Everything else is a bonus at best.
Pollinators set the fruit. This is the load-bearing one. Penn State Extension explains that most cucumber varieties have separate male and female flowers and require animal pollination, mainly by bees. When pollination falls short, you get deformed and curved fruit instead of straight, full cucumbers. So any flowering companion that keeps bees in the bed is doing direct work.
Legumes feed the soil. Beans and peas host bacteria that pull nitrogen from the air into the soil. Illinois Extension confirms the pea and bean family forms these nitrogen-fixing partnerships. That is a genuine soil benefit, not folklore.
Spacing and trellising protect the leaves. Cucumbers climb. UMN Extension says training vines up a three- to four-foot trellis lets you space rows more closely while keeping the canopy open. Open canopy means dry leaves, and dry leaves resist powdery mildew.
Note
Be honest with yourself about companion planting. Illinois Extension notes there has not been much garden-scale research, and many popular pairings rest on anecdote. The proven levers for cucumbers are narrow: bring in bees, fix nitrogen with legumes, and give the vines air. Chase those three and skip the rest of the chart.
Trap crops and pest helpers
A few companions do fight pests, with research to back them. UMN Extension says nasturtium can reduce squash bug populations, and that planting nasturtium and marigolds together cut damage from squash bugs and cucumber beetles in one Iowa study.
Blue Hubbard squash works as a trap crop too. It is so attractive to cucumber beetles that it pulls them off your main cucumbers. These are real tools, but they are pest tactics, not yield magic.
Pro tip
If cucumber beetles are your problem, a perimeter of nasturtium or a few blue Hubbard squash plants on the edge does more than any "repellent herb." Trap crops draw pests to a plant you do not mind losing, then you deal with them there.
A common cucumber mistake
Two errors sink more cucumber beds than any bad neighbor plant.
Common mistake
Skipping pollinator plants, then blaming the variety. If your cucumbers come out stubby, curved, or never form at all, the usual cause is too few bees, not bad seed. Penn State Extension links deformed and curved fruit to poor pollination. Tuck flowers nearby and the fruit straightens out.
Crowding the vines until mildew sets in. Packing plants tight feels efficient, but UMN Extension says dense vines are the ones powdery mildew hits first. Give each plant room and air, and trellis where you can.
Get the spacing right
Companion planting only pays off if the cucumbers have room to begin with. Crowded vines invite disease no matter how good the neighbors are.
UMN Extension recommends roughly two to three feet on either side of a cucumber row, or five to six feet between hills. Trellis the vines and you can tighten rows while keeping the canopy open. The plant spacing chart lists the full crop set, and the Plant Spacing Calculator tells you how many fit your bed.
Try it — Plant Spacing Calculator
Full calculatorExtra to cover losses (10% is typical).
You can plant
32plants
- Per row
- 8
- Rows
- 4
- Buy (incl. spare)
- 36 plants
For more on growing cucumbers, see when to harvest cucumbers. If you are planning the whole bed, tomato companion plants sorts the same evidence-versus-folklore question for tomatoes.
Your next step
Plant beans or peas for nitrogen, give vines a trellis for air, and edge the bed with nasturtium or dill so the bees show up. Keep cucumbers off potatoes, do not crowd them, and treat the rest of the companion chart as optional.
Laying out the bed now? Open the Plant Spacing Calculator and set your cucumbers with real room to climb.
Common questions
What grows well with cucumbers?
Beans and peas pair well because they fix their own nitrogen and climb the same trellis without crowding the cucumber leaves. Corn and sunflowers give vines something tall to climb. The most useful companions are flowering plants like nasturtium, dill, and other blooms, because they pull in the bees cucumbers need to set fruit. Illinois Extension notes that adding flowering plants helps attract pollinators and improve pollination.
What should not be planted near cucumbers?
Traditional charts say to keep cucumbers away from potatoes and from aromatic herbs like sage. The potato caution has some logic, since both are heavy feeders that compete for water and nutrients and can share disease pressure. The sage and aromatic-herb rule is mostly folklore with little research behind it. The firmer rule is simply not to crowd cucumbers, no matter the neighbor, because dense planting invites powdery mildew.
Can cucumbers and tomatoes grow together?
Yes, with room. They like the same warm, sunny, well-watered conditions, so they make reasonable neighbors. The catch is space and airflow. Both sprawl, and both are prone to fungal disease in crowded, humid canopies. Give each its own trellis and keep air moving between them. There is no solid evidence they harm each other, and no solid evidence they help either.
Do cucumbers need pollinators?
Most do. Penn State Extension explains that most cucumber varieties have separate male and female flowers and require animal pollination, mainly by bees, to set fruit. Without enough bee visits you get deformed, curved, or missing cucumbers. A few greenhouse and parthenocarpic types set fruit without pollination, but standard garden varieties depend on bees.
Are cucumber companion planting rules backed by science?
Some are, many are not. Beans fixing nitrogen and flowers drawing pollinators are real, documented mechanisms. Trap crops like nasturtium have research support against squash bugs. But Illinois Extension notes there has not been much garden-scale research on companion planting, and a lot of the pairings on popular charts rest on anecdote rather than data.
Sources
Agronomic claims in this guide are checked against these primary sources.
- Companion planting in home gardens — University of Minnesota Extension
- Cucumber Pollination — Penn State Extension
- Companion planting: Combining plants for a healthy, well-balanced garden — University of Illinois Extension
- Growing cucumbers in home gardens — University of Minnesota Extension
- Powdery mildew of cucurbits — University of Minnesota Extension
Keep reading
Tomato Companion Plants (and What to Keep Apart)
Good tomato companions include basil, marigold, nasturtium, garlic, onion, lettuce, and carrots. Keep tomatoes away from brassicas, fennel, potatoes, and black walnut. The proven wins are pollinator support and spacing, not magic flavor changes.
Read →Basil Companion Plants (What Works and What's a Myth)
Basil grows well next to tomatoes, peppers, eggplant, and most summer vegetables, and its flowers draw pollinators when it blooms. The popular "improves tomato flavor / repels pests" claims are mostly traditional, not proven. Here is what the evidence actually supports.
Read →When to Harvest Cucumbers (Size + Signs)
Cucumbers are ready about 50 to 70 days after planting, when they are firm and evenly green at the right size for the type. Slicers want 6 to 8 inches, picklers 2 to 4. Pick every day or two before they yellow and turn bitter.
Read →Zucchini Companion Plants (and What to Keep Apart)
Good zucchini companions are flowers like nasturtium and borage that pull in the bees zucchini needs to set fruit, plus beans and corn. Keep zucchini away from other squash and cucumbers, which share its pests. Most "avoid" charts are folklore.
Read →Spinach Companion Plants (and What to Keep Apart)
Good spinach companions are tall shade-givers like beans and corn, quick neighbors like radishes and lettuce, and flowers for pollinators. Keep spinach from chard and beets, which share leaf miners. Most pairing rules are folklore, so plant for shade, spacing, and pest sense.
Read →Pepper Companion Plants (and What to Keep Apart)
Good neighbors for peppers include basil, onions and garlic, carrots, lettuce and spinach, nasturtium, and tomatoes. Keep fennel and heavy-feeding brassicas apart. The reliable wins are spacing, pollinator support, and not crowding, not flavor magic.
Read →