Skip to main content

The best (and worst) cucumber companion plants

Add these plants to your garden to make your cucumbers happy

A cucumber plant in the sun
Alexei_other / Pixabay

Companion planting is the technique of pairing plants based on their similar needs and preferences, as well as potential benefits or aesthetic preferences. You might plant pest-repelling herbs next to your tomatoes, for example, or grow shade-loving plants in the shadow of a tree or shrub.

Recommended Videos

Every plant has companion plants that work well with it, as well as plants that should be avoided, and cucumbers are no exception. This is your guide to cucumber companion plants, so that you can plan a successful garden.

Two cucumbers growing from a vine on the ground, with a yellow flower in front
Background expert / Shutterstock

Fruits and vegetables as cucumber companion plants

If you want to pair your cucumbers with other fruits and vegetables, then you have plenty of options. Plants in the Solanaceae family pair well with cucumbers. This includes tomatoes, peppers, and even eggplants. The exception to this is potatoes, but other Solanaceae plants can be planted near cucumbers with proper spacing.

Leafy greens, such as lettuce, cabbage, spinach, and kale are also good choices. The taller cucumber vines provide shade for the smaller greens, and the leafy greens shelter the cucumber’s roots to improve water retention like a living mulch. However, if you plan on growing multiple companion plants, take note that tomatoes don’t pair well with cabbage or kale.

Small root vegetables like carrots, beets, and turnips will grow with cucumbers as well. They have a similar relationship to each other that cucumbers and leafy greens have, thanks to the spreading leaves of the root vegetables. Plus, their small size means you don’t have to worry about competition. Alliums, such as garlic and onions, are also a great choice for this reason.

Some plants that provide benefits for your cucumbers are legumes and corn. Legumes, such as beans and peas, add nitrogen to the soil. Corn can actually be used as a living trellis for smaller cucumber varieties.

Potted marigolds
Yui Yuize / Shutterstock

Flowers and herbs to grow with cucumbers

Fruits and vegetables aren’t the only things you can grow next to your cucumbers, though. Many flowers and herbs offer natural protection from pests and attract pollinators. If you’ve ever had to pollinate cucumbers by hand, then you’ll understand just how valuable this benefit is! For fans of herbs, dill, oregano, marjoram, and chives are all excellent cucumber companion plants.

Marigold, calendula, nasturtium, and tansy are all great options for attracting pollinators, and they may keep pests away as well. If you’re a fan of edible flowers, then you’ll be happy to know that marigolds, calendula, and nasturtium are all edible. Tansy is sometimes consumed as well, but it does contain a toxic compound that can cause serious health problems in higher quantities.

An interesting flower to grow as a cucumber companion plant is the sunflower. Similarly to corn, smaller cucumber varieties can climb sunflowers. This means you can replace your trellises with sunflowers and corn for a unique garden display.

A striped zucchini growing on the vine
HBH-MEDIA-photography / Pixabay

Plants to avoid using as cucumber companion plants

Knowing what plants to avoid is just as important as which ones to seek out. Plants that have vastly different growth needs from cucumbers should be planted in a different section of your garden. For example, you shouldn’t plant succulents and cacti near cucumbers, as the succulents and cacti would get too much shade and water.

Plants that have the same needs but are heavy feeders should also be avoided. This is because they will compete with your cucumber plants for resources, leading both plants to struggle. Potatoes, melons, zucchini, and squash are good examples of this. Melons, zucchini, and squash also fall into the third category of plants to avoid: plants in the same family. Since they are prone to the same pests and diseases, planting closely related plants together can make them more vulnerable.

Aromatic herbs, such as sage, rosemary, fennel, and basil have oils that can stunt the growth of cucumber plants. These oils can affect other plants as well, so take care when planning your herb gardens. Another herb to avoid is mint, which is a voracious grower and will spread across the garden, competing heavily with cucumbers for resources such as space and water.

Sunflowers in field
Ibrahim Rifath / Unsplash

How to plant your companion plants

Once you’ve chosen your cucumber companion plants, it’s time to plant them. While the bulk of planting companion plants is the same as planting any other garden, you’ll need to pay close attention to spacing and location. While these plants will grow well together, they won’t appreciate being crowded together, so make sure to follow the spacing requirements for each plant. Remember to measure from the roots or base of the cucumber plant when using a trellis.

If you are trellising your cucumbers, smaller shade-loving plants can grow underneath the trellis or in its shadow. However, sun-loving cucumber companion plants will not thrive there and should be planted where the shadow will not fall.

While we can’t list every possible plant combination, remember the basic principles of companion planting and you’ll do just fine. If plants have similar or non-conflicting needs, they can usually be planted together, but if they need opposite conditions or pose challenges for each other, then plant them further apart. With this knowledge and our list of basic cucumber companion plants for you to consider, you’re ready to start planning your next garden.

Cayla Leonard
Cayla Leonard is a writer from North Carolina who is passionate about plants.  She enjoys reading and writing fiction and…
What is no-dig gardening? Here’s how to do it
Start your own no-dig garden today
A heliotrope plant growing in a garden

There are as many ways to design a garden as there are gardeners, with more variations and methods than we can count. Many of these variations offer benefits, ranging from the soothing effects of zen gardens to the ecological benefits of native wildflower gardens. One beneficial gardening method you might want to try out is no-dig gardening. If you aren’t familiar with this technique, you might be confused by the name. How can you grow a garden without digging? We’ve put together this guide for just that reason, and the answers are simpler than you might imagine.
What is no-dig gardening and is it right for you?

No-dig gardening doesn’t mean you never dig at all -- you’ll still need to dig holes if you want to plant seedlings or mature plants. It just means that digging is limited to only the times when it's necessary. By limiting the amount of digging you do, your garden can more closely mirror the natural environment, leading to fewer weeds, better drainage, and healthier soil.

Read more
Start a vibrant wildflower garden with native plants: Here’s how
Plant these flowers for a lovely wildflower garden
A cluster of tall, colorful wildflowers

The word wildflower probably brings to mind images of lush meadows and fields dotted with bright colors, but did you know you can bring a piece of that to your own garden? Wildflower gardens are easy to grow and great for the environment. You can even grow some wildflowers in containers, so you can have a lovely wildflower garden even if you're low on space.

Native wildflowers are some of the easiest plants to grow, and they often come with environmental benefits. From blanket flowers to black-eyed Susans, this guide to native wildflower gardens will cover everything you need to know.
What is a wildflower garden?

Read more
6 plants that give you a pest-free garden, naturally
Grow these plants to repel pests
Woman holding collection of plants

If you’re a gardener and have had a problem with bugs and other pests, you know the harm they can cause to your plants. Even if you’re not a gardener, you know that during some months of the year, bugs can be incredibly annoying. You step out on your front porch on a June evening, and immediately, clouds of gnats or mosquitoes seem to swarm you.

Chemical bug sprays and repellents can be annoying to apply, they often have an unpleasant smell, and if you have sensitive skin, then they may cause you discomfort as well. Luckily, there is another option. Certain plants can repel pests, keeping them away from your garden or your patio. While they aren't 100% effective, growing these plants can decrease the number of pests you have to deal with, making spending time outdoors much more manageable. To get started, here are the plants for a pest-free garden.
Basil

Read more