Peter Vogel
Peter Vogel is the founder of GrowPerma, bringing together evidence-based gardening advice with permaculture principles. When he's not writing about companion planting or soil health, he's experimenting in his own garden.
What to Plant With Cucumbers for Better Yields
Your cucumber vines are scrambling up the trellis, the first fruits are setting — and then a striped cucumber beetle lands on a leaf. Within a week, half the plants are wilting from bacterial wilt and the harvest you imagined is gone.
Companion planting what to plant with squash is the gardener pollinator flowers for your vegetable garden's first line of defence. Done well, it concentrates pests where you can manage them, brings in pollinators (cucumbers need eight to twelve bee visits per flower to set fruit), suppresses soil nematodes, and adds nitrogen back to the bed. Done badly, it stunts your vines or invites the very pests you're trying to avoid.
This guide gives you the evidence-based companions that actually work for cucumbers, the ones to avoid, and a square-foot layout you can plant this weekend. Every recommendation is sourced from university extension services, peer-reviewed research, or USDA programmes — not folklore.
87%
Cucumber beetle reduction
Nasturtium trap crop trial, Univ. of Nebraska
8–12
Bee visits per flower needed
Michigan State University Extension
0.5
Beetles per plant action threshold
Ohio State University Extension
150–200
lbs nitrogen / acre from hairy vetch
USDA NRCS
The short answer
Plant nasturtiums and blue hubbard squash on the perimeter as a beetle trap crop, French marigolds between vines for nematode control, dill and borage to bring in pollinators, radishes as fast-deterrent groundcover, and bush beans for nitrogen. Avoid sage, rosemary, basil, potatoes, melons, and fennel — they either stunt cucumbers or share the same pests and diseases.
Why companion planting works for cucumbers (the science)
Cucumbers are heavy feeders, vulnerable to a small but vicious set of pests, and entirely dependent on insect pollination. The University of Maryland Extension classifies them with tomatoes and broccoli as needing roughly 3 pounds of nitrogen per 1,000 square feet (about 1.4 kg per 93 m²). They want consistent moisture — 1 to 2 inches (2.5 to 5 cm) of water per week — and slightly acidic soil between pH 6.0 and 6.5, according to Clemson HGIC.
Three biological pressures dominate cucumber failures in home gardens:
Striped and spotted cucumber beetles (Acalymma vittatum and Diabrotica undecimpunctata) chew seedlings, pollinate flowers poorly, and — most damaging — vector Erwinia tracheiphila, the bacterium that causes bacterial wilt. Ohio State University research shows the action threshold for cucumbers is just half a beetle per plant, compared to up to five per plant on watermelon, because cucumbers are so susceptible to wilt transmission.
Root-knot nematodes (Meloidogyne spp.) attack cucumber roots underground, stunting vines and reducing yields invisibly until you pull a plant and find galled, knotted roots.
Pollination shortfalls. Michigan State research on pickling cucumbers found a single female cucumber flower needs eight to twelve pollinator visits in the one day it remains open — or it aborts and drops. Without enough bees, even a healthy vine produces few fruits, and the ones it does produce are often misshapen.
Why this works (the permaculture lens)
Companion planting isn't a magic shopping list — it's stacking functions. Each companion solves at least one of cucumber's three pressures (pest, soil, pollinator), and the best combinations solve all three at once. A perimeter of nasturtiums pulls beetles away from your vines AND attracts hoverflies that prey on aphids AND brings in pollinators. One plant, three jobs. That's the principle behind every traditional polyculture from the Three Sisters to Indigenous Mesoamerican milpas.
The best companion plants for cucumbers
These six companions are backed by published research and university extension trials, not gardening folklore. Plant them in the combinations described and you'll see fewer pests, better pollination, and bigger harvests within a single season.
1. Nasturtiums (Tropaeolum majus) — the beetle trap crop

