Companion plants improve tomato yield and reduce pests without chemicals
Planting certain vegetables, herbs, and flowers near tomatoes makes them grow stronger, produces more fruit, and keeps common pests away. Basil repels flies and beetles. Marigolds deter nematodes in the soil. Carrots and onions take up different soil nutrients, so they do not compete with tomato roots. Borage attracts pollinators. The right neighbours mean fewer problems and a larger harvest from the same garden space.
Companion planting works because different plants have different root depths, nutrient needs, and natural pest defences. A tomato plant draws nitrogen and potassium from the top and middle soil layers. A carrot pulls minerals from deeper down. Neither starves the other. At the same time, a basil plant releases oils that repel insects that would otherwise eat tomato leaves. You get the benefit of both plants' strengths in one bed.
Key Takeaways
- Basil, marigolds, carrots, onions, and borage are the most reliable companions for tomatoes and serve different purposes — pest control, pollinator attraction, or reduced competition for nutrients.
- Avoid planting brassicas (cabbage, broccoli, kale) and fennel near tomatoes because they release chemicals that slow tomato growth.
- Space companion plants so they do not shade the tomato plant or crowd its base, which can trap moisture and cause disease.
- Companion planting reduces the need for pesticides but does not replace watering, sunlight, and soil care as the foundation of a healthy tomato crop.
Basil: the strongest pest deterrent for tomatoes
Basil is the most effective companion for tomatoes. Plant it within 6 inches of the tomato stem, or in the same container if you are growing in pots. Basil leaves release a strong scent that repels whiteflies, spider mites, and hornworms — three of the most common tomato pests. The smell does not bother humans, but insects avoid it.
Basil also improves the flavour of tomatoes when grown side by side, though the reason is not fully understood. Many gardeners report that tomatoes taste sweeter when basil is nearby. Basil itself is ready to harvest in 6 to 8 weeks and grows to about 12 inches tall, so it will not shade your tomato plant if you keep it trimmed.
Plant basil after the last frost date in your area, the same time you would plant tomatoes. Both need warm soil and full sun. If you live in a cold climate, start basil indoors 6 weeks before your last frost date and transplant it outside at the same time as your tomatoes.
Marigolds for soil-dwelling pests
Marigolds kill nematodes — microscopic worms that live in soil and feed on plant roots. Tomatoes are especially vulnerable to root-knot nematodes, which cause lumpy, stunted roots and wilting leaves even when the soil is wet. Planting marigolds in the same bed for one season can reduce the nematode population significantly.
Plant marigolds around the perimeter of your tomato bed, about 12 inches away from each tomato plant. They grow 12 to 24 inches tall depending on the variety, so choose dwarf types if space is tight. Marigolds bloom from early summer until the first frost and need full sun and well-draining soil — the same conditions tomatoes prefer.
Marigolds also attract pollinators and look attractive in a garden bed. They are inexpensive to start from seed and require very little maintenance. Let some flowers go to seed at the end of the season, and you can collect the seeds for next year.
Carrots and onions: companions that do not compete
Carrots and onions grow well next to tomatoes because they use different parts of the soil. Tomato roots spread horizontally in the top 12 to 18 inches of soil. Carrot roots go straight down 8 to 12 inches. Onion roots stay shallow and clustered. All three can grow in the same bed without fighting for water or nutrients.
Plant carrots in rows between tomato plants, spacing them 2 to 3 inches apart. Carrots take 60 to 80 days to mature, so you can harvest them before they get large enough to shade the tomato plant. Onions take 100 to 120 days and grow upright, so they shade very little. Both have a strong smell that may deter some insects, though the effect is weaker than basil or marigolds.
Carrots and onions also give you a second harvest from the same garden space. If you have limited room, this is a practical way to grow more food in the same area.
Borage: bringing in pollinators
Borage is a tall herb with blue flowers that attract bees and other pollinators. More pollinators mean more flowers pollinated and more fruit set on your tomato plant. Borage grows 24 to 36 inches tall, so plant it on the north side of your tomato bed so it does not shade the tomatoes during the day.
Borage also repels hornworms and other large insects that chew tomato leaves. The plant is edible — the flowers taste like cucumber and are used in salads — so you get a second crop from the same space. Borage self-seeds readily, so one plant can produce many seedlings the following year.
Borage needs full sun and well-draining soil. It is drought-tolerant once established and requires very little maintenance. Start it from seed directly in the garden after the last frost date.
Plants to avoid near tomatoes
Brassicas — cabbage, broccoli, kale, and cauliflower — release compounds into the soil that inhibit tomato growth. Do not plant them in the same bed, and wait at least one year before planting tomatoes where brassicas grew. Fennel also slows tomato growth and should be kept at least 3 feet away.
Potatoes and tomatoes are both nightshades and share the same pests and diseases. Growing them together increases the risk that a pest or disease affecting one will spread to the other. Keep them in separate beds at least 10 feet apart.
Corn and tomatoes compete for nitrogen and space. If you grow corn, plant tomatoes in a different bed. Dill attracts hornworms, the same pest that damages tomatoes, so avoid planting it nearby.
Spacing and placement for healthy companion plants
Companion plants only work if they do not crowd the tomato plant or block its sunlight. Tomatoes need at least 6 to 8 hours of direct sun per day. Plant basil and other short companions within 6 to 12 inches of the tomato stem. Plant taller companions like borage on the north side of the bed so the sun reaches the tomato plant from the south and east.
Leave space around the base of the tomato plant — at least 12 inches in all directions — so air can circulate. Poor air circulation traps moisture and causes fungal diseases like early blight and septoria leaf spot. Companion plants should enhance the tomato plant's environment, not create damp pockets around its stem.
Water at the soil level, not on the leaves. Wet foliage is where fungal spores germinate. Companion plants should not prevent you from reaching the soil around the tomato plant's base with a soaker hose or drip line.
Companion planting is one tool, not a replacement for basics
Companion planting reduces pest pressure and makes better use of garden space, but it does not replace the fundamentals of tomato growing. Your tomato plant still needs 6 to 8 hours of direct sun, consistent watering (1 to 2 inches per week), and soil with organic matter worked in before planting.
Companion plants also do not prevent all pests or diseases. If you see signs of disease — yellowing leaves, dark spots, wilting despite wet soil — remove the affected leaves or plant and dispose of them. Do not compost diseased plant material. Inspect plants regularly so you catch problems early.
Companion planting is most effective when combined with crop rotation (not planting tomatoes in the same spot year after year), good air circulation, and proper watering. Use all these tools together for the best results.
Frequently Asked Questions
Can I plant basil and marigolds together with tomatoes in a container?
Yes. Use a container at least 18 inches wide and 12 inches deep for one tomato plant, one basil plant, and two to three marigold seedlings. Marigolds and basil need less root space than tomatoes, so they fit in the same pot. Water the container deeply when the top inch of soil feels dry. Container soil dries faster than garden soil, so check it daily in hot weather.
When should I plant companion plants relative to tomatoes?
Plant basil and borage at the same time as tomatoes, after the last frost date in your area. Plant marigolds, carrots, and onions at the same time or up to two weeks later. If you plant companions too early, they may be too large and shade the young tomato plant. If you plant them too late, they may not mature before the growing season ends.
Do companion plants work if I use pesticides?
Pesticides kill the beneficial insects that companion plants attract, so the two approaches work against each other. If you use pesticides, companion planting offers little benefit. If you want to use companion planting, avoid pesticides and rely instead on hand-picking large pests like hornworms and removing diseased leaves promptly.
Can I plant the same companion plants every year in the same spot?
Yes, but rotate your tomato plant to a different bed each year. Tomatoes deplete certain nutrients and can build up diseases in the soil. Moving tomatoes to a new location every year keeps the soil healthy. Companion plants can stay in the same bed or move with the tomato plant — either approach works.
What if I do not have space for companion plants?
Basil in a small pot next to the tomato plant still provides pest control. Even one basil plant makes a measurable difference. If space is very limited, focus on basil alone, as it is the most effective companion for the smallest footprint.