Tomato benefits significantly from companion planting. The plant's main challenges — Tomato Hornworm and Aphids pressure, and the pollination needs that drive fruit set — are directly addressed by the right neighboring plants. Below are the companions with the strongest evidence, their specific benefits, recommended spacing, and the plants to keep tomato away from.

Companion Planting for Tomatoes
Published: April 21, 2026

Best Companions for Tomatoes
| Companion | Benefit | Spacing |
|---|---|---|
| Basil | Repels whiteflies, aphids, and spider mites; may improve tomato flavor | 12–18 in |
| Marigold | Root secretions kill soil nematodes; deters whitefly and aphids above ground | 12 in |
| Carrot | Loosens soil near tomato roots; attracts parasitic wasps | 6 in |
| Parsley | Attracts hoverflies that eat aphids; shade-tolerant ground cover | 8–12 in |
| Borage | Attracts pollinators; said to improve tomato and strawberry flavor | 18–24 in |
Plants to Avoid Near Tomatoes
| Avoid | Reason |
|---|---|
| Potato | Same family (Solanaceae) — share blight and pest pressure; compete for nutrients |
| Fennel | Releases allelopathic compounds toxic to most vegetables; grow in isolation |
| Mature Dill | Young dill is beneficial; mature dill cross-pollinates with carrots and inhibits tomatoes |
| Corn | Heavy feeder that competes with tomatoes; attracts earworm that also damages tomatoes |
Tomatoes in a Raised Bed — Layout
In a 4×8 raised bed, plant 2 to 3 tomato plants 24 inches apart in the center-back row. Put basil at the front edges 12 to 18 inches from tomato stems — close enough for the scent-masking effect but not crowding the tomato root zone. Add marigolds at the four corners to deter soil nematodes across the whole bed. Reserve the front row for carrots or parsley, which share the soil without competing for the same root depth.
When to Plant Companions with Tomatoes
Plant basil at the same time as tomato transplants — both need soil above 60°F and consistent warmth for establishment. Marigolds and other flowering companions can be started from seed 4 weeks earlier indoors, then transplanted at the same time as the main crop. Legume companions like bush beans direct-sow 1 week after last frost; nitrogen fixation does not start for 3 to 4 weeks, so timing them just ahead of peak tomato demand works best. Fast-crop companions (radish, lettuce) can be direct-sown between transplants the same day for a 30 to 45 day harvest before the main crop fills in.
Companion Planting & Tomato Pest Control
Tomato’s most common pests — Tomato Hornworm, Aphids, Early Blight — are directly addressed by the right companions. Basil repels whiteflies, aphids, and spider mites; may improve tomato flavor. Marigold adds a second defense — root secretions kill soil nematodes; deters whitefly and aphids above ground. These effects are strongest when the companion is planted within 18 inches of the main crop, and when multiple companion species are layered together rather than used singly. Beneficial insects (hoverflies, parasitic wasps, ladybugs) drawn in by companion flowers provide additional control against aphids and caterpillars — flowering companions like dill, borage, and marigold all attract these predators.
Frequently Asked Questions
What is the best companion plant for tomato?
Basil is the best all-around companion for tomato — repels whiteflies, aphids, and spider mites; may improve tomato flavor. Plant basil 12–18 in from tomato for the strongest effect. Marigold is a close second — root secretions kill soil nematodes; deters whitefly and aphids above ground.
What should I not plant near tomato?
Avoid Potato and Fennel. Potato same family (solanaceae) — share blight and pest pressure; compete for nutrients. Keep these at least 6 feet from your tomato or plant them in a separate bed to avoid the competition and shared pest pressure.
Can I grow tomato and potato in the same garden?
Yes, in separate beds. Potato and tomato same family (solanaceae) — share blight and pest pressure; compete for nutrients, but placing them 6+ feet apart with a buffer of other crops usually prevents problems. Rotation is also important — don't plant the same family in the same bed two years in a row.
How far apart should companion plants be from tomato?
Pest-deterrent companions like basil work within 12 to 18 inches of tomato. Nitrogen-fixing legumes work at 18 to 24 inches. Trap crops (nasturtiums, for example) need 18+ inch spacing so pests congregate on the trap rather than the main crop. Flowering companions for pollinator attraction can be anywhere in the bed — their bee-attracting effect reaches 10 to 20 feet.
Does companion planting help with tomato hornworm on tomato?
Yes, for the specific companions that target Tomato Hornworm. Basil and Marigold are documented tomato hornworm deterrents and should be planted within 18 inches of tomato. Companion planting is one part of integrated pest management — combine it with floating row covers during peak tomato hornworm season and hand-picking for best results.