Free Tools Calendar Companions Planner Frost Soil All 10

7 Companion Plants That Protect Your Cucumbers from Pests (and 3 to Avoid)

Discover the 7 best companion plants for cucumbers that deter aphids and beetles using proven mechanisms—plus 3 plants that actively harm your crop.

Most companion plant lists give you twenty names and no reason why. You plant nasturtiums next to cucumbers because the internet said so, the aphids show up anyway, and you conclude the whole concept is folklore.

It isn’t—but the mechanism matters more than the plant list. Aromatic companions release volatile organic compounds (VOCs) that chemically mask your cucumbers from aphids: the pest lands nearby, detects a confusing cocktail of unfamiliar odors, and cannot lock onto the cucumber as a host plant. A 2018 review in Insects confirmed that this VOC-masking effect—combined with habitat for natural predators—consistently reduces aphid pressure in diverse polyculture plantings [1].

Harris Diatomaceous Earth — Food Grade
Natural Pest Kill
Harris Diatomaceous Earth — Food Grade
★★★★☆ 8,500+ reviews
Natural, chemical-free pest control that works on slugs, ants, beetles, and crawling insects. Food-grade diatomaceous earth is safe around pets and children but lethal to soft-bodied pests. Comes with a puffer tip for easy application.
Check Price on AmazonPrime
As an Amazon Associate I earn from qualifying purchases.

The catch: companion planting delivers partial effectiveness in most home gardens, and it depends heavily on which plants you choose, where you put them, and when you plant them. This guide covers the 7 companions that give you the best return for your effort, with real prices, and the 3 plants that actively work against you. For a broader look at how plants support each other across the vegetable garden, see our Companion Planting Guide.

Why Cucumber Companion Planting Works

Three distinct mechanisms explain why companion planting reduces pest pressure on cucumbers. Understanding them helps you choose plants more strategically than any generic list can.

VOC masking. Aromatic plants—dill, marigolds, nasturtiums—emit terpenoids and other volatile compounds that blend with the surrounding air. When a melon aphid (Aphis gossypii) searches for a host plant, it navigates by scent. A mixed planting disrupts this signal: the aphid detects a complex odor profile it cannot parse as “cucumber,” so it moves on. Research published in PMC confirms this mechanism at the molecular level, noting that companion plants like chives have been shown to mask the attractiveness of nearby crop plants to aphids [1].

Natural enemy habitat. Parasitic wasps, hoverflies, lacewings, and ladybugs are cucumber’s best allies, but they need pollen and nectar as adults before they’ll reproduce and hunt pests. Most vegetable gardens offer neither. Flowering companions fix this. A Florida study found that African marigolds and sweet alyssum intercropped with vegetables significantly increased natural enemy populations on the crop [3].

Trap cropping. Some plants attract pests so strongly that they draw pressure away from your main crop. Cucumber beetles (Acalymma vittatum and Diabrotica undecimpunctata howardi) are drawn to cucurbitacin, the bitter compound found throughout the squash family. ATTRA research showed that when NK530 squash was grown as a trap crop on just 15–50% of cucumber acreage, it attracted 90% of the cucumber beetles present in the field [2]. You can use this same chemistry in a smaller form with radishes.

One honest caveat: the science also shows that companion effectiveness depends on density, timing, and arrangement—there’s no single companion you plant once and forget. The pest pressure in your garden next July will reflect how well you combined these three mechanisms [1].

Top 5 Companion Plants for Cucumbers: Quick Comparison

CompanionBest ForPrice
Nasturtium Jewel MixAphid trap crop, beetle deterrence$2.99 / 5g packet
French Marigold Disco SeriesAphid repellent, natural enemy habitat$4.59 / 100 seeds
BoragePollination boost, cucumber beetle deterrence$2.99 / 2g packet
Dill Mammoth Long IslandParasitic wasp and hoverfly habitat$2.99 / 500mg packet
Sweet Alyssum Royal CarpetHoverfly banker plant, low-growing border$2.99 / 500mg packet

