Companion Planting Chart: What to Plant Together (21 Crops + a 4×8 Bed Plan)
The short version: tomatoes go with basil, carrots, onions, parsley and marigolds; beans go with cucumbers and corn but away from onions and garlic; carrots go with onions and lettuce but away from dill. The chart below covers 21 common crops, each with its companions and the plants to keep apart. Under the chart you’ll find what the research supports, and a 4×8 raised bed with the pairs put in place.

The chart comes from ATTRA, a sustainable farming program of the National Center for Appropriate Technology funded through USDA. ATTRA says the table was “compiled from traditional literature on companion planting” (ATTRA IP125). So treat it as tradition, not tested advice: ATTRA’s own table lists a gardening website and Wikipedia as its sources. The pairs that have studies behind them are marked further down.

The companion planting chart (21 crops)
The pairs come from ATTRA’s 2016 table. We only swapped the group names for plain ones (Allium = onion family, Brassicas = cabbage family) and left out the crops a home bed rarely has. A UC Master Gardener chart built on an older ATTRA version lists a few more conflicts, shown as “UC also lists” (UC Master Gardener chart).
| Crop | Plant together | Keep apart |
|---|---|---|
| Basil | Most vegetables | Rue |
| Beans, bush | Potato, cucumber, corn, strawberry, celery, summer savory | Onion family |
| Beans, pole | Corn, marigolds, summer savory, radish | Onion family, beets, kohlrabi, sunflower |
| Beets and chard | Cabbage family, onion family, lettuce | Pole beans |
| Cabbage family | Onion family, aromatic herbs, beets, celery, chamomile, chard, clover, spinach | Dill, pole beans, strawberries, tomato |
| Carrots and parsnips | Onion family, peas, lettuce, rosemary, sage, tomato | Dill, fennel |
| Corn | Beans, cucumber, peas, potato, pumpkin, squash | Tomato |
| Cucumber | Beans, cabbage, corn, peas, radish, sunflowers | Aromatic herbs, potato |
| Eggplant | Basil, beans, catnip, lemongrass, marigold | None listed |
| Fennel | Nothing | Everything |
| Lettuce | Carrot, cucumber, radish, strawberry | None listed |
| Melons | Amaranth, beans, chamomile, corn | Cabbage family |
| Onion family | Beets, cabbage family, carrot, lettuce, summer savory | None listed. UC also lists: beans, peas |
| Peas | Carrots, radish, turnip | None listed. UC also lists: onion family, gladiolus, potato |
| Peppers | Basil, clover, marjoram, tomato | Cabbage family |
| Potato | Basil, beans, cabbage family, horseradish, marigolds | None listed. UC also lists: pumpkin, squash, tomato, cucumber, sunflower |
| Radish | Cucumber, peas, lettuce, nasturtium | Potato |
| Spinach | Celery, fava bean, strawberry | Hyssop |
| Squash | Nasturtium, corn, marigold | None listed. UC also lists: potato |
| Strawberries | Borage, bush beans, lettuce, pyrethrum, caraway | Potato |
| Tomato | Onion family, asparagus, basil, carrot, cucumber, marigold, nasturtium, nettles, parsley, rosemary | Pole beans. UC also lists: corn, potato, fennel, cabbage family |
Who’s in each family. ATTRA’s notes put chives, garlic, leeks, onions, scallions and shallots in the onion family. The cabbage family covers arugula, bok choy, broccoli, Brussels sprouts, cabbage, cauliflower, collards, kale, kohlrabi, mustards, radish and turnip. ATTRA’s list also puts horseradish, mizuna and nasturtium in this group.
Peas in the chart are garden peas (ATTRA writes “English pea”). Potato means the common potato (“Irish potato” in the table), not sweet potato.
The pairs to keep apart
These are the conflicts that show up most often in the two charts. In a small bed, give each one at least one square of space or put the two crops in different beds.
- Beans and peas next to onions, garlic or leeks. ATTRA lists the onion family against both kinds of beans, and the UC chart adds peas. The evidence is thin: one small greenhouse study found wax beans grew less next to onions, while the pair together still made more growth for the space (Lin, 2015). See our companion planting layout for the evidence behind each pair.
- Tomatoes next to potatoes or the cabbage family. The tomato–potato conflict is on the UC chart. ATTRA’s newer table keeps tomato away from the cabbage family and adds pole beans.
- Cucumbers next to aromatic herbs or potatoes. If you grow basil, keep it on the tomato side of the bed.
- Carrots next to dill or fennel.
- Fennel next to anything. It’s the only crop in the table with “nothing” as companion. The tests we found are mostly on weeds: lab and pot trials (Ravlić et al., 2016) and one field survey in a fennel planting (Isfahan University of Technology thesis, which also tested sesame seeds in the lab). We found none on vegetables grown next to fennel in a garden.
- Peppers or melons next to the cabbage family. Radish counts as cabbage family in ATTRA’s notes.

