Companion plants that grow well with tomatoes
Tomatoes grow best alongside plants that don't compete for the same nutrients or space, and some actually help tomatoes thrive. Basil is the classic pairing—it repels certain insects and many gardeners swear the flavor improves when grown nearby. Carrots, onions, and garlic take nutrients from different soil layers than tomatoes, so they coexist without strain. Marigolds deter pests like whiteflies and spider mites. Parsley and cilantro are shallow-rooted herbs that won't interfere with tomato roots.
Leafy greens like lettuce, spinach, and arugula grow in the shade cast by tomato plants, making efficient use of vertical space. Borage attracts pollinators and beneficial insects. Nasturtiums act as a trap crop—pests prefer them to tomatoes, so they draw aphids away. All of these can share a raised bed without robbing tomatoes of water or nutrients.
Key Takeaways
- Basil, carrots, onions, and garlic are proven companions that either repel pests or use different soil depths than tomatoes.
- Leafy greens and shallow-rooted herbs like lettuce and parsley grow in tomato shade and don't compete for root space.
- Marigolds, nasturtiums, and borage attract beneficial insects or draw pests away from your tomato plants.
- Avoid planting brassicas (cabbage, broccoli, kale) and fennel in the same bed, as they inhibit tomato growth.
- Space plants so tomatoes have room to grow tall and air can circulate around their stems to prevent disease.
Plants to avoid near tomatoes
Brassicas—cabbage, broccoli, kale, and cauliflower—release compounds that slow tomato growth. They also attract similar pests and diseases, so clustering them together increases problems for both. Fennel actively inhibits tomato development and should not share a bed. Potatoes are susceptible to the same late blight disease as tomatoes, so planting them together spreads infection risk.
Corn and dill can work in theory but often cause practical problems in a raised bed. Corn grows tall and shades tomatoes heavily, and dill attracts hornworms—the same pest that devastates tomatoes. If space is tight, skip both. Peppers are in the same family as tomatoes and compete for identical nutrients, so they're better in a separate bed if you have the room.
How to arrange tomatoes and companions in a raised bed
Plant tomatoes on the north or taller side of the bed so they don't shade shorter companions as they grow. Space tomato plants 24 to 36 inches apart, depending on the variety—check your seed packet. This leaves room for basil, parsley, or carrots to tuck in between without crowding.
Use the edges and corners for shallow-rooted plants like lettuce and spinach. They'll mature and be harvested before tomatoes reach full size, freeing space if you need it. Marigolds and nasturtiums can line the perimeter. Leave at least 6 inches between any plant and the tomato stem so air flows freely around the base—this reduces fungal disease.
If your bed is 4 feet by 8 feet, you can fit three to four tomato plants with room for herbs, greens, and flowers. A 4-by-4 bed works better with two tomato plants and companions. Avoid overcrowding; a plant that touches another plant on all sides won't dry properly after rain or watering.
Timing: when to plant companions with tomatoes
Plant basil, parsley, and cilantro at the same time as tomatoes or just after, once soil has warmed. These herbs grow quickly and won't shade young tomato seedlings. Carrots, onions, and garlic can go in earlier—they germinate in cooler soil and will be established before tomatoes demand full sun.
Lettuce, spinach, and arugula can be planted in spring alongside tomatoes, then replanted in late summer for a fall crop after tomatoes slow down. Marigolds and nasturtiums are best direct-seeded or transplanted after the last frost, when soil is warm. If you're starting with seedlings from a nursery, they're ready to plant whenever tomatoes are.
Watering and feeding companions alongside tomatoes
Tomatoes need consistent moisture—about 1 to 2 inches per week depending on heat and rainfall. Most companion plants have similar water needs, which makes them good matches. Basil, lettuce, and herbs prefer soil that stays evenly moist but not waterlogged. Carrots and onions are more drought-tolerant once established, so they won't suffer if tomatoes get extra water.
Tomatoes are heavy feeders and benefit from compost mixed into the bed at planting and a balanced fertilizer every few weeks. Basil and parsley respond well to the same feeding schedule. Lettuce and greens need less nitrogen than tomatoes, so they won't be over-fertilized by tomato feeding. Carrots and onions actually prefer leaner soil, so they'll thrive without extra fertilizer beyond what's in the bed.
Pest and disease management in a mixed bed
Planting companions reduces pest pressure but doesn't eliminate it. Basil and marigolds help, but you'll still need to watch for hornworms, aphids, and whiteflies on tomatoes. Check plants twice a week, especially the undersides of leaves where pests hide. Remove pests by hand or spray with insecticidal soap if populations grow.
Disease spreads faster in crowded beds with poor air circulation. Space plants generously and prune lower tomato leaves once the plant is 12 inches tall—this keeps foliage off soil where fungal spores live. Water at the base of plants in the morning, not overhead, so leaves dry quickly. If one plant shows signs of blight or wilt, remove it before disease spreads to companions.
Frequently Asked Questions
Can I plant tomatoes with cucumbers in the same raised bed?
Cucumbers and tomatoes have different water and nutrient needs, and cucumbers sprawl or climb aggressively, shading tomatoes. They're better in separate beds. If space is limited, plant cucumbers on a trellis on the south side and tomatoes on the north, with at least 3 feet between them.
Is it okay to plant basil right next to the tomato stem?
Basil can grow within 6 to 12 inches of the tomato stem, but not touching it. Leave a small gap so air circulates and you can water and prune without damaging either plant. Basil stays low and won't shade the tomato as it grows tall.
What if my raised bed is very small—can I still plant companions?
In a 2-by-2-foot bed, one tomato plant with a single basil plant is the realistic limit. In a 4-by-4 bed, two tomatoes plus herbs and greens work well. Prioritize basil and marigolds over other companions if space is tight—they offer the most benefit in the smallest footprint.
Can I plant tomatoes with beans in a raised bed?
Bush beans are fine companions—they fix nitrogen in the soil, which tomatoes use. Pole beans can work if trellised on the opposite side of the bed from tomatoes, but they'll compete for vertical space. Bush beans are the easier choice for a mixed bed.
Should I remove companion plants before tomatoes get big?
Harvest lettuce, spinach, and greens as they mature—this happens before tomatoes reach full size, so you're not removing anything. Basil and herbs can stay all season. Marigolds and nasturtiums stay until frost. Only remove a companion if it's clearly shading tomatoes or showing disease.