Companion Planting: Which Vegetables Grow Better Together

Companion planting is one of the most useful ideas in backyard vegetable gardening, but it is also one of the most misunderstood. Some plant pairings genuinely help with space, shade, pollination, soil health or pest management. Others are repeated year after year with very little evidence behind them. The best way to use companion planting is not to treat it as garden magic. Think of it as smart garden design. You are placing vegetables, herbs and flowers together so they use space well, attract beneficial insects, reduce pest pressure, support each other physically, or avoid competing for the same resources. Here are the vegetable pairings that make the most sense for home gardeners, plus a few combinations to avoid.

What Is Companion Planting?

Companion planting means growing certain plants near each other because they may benefit one another. In a vegetable garden, those benefits usually fall into a few practical categories:

The key is to match plants by their actual needs: sunlight, water, root depth, growth rate and pest problems.

Advertisement

Best Companion Planting Combinations for Vegetables

Tomato plants growing with basil and marigolds in a raised garden bed
Tomatoes, basil and marigolds are a popular companion planting combination for warm-season vegetable gardens.

1. Tomatoes with Basil, Marigolds, Lettuce and Carrots

Tomatoes are one of the most popular vegetables for companion planting. They grow tall, need full sun and take several months to produce heavily, which makes them good partners for smaller crops and insect-attracting plants. Good companions for tomatoes include:

Avoid planting tomatoes with: potatoes, because both are in the nightshade family and can share some disease and pest problems.

2. Peppers with Basil, Onions, Carrots and Marigolds

Peppers grow well with many of the same companions as tomatoes. They like warm soil, full sun and steady moisture. Because pepper plants do not usually get as large as tomatoes, they can fit easily into mixed vegetable beds. Good companions for peppers include:

Avoid planting peppers with: fennel, which is generally a poor companion for most vegetables and is better grown separately.

Cucumber vines growing on a trellis with nasturtiums and dill in a raised garden bed
Cucumbers can be grown vertically on a trellis with companion plants such as nasturtiums and dill nearby.

3. Cucumbers with Beans, Peas, Dill, Nasturtiums and Radishes

Cucumbers grow quickly and can take over a bed if they are not trellised. Their best companions either improve the use of space, attract pollinators or help distract pests. Good companions for cucumbers include:

Avoid planting cucumbers with: potatoes, because both are heavy feeders and may compete for nutrients and water.

Corn, beans and squash growing together in a Three Sisters companion planting garden
The Three Sisters method grows corn, beans and squash together so each crop uses a different layer of the garden.

4. Corn with Beans and Squash

The classic “Three Sisters” planting combines corn, pole beans and squash. Each plant plays a role. Corn provides a living support for the beans. Beans are legumes. Squash spreads along the ground, shading soil and helping reduce weeds. Good companions for corn include:

This planting works best when the corn is planted first and allowed to gain some height before beans are added. If beans are planted too early, they can overwhelm young corn stalks.

5. Lettuce with Tomatoes, Radishes, Carrots and Cucumbers

Lettuce is a cool-season crop that often struggles when summer heat arrives. Companion planting can help extend the harvest by giving lettuce partial shade from taller vegetables. Good companions for lettuce include:

Avoid planting lettuce with: crops that will completely smother it, such as sprawling squash vines planted too closely.

Carrots, lettuce and onions growing together in a raised vegetable garden bed
Carrots, lettuce and onions can share space well because they grow at different heights and use the bed differently.

6. Carrots with Onions, Lettuce, Peas and Tomatoes

Carrots are slow to germinate and grow best in loose soil without heavy competition. They pair well with crops that grow upright or mature quickly. Good companions for carrots include:

Avoid planting carrots with: dense, aggressive plants that shade the soil too heavily before carrots are established.

7. Beans with Corn, Cucumbers, Squash and Radishes

Beans are useful companions because they are legumes and because many varieties grow vertically. Pole beans need a trellis or support, while bush beans stay compact. Good companions for beans include:

Avoid planting beans with: onions, garlic, leeks and chives. Many gardeners keep beans away from alliums because they can compete poorly together.

