Companion planting with tomatoes transforms your garden into a healthier, more productive space. The right plant neighbors repel harmful pests, attract beneficial insects, improve soil nutrients, and enhance tomato flavor. From basil and marigolds to carrots and nasturtiums, choosing the right companions while avoiding incompatible plants like fennel and corn can make or break your tomato harvest.
Key Takeaways
- Basil is the ultimate tomato companion — it repels aphids, whiteflies, and tomato hornworms while potentially improving tomato flavor.
- Marigolds protect against nematodes — their roots release a chemical that suppresses root-knot nematodes in the soil for years.
- Carrots and tomatoes share space well — carrots break up soil with their deep roots while tomatoes provide beneficial shade.
- Avoid planting tomatoes near fennel, corn, and potatoes — these plants compete for nutrients, attract shared pests, or stunt tomato growth.
- Flowers like nasturtiums and borage attract pollinators — more pollinators mean better fruit set and higher yields.
- Three-foot spacing minimum prevents overcrowding — even compatible plants need adequate air circulation to prevent fungal diseases.
- Succession planting extends your harvest window — interplanting quick-growing lettuce and radishes maximizes garden productivity.
📑 Table of Contents
Why Companion Planting Matters for Tomatoes
Tomatoes are heavy feeders that demand a lot from your soil and attract an impressive roster of pests. Hornworms, aphids, whiteflies, and spider mites all target tomato plants with frustrating regularity. Instead of reaching for chemical solutions, smart gardeners use companion planting — a time-tested strategy that works with nature rather than against it.
The concept is beautifully simple. Certain plants release natural chemicals, attract beneficial insects, or create physical barriers that help their neighbors thrive. When you understand what to plant with tomatoes, you create a mini ecosystem where plants support each other. Your tomatoes get better pest protection, improved pollination, and healthier soil — all without synthetic inputs.
Companion planting also maximizes every square foot of your garden. Rather than dedicating entire beds to a single crop, you layer plants with complementary growth habits and resource needs. This approach mimics natural plant communities and reduces the disease pressure that monocultures invite.
Best Companion Plants for Tomatoes
Basil: The Classic Tomato Partner
No discussion of what to plant with tomatoes is complete without basil. This aromatic herb repels aphids, whiteflies, and tomato hornworms through its strong essential oils. Many experienced gardeners swear basil improves the flavor of nearby tomatoes, though science hasn’t fully confirmed this claim. Either way, you’ll harvest two kitchen staples from the same space.
Plant basil 10 to 12 inches from your tomato stems. Both plants enjoy consistent moisture and full sun. Pinch basil flowers regularly to keep the plant bushy and productive throughout summer.
Marigolds: Nature’s Pest Shield
French marigolds (Tagetes patula) deserve a spot in every tomato bed. These cheerful flowers release alpha-terthienyl from their roots, a compound that suppresses root-knot nematodes — microscopic soil pests that damage tomato roots and reduce yields. The effect persists in soil for several years after marigolds are grown.
Beyond nematode control, marigolds deter whiteflies with their pungent scent. Plant them as a border around your tomato bed or intersperse them between plants. Space marigolds 8 to 10 inches apart for dense coverage.
Carrots: Underground Allies
Carrots and tomatoes make surprisingly good neighbors. Carrot roots penetrate deep into soil, breaking up compacted layers and improving water infiltration. Tomatoes, with their shallower but extensive root systems, occupy a different soil zone and don’t compete directly. Tomatoes also provide light shade that keeps carrot roots cool during hot spells.
Direct-sow carrot seeds 3 to 4 inches from tomato stems. Choose shorter varieties like ‘Paris Market’ or ‘Chantenay’ if your soil is heavy. Thin carrot seedlings to 2 inches apart once they reach 2 inches tall.
Herbs That Boost Tomato Growth
Oregano and Thyme: Ground Cover Protectors
Low-growing herbs like oregano and thyme create living mulch around tomato plants. They suppress weeds, retain soil moisture, and attract hoverflies — whose larvae devour aphids. These Mediterranean herbs prefer well-drained soil and won’t compete aggressively with tomato roots.
Plant oregano or thyme 12 to 18 inches from tomato stems. Both are perennial in zones 5 through 9, returning year after year with minimal care. Trim them back in early spring to encourage fresh growth.
Parsley: Pollinator Magnet
Parsley attracts predatory wasps and hoverflies that feed on tomato hornworms and aphids. Plant it near tomatoes to recruit these natural pest controllers. Flat-leaf Italian parsley tends to be more flavorful and vigorous than curly varieties.
Parsley is biennial — it produces leaves the first year and flowers the second. Allow some plants to overwinter for early spring blooms that bring beneficial insects into your garden when tomatoes are just going in the ground.
Flowers That Protect and Beautify
Nasturtiums: Sacrificial Trap Crops
Nasturtiums serve double duty in the tomato garden. Aphids prefer nasturtiums over tomatoes, drawing pests away from your valuable crop. Meanwhile, nasturtium flowers attract pollinators and predatory insects. Both the flowers and leaves are edible, adding a peppery kick to summer salads.
Plant nasturtiums 12 to 18 inches from tomatoes. They thrive in poorer soil — too much nitrogen produces lush foliage with few flowers. Trailing varieties can be trained up tomato cages for vertical interest.
Borage: The Tomato Super Companion
Borage deserves far more attention than it receives. This blue-flowered herb attracts pollinators like few other plants — a single borage plant can host hundreds of bees during its bloom period. More pollinators visiting your tomato flowers means better fruit set and higher yields.
Borage also deters tomato hornworms and improves the overall vigor of nearby plants. It’s a large plant, reaching 2 to 3 feet tall, so position it 2 to 3 feet from tomatoes to prevent shading. Borage self-seeds readily, so you’ll have volunteers returning each spring.
What NOT to Plant with Tomatoes
Knowing what to avoid matters as much as knowing what to include. Some plants actively harm tomato growth through chemical competition, shared pest attraction, or resource depletion.
Fennel: The Garden Bully
Fennel releases allelopathic chemicals from its roots and leaves that inhibit the growth of nearby plants, including tomatoes. Most gardeners should avoid planting fennel within several feet of tomatoes. If you love fennel, grow it in a separate container or distant corner of the garden.
Corn: Shared Pest Problems
Corn earworms and tomato fruitworms are the same pest — Helicoverpa zea. Planting corn near tomatoes creates a continuous habitat that allows this pest to build devastating populations. Keep corn and tomatoes in separate garden areas to break the pest cycle.
Potatoes: Disease and Competition Risks
Potatoes and tomatoes belong to the same family (Solanaceae) and share susceptibility to blight, a devastating fungal disease that can wipe out both crops within days in wet conditions. They also compete heavily for the same soil nutrients. If you’re already tending tomato plants, you might wonder how often to water tomato plants — the answer becomes even more critical when potatoes nearby could spread blight through splashing water.
Designing Your Tomato Companion Garden
Thoughtful layout maximizes the benefits of companion planting. Place taller companions like sunflowers or dill on the north side of tomato beds to prevent shading. Low-growing herbs and flowers work best along bed edges or between tomato plants. Leave 3 feet between tomato plants for adequate air circulation — this spacing alone prevents many fungal problems.
Consider succession planting to extend your harvest. Quick crops like lettuce, spinach, and radishes can fill space around young tomato plants in spring. By the time tomatoes need the room in midsummer, these early crops are finished. For more ideas on maximizing garden space, explore what to plant in raised beds — many of the same principles apply to in-ground tomato beds.
Rotate your tomato location each year, even with companion planting. A three-year rotation breaks pest and disease cycles more effectively than any single-season strategy. Keep records of what grew where to plan future seasons.
Common Mistakes and How to Avoid Them
Misconception: Many gardeners believe any plant combination works as long as both species are “companion plants.” In reality, timing, spacing, and local conditions determine success. Basil helps tomatoes only when planted early enough to establish before pest pressure builds.
Mistake 1: Overcrowding companions. Even beneficial plants compete for water and nutrients if packed too tightly. Fix: Maintain minimum spacing — 10 inches for basil, 12 inches for marigolds, 18 inches for borage.
Mistake 2: Ignoring water needs. Tomatoes need deep, consistent watering while many Mediterranean herbs prefer drier conditions. Fix: Group plants by water requirements. Place oregano and thyme at bed edges where soil dries faster; keep basil closer to tomatoes where moisture is more consistent. Proper pruning tomato plants also improves air circulation and reduces water stress.
Mistake 3: Planting too late. Companion plants need time to establish before they provide benefits. Fix: Plant companions at the same time as tomatoes or 1 to 2 weeks earlier. This gives them a head start on pest protection.
Conclusion
Understanding what to plant with tomatoes transforms your garden from a collection of individual plants into a cooperative community. Basil repels pests, marigolds protect roots, carrots improve soil structure, and flowers bring pollinators in abundance. By avoiding incompatible companions like fennel, corn, and potatoes, you eliminate problems before they start.
Start small this season. Add basil and marigolds to your tomato bed, observe the results, and expand your companion planting repertoire over time. Your tomatoes — and your entire garden — will reward you with healthier plants, fewer pests, and more abundant harvests.
Sources
- Cornell University Cooperative Extension
- Rodale Institute Organic Gardening Research
- National Gardening Association
- University of California Agriculture and Natural Resources
- Almanac.com Growing Guides
Frequently Asked Questions
What is what to plant with tomato?
what to plant with tomato is an important topic with many practical applications.