Companion plants grow well alongside tomatoes and can improve your harvest
Certain plants thrive when grown near tomatoes and actually help them produce better fruit. These companion plants work by attracting helpful insects, repelling pests, improving soil, or using garden space efficiently. Basil, carrots, marigolds, and parsley are among the most reliable choices for tomato gardens. Planting them together takes no extra effort—they straightforward occupy the same bed and support each other's growth.
The key is spacing: give each plant enough room so roots don't compete for water and nutrients, and so air can flow between leaves to prevent disease. Most companion plants sit 12 to 18 inches from the tomato stem, depending on their mature size.
Key Takeaways
- Basil planted near tomatoes repels common pests and is ready to harvest at the same time as your fruit.
- Root vegetables like carrots and beets grow underground and don't compete with tomato roots for space or nutrients.
- Marigolds and nasturtiums attract beneficial insects and trap pests that would otherwise damage tomato leaves.
- Herbs like parsley and oregano improve soil health and can be harvested throughout the growing season alongside tomatoes.
- Avoid planting brassicas (cabbage, broccoli) and fennel near tomatoes, as they inhibit growth and attract overlapping pests.
Herbs that grow well with tomatoes
Basil is the most popular tomato companion. It repels spider mites, whiteflies, and hornworms—three of the most damaging tomato pests. Plant basil 12 inches from the tomato stem. Both plants mature at roughly the same time (60 to 80 days), so you harvest them together. Basil also improves tomato flavor when grown nearby, though the reason is debated among gardeners.
Parsley and oregano grow slowly and stay low, so they won't shade the tomato plant. Both attract hoverflies and parasitic wasps, which prey on aphids and other soft-bodied pests. Plant them 10 to 12 inches away. Parsley takes 70 to 90 days to mature; oregano is perennial and will return year after year if you live in a mild climate.
Chives and garlic release sulfur compounds that deter spider mites and some fungal diseases. Plant chives 8 inches away; garlic cloves go in 6 inches away. Garlic matures in spring or early summer (depending on when you plant), so it often finishes before tomatoes begin, freeing up space.
Vegetables and root crops to plant near tomatoes
Carrots and beets grow underground and don't compete with tomato roots, which spread horizontally near the soil surface. Plant carrots 6 inches from the tomato stem; they take 60 to 80 days to mature. Beets mature in 50 to 70 days and can be harvested early as greens if you need space. Both improve soil structure as their roots break up compacted earth.
Lettuce and spinach thrive in the partial shade cast by a mature tomato plant. They mature in 30 to 50 days, so you can harvest them and replant before the tomato plant reaches full size. Plant them 12 inches away to avoid root competition early on. These leafy greens don't attract tomato pests and won't shade the plant while it's young.
Radishes mature very quickly (25 to 30 days) and break up soil as they grow. Plant them 4 inches from the tomato stem and harvest them before the tomato plant needs the space. Radishes also trap flea beetles, which would otherwise damage young tomato leaves.
Flowers that protect tomatoes from pests
Marigolds are the most widely recommended tomato companion. They release a scent that repels spider mites, whiteflies, and some nematodes in the soil. Plant them 12 inches away. Marigolds bloom continuously from planting until frost, so they provide pest protection all season. They also attract pollinators, which improves fruit set.
Nasturtiums act as a trap crop: pests prefer them to tomatoes, so they concentrate on the nasturtium leaves instead. Plant them 18 inches away or even farther, at the edge of the bed. Nasturtiums also attract hoverflies and parasitic wasps. The flowers and leaves are edible and add a peppery taste to salads.
Borage attracts bees and other pollinators, which increases tomato fruit set. It also repels tomato hornworms. Plant it 18 inches away; borage grows tall and bushy, so give it space. The flowers are edible and taste like cucumber.
Plants to keep away from tomatoes
Some plants actively harm tomato growth or attract the same pests. Brassicas—cabbage, broccoli, cauliflower, and kale—compete with tomatoes for nitrogen and release compounds that inhibit tomato root growth. Keep them at least 3 feet away, or plant them in a separate bed.
Fennel inhibits the growth of most garden plants, including tomatoes. It also attracts the same pests. Avoid planting it anywhere near the tomato bed. Potatoes are susceptible to early and late blight, fungal diseases that also affect tomatoes. If one plant catches the disease, it spreads to the other. Plant potatoes at least 4 feet away.
Corn and tomatoes attract the same hornworm species, so planting them together concentrates the pest problem. Keep corn at least 3 feet away. Dill attracts hornworms and can stunt tomato growth, so avoid it in the tomato bed.
How to space companion plants in a tomato bed
Tomato plants need 24 to 36 inches between stems, depending on the variety. Determinate (bush) tomatoes need less space; indeterminate (vining) tomatoes need more. Measure from the center of the tomato stem outward when placing companions.
Tall companions like borage and nasturtiums go on the north side of the bed so they don't shade shorter plants. Low growers like parsley and chives go on the south side. Root crops like carrots and beets can go anywhere, since they don't compete for light. Succession-plant fast growers like lettuce and radishes every two to three weeks so you have continuous harvests.
Water all plants together, but check soil moisture before watering—tomatoes prefer soil that dries slightly between waterings, while lettuce and spinach prefer consistent moisture. A drip line or soaker hose lets you water deeply without wetting leaves, which reduces fungal disease.
Timing: when to plant companions with tomatoes
Plant basil, marigolds, and other warm-season companions at the same time as tomato transplants, after the last frost date. Cool-season crops like lettuce, spinach, and radishes can go in at the same time, but they'll mature and be harvested before the tomato plant reaches full size. In hot climates, plant a second round of cool-season crops in late summer for a fall harvest.
Garlic and onions are planted in fall (October or November in most regions) and mature in spring or early summer, so they finish before tomatoes begin. Perennial herbs like oregano and chives can stay in the bed year after year if your climate allows, or be replanted each spring.
Frequently Asked Questions
Can I plant tomatoes and basil in a container together?
Yes. Use a container at least 18 inches wide and 12 inches deep. Plant the tomato in the center and basil 6 inches away at the edge. Water regularly because containers dry out faster than garden beds. Pinch off basil flowers to encourage leaf growth and keep the plant compact.
Do companion plants actually improve tomato flavor?
Basil grown near tomatoes is said to improve flavor, though scientific evidence is limited. What is clear is that companion plants reduce pest damage and disease, which allows the tomato plant to put energy into fruit production rather than recovery. Healthy plants produce better-tasting fruit.
What if I don't have space for companion plants?
Companion planting is helpful but not required. Tomatoes grow fine alone. If space is tight, focus on the highest-impact companions: basil for pest control and marigolds for attracting pollinators. Both take up minimal space and deliver real benefits.
Can I plant tomatoes and peppers together?
Yes. Peppers and tomatoes have similar water and nutrient needs and don't compete for space if planted 24 inches apart. They attract some of the same pests, but companion plants like basil and marigolds protect both. Peppers mature later than tomatoes, so you'll harvest them separately.
Should I remove companion plants when I harvest tomatoes?
Not necessarily. Perennial herbs like oregano and chives stay in the bed. Annual herbs like basil and parsley can be pulled out or left to decompose and add organic matter to the soil. Fast-growing crops like lettuce and radishes are already harvested by the time tomatoes finish, so the space is already clear.