What the research supports
Some pairings have studies behind them, but many don’t. Linda Chalker-Scott, an extension horticulturist at Washington State University, sums up her review this way: “Traditional ‘companion plant’ charts have entertainment, not scientific, value” (quoted in University of Arizona Backyard Gardener #254). ATTRA notes that some mid-20th-century recommendations were based on “sensitive crystallization” tests.
The chart is still a useful starting point, as long as you know which of its claims the studies back.
Supported by studies
- Trap crops. Collards planted near cabbage drew the diamondback moth away from the cabbage (Mitchell et al., 2000, cited by ATTRA). The trap crop is a plant the pest prefers, grown so it gets eaten instead.
- Beans with potatoes. In one trial, beans planted with potatoes didn’t shrink the tubers, while corn did. Corn, like potatoes, needs a lot of nitrogen, and beans fix their own (Manorama and Lal, 2010, cited by ATTRA).
- French marigolds with tomatoes in a greenhouse. Marigolds planted alongside tomatoes for the whole season slowed the growth of glasshouse whitefly populations, and the effect came from limonene in the air. Marigolds added after the whiteflies had built up did much less (Conboy et al., PLOS ONE, 2019). So plant them at the same time as the tomatoes instead of waiting for whiteflies to show up.
- Tall crops with low, shade-tolerant ones. Sharing space this way can give higher total yields from the same ground (ATTRA). Virginia Tech notes that lettuce may benefit from the cooler spot in the shade of a taller companion (Virginia Cooperative Extension).
- Mixed plantings in general. Crops of different heights, leaf shapes and colors “can confuse some insects” (Mississippi State University Extension). Washington State’s Chalker-Scott points to the green of non-host plants, not their smell, as what throws pests off (WSU Extension EM128E).
Mixed or limited
- Basil and marigolds against thrips on tomatoes. A few studies found fewer thrips.
- Marigolds, nasturtiums and onions in cabbage. They reduced cabbage loopers and imported cabbageworms in one study (Mississippi State).
- Leeks and chives near peppers. In a lab test, green peach aphids were repelled by chive odor and a leek extract, and the authors suggested growing them with sweet peppers (Amarawardana et al., 2007, cited by ATTRA). A later trial in Belgium, with peppers grown in tunnels, found that leeks planted alongside did not seem to change how the aphids built up on the peppers (Dendauw et al., 2022).
The first two results are encouraging but come from a handful of trials, and the leek idea worked in the lab but not in the one growing trial.
Doesn’t hold up the way it’s usually told
- Marigolds sprinkled among vegetables to stop root-knot nematodes. University of Florida researchers write that “Intercropping marigold with other crops to reduce plant-parasitic nematodes does not appear to be effective,” and that interplanting marigolds with crops the nematodes attack “is very risky.” Marigolds work against nematodes as a dense cover crop of a resistant variety, planted at least two months before the vegetable, in the same spot (UF/IFAS ENY-056).
- Strong-smelling herbs that repel pests. Aromatic plants like mint repel some insects in lab tests, but “field research has not borne out this belief for mint or any other aromatic species” (WSU Extension EM128E).
- The Three Sisters as a yield booster. Corn, beans and squash are a traditional Native American planting, and each plays a role: corn holds up the beans, beans fix nitrogen, squash shades the soil (ATTRA). Chalker-Scott found “no compelling, published evidence that it benefits plant productivity or soil quality” (WSU). Grow it for its history if you like; the studies don’t point to a bigger harvest.
One conflict is real: black walnut. Its roots and leaves release juglone, which slows the growth of many other plants (ATTRA). Don’t put a vegetable bed under or right next to one.

A 4×8 raised bed with the companions in place
This 4×8 ft plan fits 239 plants of 11 crops in 32 squares, with tomatoes, peppers and cucumbers along the north edge. The bed is split in two halves on purpose: the onion family and basil stay on the west side, and the beans and cucumbers stay on the east side. No onion square touches a bean square, and no basil square touches a cucumber square.
Rows run from 1 (north edge) to 4 (south edge). Columns A to H run west to east. Put a trellis or netting along the north edge of the east half for the cucumbers, and stake the tomatoes.

A 4×8 bed with the companions in place. 1 square = 1 ft. Onion family and basil on the west half, beans and cucumbers on the east half. Square foot spacing: plants per square as in the table.
- 2 Tomatoes1 per square
- 2 Peppers1 per square
- 4 Cucumbers1 per square
- 8 Basil4 per square
- 12 Marigolds4 per square
- 27 Bush beans9 per square
- 48 Carrots16 per square
- 48 Onions16 per square
- 4 Parsley4 per square
- 64 Radishes16 per square
- 20 Lettuce4 per square
| Row | A | B | C | D | E | F | G | H |
|---|---|---|---|---|---|---|---|---|
| 1 (north) | Tomato (1) | Tomato (1) | Pepper (1) | Pepper (1) | Cucumber (1) | Cucumber (1) | Cucumber (1) | Cucumber (1) |
| 2 | Basil (4) | Marigold (4) | Basil (4) | Marigold (4) | Bush beans (9) | Bush beans (9) | Bush beans (9) | Marigold (4) |
| 3 | Carrots (16) | Onions (16) | Carrots (16) | Parsley (4) | Radishes (16) | Lettuce (4) | Radishes (16) | Lettuce (4) |
| 4 (south) | Onions (16) | Carrots (16) | Onions (16) | Lettuce (4) | Lettuce (4) | Radishes (16) | Lettuce (4) | Radishes (16) |
The totals: 2 tomatoes, 2 peppers, 4 cucumbers, 8 basil, 12 marigolds, 27 bush beans, 48 carrots, 48 onions, 4 parsley, 64 radishes and 20 lettuce.
Why each square is where it is:
- West half, the tomato side. Tomatoes sit with basil, marigolds, carrots, onions and parsley, all on their companion list in the chart. Peppers go with basil and tomato. Carrots and onions alternate like a checkerboard, since each is on the other’s list.
- East half, the cucumber side. Cucumbers sit with beans and radishes, both on their list. Lettuce goes with radishes and cucumbers. Bush beans get a marigold at the end of their row, and no onions nearby.
- North edge for the tall crops. That way they don’t shade the short ones (Rutgers FS129).
- Marigolds from the start. In the greenhouse study above, they helped most when they went in with the tomatoes.
Plants per square come from the UC Master Gardeners square foot chart: 1 tomato, pepper or cucumber; 4 lettuce, basil, marigold or parsley; 9 bush beans; 16 carrots, radishes or onions. Where each crop goes is our own layout, built from the pairs in the chart.
Timing in the same bed. Lettuce and radishes are cool-season crops: they can go in anytime from several weeks to a couple of months before your last frost date. Tomatoes, peppers, cucumbers and beans are warm-season crops, planted after the last frost date (Penn State Extension). Basil and marigolds go in with the tomatoes. Radishes are ready in about 25 to 30 days, so sow one square at a time, a week or so apart (Nebraska Extension). When a radish square is done, resow it or fill it with more lettuce.
For more beds, our raised bed garden layout plans and small vegetable garden layouts use the same grid.
How to use the chart in your own bed
- Start with the crops you’ll actually eat. List them, then look up each one in the chart.
- Mark the conflicts first. Beans and onions, tomatoes and potatoes, cucumbers and strong herbs. Put those in different halves of the bed or in different beds.
- Put the tall crops on the north side. Tomatoes, peppers on stakes, and anything on a trellis.
- Fill in with companions. Low crops like lettuce, carrots and radishes go in front of the tall ones.
- Plant the marigolds when you plant the tomatoes.
- Don’t count on the chart for pest control. It’s a guide for arranging the bed. For a pest problem, ask your state’s Cooperative Extension office.
FAQ
What vegetables should not be planted together?
The most-repeated conflicts in the two charts are beans or peas with the onion family, tomatoes with potatoes, cucumbers with aromatic herbs and potatoes, carrots with dill, and fennel with almost anything (ATTRA; UC Master Gardeners).
What are the best companion plants for tomatoes?
ATTRA’s chart lists the onion family, asparagus, basil, carrot, cucumber, marigold, nasturtium, nettles, parsley and rosemary. French marigolds have the clearest study behind them on this list: grown with tomatoes all season, they slowed whiteflies in a greenhouse study (Conboy et al., 2019).
Do marigolds really keep pests away?
In part. They slowed whiteflies on greenhouse tomatoes when planted at the start. Against root-knot nematodes, marigolds scattered among vegetables don’t appear to work; they need to be grown as a dense cover crop of a resistant variety at least two months before the crop (UF/IFAS).
Which herbs are good companions?
In the chart, basil goes with most vegetables, parsley with tomatoes and asparagus, and rosemary and sage with carrots. Aromatic herbs belong near the cabbage family but away from cucumbers. Keep dill away from carrots and the cabbage family, and fennel away from everything.
Does companion planting work in a raised bed?
The same pairs apply. In a 4×8 bed, the simple way to keep conflicts apart is to split the bed in two halves, as in the plan above.
When do I plant each crop?
It depends on your USDA zone and frost dates. Find your zone on the USDA Plant Hardiness Zone Map, then check your state’s Cooperative Extension planting calendar.
Sources
- Kuepper, G., Dodson, M. Companion Planting & Botanical Pesticides: Concepts & Resources (IP125). ATTRA, National Center for Appropriate Technology, July 2001, updated April 2016 by J. Duncan. https://www.ncat.org/wp-content/uploads/2025/12/companion-planting.pdf
- UC Master Gardener Program. Companion Planting Chart, from the Edible Landscaping Handbook, California Center for Urban Horticulture, UC Davis (original source ATTRA). https://ucanr.edu/sites/default/files/2023-09/388577.pdf
- Schalau, J. Companion Planting, Backyard Gardener #254. University of Arizona Cooperative Extension, Yavapai County, July 20, 2024. https://www.extension.arizona.edu/sites/default/files/2024-10/CompanionPlanting.pdf
- Chalker-Scott, L. Gardening with Companion Plants (EM128E). Washington State University Extension, December 2023. https://pubs.extension.wsu.edu/?p=11537
- Conboy, N. J. A., et al. Companion planting with French marigolds protects tomato plants from glasshouse whiteflies through the emission of airborne limonene. PLOS ONE 14(3): e0213071, 2019. https://doi.org/10.1371/journal.pone.0213071
- Amarawardana, L., et al. Olfactory response of Myzus persicae (Homoptera: Aphididae) to volatiles from leek and chive: potential for intercropping with sweet pepper. Acta Agriculturae Scandinavica, Section B 57(1): 87–91, 2007 (cited in ATTRA IP125). https://research.slu.se/en/publications/olfactory-response-of-myzus-persicae-homoptera-aphididae-to-volat/
- Dendauw, E., et al. Leek intercropped with sweet pepper in tunnels against the green peach aphid. VÉGÉPHYL, 7th Conference on Alternative Crop Protection Methods, Lille, March 2022 (paper in French). https://www.cra.wallonie.be/uploads/2022/09/delivrable-publication-scientifique-dendauw-et-al.pdf
- Lehigh County Master Gardeners. Cool-season vs. Warm-season Vegetables. Penn State Extension, updated June 24, 2024. https://extension.psu.edu/cool-season-vs-warm-season-vegetables
- Krueger, R., Dover, K. E., McSorley, R., Wang, K.-H. Marigolds (Tagetes spp.) for Nematode Management (ENY-056/NG045). University of Florida IFAS Extension. https://ask.ifas.ufl.edu/publication/NG045
- Collins-Smith, S. Companion Planting: Myth or Truth? Mississippi State University Extension. https://extension.msstate.edu/blog/companion-planting-myth-or-truth
- UC Cooperative Extension Master Gardeners of Tulare-Kings Co. How To: Square Foot Garden. https://www.ccfruitandnuts.ucanr.edu/sites/default/files/2021-01/342099.pdf
- Browning, S. Making the Most of a Small Garden Plot. Nebraska Extension in Lancaster County, April 2020. https://lancaster.unl.edu/making-most-small-garden-plot
- Settlage, K., Hessler, A. Vertical Gardening Using Trellises, Stakes, and Cages (HORT-189NP). Virginia Cooperative Extension, December 2022. https://pubs.ext.vt.edu/HORT/HORT-189/HORT-189.html
- Nitzsche, P., Reiners, S. Planning a Vegetable Garden (FS129). Rutgers NJAES Cooperative Extension, April 2020. https://njaes.rutgers.edu/FS129/
- USDA Agricultural Research Service. Plant Hardiness Zone Map. https://planthardiness.ars.usda.gov/