Companion plants that grow well with tomatoes
Tomatoes grow best alongside plants that either repel pests, improve soil, or use different space in the garden. The most reliable companions are basil, carrots, marigolds, and parsley. Basil planted near tomato stems deters flies and mosquitoes while flavoring dishes made with the same tomatoes. Carrots grow below the soil while tomatoes grow above it, so they do not compete for space or light. Marigolds release a scent that repels aphids and spider mites, two pests that damage tomato leaves and fruit. Parsley attracts beneficial insects that prey on tomato pests.
Other plants that pair well with tomatoes include borage, garlic, onions, and nasturtiums. Borage flowers attract pollinators and predatory wasps that hunt tomato hornworms. Garlic and onions repel spider mites and some fungal diseases. Nasturtiums act as a trap crop — pests prefer them to tomatoes, so they draw damage away from your main plants. All of these can be planted in the same bed or in containers nearby.
Key Takeaways
- Basil, carrots, marigolds, and parsley are the most effective companions because they repel pests, use different soil layers, or attract beneficial insects.
- Avoid planting tomatoes near brassicas (cabbage, broccoli, kale), fennel, or potatoes, as these compete for nutrients or attract the same pests.
- Space companion plants so they do not shade the tomato plant or crowd its roots — most companions should be at least 12 inches away.
- Borage, garlic, onions, and nasturtiums also work well and can be planted in the same bed or in nearby containers.
- Companion planting reduces the need for pesticides and can improve tomato yield and flavor.
Plants to keep away from tomatoes
Brassicas — cabbage, broccoli, kale, and cauliflower — should not be planted near tomatoes. Both families compete heavily for nitrogen and potassium in the soil, and planting them together weakens both crops. Brassicas also attract some of the same pests as tomatoes, so grouping them together increases pest pressure on both plants.
Fennel should be kept away from all garden plants, including tomatoes. Fennel releases a chemical into the soil that inhibits the growth of nearby plants. Even fennel planted in a separate bed can slow tomato growth if their roots extend into shared soil. Potatoes are another poor choice because they attract the same pests as tomatoes — particularly the Colorado potato beetle and early blight fungus — and sharing space increases disease risk for both crops.
How spacing affects companion planting success
Companion plants work best when they are spaced far enough apart that they do not compete for water, nutrients, or light. Basil and parsley should be planted at least 12 inches away from the tomato stem. Carrots can be closer — 6 to 8 inches — because they grow downward and do not shade the tomato plant. Marigolds and nasturtiums can be planted around the perimeter of the tomato bed, 12 to 18 inches from the main plant.
If you are growing tomatoes in containers, companion plants can be placed in separate pots nearby or in the same large container if there is room. A 5-gallon container can hold a tomato plant and a basil plant if they are on opposite sides. Larger containers — 10 gallons or more — can accommodate a tomato, basil, and a trailing nasturtium without crowding. Check that the tomato plant receives at least 6 to 8 hours of direct sun daily, and do not let companion plants shade it.
Companion plants for specific tomato problems
If aphids are a recurring problem in your garden, plant marigolds, nasturtiums, and garlic near tomatoes. If spider mites damage your plants year after year, add basil, garlic, and onions to the bed. For hornworms, borage and parsley attract the parasitic wasps that lay eggs in hornworm bodies and kill them from inside.
If fungal diseases like early blight or powdery mildew are common in your area, garlic and onions may reduce infection rates. Neither prevents disease entirely, but both have mild antifungal properties. Improving air circulation by spacing plants properly and removing lower tomato leaves also reduces fungal problems more effectively than companion plants alone.
Herbs and vegetables that thrive alongside tomatoes
Herbs are among the best companions because they occupy little space and serve double duty in the kitchen. Basil is the most popular, but oregano, thyme, and dill also grow well nearby. Oregano and thyme are perennials that come back year after year, so you can plant them once and leave them in place. Dill attracts beneficial insects and can be harvested for cooking or left to flower and seed.
Vegetables that pair well include lettuce, spinach, and Swiss chard. These leafy greens grow in the shade cast by tomato plants, making use of space that would otherwise be bare soil. They mature faster than tomatoes, so you can harvest them before the tomato plant grows large enough to shade them completely. Radishes also work because they mature in 3 to 4 weeks and can be pulled before they interfere with tomato roots.
Container gardening with tomato companions
Container gardening makes companion planting easier because you control the soil, spacing, and moisture for each plant. A tomato plant in a 5-gallon pot can be paired with basil in a 1-gallon pot placed nearby on the same shelf or table. This arrangement lets you water each plant according to its needs — basil prefers slightly drier soil than tomatoes — and move pots if one plant is shading another.
For a mixed container, use a pot at least 10 gallons in size and fill it with potting soil rather than garden soil. Plant the tomato in the center and basil or parsley around the edge. Add marigolds or nasturtiums to the outer rim. Water the entire container when the top inch of soil feels dry, and fertilize every 2 to 3 weeks because container plants exhaust soil nutrients faster than in-ground plants. This setup works well on patios, balconies, or small yards where garden space is limited.
Frequently Asked Questions
Can I plant tomatoes next to peppers?
Yes. Peppers and tomatoes are both nightshades and have similar growing needs, so they do not compete heavily. They attract some of the same pests, but not enough to cause problems if you monitor both plants. Plant them at least 18 inches apart so air can circulate around both.
Will companion plants reduce the need for pesticides?
Companion plants can reduce pest pressure, but they rarely eliminate it entirely. Basil and marigolds may lower aphid numbers by 30 to 50 percent, depending on the year and your local pest population. For severe infestations, you will still need to spray or use other control methods. Companion planting works best as one part of a larger pest management plan.
What if I plant companions too close to the tomato?
Crowded plants compete for water and nutrients, and the tomato may produce fewer or smaller fruits. If companions shade the tomato plant, it will flower less and ripen fruit more slowly. If you notice stunted growth or yellowing leaves, move the companion plant farther away or remove it entirely.
Can I plant the same companion every year in the same spot?
Yes, but rotating crops every 2 to 3 years is better for soil health. Planting basil next to tomatoes year after year is fine, but moving basil to a different bed every few years prevents soil depletion and reduces the buildup of pests specific to that location.