All prices from True Leaf Market, confirmed April 2026.

1. Nasturtiums — Best Overall Companion for Cucumbers

Nasturtiums are the most reliably effective companion plant for cucumbers, and they work via two mechanisms simultaneously. First, aphids—particularly melon aphids, which also transmit Cucumber mosaic virus [5]—find nasturtium foliage irresistible and colonize it in preference to cucumber vines. Second, the pungent volatile compounds nasturtiums emit act as a repellent to cucumber beetles and squash bugs. UMN Extension specifically cites nasturtiums as research-supported for reducing pest populations on related cucurbit crops [3].

The practical upshot: nasturtiums act as a sacrificial trap. Your job is to let the aphids pile onto them, then remove and compost the infested growth before the population explodes. Plant one nasturtium for every three to four cucumber plants, directly in the row or on alternating ends.

Timing: Direct-sow nasturtium seeds two weeks before you transplant cucumbers. They establish quickly and should be flowering by the time cucumbers are producing fruit—the window when aphid and beetle pressure peaks.

What to buy: Nasturtium Jewel Mix (True Leaf Market, $2.99 / 5g) gives you a compact, bushy variety in mixed colors. Compact varieties stay at 12–18 inches and won’t compete with cucumber vines for trellis space. Avoid the trailing varieties near a trellis.

2. French Marigolds — Best for Sustained Aphid and Pest Suppression

The distinction between French marigolds (Tagetes patula) and African marigolds (Tagetes erecta) matters for companion planting. French marigolds are compact, heavy-blooming, and produce the specific VOC profiles that research associates with aphid deterrence. Jankowska et al. (2009) found French marigold reduced aphid colonization in vegetable crops significantly more than controls [1]. They also increase populations of natural enemies: a UMN-cited Florida study found African and French marigolds intercropped with vegetables boosted beneficial insect counts measurably [3].

🌿 Trending Garden Picks
Kazeila 10 Inch Ceramic Planter Pot — Matte White Glazed
Kazeila 10 Inch Ceramic Planter Pot — Matte White Glazed
★★★★☆ 753+ reviewsPrime
View on Amazon
Mkono Macrame Plant Hangers Set of 4 with Hooks — Ivory
Mkono Macrame Plant Hangers Set of 4 with Hooks — Ivory
★★★★★ 5,916+ reviewsPrime
View on Amazon
D'vine Dev Terracotta Pots — 5.3 / 6.5 / 8.3 Inch Set with Saucers
D'vine Dev Terracotta Pots — 5.3 / 6.5 / 8.3 Inch Set with Saucers
★★★★☆ 3,225+ reviewsPrime
View on Amazon
Bamworld 4 Tier Corner Plant Stand — Metal Indoor Outdoor
Bamworld 4 Tier Corner Plant Stand — Metal Indoor Outdoor
★★★★☆ 2,096+ reviewsPrime
View on Amazon
As an Amazon Associate I earn from qualifying purchases.

Plant French marigolds as a border along the entire length of your cucumber row—not just at the ends. The VOC cloud they produce extends roughly 18 to 24 inches, so continuous coverage matters. One plant every 12 inches along the border is the practical target for home gardens.

Timing: Marigolds transplant well, so start them indoors four to six weeks before your last frost date, or direct-sow outdoors at the same time you set out cucumber transplants. They’ll begin blooming in six to eight weeks and keep blooming until frost.

What to buy: French Marigold Disco Series (True Leaf Market, $4.59 / 100 seeds) grows to just 8–12 inches tall—ideal for borders where you don’t want to shade low cucumber vines. The Marietta variety in this series produces bold single blooms that are particularly attractive to hoverflies.

3. Dill — Best for Parasitic Wasp Habitat

Dill earns its place in a cucumber garden by attracting the insects that hunt cucumber pests: parasitic wasps from the Ichneumonidae family, hoverflies (Syrphus spp.), and lacewings. These beneficial insects need pollen and nectar as adults before they’ll reproduce, and dill’s flat umbel flowers are one of the most accessible food sources for all three groups.

