
Best vegetable pairings in the garden—rooted in research and time-tested gardening wisdom.
For daily wit & wisdom, sign up for the Almanac newsletter.
Wondering which garden vegetables make good neighbors? Some plants just plain get along—and thrive when paired together! The evidence-based Companion Planting Chart below is rooted in solid research, so you can skip the guesswork and plant with confidence.
Here at The Old Farmer’s Almanac (published since 1792!), we have many generations of important (and priceless!) farming wisdom. At the same time, we continually update our information with modern research conducted in today's farms and gardens. With so many outdated claims floating around, this continually updated and evidence-based Companion Planting Chart will provide the trusted information you've come to expect from us.
Plus, plant companions are integrated into our online Garden Planner so you can grow a healthier, more productive garden.
Companion Planting Chart: 20 Common Vegetables
Companion Planting Lookup Tool
Wondering who’s a good garden neighbor? Use this handy tool to find which veggies—and their flower and herb friends—grow best together. All rooted in real research.
Companion Planting Guide
Companion Plants:
How to use: Pick a vegetable to reveal its top companions. Reference the chart below for more detail on the best plant pairings. Click here for a printable guide.
Companion Planting Chart
Crop Name | Companions | Benefits and Notes |
---|---|---|
BEANS ![]() | Lovage Nasturtium Rosemary Corn Sunflowers | Corn helps climbing beans (not bush beans), providing a natural structure to help beans reach sunlight. corn is planted first, preventing early competition. Source: USDA, NIH. Lovage attracts beneficial insects such as parasitoid wasps which prey on aphids and beetles. Source. Nasturtiums proves an effective trap crop that draws pests away from French/bush beans. Source. Rosemary repels common garden pests thanks to its compounds—camphor, cineole, and camphene. Sunflowers provide support as a living trellis. Source: Three Sisters Guild, Eames-Sheavly, Cornell Cooperative Extension (1993) |
BEETS![]() | Bush beans Garlic Lettuce Onion family | Bush beans are beneficial to beets, fixing nitrogen making it available to soil; however, runner or pole beans stunt growth. Garlic improves beet growth and flavor. Lettuce grows well with beets, due to complementary root structures, soil shading, and weed suppression Onions and beets grow well together, reducing pest pressure, increasing root yield, and benefiting soil health and crop spacing. |
BROCCOLI![]() | Alyssum Dill Chinese Cabbage Marigold Nasturtium Oregano Sage Thyme | Alyssum helps broccoli by attracting hoverflies, which are important natural predators of aphids—the main pest of broccoli.. Source: USDA. Dill contain repellent properties against broccoli pests. Source. It's also a physical barrier to protect broccoli from pest attack. Source. |
CABBAGE![]() | Chamomile Dill Garlic Nasturtium Onion Rosemary Sage Tansy Thyme | Chamomile deters pests when intercropped with cabbage. Source. Dill intercropped with cabbage attracts parasitic was to control cabbage worms. Source: Kenny & Chapman (1988). Garlic repels diamondback moths. Source. Thyme disrupts egg-laying of the diamondback moth. Source. Nasturtium, onion ,and thyme plots have resistance toward cabbage worm and cabbage looper. Source. Onions help cabbage by lowering pest pressure and boosting productivity. Source. |
CARROTS![]() | Chives Leeks Onions Peas Radishes Rosemary Sage Savory | Onions intercropped with carrot significantly reduced carrot fly attacks. Source. Onions also improve root yield. Source. Marigolds reduce nematodes in the soil to prevent root knot issues and crop stunting, but only when grown and ploughed in the soil the year before. Source. Sage odor alters carrot fly behavior, potentially helping protect carrots by disrupting the flies’ host-finding. Source. |
CORN![]() | Beans (pole) Cucumbers Dill Geranium Peas Potatoes Squash Sunflower | Beans intercropped with corn increase yield and soil fertility, according to multiple sources. Pole beans climb and support corn and squash, shield soil, deter pests, and suppress weeds (squash vine borers, mammals). Source. Geranium (Pelargonium) attracts Japanese beetles; geranium’s toxins paralyze them, reducing beetle pressure on corn silks. Source. Potatoes using subterranean space complement corn's shallow roots; they stabilize soil and shade ground. Dwarf sunflowers planted around corn attracted an army of pest-hungry ladybugs. (Kansas Academy of Science). |
CUCUMBERS![]() | Pole Beans Corn Dill Nasturtiums Oregano Chili Pepper Radish Sunflowers Tansy | Beans add nitrogen, aiding cucumber growth and reducing pest incidence. Source. Bean flowers attract pollinators. Both beans and cukes can share support structures. Radishes are a companion plant to repel cucumber beetles. A 2008 study published in HortTechnology. Tansy (Tanacetum vulgare) repels cucumber beetles, ants, bugs, beetles, and flying insects. Source. |
LETTUCE![]() | Alyssum Chives Garlic Onion Oregano Peas Poached Egg Radish Thyme | Alyssum intercropped with lettuce controls aphids. Source: USDA. Chives, garlic, and onions deter aphids and other pests by masking scent. Source: Iowa State University. Onions planted around lettuce led to fewer cutworms. Source: CBTA. Oregano brings in predators for pests, especially ground beetles. Peas benefit lettuce, adding nitrogen to the soil. Source. Poached egg plant attracts hoverflies, whose larvae then consume aphids. Source: Journal of Agricultural Science. Radishes are a trap crop for lettuce, attracting pests away from lettuce and enhancing overall crop productivity. Source. Thyme deters cabbage worm, looper, and weevil. Source. |
ONIONS![]() | Beets Cabbage Carrot Chard Lettuce Strawberry Tomatoes | Beets intercropped with onions influences onion seed yield positively. Source. Marigolds reduce the egg laying of onion maggot fly. Source: Scientia Agricola |
PEAS![]() | Alyssum Chives Corn Lettuce Mint Radish Spinach | Alyssum brings pollinators to the pea flowers and encourages lacewings, which eat aphids. Source. Lettuce interplants well with peas and can enhance efficiency without hurting pea yield. Source: Journal of Agricultural Sciences |
PEPPERS![]() | Basil Chives Cilantro Dill Leeks Onions Oregano Rosemary | Basil improves the growth and flavor of peppers and has a protective, insecticidal quality. Same goes for oregano. Leeks and chives can help peppers by repelling aphids. Source. |
POTATOES![]() | Basil Beans Calendula Cilantro Dill Garlic Horseradish Onion Peas Tansy | Basil discourages Colorado potato beetles and also attracts beneficial insects. Source. Beans (bush) intercropped with potatoes improve both yield and soil health. Source. |
PUMPKINS and WINTER SQUASH ![]() | Beans Borage Calendula Corn Lovage Marigold Nasturtium Oregano Radish Tansy | Pole beans produce nitrogen for the squash and pumpkin, and squash is traditionally planted with corn and beans ("three sisters") to disorient the adult vine borer. Source. Borage flowers bring predators which eat the squash pests, plus pollinators! Source: Permaculture Research Institute Marigold deter beetles, especially the striped cucumber beetle and squash bug. Source. Nasturtium, radish, and tansy repel cucumber beetles. Source. |
RADISHES![]() | Bok Choi Chervil Collards Lettuce Nasturtium Peas Spinach | Bok choi (pac choi) intercropped with radish boosted harvest. Source: NIH. Collards complement radishes. In the same plot, they increase use of space without any negative effects on growth. Spinach intercropped with radish significantly increased growth and yield. Source. |
SPINACH![]() | Beans Celery Cilantro Coreopsis Peas Radish | Peas and pole beans provide natural shade for the spinach, and also improve soil fertility to improve nutrient availability. Source. Radishes planted alongside spinach can optimize space, reduce pests, and improve overall yield. Source. |
TOMATOES![]() | Asparagus Basil Beans Borage Calendula Celery Marigold Parsley Radish Rosemary Thyme | Asparagus and tomatoes support each other by repelling each other’s pests—tomatoes release solanine to deter asparagus beetles, while asparagus secretes compounds that repel root-knot nematodes. (Source: Rutgers) Marigolds repel whiteflies when planted with tomatoes. Source. |
ZUCCHINI/ SUMMER SQUASH![]() | Buckwheat Marigold Nasturtium Oregano Radishes Zinnia | Buckwheat alternating with squash strips reduces aphids, plant disease, and increases beneficial poplations. Source: University of Florida. Marigold intercropped with zucchini demonstrated the best resistance to cucumber beetle. Source: RES Oregano provides pest protection as a natural insecticide. Source. Nasturtium repels cucumber beetles. Source. Radishes planted alongside zucchini reduces squash bug egg laying. University of Nebraska. Zinnia attract predators that eat whiteflies and also attract pollinators. Permaculture Institute. |
What Is Companion Planting?
Companion planting is the practice of growing plants together to support one another as part of a thriving garden community. Fruits, vegetables, and herbs often grow stronger and more productive when each plays a helpful role.
- Sometimes the benefit is one-sided—like nectar-rich flowers planted near tomatoes to boost insect pollination.
- Other times, it’s a classic mutual relationship, as with the Three Sisters: corn provides support for beans, beans enrich the soil, and squash shades out weeds.
By cultivating plant partnerships that naturally support each other, you can save time, reduce pests, attract pollinators, enrich the soil, suppress weeds, and increase yields—with the bonus of a healthier, more resilient garden.

