Basil is the strongest match for tomato plants
Basil grows well next to tomatoes because it repels insects that damage tomato leaves and fruit — mainly whiteflies and spider mites. The two plants also have similar water and sunlight needs, so you can plant them on the same schedule and water them together without one suffering. Basil reaches full size in 6 to 8 weeks, which means you can harvest it while your tomatoes are still growing, and the leaves are useful in the kitchen.
Plant basil 12 inches away from the tomato stem. If you're growing determinate tomatoes (the kind that fruit all at once), space basil between plants rather than directly beside them. For indeterminate varieties (which fruit over months), basil can go at the base of the stake or cage without competing for root space.
Key Takeaways
- Basil repels common tomato pests like whiteflies and spider mites while matching tomato water and sunlight needs.
- Carrots, onions, and parsley improve soil or deter pests without competing for nutrients that tomatoes need.
- Marigolds attract beneficial insects and can trap pests meant for tomatoes, reducing damage to the fruit.
- Avoid planting brassicas (cabbage, broccoli) or fennel near tomatoes because they compete for the same nutrients or release chemicals that slow tomato growth.
Carrots and onions work because they use different soil layers
Carrots grow downward into deep soil while tomato roots spread sideways in the upper 12 inches, so they don't fight for the same nutrients. Plant carrots 6 inches from the tomato stem and thin seedlings to 2 inches apart once they sprout. You'll harvest carrots in 60 to 80 days, well before tomato vines become thick enough to shade them.
Onions have the same advantage — their roots go down, tomato roots go out. Onions also release a smell that repels spider mites and some beetles. Plant onion sets (small bulbs) 4 inches from the tomato stem in early spring, and they'll be ready to harvest before summer heat peaks. Red and yellow onions work equally well; white onions are slower to mature and may still be growing when you need to clear the bed.
Marigolds trap pests and attract helpful insects
Marigolds draw in parasitic wasps and hoverflies — insects that eat aphids, whiteflies, and other pests that feed on tomato leaves. Marigolds also release a scent that confuses some beetles and moths, making it harder for them to find your tomatoes. Plant them 12 inches away in clusters of two or three rather than scattered singly, because grouped flowers attract more beneficial insects.
Marigolds bloom from planting until frost, so they'll flower the entire time your tomatoes are growing. They need less water than tomatoes, so plant them slightly uphill or to the side where they won't stay wet if you water heavily. Deadhead spent flowers (pinch them off) every week to keep new blooms coming.
Parsley and borage support tomato health in different ways
Parsley attracts swallowtail butterfly caterpillars, which eat aphids before they become a problem. It also has a shallow root system that doesn't compete with tomatoes, and it tolerates partial shade cast by tomato foliage. Plant parsley 10 inches from the stem; it takes 70 to 90 days to reach full size, so you can harvest leaves while tomatoes are still ripening.
Borage flowers attract bees, which pollinate tomato flowers and increase fruit set. The plant also accumulates potassium and calcium in its leaves — when borage dies back at the end of the season, you can chop it and work it into the soil to feed next year's tomatoes. Plant borage 18 inches away because it grows wide and bushy. It self-seeds, so you may see new plants the following year without replanting.
Plants to keep away from tomatoes
Brassicas — cabbage, broccoli, kale, and Brussels sprouts — compete with tomatoes for nitrogen and potassium. If you plant them together, both crops will be smaller and produce less. Keep brassicas at least 3 feet away, or plant them in a separate bed.
Fennel releases a chemical into the soil that slows tomato growth and can stunt nearby plants. It's one of the few herbs that actively harms tomatoes rather than straightforward not helping. Don't plant fennel anywhere in the tomato bed, and avoid it in the row directly upwind if you live in a windy area.
Potatoes are in the same plant family as tomatoes and attract the same pests — especially the Colorado potato beetle and early blight fungus. Growing them side by side increases the chance both crops will be infected. Plant potatoes in a different section of the garden, at least 4 feet away.
How to arrange companion plants in a tomato bed
If you're planting in rows, put basil or parsley at the base of each tomato plant, carrots or onions 6 to 8 inches to the side, and marigolds at the end of the row where they won't shade anything. This arrangement keeps shallow-rooted plants close and deep-rooted plants slightly farther out, so each one gets what it needs.
In a raised bed or container, plant the tomato in the center, ring it with basil 12 inches out, then place carrots or onions between the basil and the edge. Marigolds can go in the corners. This pattern works for beds 3 feet wide or larger; in smaller spaces, choose one or two companions rather than trying to fit them all.
Water all plants together in the morning, before the heat of the day. Companion plants don't change how often tomatoes need water — they just make better use of the space and reduce pest pressure while you're growing.
Frequently Asked Questions
Can I plant basil in a pot with a tomato plant?
Yes, if the pot is at least 5 gallons. Plant the tomato in the center and basil 6 inches to the side. Water both together, but check soil moisture daily because pots dry faster than garden beds. In very hot climates, the basil may wilt in afternoon sun even if soil is moist — move the pot to afternoon shade if that happens.
Do companion plants actually reduce pests, or is it just a theory?
Basil, marigolds, and borage do reduce some pests in real gardens, though the effect is stronger in some years and locations than others. They work best as part of a plan that includes removing damaged leaves, watering at soil level (not on foliage), and spacing plants for air flow. They're not a replacement for pest control, but they lower the number of insects you'll see.
What if I don't have space for companion plants?
Tomatoes grow fine alone. Companion plants make the bed more productive and reduce pest pressure, but they're not required. If space is tight, focus on good soil, consistent watering, and removing diseased leaves — those three things matter more than what grows nearby.
Can I plant herbs like oregano or thyme near tomatoes?
Yes. Oregano and thyme don't compete with tomatoes and don't harm them. They're less effective at repelling pests than basil, but they use less water and can grow in drier spots at the edge of the bed. Plant them 12 inches away and let them spread — they'll fill gaps between other plants.