Top 15 Plants to Grow With Cucumbers And 5 to Avoid

Aygul Bulte/Getty

Companion planting is a method that involves planting certain plants together to make them grow better. Some plants can help cucumbers by repelling pests, providing shade, or improving soil quality, while others may compete for resources or attract harmful insects. Keep reading to find out which plants will produce a bountiful harvest and which plants to avoid growing with your cucumbers. 

Companion Plants for Cucumbers


Growing certain plants with your cucumbers can boost growth, deter pests, and improve flavor. Here are some flowers, herbs, and even other vegetables that you can plant with your cucumbers. 


Nadya So/Getty

These vibrant flowers repel cucumber beetles and other pests and attract beneficial insects like predatory wasps. Plus, their sprawling nature helps shade cucumber roots and retain soil moisture.


Ekaterina Korzh/Getty

Their strong scent deters pests like nematodes and whiteflies and protects cucumber plants. Marigolds also add color to the garden and are easy to grow alongside cucumbers.


Ralf Geithe/Getty

Planting radishes with cucumbers acts as a natural pest deterrent. Radishes repel cucumber beetles and can be interplanted between cucumber rows to maximize space and discourage weeds.



Pole beans or bush beans provide nitrogen to the soil through their root nodules and promote healthy cucumber growth. Additionally, their climbing habit saves space and creates natural trellises for climbing cucumbers, enhancing air circulation.


Nikolay Malshakov/Getty

This aromatic herb attracts beneficial insects like ladybugs and hoverflies, which prey on cucumber pests such as aphids and spider mites. Dill also enhances the flavor of cucumbers when grown nearby, making it a double-win for the garden.



With its attractive blue flowers, borage beautifies the garden and repels tomato hornworms and cabbage worms that can affect cucumbers. It’s a beneficial companion that improves overall plant health and vigor.



Planting lettuce at the base of cucumber plants provides a living mulch that conserves soil moisture and suppresses weeds. The shade from lettuce leaves also helps keep the soil cooler and benefits cucumber roots during hot weather.


Yevhen Smyk/Getty

Tall corn stalks can serve as a natural trellis for cucumbers to climb, maximizing garden space. In return, cucumbers help suppress weeds around the corn plants while the corn provides shade and support.



Like beans, peas are nitrogen-fixing plants that enrich the soil and promote healthy cucumber growth. Their delicate vines can be interplanted with cucumbers, utilizing vertical space to improve overall garden biodiversity.



These towering beauties add visual appeal to the garden and attract pollinators, which benefits cucumber production. Furthermore, sunflowers provide shade and wind protection for cucumber plants, which aids growth and development.


Toni Jardon/Getty

Planting onions alongside cucumbers can help deter pests like aphids and cucumber beetles. Onions have a pungent aroma that masks the scent of cucumbers, making them less attractive to pests while adding a savory flavor to dishes when harvested together.



Chamomile is known for its calming properties and is also a beneficial companion for cucumbers. The flowers attract hoverflies and predatory wasps that feed on cucumber pests and create a healthier ecosystem within the garden.



Interplanting carrots with cucumbers maximizes garden space and helps improve soil structure. Carrots’ shallow roots complement the deeper root systems of cucumbers, reducing competition for nutrients and water.



Like onions, garlic emits a strong odor that repels pests such as aphids and spider mites, which will benefit nearby cucumber plants. It’s an easy-to-grow companion that also provides culinary benefits when harvested.



This aromatic herb adds flavor to dishes and acts as a natural insect repellent. Thyme repels pests like cabbage worms and flea beetles, protecting cucumber plants from damage and improving the overall health of the garden ecosystem.

Plants to Avoid Planting Near Cucumbers


While there are some plants that can boost your cucumbers’ growth, there are others that can attract pests or steal nutrients from them. Avoid planting the five plants coming up ahead with your cucumbers so you can have a successful harvest. 



Both cucumbers and potatoes are susceptible to diseases like blight and can attract similar pests, such as cucumber and potato beetles. Planting them together can increase cross-contamination and pest infestation.

Aromatic Herbs

Kritchai Chaibangyang/Getty

While some herbs like dill and thyme benefit cucumbers, others like sage, rosemary, and mint can inhibit their growth. These aromatic herbs have allelopathic properties that may stunt cucumber growth or alter flavor.


Gert-Jan van Vliet/Getty

Fennel produces chemicals that inhibit the growth of nearby plants, including cucumbers. Planting cucumbers near fennel can result in poor growth and yield due to competition for resources and allelopathic effects.


Tri Kuntoro/Getty

Cucumbers and melons are Cucurbitaceae plants and susceptible to similar diseases and pests. So, if you plant them together, it increases the risk of spreading diseases and attracting pests like cucumber beetles and squash bugs.



Avoid planting cauliflower with cucumbers because they have different nutrient needs and growth patterns. They will also compete with cucumbers for nutrients present in the soil. Additionally, cauliflower attracts pests that might harm cucumbers. 


Leave a Reply