Basil, carrots, and marigolds are the best companions for tomatoes because they improve soil, repel pests, or attract beneficial insects
Tomatoes grow stronger when planted near certain vegetables and flowers. Companion planting — growing compatible plants close together — can reduce pest damage, improve flavor, and make better use of garden space. The plants that work best with tomatoes either keep harmful insects away, draw beneficial ones in, or use different soil nutrients so they do not compete.
The three most reliable companions are basil (which repels flies and mosquitoes), carrots (which do not compete for nutrients and can break up soil), and marigolds (which deter nematodes and other root pests). Parsley, borage, and nasturtiums also perform well. Avoid planting tomatoes near brassicas like cabbage or broccoli, fennel, or potatoes, as these either compete for the same nutrients or attract the same pests.
Key Takeaways
- Basil planted within 12 inches of tomato stems repels flies, mosquitoes, and some beetles while improving the flavor of both plants.
- Carrots, parsley, and borage do not compete with tomatoes for nitrogen and can be planted in the same bed without reducing tomato yield.
- Marigolds and nasturtiums attract beneficial insects and repel root nematodes, which are common tomato pests in warm soil.
- Keep tomatoes away from potatoes, cabbage, fennel, and other brassicas because they attract the same pests or deplete the same nutrients.
Basil: The Best Herb Companion for Tomatoes
Basil is the most effective herb to plant with tomatoes. It repels whiteflies, spider mites, and mosquitoes — all of which can damage tomato leaves and fruit. Plant basil seedlings 12 inches away from the tomato stem, or sow seeds directly into the soil at the same time you transplant tomatoes. Basil prefers the same warm, sunny conditions as tomatoes, so it will thrive in the same spot.
Beyond pest control, basil and tomatoes are culinary partners. Growing them together makes it convenient to harvest both for salsa, pasta sauce, or fresh dishes. Basil also grows quickly — you can pick leaves within 4 to 6 weeks of planting — so it fills space while tomatoes are still establishing roots.
Carrots, Parsley, and Root Vegetables That Share Space
Carrots and parsley are safe to plant directly beneath or beside tomato plants because they use different soil depths. Tomatoes draw nitrogen from the upper 12 to 18 inches of soil, while carrot roots extend deeper and do not compete. Parsley is shallow-rooted and takes minimal nutrients, making it an efficient use of space in a tomato bed.
Radishes work the same way and mature in 25 to 30 days, so you can harvest them before tomato plants need the full bed. Onions and garlic are also compatible — they repel some spider mites and do not interfere with tomato growth. Space these plants 6 to 8 inches from the tomato stem to avoid crowding.
Flowers That Attract Beneficial Insects and Repel Pests
Marigolds are the most popular flower to plant with tomatoes because they repel root-knot nematodes, which are microscopic pests that damage tomato roots in warm climates. Plant marigolds around the perimeter of the tomato bed or between plants, spacing them 12 inches apart. They bloom continuously through the growing season and require minimal water or fertilizer.
Nasturtiums serve a similar purpose and have the added benefit of attracting aphids away from tomatoes — the pests prefer nasturtium leaves and will feed there instead. Borage flowers attract pollinators and parasitic wasps, which lay eggs in tomato hornworms and other caterpillars. Calendula (pot marigold) also draws beneficial insects and can be harvested for tea or salve.
Plants to Keep Away from Tomatoes
Potatoes and tomatoes are both nightshades and attract the same pests, especially the Colorado potato beetle and early blight fungus. Plant potatoes at least 3 feet away from tomatoes, or grow them in a separate bed. Cabbage, broccoli, and other brassicas compete with tomatoes for nitrogen and attract cabbage moths, which can spread to nearby plants.
Fennel releases a chemical that inhibits tomato growth and should not be planted in the same bed or even nearby. Corn can shade tomatoes if planted on the north side, and tomatoes can shade corn if planted on the south side — space them at least 4 feet apart. Avoid planting tomatoes near walnut trees, as the tree's roots release a toxin that stunts tomato growth.
How to Arrange Companion Plants in Your Tomato Bed
Plant basil and marigolds closest to the tomato stem — within 12 inches — where they can repel pests most effectively. Place carrots, parsley, and other root vegetables in the same row, spaced 6 to 8 inches from the tomato. Nasturtiums and borage can go at the edges of the bed or between rows, where they will not shade the tomato plant as it grows.
In a raised bed or container, arrange plants so taller ones (tomatoes) are on the north or west side and shorter companions (basil, marigolds) are on the south or east side. This prevents shading and allows air to circulate, which reduces fungal disease. Space plants according to their mature width — basil spreads 12 to 18 inches, carrots need 3 to 4 inches, and marigolds need 12 inches.
Timing: When to Plant Companions with Tomatoes
Plant basil and marigolds at the same time you transplant tomato seedlings into the garden, usually after the last frost date in your area. Both are warm-season plants and will not survive frost. Carrots, parsley, and radishes can be sown directly into the soil 1 to 2 weeks before tomato transplants go in, so they have a head start.
If you are planting tomatoes in spring and want to extend the season, sow basil seeds indoors 6 to 8 weeks before your last frost date and transplant them alongside tomatoes. For fall gardens, start basil and marigold seeds in late summer so they are ready when you plant fall tomato varieties. Nasturtiums and borage can be sown directly into the soil in spring or early summer.
Frequently Asked Questions
Can I plant tomatoes and basil in the same pot?
Yes, if the pot is at least 18 inches deep and 24 inches wide. Plant the tomato in the center and basil seedlings around the edge, 12 inches away from the stem. Water regularly because containers dry out faster than garden beds. A single basil plant per pot is usually enough; more than one will compete for water.
Do I need to plant companions if I use pesticides?
Companion planting works best in organic gardens where you are not spraying chemicals. If you use pesticides, the spray will kill beneficial insects that companions attract, so the benefit is reduced. However, basil still repels some pests through its natural oils, and marigolds still deter nematodes through their roots, so they can still help even with pesticide use.
What if I plant tomatoes near the wrong plant by accident?
Remove the incompatible plant as soon as you notice it. If it is already established, dig it out carefully to avoid disturbing the tomato roots. Potatoes and fennel are the most harmful, so prioritize removing those. Brassicas and corn will reduce tomato yield but will not kill the plant, so you can remove them gradually as space opens up.
Can I plant the same companions every year in the same spot?
Yes, but rotate the location of your tomato bed every 2 to 3 years to prevent soil depletion and disease buildup. Basil, marigolds, and carrots can be planted in the same spot year after year without harm. Parsley is a biennial, so it may return the second year if left unharvested, which is fine — just thin seedlings if they become crowded.