As an Amazon Associate I earn from qualifying purchases. This page may contain affiliate links.
Companion planting for tomato means placing plants next to your tomatoes that may help them grow better, deter pests, or attract beneficial insects, while keeping apart the crops that compete with or attract problems to them. Done well, it can make your bed more productive and reduce how often you reach for pest sprays. In this guide you will learn which plants pair well with tomatoes, which ones to avoid, how to lay out a bed, and the mistakes that cause companion plantings to fail.
Before you start, keep one point in mind: companion planting is supportive, not magic. Tomatoes still need full sun, consistent water, good soil and a sound watering and feeding routine. Think of companions as a helpful addition to those basics. For the groundwork, see Preparing Garden Soil for Planting: A Practical Guide, and for timing your whole season, Vegetable Gardening Basics: Planting to Harvest is a good reference.
How Companion Planting Works in a Tomato Bed
Companion planting works through a few mechanisms, and knowing which one is at play helps you choose the right partners. The three most common are pest confusion or repulsion (strong-smelling herbs and flowers that mask tomato scent or deter pests), attracting beneficial insects (flowers that draw hoverflies, lacewings and parasitic wasps that eat aphids and caterpillars), and physical or soil benefits (living groundcover that shades soil, legumes that add nitrogen, or taller plants that give light shade in hot climates).
Evidence for these effects varies. Some pairings have solid field observations behind them, while others rest mainly on long-standing gardening practice. Treat the list below as a set of well-tested starting points and watch your own bed to see what works in your climate.
Tomato Companion Plants That Work Well
Basil
Basil is the classic partner. Its strong aroma is thought to confuse some pests, and many gardeners plant it at the base of tomatoes for this reason. Set basil 12 to 18 inches from tomato stems so it has room to grow, and pinch flower heads to keep the leaves coming. You will also have basil on hand for the kitchen.
Marigolds
French marigolds (Tagetes patula) are widely recommended near tomatoes. Their roots are reported to suppress some root-knot nematodes, and their blooms attract hoverflies and other beneficial insects. Plant them along the border or interspersed at about one plant per two or three tomatoes. Note that the nematode benefit is modest and depends on the species and variety, so do not rely on marigolds alone for a serious nematode problem.
Carrots, Onions and Garlic
Carrots, onions and garlic take up little space at the tomato base and make efficient use of the bed. Onions and garlic are often said to deter aphids and some other pests, while carrots loosen the soil beneath the tomatoes. Sow carrots in a band 4 to 6 inches from the tomato stem, and interplant onions or garlic at 4 to 6 inches apart in the same zone.
Nasturtiums
Nasturtiums are a trap crop. Aphids often prefer them to tomatoes, so colonies gather on the flowers and can be removed or left for ladybugs. They also flower over a long season. Plant them along the edge of the bed, roughly 12 inches from the nearest tomato.
Borage
Borage produces abundant blue flowers that draw bees and hoverflies. It self-seeds readily, so cut it back before it sets seed if you want to limit spread. Give it a corner of the bed or the path edge, not the tomato root zone, because its large leaves shade plants.
Bush Beans and Peas
Legumes add nitrogen to the soil through root nodules. Bush beans work well beside tomatoes because they stay low and do not compete for light. Keep them 8 to 12 inches from the tomato row so the beans are not crowded.
Parsley and Dill
Flat-leaf parsley and dill bring in beneficial insects, including parasitic wasps. Dill can grow large, so place it at the end of the row. Allow a few plants to flower for the best insect habitat.
Plants to Keep Away From Tomatoes
Some plants compete hard for water and nutrients, host shared diseases, or attract pests that also feed on tomatoes. Keep these at a distance.
- Potatoes: Share early blight, late blight and Colorado potato beetle relatives. Plant them in a separate bed.
- Fennel: Releases compounds that can inhibit tomato growth. Grow it in its own space.
- Cabbage family (broccoli, kale, cauliflower): Heavy feeders that compete for nutrients, and they share pests such as cabbage worms and aphids with tomatoes.
- Corn: Attracts corn earworm, which also feeds on tomato fruit. Corn also shades tomatoes heavily.
- Walnut trees: Not a crop, but their roots release juglone, which is toxic to tomatoes. Keep tomatoes well away from the drip zone.
Step-by-Step: Planning a Tomato Companion Bed
Step 1: Choose Your Layout
Plan rows or a grid with the tomatoes as the anchor. Most indeterminate tomatoes need 24 to 36 inches between plants and 3 to 4 feet between rows if you are walking the bed. Determinate and dwarf varieties can sit closer, around 18 to 24 inches apart. Mark the tomato positions first, then fit companions into the open zones around them.
Step 2: Match Companions to Their Zones
Use the table below to decide placement. Keep tall or vining plants on the north side of the bed in the Northern Hemisphere so they do not shade the tomatoes.
| Companion | Main benefit | Suggested distance from tomato stem | Placement note |
|---|---|---|---|
| Basil | Aroma may deter pests | 12 to 18 inches | Pinch flowers regularly |
| French marigold | Attracts beneficial insects | 12 to 24 inches | Border or interplant |
| Carrot | Loosens soil, uses little space | 4 to 6 inches | Sow in a narrow band |
| Garlic or onion | May deter aphids | 4 to 6 inches | Plant in the root zone gaps |
| Nasturtium | Trap crop for aphids | 12 inches | Edge of the bed |
| Bush bean | Adds nitrogen | 8 to 12 inches | Keep low, avoid shading |
Step 3: Prepare the Soil
Companions still need good soil. Work in 2 to 3 inches of compost before planting, and mulch the bed with straw or shredded leaves after the soil warms. Mulch keeps moisture even, which helps prevent blossom end rot.
Step 4: Plant at the Right Time
Set tomato transplants out after the last frost date, when nights stay above about 50°F. Sow basil and beans after that point too, since both are frost-tender. Carrots, onions and nasturtiums can go in earlier or at the same time, depending on your region. Check your local frost dates before planting.
Step 5: Water and Feed Each Plant Separately
Tomatoes want deep, consistent watering, usually about 1 to 2 inches per week. Companions with different needs, such as beans or herbs, can be watered at the same time, but avoid overwatering the basil and marigolds in wet soil. A drip line or soaker hose along the row makes this easier.
Step 6: Monitor and Adjust
Scout the bed weekly. Check the undersides of leaves for aphids, look for hoverflies and lacewings, and note which companions are thriving. If nasturtiums are covered in aphids but the tomatoes are clean, the trap is working. Remove heavily infested flowers or let ladybugs do the work.
Common Mistakes With Companion Planting for Tomato
- Overcrowding. Companions squeezed too close to tomatoes compete for water and light. Keep to the distances in the table.
- Expecting a cure. Marigolds do not eliminate nematodes, and basil does not stop a bacterial infection. Use companions as one tool among crop rotation, resistant varieties and sanitation.
- Planting shade-casters on the south side. Corn, pole beans and sunflowers can block the sun your tomatoes need.
- Ignoring the potato family. Shared diseases spread easily. Rotate tomatoes and potatoes to separate beds each year.
- Letting borage and dill seed everywhere. Both self-seed aggressively. Deadhead them if you want to control spread.
- Mixing up watering needs. Basil dislikes soggy soil, while tomatoes need steady moisture. Group plants by water needs when possible.
Tips for Better Results
- Plant flowers that bloom at different times so beneficial insects have food from early summer to frost.
- Rotate companion placement each season, not just the tomatoes.
- Keep a simple garden journal noting which pairings looked healthiest. Your local conditions matter more than any list.
- Use companions to fill gaps, not to replace the basics of sun, water and feeding.
Recommended gear
A few supplies make companion beds easier to manage. A drip line keeps water at the root zone of tomatoes and companions alike, and a soil thermometer helps you time planting for basil and beans. Use a garden journal or labeled stakes to track placements and results from season to season. Organic mulch such as straw holds moisture and suppresses weeds around the whole bed.
- Drip irrigation kit: keeps water at the roots and off the leaves, which reduces disease pressure. View on Amazon
- Soil thermometer: helps confirm soil is warm enough for basil and beans. View on Amazon
- Garden plant labels: help you track companion placements over time. View on Amazon
- Straw mulch: moderates soil temperature and moisture around tomatoes. View on Amazon
FAQ
Does basil really help tomatoes grow better?
Basil is widely recommended beside tomatoes, and many gardeners report fewer pest problems when they plant it nearby. Its effect on pests is plausible but not strongly proven, so treat it as a helpful companion rather than a guaranteed fix.
How far apart should companion plants be from tomatoes?
Most companions do best 4 to 18 inches from the tomato stem, depending on their size. Root vegetables like carrots can sit close, while basil and marigolds need more room to avoid competing for light and water.
Can I plant tomatoes and peppers together?
Tomatoes and peppers are both nightshades, share many pests and diseases, and need similar conditions. They can grow in the same garden, but it is better to keep them in separate spots and rotate them each year.
Do marigolds stop nematodes in tomato beds?
Certain marigold species, particularly French marigold, may reduce some root-knot nematode populations, but the effect is modest and inconsistent. Marigolds are better viewed as one part of a larger plan that includes crop rotation and resistant varieties.
What should I never plant near tomatoes?
Avoid fennel, which can suppress tomato growth, and keep potatoes and brassicas out of the bed because of shared diseases and competition for nutrients. Walnut trees should also be kept far away because of juglone in their roots.
Is companion planting worth it in a small raised bed?
Yes, especially in small beds where space is limited. Low companions like carrots, garlic and nasturtiums fit well in the gaps and add pest control and variety without crowding tomatoes.
When should I plant companions with tomatoes?
Plant tomatoes after your last spring frost, when nights are reliably above about 50°F. Frost-tender companions like basil and beans should go in at the same time. Hardy companions such as carrots and onions can be planted a bit earlier.
Conclusion
Companion planting for tomato is a practical way to attract helpful insects, reduce some pest pressure and make better use of every square foot. Start with a few well-supported partners like basil, marigolds, garlic and nasturtiums, and keep them at the right distances. Avoid the potato family, fennel and brassicas near your tomatoes, and keep watering, feeding and rotation sound. Track what works in your own bed, and your results will improve each season.