Plant cucumbers with basil, dill, radishes, and marigolds for better growth and pest control
Cucumbers grow well alongside plants that either repel pests, improve soil, or use different parts of the bed without competing for space. Basil repels spider mites and flies. Dill attracts beneficial insects that eat cucumber beetles and aphids. Radishes break up soil and mature in 25 to 30 days, freeing space before cucumbers spread. Marigolds deter beetles and whiteflies. These four are the most reliable choices for a raised bed because they solve a real problem — either pest pressure or space management — rather than straightforward coexisting.
The key to companion planting in a raised bed is understanding that space is limited. Unlike a garden row, a 4-by-8-foot bed fills quickly once cucumbers vine out. You want plants that either finish before the cucumber canopy closes over them, or plants that grow vertically alongside the cucumber trellis, or plants small enough to tuck into gaps without shading the cucumber roots.
Key Takeaways
- Basil, dill, radishes, and marigolds are the most practical companions because they either repel pests or mature before cucumbers need the full bed.
- Plant radishes and fast greens at the same time as cucumbers; they will be harvested before the vines spread.
- Avoid planting aromatic herbs like fennel or cilantro near cucumbers, as they can attract the same pests or compete for nutrients.
- Vertical trellising for cucumbers frees ground space for low-growing companions like nasturtiums or thyme.
- Spacing matters more than the plant itself — a companion that shades the cucumber roots will reduce yield, even if it repels pests.
Basil and dill: pest control and pollinator attraction
Basil planted at the edge of the bed or between cucumber plants repels spider mites, which damage cucumber leaves by piercing them and draining the plant. Basil also deters flies and some beetles. Plant basil seedlings 6 to 8 inches from the cucumber stem, or direct-seed basil after the cucumber is established. Basil will reach 12 to 18 inches tall and will not shade the cucumber if you keep it trimmed.
Dill is taller — it grows 24 to 36 inches — so plant it on the north side of the bed where it will not shade the cucumbers as the sun moves. Dill flowers attract parasitic wasps and hover flies, both of which lay eggs in or on cucumber beetles and aphids. The flowers also attract bees, which improve cucumber pollination and fruit set. Direct-seed dill in early spring; it will flower in 6 to 8 weeks and can be harvested for cooking before or after flowering.
Radishes and fast greens: use the space before vines take over
Radishes mature in 25 to 30 days, which means they will be harvested and out of the bed before cucumber vines spread across the soil. Plant radish seeds directly into the raised bed at the same time you plant cucumber seedlings or seeds. Space radishes 2 inches apart in rows; they need little attention and will not compete with cucumbers for nutrients because they are shallow-rooted and finish early.
Lettuce, spinach, and arugula follow the same logic. These greens bolt or become bitter in summer heat, so they work best in spring before the cucumber canopy closes and temperatures rise. Plant them in the gaps between cucumber plants or along the edges. Harvest them as they reach eating size — usually 4 to 6 weeks — and the space opens up for the cucumber vines to spread.
Marigolds and nasturtiums: trap crops and pest deterrents
Marigolds repel cucumber beetles, whiteflies, and some nematodes. Plant them around the perimeter of the bed or in clusters of three or four. Marigolds are low-growing — 12 to 18 inches — and will not shade the cucumbers. They also tolerate the same watering schedule as cucumbers, so they will not dry out or become waterlogged if you treat them the same way.
Nasturtiums work differently: they are a trap crop, meaning pests prefer them to cucumbers. Plant nasturtiums at the edge of the bed or let them trail over the side. Aphids and whiteflies will feed on nasturtiums first, reducing pressure on the cucumbers. Nasturtiums also have the advantage of being edible — the flowers and leaves are peppery and can be added to salads.
Plants to avoid near cucumbers
Fennel and dill should not be planted together, even though dill is recommended here. Fennel inhibits the growth of most plants, including dill and cucumbers. If you choose dill, skip fennel entirely. Cilantro and parsley can attract the same pests as cucumbers and will compete for space in a small bed, so they are better grown separately.
Aromatic herbs like oregano, sage, and thyme are fine as companions, but they prefer drier soil than cucumbers. If you plant them together, they may suffer from the frequent watering cucumbers need. Plant them in a separate section of the bed or in a pot nearby if you want both.
Spacing and layout for a standard raised bed
A 4-by-8-foot raised bed can hold two or three cucumber plants if they are trellised vertically. If you trellis them, you have room along the edges and at the ends for companions. Here is a practical layout: plant cucumbers 2 feet apart along the center or back of the bed, with a trellis behind them. Plant basil or dill on the north side (the side that will not shade the cucumbers). Plant radishes and fast greens in the spaces between cucumber plants and along the south edge. Plant marigolds or nasturtiums around the perimeter.
If you grow cucumbers without a trellis, they will sprawl across the bed and leave little room for companions. In that case, plant only the fastest-maturing companions — radishes and spring greens — and harvest them before the vines spread. You can also plant marigolds at the corners, where they will not be buried by vines.
Watering and feeding when planting companions
Cucumbers are heavy feeders and need consistent moisture. Most companions tolerate the same conditions, but some — like thyme or oregano — prefer drier soil. If you choose drought-tolerant herbs, plant them in a raised section or mound within the bed so water drains away from them. For basil, dill, radishes, and marigolds, water the entire bed evenly, 1 to 2 inches per week depending on heat and rainfall.
Fertilize the bed before planting with compost or balanced fertilizer. Once cucumbers start flowering, side-dress with compost or a balanced fertilizer every 3 to 4 weeks. Fast-growing companions like basil and radishes will benefit from the same feeding schedule. Slower companions like marigolds need less; they will draw nutrients from the compost you added at planting.
Frequently Asked Questions
Can I plant tomatoes with cucumbers in the same raised bed?
Tomatoes and cucumbers can grow in the same bed, but they have different watering needs. Tomatoes prefer soil that dries slightly between waterings; cucumbers need consistent moisture. If you plant both, water more frequently than you would for tomatoes alone, and mulch heavily to keep soil moisture even. Space them far apart so one plant's watering does not oversaturate the other's roots.
What if I do not have room for a trellis?
Without a trellis, plant only fast-maturing companions like radishes and spring greens. Harvest them before the cucumber vines spread across the bed. You can also plant marigolds at the corners or edges where they will not be buried. Avoid tall plants like dill if cucumbers are sprawling, because the dill will shade the cucumber leaves.
Do I need to plant all four companion plants, or can I choose one?
You can choose one or two. If pest pressure is your main concern, plant basil or marigolds. If you want to maximize the use of space, plant radishes or fast greens. Dill is best if you want to attract pollinators and beneficial insects. Start with one or two and see what works in your garden.
When should I plant companions if I am starting with cucumber seeds instead of seedlings?
Direct-seed cucumbers and radishes at the same time. Wait 2 to 3 weeks after cucumber seeds sprout before planting basil seedlings, so the cucumber has a head start and will not be shaded. Plant dill at the same time as cucumbers; it grows slowly at first and will not compete. Plant fast greens 2 to 3 weeks after cucumbers sprout, so they mature and are harvested before the cucumber canopy closes.
Can I plant beans or peas with cucumbers?
Beans and peas are nitrogen-fixers and can improve soil, but they climb and vine like cucumbers. In a small raised bed, two vining plants will tangle and compete for light and space. If you want the nitrogen benefit, plant beans or peas in a separate bed or in a different season, then plant cucumbers the following year in the enriched soil.