7 Benefits of Companion Planting
There are plenty of great reasons to plant certain crops together:
- Deterring pests: Intercropping—planting different crops together—can help keep pests away. Research shows that mixing plants can confuse pests, making it harder for them to find their favorite targets. This natural method helps lower pest problems without chemicals.
- Attracting beneficial insects: Some plants draw in helpful bugs, or "beneficial insects." Hoverflies can’t resist the sunny-side-up charms of poached egg plants (Limnanthes douglasii), and they love a meal of juicy aphids, too. Pop poached egg plants near lettuces, and guess what? Fewer aphids!
- Attracting pollinators: Many flowers are rich in nectar and irresistible to bees, butterflies, and other pollinators. Borage is a well-known bee magnet (so with it, you get a twofer: boosted pollination plus wasps laying parasitic eggs to purge notorious hornworm pests!) Researchers have validated the practice of planting “pollinator strips”—rows of plants designed to lure pollinators and pest predators—to improve your harvest!
- Shade regulation: Tall plants can provide shade for smaller ones that need protection from harsh sun. For instance, corn shades lettuce, helping it thrive on hot days.
- Natural supports: Plants like corn and sunflowers act as living trellises, supporting sprawling crops such as cucumbers and peas.
- Healthier plants, naturally: Some plants help their neighbors by releasing helpful compounds into the soil. For example, nasturtiums can protect fruit trees from pests like codling moths by sharing natural pest-fighting chemicals through their roots. Mustard, horseradish, cabbage, and kale do something similar—they give off compounds that help defend nearby plants from bugs. Source.
- Improving soil fertility: Legumes such as beans and peas fix nitrogen in the soil, making this vital nutrient more available. Deep-rooted plants like burdock pull nutrients from lower soil layers, enriching the topsoil for shallow-rooted crops.
- Weed suppression: Dense plantings of complementary crops can crowd out weeds, reducing competition and the need for manual weeding.

