Companion plants that grow well with tomatoes
The best plants to grow alongside tomatoes in a raised bed are ones that don't compete for the same nutrients, don't shade the tomato plant, and ideally help it thrive. Basil is the strongest choice — it repels some common tomato pests and its shallow roots won't interfere with tomato roots. Carrots, onions, and garlic grow downward while tomatoes grow upward, so they share the bed without crowding. Parsley and marigolds also work well; marigolds deter certain insects, and parsley takes up minimal space.
Avoid planting brassicas (cabbage, broccoli, kale) or fennel near tomatoes — they compete for nutrients and can stunt growth. Don't plant potatoes in the same bed; they're in the same plant family and share the same pests and diseases. Corn and tomatoes also compete for nitrogen, so keep them separate.
Key Takeaways
- Basil, carrots, onions, and garlic are safe to plant directly alongside tomatoes without reducing yield.
- Marigolds and parsley take up little space and can help deter pests that damage tomato plants.
- Avoid brassicas, potatoes, fennel, and corn in the same raised bed as tomatoes.
- Space companion plants so tomato roots have room to spread and the plant receives at least six to eight hours of direct sun daily.
How to arrange companions in a raised bed
In a standard 4-by-8-foot raised bed, plant tomatoes in the center or back row where they'll get full sun without shading shorter plants. Space tomato plants 24 to 36 inches apart, depending on the variety — determinate (bush) types need less space than indeterminate (vining) types. Once tomatoes are placed, fill the remaining space with companions that won't grow taller than the tomato canopy.
Plant basil, parsley, and marigolds around the edges or between tomato plants. Carrots and onions can fill gaps along the perimeter since their foliage stays low. If you're using stakes or cages for tomatoes, keep companion plants at least 12 inches away so you have room to work without damaging them. Water all plants together — tomatoes and most companions prefer consistent moisture, though onions and garlic tolerate drier soil.
Basil as a tomato companion
Basil is the most practical companion for tomatoes because it thrives in the same conditions: warm soil, full sun, and regular watering. Plant basil seedlings or seeds after the soil has warmed and all frost danger has passed — usually the same time you'd transplant tomatoes. Space basil 6 to 12 inches from the tomato stem, depending on the basil variety. Sweet basil stays compact; Thai or African Blue basil grows larger and may need more distance.
Basil flowers attract pollinators, which improves fruit set on tomatoes. Some gardeners report that basil's scent masks tomato plants from certain pests, though this isn't scientifically proven. What is certain is that basil won't compete with tomatoes for nutrients or water, and you can harvest leaves continuously throughout the season. If basil flowers appear, pinch them off to keep the plant bushy and productive.
Root vegetables that share space without competing
Carrots, beets, and radishes grow downward while tomatoes grow upward, making them ideal bed-mates. Plant carrot seeds directly into the soil between tomato plants — they germinate in 7 to 10 days and mature in 60 to 80 days depending on variety. Radishes are faster, ready in 25 to 30 days, so you can succession-plant them every two weeks for a continuous harvest. Beets take 50 to 70 days and need slightly more space (4 to 6 inches apart) than carrots (2 to 3 inches apart).
These root crops don't shade tomatoes or pull nitrogen from the upper soil layers where tomato roots feed. Water them when you water tomatoes, but don't overwater — carrots and beets prefer soil that dries slightly between waterings, while tomatoes like consistent moisture. Thin seedlings as they grow so each plant has room to develop a full root. Thinned seedlings are edible in salads, so nothing goes to waste.
Herbs and flowers that deter pests
Marigolds are often planted near tomatoes because their scent may repel spider mites, whiteflies, and some nematodes. Plant marigold seedlings 12 inches apart around the bed's edge. They bloom continuously in warm weather and require minimal care — just deadhead spent flowers to keep them blooming. Parsley also works well; it's a biennial that takes up little space and attracts beneficial insects like hoverflies, whose larvae eat aphids.
Nasturtiums are another option if you have room — they're edible, pretty, and some gardeners use them as a trap crop, planting them nearby so aphids feed on the nasturtium instead of the tomato. However, nasturtiums can sprawl and may shade tomatoes if not managed. Stick with basil, marigolds, and parsley if space is tight. All three are low-maintenance, don't compete with tomatoes, and provide something you can harvest or enjoy visually.
Plants to keep out of the tomato bed
Potatoes and tomatoes are both nightshades and share the same pests — early blight, late blight, and the Colorado potato beetle. Planting them together increases disease pressure and pest damage on both crops. Brassicas (cabbage, broccoli, Brussels sprouts, kale) compete heavily with tomatoes for nitrogen and can reduce tomato yield by up to 30 percent if planted in the same bed. Fennel releases a chemical that inhibits tomato growth, so keep it at least 3 feet away.
Corn and tomatoes both need high nitrogen and will starve each other if planted together. Dill, another herb, can also inhibit tomato growth and should be planted elsewhere. Peppers are in the same family as tomatoes and can share some pests, so if you're growing peppers, give them their own bed or space them far enough apart that you can manage pests independently. Cucumbers and squash sprawl and will shade tomatoes if not carefully trellised away from them.
Watering and feeding companions together
Most tomato companions — basil, carrots, onions, parsley, and marigolds — tolerate the same watering schedule as tomatoes: deep watering once or twice a week rather than daily sprinkles. This consistency makes it straightforward to manage a mixed bed. Water at the soil level in the morning to keep foliage dry and reduce disease. Avoid wetting basil and parsley leaves if possible, as they're prone to fungal issues when wet.
Fertilize the bed before planting with compost or a balanced fertilizer mixed into the top 6 to 8 inches of soil. Once plants are growing, tomatoes are heavy feeders and will need supplemental nitrogen every three to four weeks — use a diluted liquid fertilizer or side-dress with compost. Companions like basil and parsley benefit from the same feeding, while root crops need less nitrogen. If you're using a tomato-specific fertilizer, it won't harm companions, but you can also use a general-purpose fertilizer at half strength to feed everything together.
Frequently Asked Questions
Can I plant lettuce or spinach with tomatoes?
Yes, but only early in the season. Lettuce and spinach need cooler temperatures and will bolt (flower and go bitter) once the tomato plant grows large and heats up the bed. Plant them in spring before tomatoes are full-sized, harvest them by early summer, and then use that space for basil or other heat-loving companions.
How much space do I need between a tomato plant and basil?
Plant basil at least 6 inches away from the tomato stem for sweet basil varieties, and 12 inches for larger types like Thai basil. This gives basil room to grow without competing for water and keeps it out of the way when you're pruning or staking the tomato.
Will marigolds really stop pests from eating my tomatoes?
Marigolds may reduce some pest pressure, but they're not a may provide. Their main benefit is attracting pollinators and looking nice. If you have a serious pest problem, you'll still need to monitor plants and use other methods like neem oil or insecticidal soap alongside companion planting.
What if my raised bed is very small?
In a small bed, plant one tomato and fill the rest with basil and one root crop like carrots. Basil and carrots take minimal space and won't compete. Skip marigolds and parsley if room is tight — they're nice to have but not essential.
Can I plant tomatoes and peppers in the same raised bed?
You can, but they're both nightshades and may attract the same pests. If you do plant them together, space them at least 18 inches apart so you can manage each plant independently if pests appear. It's safer to give them separate beds if you have the space.