The biology of why this helps: parasitic wasps lay eggs in aphid and caterpillar larvae; the wasp eggs hatch inside the pest, killing it. Hoverfly larvae are voracious aphid predators—a single larva can consume hundreds of aphids over its three-week lifespan. Plant dill and you’re recruiting these predators to your garden and giving them a reason to stay [1].

One important caveat: dill must be allowed to flower to deliver this benefit. If you’re growing dill primarily as a culinary herb and harvesting before it bolts, you’ll lose the companion planting value. Dedicate a separate plant or two specifically for flowering.

Timing and spacing: Sow dill two weeks before cucumbers go in. Mammoth Long Island grows to 4–5 feet tall, so position it on the north or east side of cucumber rows where it won’t cast afternoon shade on fruit-setting vines. Allow 18 inches between dill and cucumber stems.

What to buy: Dill Mammoth Long Island (True Leaf Market, $2.99 / 500mg) produces the largest umbels of any dill variety—more landing surface for beneficial insects. One packet sows a 20-foot row.

4. Borage — Best for Pollination and Cucumber Beetle Deterrence

Borage (Borago officinalis) is one of the most pollinator-attractive plants you can grow, producing starflower blooms from early summer until frost. For cucumbers—which require insect pollination to set fruit—this matters directly. Poor pollination is why cucumber plants produce flowers but no fruit, and borage’s continuous bloom gives bees and other pollinators a consistent reason to work the area around your cucumber trellis.

On the pest side, borage is widely cited by growers as deterring cucumber beetles, though the evidence here is mostly anecdotal—no controlled study has isolated borage’s effect on cucumber beetles specifically. Consensus among experienced vegetable gardeners is strong enough to include it, but apply it with appropriate expectations: borage is primarily a pollination enhancer, and the beetle deterrence is a possible bonus, not a guarantee.

Stop guessing if your garden pays.

Log what you grow and harvest — see total yield weight, estimated retail value, and season-on-season progress in one place.

→ Track My Harvest

Borage also self-sows aggressively in most US climates, so one planting often becomes a permanent fixture. Plant it once in a spot where it can spread, and let it naturalize.

Hmm, that email didn't go through. Double-check the address and try again.
You're in — your first tips are on the way. Check your inbox (and your spam folder, just in case).

Zone-Smart Gardening Tips, Delivered Free Every Week

Most gardening advice online is too vague to help — or written for a climate nothing like yours. Every week, Blooming Expert sends you specific, zone-aware tips you can put to work in your garden right now.

No fluff. No daily emails. Just one focused tip, every week.

Timing and spacing: Direct-sow borage two to three weeks before last frost—it tolerates light frost and germinates quickly. Give it 18 inches of space; plants reach 24–36 inches wide. One to two plants per 10-foot cucumber row is sufficient.

What to buy: Borage Herb Seeds (True Leaf Market, $2.99 / 2g) is a heirloom, non-GMO variety. A 2g packet gives you more seeds than you need for a season—save the rest for replanting.

Cucumber plants with companion plants including sweet alyssum and borage growing in a garden bed
Sweet alyssum at ground level and borage behind cucumber vines recruit hoverflies and parasitic wasps that hunt aphids and beetle larvae.

5. Sweet Alyssum — Best Low-Growing Border Plant

Sweet alyssum (Lobularia maritima) is the companion plant most often absent from cucumber guides, which is a gap worth closing. Research cited by UMN Extension found that sweet alyssum intercropped with vegetables significantly increased natural enemy populations—particularly syrphid flies (hoverflies) and parasitic wasps—compared to control plots [3]. The mechanism: alyssum’s tiny clustered flowers are accessible to small beneficial insects that can’t land on larger blooms, acting as a banker plant that maintains predator populations even when aphid pressure is low.