The Science Behind Companion Planting
Until recently, a lot of companion planting was based on little more than hearsay, but there’s an increasing body of scientifically grounded research that proves that growing specific plants together can reduce pests, boost growth, and even help wildlife. We've collected it all and updated our companion planting chart below! Some background:
- More friends, not foes. Traditionally, it was thought that vegetables had "friends" and "foes"—companion plants that either benefitted the vegetables' growth or impeded it. This isn't necessarily wrong, but we've found that nearly all the associations are positive; there are perhaps two or three "bad" combinations (e.g., black walnut trees, which secrete growth inhibitors through their roots). The bottom line is that there is simply more evidence for "good" companions than "bad" ones, so we now focus more on why vegetables need friends!
- Too much conflicting or anecdotal evidence: about companion planting on the internet, which we found concerning. Many examples of companion planting were based on folklore or hearsay. While observations in our own garden can be valuable, we decided that our reference guide should only highlight companion plant pairings backed up by scientific evidence and tried-and-true practices.
- Not enough about flower power: While companion planting traditionally referred to vegetable plant pairs, we've added more flowers to our chart; many are excellent natural insect repellents. Nasturtium is head and shoulders above them all, taking the brunt of pest attacks. (See more below.) Any nectar-rich flowers, such as zinnia, comfrey, and ageratum, will attract pollinators such as bees to the garden and help to boost the pollination of flowering crop plants like tomatoes, beans, and squash.