Nasturtiums are the highest-impact companion you can plant for cucumbers. A University of Nebraska-Lincoln trap crop study documented an 87% reduction in cucumber beetle pressure on the main crop when nasturtiums and blue hubbard squash were planted as a perimeter trap. Striped cucumber beetles strongly prefer the trap plants, concentrating where you can either treat them with a targeted spray or simply destroy the trap crop after the beetles have aggregated.
Iowa State Extension recommends trap crops occupy 2–5% of total planting area, planted about two weeks before the main cucumber crop so beetles hit the trap when the cucumbers are still small and vulnerable. As a bonus, nasturtium flowers are edible (peppery, like watercress) and the plants attract aphid-eating hoverflies and parasitic wasps.
Source: University of Nebraska-Lincoln — Comparison of Insecticide and Trap Crop Management Practices
2. French marigolds (Tagetes patula) — the nematode killer
French marigold roots release alpha-terthienyl, a compound shown in peer-reviewed research to suppress root-knot nematode populations. A study published in PMC on Tagetes patula's effect on Meloidogyne nematodes found suppression occurs only during active marigold growth — so plant them at the same time as your cucumbers, not before, and let them stay in the bed all season.
The University of Hawaii's review of marigolds as a chemical nematicide alternative found suppression can extend deeper than soil fumigation in some cases, without harming beneficial soil microbes. Use varieties with documented activity such as 'Single Gold', 'Boy-O-Boy', or 'Cracker Jack'. African marigolds (T. erecta) work too, but the smaller French varieties slot into a cucumber bed without shading the vines.
Source: PMC — Effects of Tagetes patula on Active and Inactive Stages of Root-Knot Nematodes
3. Dill, borage, and calendula — the pollinator magnets
Cucumber flowers open for one day. If they don't get enough bee visits in those few hours, they drop. The University of Vermont Extension's biodiverse vegetable garden guide identifies dill, borage, and calendula as top performers for attracting honey bees, native bees, hoverflies, and parasitic wasps to vegetable beds. Borage is especially effective: it produces an extraordinary volume of nectar and is documented to deter cabbageworms and tomato hornworms simultaneously.
A SARE-funded study on flower companions in cucurbits established proof of concept that interplanting flowering companions raised cucurbit yields without significant cost increase. Plant dill and borage along the long edges of your cucumber bed and let them flower throughout the season.
Source: University of Vermont Extension — Creating a Biodiverse Vegetable Garden with Companion Plants
4. Radishes — the fast-growing pest deterrent
Radishes mature in 25–30 days, which means they're up and protecting your cucumbers before the cucumber seedlings even develop their second true leaf. Their pungent root and leaf compounds are documented by extension services to deter cucumber beetles, squash bugs, vine borers, spider mites, carrot rust fly, and cabbage maggot. Plant them densely (12–16 plants per square foot, or about 13–17 per 0.1 m²) along the rows where you'll later sow cucumbers.
Bonus: pull the radishes for salad as the cucumbers start to spread, so you get two harvests from the same square footage.
5. Bush beans — the in-bed nitrogen source
Bush beans (Phaseolus vulgaris) host rhizobia bacteria in root nodules that fix atmospheric nitrogen. Most of the fixed nitrogen stays in the bean plant until decomposition, but the USDA NRCS confirms that some ammonium leaks into the rhizosphere during the season for adjacent plants — and the moment you pull bean plants and leave the roots in the soil, the nitrogen becomes broadly available.
Cucumbers are heavy feeders, so beans alone won't replace compost or fertiliser, but they meaningfully reduce side-dressing requirements. Use bush varieties (not pole) so they don't compete for trellis space, and inoculate the seed if you've never grown legumes in that bed before.
Source: USDA NRCS — Using the Appropriate Legume Inoculant for Conservation Plantings
6. Sunflowers or corn — the living trellis
If you don't want to build a trellis, sunflowers and corn both work as living vertical structures for cucumber vines. The trick is timing: plant the sunflower or corn first so it has 4–6 weeks of growth before the cucumbers go in, otherwise the cucumber will out-compete the young stalks. This is exactly the planting sequence used in Three Sisters polyculture systems, where corn, beans and squash are timed to support each other rather than compete.
Companion plants to AVOID with cucumbers
Some of the worst companion-planting failures come from plants that look harmless on a chart but actively suppress cucumber growth or share devastating diseases. Avoid these:
| Plant to avoid | Why |
| Sage, rosemary, basil | Aromatic compounds inhibit cucumber growth (Connect Extension documentation). Keep at least 6 ft (1.8 m) away. |
| Potatoes | Both are heavy nitrogen feeders competing for the same soil. Shared fungal disease pressure (Alternaria, blight pathogens). |
| Melons, watermelon, pumpkins (in close proximity) | Same beetle vectors and bacterial wilt pathogen (Erwinia tracheiphila). Concentrating cucurbits invites a wilt outbreak. |
| Fennel | Allelopathic to nearly all garden vegetables. Grow it in an isolated container if at all. |
| Brassicas (cabbage, broccoli, kale) | Heavy feeders competing for the same nitrogen pool. Tolerable in large beds but will reduce yields in small ones. |
| Anything within 25 ft (7.6 m) of a black walnut tree | Juglone toxicity. Cucumbers are on the documented kill list. Use raised beds with imported soil if you have a walnut nearby. |
Sources: Connect Extension — Incompatible Garden Plants; APS Journals — Bacterial Wilt of Cucurbits; GrowItBuildIt — Plants Poisoned by Juglone
The tomato question
You'll see tomato listed as both a "good" and "bad" cucumber companion in different gardening guides. The honest answer: in a hot, dry climate with drip irrigation, they're fine together. In a humid climate with overhead watering, the leaf wetness that cucumbers tolerate creates ideal conditions for tomato early blight and Septoria leaf spot. Wisconsin Extension specifies tomatoes need wide spacing and dry foliage to manage these diseases — exactly what cucumbers don't deliver. If in doubt, separate them.
How to plant a cucumber companion garden — a 4 ft × 8 ft bed plan