8. Cabbage, Kale and Broccoli with Dill, Nasturtiums, Onions and Lettuce

Cabbage, kale, broccoli, cauliflower and Brussels sprouts are all brassicas. They are often attacked by cabbage worms, aphids and flea beetles, so companion planting should focus on attracting beneficial insects and improving airflow. Good companions for brassicas include:

Avoid planting brassicas too closely together year after year. Rotating them helps reduce pest and disease buildup.

Flowers, herbs and lettuce growing together in a raised vegetable garden bed
Flowers and herbs can support a vegetable garden by attracting pollinators and beneficial insects.

Flowers and Herbs That Help a Vegetable Garden

Some of the best companion plants are not vegetables at all. Herbs and flowers can improve a vegetable garden by attracting pollinators and beneficial insects.

Best flowers for companion planting

Best herbs for companion planting

For more pollinator-friendly flower ideas, see our guide to the best annuals for a summer pollinator garden.

Vegetables You Should Usually Keep Apart

Companion planting is not only about what grows well together. It is also about avoiding combinations that increase competition or disease risk.

Tomatoes and Potatoes

Tomatoes and potatoes are both nightshades. They can share some pest and disease problems, so it is better to separate them and rotate where they are planted each year.

Beans and Onions

Beans are usually best kept away from onions, garlic, leeks and chives. This is a common garden separation because beans and alliums often do not perform well together.

Fennel and Most Vegetables

Fennel is not a friendly neighbor in most vegetable gardens. Grow it in its own area or container instead of mixing it into vegetable beds.

Heavy Feeders Packed Too Closely Together

Tomatoes, corn, squash, cucumbers and cabbage-family crops all need good fertility. Planting too many heavy feeders in one small bed can lead to weak growth unless the soil is rich and watering is consistent.

Simple Companion Planting Chart

Vegetable Good Companions Avoid Planting Near
Tomatoes Basil, marigolds, lettuce, carrots Potatoes
Peppers Basil, onions, carrots, marigolds Fennel
Cucumbers Beans, peas, dill, nasturtiums, radishes Potatoes
Corn Beans, squash, pumpkins, melons Tomatoes in crowded beds
Lettuce Tomatoes, radishes, carrots, cucumbers Large sprawling squash planted too close
Carrots Onions, lettuce, peas, tomatoes Dense, fast-shading crops
Beans Corn, cucumbers, squash, radishes Onions, garlic, leeks, chives
Cabbage, Kale, Broccoli Dill, nasturtiums, onions, lettuce Other brassicas in the same spot every year
Garden planning sheet on a table beside raised vegetable beds
Planning your vegetable garden before planting makes it easier to combine crops, herbs and flowers effectively.

How to Plan a Companion-Planted Vegetable Garden

Before planting, think less about “likes and dislikes” and more about how each plant grows. Ask these questions:

A strong companion planting plan might look like this:

Don’t Forget Soil Health

Companion planting helps, but it cannot replace healthy soil. Vegetables still need good compost, consistent watering, enough sunlight and proper spacing. If your soil is poor, crowded or dry, companion planting will not fix the problem. Adding compost is one of the best ways to improve a vegetable garden before planting. If you are new to composting, read our beginner’s guide to backyard composting.

Final Thoughts

Companion planting works best when it is practical. Pair vegetables that use space differently, support pollinators, attract beneficial insects or mature at different times. Be skeptical of claims that one plant will magically repel every pest or dramatically increase every harvest. The smartest vegetable gardens are diverse, well-spaced and planned with plant needs in mind. Start with a few reliable pairings, watch what happens in your own yard, and adjust each season. That is how companion planting becomes useful instead of just another gardening myth. Helpful external resources: Learn more from University of Minnesota Extension, Virginia Tech Extension, and Cornell Cooperative Extension.

Share this article

Andrew
Andrew
BBB Editor

Hello I'm Andrew and this is the bio of my test account

Join the discussion

Sign in to join the discussion

Comments are open to BBB members. Sign in to your free account to share your experience, ask questions, and reply to other readers.

Free to join. No credit card. Founding Member badge for the first 500 spots.