At 4–6 inches tall, alyssum tucks neatly into the gaps between cucumber hills without competing for light or space, and it blooms continuously all season. Its honey scent also attracts pollinators from a distance.

Timing and spacing: Direct-sow alyssum at the same time you transplant cucumbers, or start seeds indoors four weeks before transplant date. Plant in a continuous border 6–12 inches from the base of cucumber plants. No thinning needed—alyssum blooms at almost any density.

What to buy: Sweet Alyssum Royal Carpet (True Leaf Market, $2.99 / 500mg) is a compact variety that stays low and blooms prolifically in mixed purple and white. One packet covers a 15-foot border.

6. Beans and Peas — Best for Soil Health

Pole beans and cucumbers are natural companions on a trellis: both climb, and they don’t compete aggressively for the same nutrients. More importantly, legumes fix atmospheric nitrogen through a symbiotic relationship with Rhizobium bacteria in their root nodules, releasing it slowly into the soil as roots die back. Cucumbers are moderate to heavy feeders, and a legume neighbor supplements soil fertility without requiring additional fertilizer applications.

The practical arrangement: grow pole beans on one side of a trellis and cucumbers on the other, with 18 inches of space between stem bases. Don’t let either crop overwhelm the other at the trellis—cucumbers are more vigorous and will shade out beans if not managed. Harvest beans regularly to keep plants in vegetative nitrogen-fixing mode rather than seed-filling mode.

Timing: Direct-sow beans and cucumbers at the same time, after soil temperatures reach 60°F consistently. Both crops resent transplanting.

7. Radishes — Best Space-Efficient Trap Crop

Radishes double as a fast-turnaround space filler and early-season cucumber beetle monitor. The beetles prefer cucurbit-family plants over radishes, but radishes still attract them when better options are absent—and because radishes mature in 30 days, you can use them to gauge beetle populations before your cucumbers are vulnerable. If beetles appear on radishes, remove and destroy the radishes (and beetles on them) before the population builds.

Radishes also loosen compacted soil in cucumber beds, improving drainage in heavy clay. Plant one radish seed per foot in the spaces between cucumber hills—they’ll mature and be harvested before cucumbers need the room.

3 Plants That Actively Hurt Your Cucumbers

1. Fennel

Fennel (Foeniculum vulgare) is allelopathic—it releases compounds from its roots and foliage that inhibit the growth of neighboring plants. Cucumbers are sensitive to allelopathic interference, and studies on fennel allelopathy consistently show reduced germination and growth in neighboring crops. Keep fennel in a separate bed, well away from any vegetable garden.

2. Sage

Sage is widely listed as harmful to cucumbers, and while the evidence for stunting is mostly anecdotal, the mechanism is plausible: sage’s strong volatile compounds can interfere with the chemical signaling cucumbers use to communicate stress and defense responses. The risk-to-reward ratio is low. Sage belongs in an herb bed, not next to cucumber vines.

3. Other Cucurbits (Squash, Melons, Zucchini)

This is the most important avoidance rule for cucumber growers. Squash, melons, and zucchini belong to the same plant family (Cucurbitaceae), which means they share the same pest complex: striped and spotted cucumber beetles, melon aphids, squash vine borers, and Cucumber mosaic virus. Planting them together doesn’t divide pest pressure—it concentrates it. Cucumber beetles are attracted to the cucurbitacin produced by the whole family, and a mixed planting of cucumbers and squash functions as a super-attractive target rather than a diverse polyculture [2].

The 90% beetle concentration effect documented by ATTRA works against you when your “trap crop” IS your main crop [2]. Grow cucurbits in separate areas of your garden, with as much distance between them as your plot allows.

When to Plant Each Companion

