Companion plants that grow well with tomatoes
Basil, carrots, parsley, and marigolds are the most reliable companions for tomato plants. Basil repels spider mites and whiteflies while improving the flavor of nearby tomatoes. Carrots don't compete for nutrients at the same soil depth, so they grow alongside tomatoes without slowing either plant. Parsley attracts beneficial insects that prey on tomato pests, and marigolds deter nematodes in the soil — a common problem in tomato beds.
Garlic and onions also work well near tomatoes because they repel aphids and spider mites without taking up much space. Plant them at the edge of your tomato bed or between plants. Nasturtiums act as a trap crop, meaning pests attack them instead of your tomatoes — you'll see the damage on the nasturtium leaves first, which tells you when to treat the bed.
Borage flowers attract pollinators and parasitic wasps that lay eggs in tomato hornworms, killing the larvae before they can damage fruit. The plant grows tall and can shade tomatoes in very hot climates, so plant it on the north side of your bed where it won't block afternoon sun.
Key Takeaways
- Basil and marigolds are the easiest companions to grow with tomatoes and both reduce pest pressure without extra work.
- Carrots and onions grow at different soil depths than tomatoes, so they don't compete for water or nutrients.
- Nasturtiums and borage attract beneficial insects or act as trap crops, reducing the number of pests that reach your tomatoes.
- Avoid planting brassicas (cabbage, broccoli, kale) and fennel near tomatoes because they inhibit growth or attract the same pests.
Plants to keep away from tomatoes
Brassicas — cabbage, broccoli, kale, and cauliflower — stunt tomato growth when planted nearby. The exact reason is not fully understood, but gardeners report consistent stunting when these plants share a bed. Keep them at least three feet away, or grow them in a separate section of your garden.
Fennel releases compounds into the soil that inhibit the growth of most vegetables, including tomatoes. Even fennel planted in a pot nearby can slow your tomato plants. If you want to grow fennel, give it its own space well away from the tomato bed.
Potatoes and tomatoes are both nightshades and attract the same pests — particularly the Colorado potato beetle and early blight fungus. Growing them together concentrates pest pressure and disease risk. Separate them by at least four feet, or better yet, plant potatoes in a different area of your garden.
How spacing affects companion planting success
Companion plants work best when they don't crowd your tomatoes or compete for light. Space basil and parsley six to eight inches from the tomato stem, leaving room for the tomato plant to grow outward as it matures. Carrots can be planted closer — two to three inches — because their roots grow straight down while tomato roots spread sideways.
Marigolds and nasturtiums should be planted at the edge of the bed or between tomato plants, not directly underneath. They need sun to flower and attract insects, so planting them in deep shade under tomato foliage reduces their effectiveness. A good rule is to plant them where they'll get at least four to six hours of direct sun.
If you're growing tomatoes in containers, space companion plants in separate pots rather than crowding them into the same soil. A five-gallon pot holds one tomato plant and one basil plant comfortably, but adding more creates root competition and reduces yields for both.
Timing: when to plant companions with tomatoes
Plant basil, parsley, and other herbs at the same time as your tomato seedlings, or wait until tomatoes are established and have their first true leaves. Starting them together gives basil time to grow and begin repelling pests before tomato plants are large enough to attract major pest pressure.
Carrots and onions can go in the ground two to three weeks before tomatoes if your soil is ready. They germinate in cooler soil than tomatoes need, so they'll be established by the time you transplant tomato seedlings. This also means they're already growing when tomatoes arrive, reducing competition for nutrients during the critical first weeks.
Marigolds and nasturtiums germinate quickly and can be direct-seeded into the bed at the same time as tomato transplants. If you're starting them indoors, begin seeds four to six weeks before your tomato transplant date so they're ready to go in the ground at the same time.
Companion planting in containers and raised beds
Container growing limits your options because root space is tight. A five-gallon pot works for one tomato and one basil plant. A ten-gallon container can hold one tomato, basil, and a small marigold. Anything larger than that and you're competing for water and nutrients, which slows both plants.
Raised beds give you more flexibility. A four-by-eight-foot bed can hold four tomato plants with basil between each one, marigolds at the corners, and carrots along the edges. This layout maximizes pest control while keeping each plant's root zone separate. Water the bed evenly — tomatoes need consistent moisture, and so do most companion plants.
In containers, use potting soil rather than garden soil. Garden soil compacts in pots and drains poorly. Potting soil drains faster, which means you'll water more often, but it also prevents root rot and gives companion plants room to establish themselves without competing for moisture.
Companion plants that improve soil for next season
Legumes like beans and peas fix nitrogen in the soil, but they're not ideal tomato companions because they grow tall and shade the plants. However, if you plant them at the north edge of your bed where they won't block afternoon sun, they'll add nitrogen to the soil while your tomatoes grow. The next season, that nitrogen boost helps whatever you plant in that spot.
Borage and nasturtiums add organic matter when you turn them into the soil at the end of the season. This improves soil structure and water retention, which tomatoes appreciate the following year. If you're planning a multi-year garden in the same bed, these plants are worth growing for their long-term benefit even if their when ready pest-control effect is modest.
Frequently Asked Questions
Can I plant tomatoes and basil in the same pot?
Yes, in a five-gallon pot or larger. Plant the tomato in the center and basil around the edge, leaving at least six inches between them. Water consistently because basil dries out faster than tomato soil. A ten-gallon pot gives you more room and reduces watering stress on both plants.
Do I have to use companion plants, or will tomatoes grow fine alone?
Tomatoes grow fine without companions, but companion plants reduce pest pressure and can increase yields. If you're already dealing with aphids or spider mites, adding basil or marigolds gives you a non-chemical way to manage them. They're optional, not required.
What if I plant something that slows my tomatoes — can I fix it?
Remove the problem plant as soon as you notice stunting. If you planted brassicas or fennel too close, pull them out and give tomatoes at least three weeks to recover before adding anything else to that spot. Stunting usually reverses once the competing plant is gone.
Can I plant lettuce or spinach with tomatoes?
Yes. Lettuce and spinach grow in the shade under tomato foliage and don't compete for nutrients. They mature faster than tomatoes, so you can harvest them and replant in the same space mid-season. This is an efficient use of garden space without pest or growth conflicts.
Should I plant flowers just for looks, or do they have to serve a purpose?
Flowers like marigolds and nasturtiums serve a pest-control purpose, but you can also grow ornamental flowers nearby if you want. Just keep them far enough away that they don't shade tomatoes or compete for water. A flower bed three feet away from your tomato bed adds color without affecting growth.