Cucumbers are productive, but they’re also magnets for beetles, mildew, and wilt. Companion planting won’t solve every problem, but the right neighbors can provide shade, support, and soil benefits, and make life harder for pests. The wrong neighbors can leave your vines stressed and struggling.
This guide covers what to plant alongside cucumbers, which plants help with pest control, and which to keep well away. Much of the advice on companion planting comes from long-time gardener experience rather than controlled studies, so treat these pairings as helpful tools, not guarantees.
How Companion Planting Works
Companion planting means growing plants close together because they benefit each other. The benefits come from a few sources:
- Soil support. Some plants, like legumes, add nitrogen to the soil, and others have root systems that don’t compete with cucumbers.
- Physical help. Tall plants can provide shade or something to climb on, and low plants can act as living mulch.
- Pest management. Strong-smelling plants may confuse or repel pests, and flowers attract the beneficial insects that eat them.
- Better use of space. Pairing plants with different root depths and growth habits lets you fit more into a bed.
Good Companion Plants for Cucumbers
Beans and Peas
Legumes work with soil bacteria to capture nitrogen from the air and release it into the soil, which benefits heavy feeders like cucumbers. Bush beans are the safest choice. Vigorous pole beans can twine around cucumber vines and tangle them, so give each its own trellis.
Corn
Corn gives cucumbers light shade in hot weather, and its tall stalks can serve as a loose support for vines. It’s part of the classic “three sisters” style of planting, where tall, climbing, and sprawling crops share a bed.
Sunflowers
Sunflowers cast afternoon shade in midsummer heat, their sturdy stalks can hold up lightweight vines, and their blooms attract pollinators, which cucumbers need to set fruit.
Dill
Dill’s flowers attract beneficial insects such as lacewings, hoverflies, and parasitic wasps, which feed on aphids and other pests. Plant it near the cucumber bed but not directly beside the vines, where it may get crowded.
Radishes
Radishes are quick and tuck easily around the base of cucumber plants. Many gardeners plant them to help deter cucumber beetles, and you can harvest some and leave a few to flower.
Lettuce, Spinach, and Other Greens
Shallow-rooted greens grow in the shade of cucumber vines and don’t compete heavily for nutrients. They also work well as a spring crop that you finish harvesting before the cucumbers take over.
Beets and Kohlrabi
Both have different root structures and nutrient needs from cucumbers, so they share a bed without much competition.
Nasturtiums
Nasturtiums are often grown as a trap crop, drawing aphids and some beetles away from your cucumbers. They’re also edible, with peppery leaves and flowers that work well in salads.
Marigolds
Marigolds are a garden classic, and many gardeners plant them to deter certain beetles and nematodes. Results vary, so don’t count on them as your only defense.
Companion Plants for Pest Control
Cucumber beetles, aphids, and squash bugs are the common troublemakers. A few strategies can help:
- Repel. Strong-scented plants such as radishes, garlic, and nasturtiums may make it harder for pests to find your cucumbers.
- Trap. Plant a more attractive “sacrifice” crop nearby, then remove it, pests and all, once it becomes infested.
- Attract predators. Dill, alyssum, cilantro, and other small-flowered plants bring in beneficial insects that feed on pests.
- Plant timing. Cucumbers planted later in the season sometimes face fewer beetles, because the first wave of pests has passed.
Pair these methods with hand-picking, row covers while plants are young, and checking leaf undersides for eggs.
What Not to Plant With Cucumbers
Potatoes
Potatoes and cucumbers both need a lot of nutrients, so they compete when grown close together. They also share some disease concerns, so it’s better to keep them in separate beds.
Melons and Squash
Cucumbers, melons, and squash all belong to the same plant family, so they attract the same pests and are prone to the same diseases. Planting them side by side can create a feast for insects and let problems spread quickly. If you want to grow them, give them separate beds and rotate them so the family doesn’t occupy the same soil in back-to-back years.
Strongly Aromatic Herbs
Herbs like sage have powerful scents and oils that some gardeners say can affect nearby plants. Keep them in their own bed or in containers.
Overly Aggressive Climbers
Fast, twining plants can strangle cucumber vines. If you grow pole beans nearby, train them on a separate trellis.
Tips for Success
- Trellis your cucumbers. Vertical growing improves airflow, reduces disease, and makes fruit easier to spot and pick.
- Rotate crops every year. Don’t plant cucumbers or other cucurbits in the same spot two years in a row.
- Mix flowers into the vegetable beds. They bring in pollinators and predators.
- Give plants room. Overcrowding leads to competition and mildew.
- Watch and adjust. If a combination isn’t working in your garden, change it next season.
Quick Reference
| Grow Near Cucumbers | Keep Away From Cucumbers |
|---|---|
| Bush beans, peas | Potatoes |
| Corn, sunflowers | Melons, squash |
| Dill, nasturtiums | Sage and strong aromatic herbs |
| Radishes, marigolds | Pole beans on the same support |
| Lettuce, beets, kohlrabi |