CompanionPlant Relative to CucumberMethod
Nasturtiums2 weeks before cucumbersDirect sow
Dill2 weeks before cucumbersDirect sow
Borage2–3 weeks before cucumbersDirect sow
French MarigoldsSame time (transplants) or 2 weeks before (seeds)Transplant or direct sow
Sweet AlyssumSame time as cucumbersDirect sow or transplant
Pole BeansSame time as cucumbersDirect sow
Radishes2–3 weeks before cucumbersDirect sow
Organic Neem Oil Spray — Ready to Use, 8 oz
Best Organic Fix
Organic Neem Oil Spray — Ready to Use, 8 oz
★★★★★ 4,100+ reviews
Neem oil is the most effective organic solution for aphids, spider mites, whitefly, and fungal diseases in one bottle. Works as both a preventative spray and a contact treatment. Safe for pollinators when used correctly.
Check Price on AmazonPrime
As an Amazon Associate I earn from qualifying purchases.

Frequently Asked Questions

Do companion plants replace insecticides for cucumbers?

No—companion planting reduces pest pressure but rarely eliminates it entirely. The science is clear that effectiveness depends on density, timing, and arrangement, and that partial effectiveness is the typical outcome in home gardens [1]. Think of companions as one layer in an integrated approach: use them alongside row covers for young plants, manual beetle removal, and insecticidal soap for heavy aphid infestations when needed.

What is the best single companion plant for cucumber beginners?

Nasturtiums. They’re easy to grow, inexpensive, highly effective as an aphid trap crop, and their edible flowers and leaves are a bonus harvest. One 5g packet gives you enough seeds to plant alongside a 20-foot cucumber row.

Can I grow tomatoes with cucumbers?

Yes—tomatoes and cucumbers are compatible companions. They don’t share major pest species, don’t compete aggressively for the same nutrients, and both appreciate similar soil conditions. The main consideration is space: full-sized tomato plants can shade cucumber vines if planted on the south side. See our detailed breakdown of growing tomatoes and cucumbers together for spacing and variety guidance.

How far should companions be from cucumber plants?

VOC-producing companions (marigolds, dill) should be within 18–24 inches of cucumber stems to deliver odor-masking benefits effectively. Trap crops (nasturtiums, radishes) can be planted directly in the row. Natural enemy habitat plants (alyssum, borage) are most effective as a continuous border—gaps in the border reduce their value significantly.

Is there a companion plant for cucumber mosaic virus?

There’s no companion plant that blocks virus transmission directly. Cucumber mosaic virus is transmitted by melon aphids (Aphis gossypii) [5], so reducing aphid pressure with nasturtiums, marigolds, and natural enemy habitat plants is your best indirect protection. Row covers for the first four weeks of growth—before cucumbers flower and need pollinator access—provide the most reliable early-season protection against aphid-vectored viruses. For a full breakdown of cucumber companion planting beyond buying, see our in-depth cucumber companion planting guide.

Sources

  1. Hanafy et al., “Companion Plants for Aphid Pest Management,” Insects, PMC, 2018. Available at: pmc.ncbi.nlm.nih.gov/articles/PMC5746795/
  2. “Cucumber Beetles: Organic and Biorational Integrated Pest Management” — ATTRA/NCAT. Available at: attra.ncat.org
  3. “Companion Planting in Home Gardens” — UMN Extension. Available at: extension.umn.edu
  4. “Better Together: The New Science of Companion Planting” — UC Master Gardeners. Available at: ucanr.edu
  5. “Cucumber, Squash, Melon & Other Cucurbit Insect Pests” — Clemson HGIC. Available at: hgic.clemson.edu
  6. Nasturtium Jewel Mix Seeds — True Leaf Market. Available at: trueleafmarket.com
  7. French Marigold Disco Series Seeds — True Leaf Market. Available at: trueleafmarket.com
  8. Borage Herb Seeds — True Leaf Market. Available at: trueleafmarket.com
  9. Dill Mammoth Long Island Seeds — True Leaf Market. Available at: trueleafmarket.com
  10. Sweet Alyssum Royal Carpet Seeds — True Leaf Market. Available at: trueleafmarket.com
44 Views
Scroll to top
Close
Browse Categories

10 Free Garden Tools

Interactive calculators and planners — no signup required