This layout uses a standard 4 ft × 8 ft (1.2 m × 2.4 m) raised bed and produces meaningful cucumber harvests with full pest, pollinator, and soil support. Total time to plant: about 90 minutes once your bed is prepared.
Prepare the bed (week before)
Top the bed with 1–2 inches (2.5–5 cm) of finished compost. Confirm soil pH is between 6.0 and 6.5 with a $15 test kit. Install a 6 ft (1.8 m) trellis along the centre line of the bed.
Plant the trap crop perimeter (2 weeks before cucumbers)
Direct-sow nasturtium seeds in a single row along the long sides of the bed, spaced 8–10 inches (20–25 cm) apart. If you have space outside the bed, add 2–3 blue hubbard squash plants nearby — they're the most effective beetle magnet of any cucurbit.
Sow radishes and bush beans
Same day as the nasturtiums, sow a row of radishes 2 inches (5 cm) inside the nasturtium row, and a row of bush beans 4 inches (10 cm) inside the radish row. Inoculate the bean seeds first if this is a new bed.
Plant cucumbers and marigolds together
Two weeks later, after your last frost and once soil reaches 60 °F (16 °C), plant cucumber seeds or transplants 12 inches (30 cm) apart along the trellis. Tuck a French marigold transplant between every second cucumber. Water deeply.
Add dill and borage at the corners
Plant 2 borage seedlings and 4 dill plants at the corners of the bed and at the midpoint of each long side. They'll flower in 6–8 weeks, exactly as your cucumbers start setting fruit.
Mulch and walk away
Top the bed with 1–2 inches (2.5–5 cm) of straw or wood chip mulch. Water 1–2 inches (2.5–5 cm) per week, ideally with drip irrigation to keep cucumber leaves dry. Side-dress with compost when vines start to flower.
Total cost for seeds, transplants and inoculant: roughly $25–35. Time investment: about 90 minutes to plant. Expected harvest from a healthy 4 ft × 8 ft cucumber bed: 25–40 lbs (11–18 kg) of cucumbers over 8 weeks, plus pole beans, radishes, and edible nasturtium and borage flowers.
Cultivar selection: pick a disease-resistant cucumber to start
The single biggest yield decision you'll make happens before you sow a single seed: which cucumber variety. Cornell University's vegetable breeding programme maintains a list of disease-resistant cucurbit varieties that's worth bookmarking. Three to start with:
- Marketmore 76 — bred at Cornell, resistant to angular leaf spot, anthracnose, and cucumber mosaic virus. Reliable, prolific, and a good first cucumber for any region.
- Suyo Long — Japanese heirloom slicer, powdery mildew resistant, performs well in hot weather, produces 15-inch (38 cm) ribbed fruits with excellent flavour.
- Supremo F1 — Cornell-listed, with the broadest disease resistance package on the market: angular leaf spot, anthracnose, cucumber mosaic virus, downy mildew, powdery mildew, scab, and three other viruses.
Source: Cornell Vegetables — Disease-resistant cucurbit varieties
Beyond the bed: cover crops and the season after
The work for next year's cucumbers starts the autumn before. Hairy vetch sown in autumn and incorporated into the bed in spring contributes 150–200 lbs of nitrogen per acre (170–225 kg per hectare) according to USDA NRCS data — and Rodale Institute research found hairy vetch mulch suppressed cucumber beetle damage and reduced fungal disease pressure on tomatoes grown in the same residue. The mechanism is partly physical (less soil splash onto leaves) and partly molecular (defence-related plant genes are upregulated).
Pair this with the basics of building healthy garden soil — compost, mulch, and minimal disturbance — and the bed will outperform a fertiliser-dependent monoculture every season.
Want the rest of the companion planting playbook?
Cucumbers are one piece. The full GrowPerma companion planting chart covers tomatoes, peppers, squash, brassicas, and 30+ other vegetables — with the same evidence-based, university-sourced approach.
See the full chart →Frequently asked questions
What grows best with cucumbers?
Nasturtiums, French marigolds, dill, borage, calendula, radishes, and bush beans are the strongest evidence-backed companions. Nasturtiums and blue hubbard squash work as a perimeter trap crop for cucumber beetles, marigolds suppress root-knot nematodes, dill and borage attract pollinators, radishes deter early-season pests, and bush beans contribute nitrogen.
What should you not plant near cucumbers?
Avoid sage, rosemary, basil, potatoes, fennel, melons, and brassicas grown in close proximity. Aromatic herbs inhibit cucumber growth, potatoes compete for nitrogen and share fungal pathogens, melons share the bacterial wilt vector, and fennel is allelopathic to almost all vegetables. Keep cucumbers at least 25 ft (7.6 m) from any black walnut tree because of juglone toxicity.
Can I plant tomatoes with cucumbers?
It depends on your climate. In hot, dry conditions with drip irrigation they coexist fine. In humid climates with overhead watering, the leaf wetness cucumbers tolerate creates ideal conditions for tomato early blight and Septoria leaf spot. The University of Wisconsin Extension recommends wide spacing and dry foliage for tomato disease management — which conflicts with how cucumbers like to grow.
How many cucumber companions do I need to see results?
Even one effective companion makes a measurable difference. The 87% beetle reduction documented in the University of Nebraska trap crop study came from a single companion — nasturtiums on the perimeter. Adding marigolds for nematode suppression and dill or borage for pollinators stacks the benefits. You don't need a complex polyculture; you need the right two or three plants in the right places.
Do marigolds really repel cucumber beetles?
French marigolds primarily suppress root-knot nematodes via alpha-terthienyl in their roots — that's the well-documented effect. Their above-ground deterrence of cucumber beetles is anecdotal at best. For beetle control, rely on nasturtiums and blue hubbard squash as a trap crop. Plant marigolds for the underground job, not the above-ground one.
How much space does a cucumber companion garden need?
A 4 ft × 8 ft (1.2 m × 2.4 m) raised bed is the practical minimum for the layout above and produces 25–40 lbs (11–18 kg) of cucumbers per season alongside beans, radishes, and edible flowers. Smaller spaces — even a 2 ft × 4 ft (0.6 m × 1.2 m) bed with one cucumber, one marigold, and a perimeter of nasturtiums — still capture most of the pest-protection benefit.
Resources
- University of Nebraska-Lincoln — Trap Crop Management for Cucumber Beetles
- Iowa State Extension — Understanding and Managing Striped Cucumber Beetle
- Ohio State University Extension — Cucumber Beetles in Cucurbits
- University of Minnesota Extension — Growing Cucumbers in Home Gardens
- Clemson HGIC — Cucumber Factsheet
- University of Vermont Extension — Creating a Biodiverse Vegetable Garden
- PMC — Tagetes patula on Root-Knot Nematode Stages
- Michigan State University — Honey Bee Pollination in Pickling Cucumbers
- Utah State University Extension — Water Recommendations for Vegetables
- University of Maryland Extension — Fertilizing Vegetables
- APS Journals — Bacterial Wilt of Cucurbits
- Cornell Vegetables — Disease-resistant Cucurbit Varieties
- USDA NRCS — Legume Inoculants for Conservation Plantings
- Rodale Institute — Hairy Vetch as an Integrated Pest Management Tool