Tomatoes Love Basil: The Classic Example
Take tomatoes and basil—longtime companions in both the kitchen and the garden.
- Studies show a reduction in tomato pests when basil was present. Plus, while pest populations decreased, no increase in pest predators was detected as the cause, indicating that basil’s strong scent disguised the tomatoes from pests.
- In addition, marigolds planted alongside tomatoes reduced the whitefly population. (Note: The plants must be grown together, and it doesn't help to introduce the solution later as an emergency treatment!)
- Borage attracts tiny wasps that are the natural enemies of tomato hornworm caterpillars (Journal of Apicultural Science in 2020). Borage is also a well-known bee magnet, so with it, you get a twofer: boosted pollination plus wasps laying parasitic eggs to purge notorious hornworm pests. The very best friend that any tomato could wish for!
Our Favorite Companion Combinations
Here are some of the best companion planting combinations for your garden.
- Alyssum brings in pollinators and encourages green lacewings, which eat aphids.
- Basil deters moths that lay eggs for tomato hornworms and armyworms. Basil also attracts bees, which improves pollination, tomato health, and flavor.
- Dill attracts ladybugs, which eat tiny garden pests such as aphids and spider mites.
- Calendula or cosmos nearby will attract tiny parasitizing wasps and aphid-hungry hoverflies. We also love marigolds for drawing in pest-hungry beneficial bugs.
- Borage pairs well with tomatoes, attracting pollinating bees. It also enhances strawberries' flavor and vigor.
- Garlic repels aphids, onion flies, ermine moths, and Japanese beetles. Plant garlic between rows of potatoes alongside lettuces, cabbages, and near fruit trees with alyssum to attract aphid-eating hoverflies.
- Mint deters aphids, ants, and flea beetles. Just be careful to plant mint nearby in its own pot or bed, as it is a very aggressive grower!
- Nasturtiums attract hungry caterpillars away from brassicas like cabbage, broccoli, and kale, acting as a decoy. So, grow these pretty flowers close to those crops! Nasturtiums also lure black flies away from fava beans.
- Parsley attracts beneficial insects to protect and pollinate tomatoes. Plant these herbs between tomatoes.
- Poached egg plants (a wildflower) draw in hoverflies, which control aphids on nearby lettuce.
- Sage is a helpful herb that repels carrot flies. Also, plant it around a cabbage patch to reduce injury from cabbage moths.
- Sunflowers pair well with cucumbers and pole beans. They help provide support for climbing plants and shade for crops, which can become sun-stressed in hotter climates.
- Tansy is a real draw to pest-eating bugs such as ladybugs, ladybirds, and predatory wasps. At the same time, tansy repels many typical baddies, such as cutworm, which attacks asparagus, bean, cabbage, carrot, celery, corn, lettuce, pea, pepper, potato, and tomato plants. Tansy is a perennial, which means you only have to plant it once!
More Companion Gardening Tips
Much of companion planting considers the height of different vegetables.
- Lettuce, radishes, and other quick-growing plants sown between hills of melons or winter squash will mature and be harvested long before these vines need more legroom.
- Leafy greens like spinach and Swiss chard will grow in the shadow of corn.
- Bush beans tolerate the dapple shade that corn casts and, since their roots occupy different levels in the soil, don’t compete for water and nutrients.
- Don't get too fixated with pairing up crops. Correct spacing, sun, water, and good soil management are the most important influences on your growing plants.
- Why not start small with a few marigolds and zinnia seeds—and watch the beneficial bugs come! Other options to start with? How about calendula, nasturtium, basil, and borage?

Video: How to Plan a Companion Planting
It's really helpful to see companion planting in action. In this video, Ben explains how to harness the power of flowers to deter pests, attract pollinators, and even improve soil.
The Online Garden Planner
For more information, we'd point you to the online Almanac Garden Planner, which has an extensive database of companion plants and a new companion planting feature that makes it easier to find perfect matches for your plants. Simply select a garden vegetable on the screen and then click the heart-shaped ‘Show Companions’ button. The selection bar will then show only those plants your chosen crop will love. Select one and drop it into your garden plan. For example, if you select sweet corn and click on the Companion Plantings button, it shows that beans are a great companion!
Learn More
- For ideas and inspiration, see readers' companion garden plot plans with plant lists.
- Are you just getting started with gardening, or do you need a refresher course? Check out our Vegetable Gardening for Beginners how-to page.
- Need plant-specific growing advice? Read through our many Growing Guides for vegetables, fruit, flowers, and herbs.
Companion planting can indeed help gardeners to grow in step with nature, but what we know about this powerful tool is constantly evolving. Further research over the coming years will fill in the gaps, and no doubt deliver a few more surprises along the way
Have you tried companion planting? What's your go-to pairing? Tell us in the comments below!

Benedict Vanheems
Comments
Hi Sabiha,
There are many ways to setup your garden for companion planting and it really depends on the size of your garden and what you intend to grow.
You do not need to go as far as to plant companion plants directly next to each other, alternating one plant and then the other. Some methods direct you to plant alternating rows, while others only recommend planting companion plants in the corners of a garden bed. Again, it really depends on what you plan to grow and how big the plants will be.
If you are looking for some ideas for your garden space, our Garden Planner is a great tool. You can try it for free for 7 days. It is definitely a helpful resource. If you are interested, go to https://gardenplanner.almanac.com/.">https://gardenplanner.almanac.com/.
Hope this helps!
Reply to comment
Are strawberries and cucumbers compatible?
Reply to comment
Not that you couldn't do it, but I think it might be a counterintuitive pairing depending on the type of plant and garden setup/layout you have. Since they're both sprawling in how they grow, I would guess that the cucumbers would choke out the strawberries in a longer term. Since they grow large leaves, they could take away the strawberry's sun exposure. Now you could grow both in similar overhanging styles, so they may do well in similar conditions, but they won't be of any insecticidal assistance to each other.
Reply to comment
Could you share the scientific sources you used for compiling these lists?
Reply to comment
Reference sources are primarily scientific studies, such as Manorama and Lal, 2010; Mei et al., 2012; Amarawardana et al., 2007; Masyad S.A et al 1999; Hooks et al 2001. This article has about 130 pages of research. If you have a more specific question about a companion pair, https://gardenplanner.almanac.com/contact.aspx" target="_blank">please contact us.
Reply to comment
I have grown my own garlic for several years. About 3 years ago I had an overabundance, so I took my small cloves and planted them in a circle around each of my roses. Works great - no aphids!!!!
Reply to comment
Awesome article. Thank you!!
Reply to comment
I’ve been planting green onions around some plants that attract spider mites. Started just recently so can’t say it works for sure. So far, so good.
Reply to comment
So many of us have pets. It would be so helpful if you would note which plants/flowers are toxic to pets. For example, Tansy and Borage.
Reply to comment
Reply to comment
Tomato garden pairing guide
Reply to comment
Are peppers and beets compatible?
Reply to comment
Hi Kim,
Yes, beets and peppers can be planted together. While they may not offer the kind of pest deterrent qualities of those listed above, planting beets near peppers can take up space in the ground to deter weed growth. In addition to the beets providing shade to inhibit weed growth, the pepper plants will provide some shade to the beets during the hottest times of the growing season.
Reply to comment
Hmmm, are you not a fan of the celery family? Thanks from Canada for all your info on gardening.
Reply to comment
How far is "near"?? Easy to plant compatible plants close to each other. But for those that are incompatible: "don't plant A and B together" doesn't give much info as to just how far apart they need to be not to interfere with each other. Any sources or advice for this?
Reply to comment
Plants that have known beneficial relationships (friends) should be planted within two or three rows of each other.
Reply to comment
But they asked about “enemy” plants, not “friends”
Reply to comment
Plants that have negative or detrimental relationships, should be planted at least two to three rows apart.
Reply to comment
For new gardeners, what is the distance in inches/feet rather than rows? I have raised beds that are four feet wide. Can I plant bad pairings in the same planter, 3 feet apart?
Reply to comment
Plants that have negative or detrimental relationships, should be planted at least two to three rows apart.
Reply to comment
Typically when I grow basil, I snip the flowers off so the plant spreads and produces much basil. If I am using it as a companion plant for tomatoes , do I let the basil flower?
Reply to comment
Hi, Daniel, No, you do not need to let basil flower to be an effective bug repellent. It contains/emits essential oils that do the job.
Keep growing!
Reply to comment
I have used your Almanac for years as my primary gardening reference. I started companion planting, in a small way, a few years ago. Last year, I started growing in beds, using a modified square foot technique, but, I use in ground beds instead of raised ones (too expensive!). It worked out really well! This year, I am going all out and starting everything from seed; grow lights, heating mats, the whole shebang! Due to the economy and requests from customers, I am tripling the garden, too. Your companion planting chart has been an invaluable tool in my planning and research! Thanks for providing the gardening world with such a wonderful thing. Playing in the dirt in GA......Rob
Reply to comment
EVERYTHING you have is soooo EXPENSIVE - believe me..... I am in favor of a mercedes or two in every driveway - none in mine - and thank you for your time. Paul
Reply to comment
My favorite companions are lemon balm and squashes and basil with tomatoes. I had a very productive garden this year due to companion planting
Reply to comment
Regarding Aphids: I have pollinator/Monarch butterfly gardens. This year, aphids were the worst I've seen. Although they didn't kill any of my milkweed, they managed to take a toll on them. Are there any trap crops that would deter Monarch butterflies or any other pollinators to my gardens? Please help! Thanks!
Reply to comment
You said you have monarch and pollinator garden.,but you used the term to deter Monarchs and refer to the milkweed being eaten by aphids. Deter means to keep way..when you want to attract Monarchs to the milkweed which is their food. Pretty sure you meant you want to attract them and deter the aphids..?? Of course the Monarch butterfly caterpillars will be the ones eating the milkweeds and will cause the milkweeds to look pretty chopped up…as they should. I’ve. Not noticed aphids bothering milkweed because it’ so very bitter and poisonous to a lot of other bugs. Perhaps using some of the common aphid deterrents around or near milkweed would keep aphids off….. mine grow in the neighbors fence row and is now covered with the terrible,wild honeysuckle and i don’t bother them at all.
Reply to comment
My swamp milkweed (in my vegetable garden) was decimated by aphids last year. So many aphids covering it that at first glance I thought it was covered with pollen.
Reply to comment
I forgot to add that it was growing next to dill and onions.
Reply to comment
Good
Reply to comment
Have always had basil next to tomatoes. Only get opportunist birds, but never worms or other pest.
Reply to comment
I grow tomatoes and radishes in the same pot as my plumeria. Can the veggies get toxic?
Reply to comment
Tansy is a noxious weed in the Pacific Northwest. It is invasive and is toxic to cattle and horses. Beware!
Reply to comment
I can no longer plant nasturtiums anywhere in my yard. Why? Because they attract every flea beetle in my county! They may be considered a "trap crop," but I have a small yard and they have decimated my garden for 2 years. Not to mention, it made me very unpopular in the neighborhood. The flea beetle don't seem to be deterred by anything! Got any suggestions?
Reply to comment
I planted basil all around my bush variety of tomatoes and had not one hornworm and no other pests at all! Also planted bulb onions all around my strawberry plants and my pill bug problem almost totally vanished. It works…companion planting is a really good thing!
Reply to comment
Pill bugs take toxic heavy metals out of your soil. They're beneficial to the health of your soil.
Reply to comment
Hi I am ozzy my companion pairs are tomatoes and cucumber. I was told that planting more that one crops was beneficial but i didn't know how beneficial it was until i read this article, now it makes sense.
Do you plant one companion plant alternatively next to each other or in separate patches or rows