As an Amazon Associate I earn from qualifying purchases. This page may contain affiliate links.

Companion planting for veg means placing certain vegetables, herbs and flowers near each other so they support one another, whether by deterring pests, attracting pollinators, sharing space efficiently or improving the soil. Done well, it can reduce pest pressure, make better use of a small bed and help your crops grow with less intervention. This guide walks you through the principles, the best pairings, the combinations to avoid and how to lay out a bed that puts the idea into practice.

How Companion Planting Works in a Vegetable Garden

Most companion planting benefits fall into a few broad categories. Understanding these helps you judge advice you read elsewhere, because not every claimed pairing has solid support behind it. For a fuller definition, see Definition of Companion Planting: What It Means and How It Works.

Shopping for one? See our guide: Companion Planting with Pole Beans: 8 Best Supports, Companions and Tools (2026).

  • Pest suppression: Strong-smelling herbs or flowers can confuse or repel some insects, and certain plants draw predators that feed on pests.
  • Pollinator attraction: Flowering plants such as borage or calendula bring bees and hoverflies into the garden, which helps fruiting crops set more fruit.
  • Space efficiency: Tall crops can shade a bed’s surface, and quick-maturing crops can fill gaps between slower ones.
  • Soil and nutrient effects: Legumes fix nitrogen into the soil, which benefits heavy feeders planted nearby.
  • Physical support: Climbing beans can use corn stalks as a trellis, and low-growing plants can shade soil and reduce weeds.

The strength of evidence varies. Nitrogen fixation by legumes is well documented. Many pest-repelling claims rest on small studies or long gardening tradition, so treat them as worth trying rather than guaranteed.

Step-by-Step: Planning a Companion Planting Layout

Step 1: List What You Plan to Grow

Write down every crop you intend to plant, along with its mature height, spacing needs and days to harvest. Group them by role: tall or trellised crops, heavy feeders, light feeders, pest-deterring herbs and pollinator flowers.

Step 2: Match Heights and Sun Needs

Place taller plants on the north side of the bed in the Northern Hemisphere so they don’t shade shorter crops. A tomato trellised at 5 to 6 feet can easily shade a row of lettuce if it sits to the south. Basil and parsley, which tolerate partial shade, work well alongside taller plants.

Step 3: Pair Heavy Feeders With Nitrogen Givers

Heavy feeders such as tomatoes, corn, squash and brassicas need plenty of nitrogen. Bush beans or peas planted nearby, with their roots left in the soil at harvest, return nitrogen for the next crop. Our guide on Tomatoes and Corn Companion Planting: 10 Best Picks for Your Garden (2026) covers one of the classic partnerships in detail.

Step 4: Add Pollinator and Pest-Deterring Plants

Set aside a few spots for flowers and aromatic herbs. Marigolds, nasturtiums, dill, cilantro flowering for pollinators, and borage are common choices. Plant them at the ends of rows or between crops, not so densely that they compete for water.

Step 5: Plan Succession Timing

Companion benefits only help if the plants are growing at the same time. Stagger plantings so that quick crops like radishes and lettuce are harvested before slower neighbors need the space.

Proven Pairings for Common Vegetables

The table below summarizes widely used pairings. Treat it as a starting point and observe your own garden, since soil, climate and pest pressure vary.

Vegetable Good Companions Keep Apart From Main Reason
Tomato Basil, parsley, carrot, marigold Potato, fennel, brassicas Basil and marigold deter some pests; fennel inhibits growth
Onion Lettuce, carrot, beet, strawberry Peas, beans, sage Onions may deter some pests; legumes and onions inhibit each other
Pepper Basil, onion, carrot Fennel, beans Shared pest deterrence and compatible root zones
Potato Garlic, beans, marigold Tomato, squash, cucumber Garlic may deter some pests; shared blight risk with tomato
Lettuce Carrot, radish, strawberry, onion Cabbage family in close quarters Shade from taller neighbors helps lettuce bolt less
Zucchini Nasturtium, corn, beans Potato Nasturtium draws pollinators; corn provides structure

For more specific combinations, explore Companion Planting with Potatoes: 9 Best Plants and 5 to Avoid and Companion Planting with Peppers: 8 Best Plants and Pairings.

Designing Your Bed for Companion Planting

Raised beds make companion planting easier because you can plan exact zones. A four-by-eight-foot bed divided into square-foot grids lets you give each crop a defined area. Many gardeners use a simple block layout: tall crops along one edge, mid-height vegetables in the center and low crops or flowers at the front. For a bed-specific approach, see Raised Bed Garden Layout Companion Planting: 6 Best Setups for Home Gardens.

  1. Measure your bed and sketch it on graph paper at a scale of one square per square foot.
  2. Mark tall crops first, then fill in spacing for mid and low crops.
  3. Leave a foot-wide path where you can reach the center without stepping on soil.
  4. Label each zone with planting and harvest dates to track succession.

A few supplies make companion layouts easier to maintain.

  • Garden twine and stakes: Useful for supporting pole beans or tomatoes alongside corn or sunflowers, keeping crowded zones tidy. View on Amazon
  • Square-foot garden grid kit: Wooden or string grids help you space plants exactly and keep companion zones clear. View on Amazon
  • Marigold seed packets: Easy to start and widely used for pest-deterring borders in vegetable beds. View on Amazon
  • Soil thermometer: Helps you time sowings so companion crops overlap at the right moments. View on Amazon

Common Mistakes to Avoid

  • Overcrowding: Companion planting does not cancel out spacing rules. Crowded plants compete for water and nutrients and invite disease.
  • Trusting every pairing blindly: Many folk claims have little research behind them. Keep notes and judge results in your own beds.
  • Ignoring sun and water needs: A companion that needs shade placed beside a full-sun crop may struggle regardless of its benefits.
  • Mixing shared-disease crops: Tomatoes and potatoes both carry blight risk, so separating them is generally sensible.
  • Forgetting to rotate: Companion layouts still need annual rotation to prevent soil-borne disease buildup.

Tips for Better Results

  • Start with two or three pairings you are confident in, then expand.
  • Let a few flowers go to seed to attract beneficial insects and reseed themselves.
  • Mulch between plants to reduce weeds and conserve moisture.
  • Keep a garden journal so you can compare seasons and layouts.

FAQ

Does companion planting really work for vegetables?

Some benefits are well supported, such as legumes adding nitrogen and flowers attracting pollinators. Others, like certain pest-repelling claims, are less proven, so monitor your own results.

What is the best companion for tomatoes?

Basil, parsley and marigold are commonly recommended. Basil is often grown near tomatoes for both pest suppression and flavor pairing in the kitchen.

Which vegetables should never be planted together?

Onions and legumes such as peas and beans are often kept apart because they may inhibit each other. Potatoes and tomatoes should be separated due to shared disease risk.

Can companion planting work in containers?

Yes. Pair a tomato with basil in a large pot, or grow lettuce beneath a taller pepper. Make sure the container is large enough for both roots.

Do I need a raised bed for companion planting?

No, but raised beds make zoning and spacing easier to control, which simplifies planning.

How do I know if a companion pairing is failing?

Watch for stunted growth, yellowing, reduced fruit set or increased pest damage compared with a control row. Adjust the layout if you see consistent problems.

Should I rotate companion crops each year?

Yes. Rotating crop families is important for disease and soil health, even when companion layouts are in use.

Conclusion

Companion planting for veg is most useful when you combine clear goals with careful spacing and rotation. Start with a few well-supported pairings such as tomatoes with basil and beans with corn, then observe how your plants respond. Over a few seasons, your notes will show which combinations suit your garden best.