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 and parsley do not compete for the same soil nutrients, so they can grow in the same bed without slowing either plant. Marigolds deter nematodes — microscopic pests that damage tomato roots — and their bright flowers also attract pollinators that help tomato flowers set fruit.
Garlic, onions, and chives work as pest deterrents without taking up much space. Plant them at the edge of your tomato bed or between plants. Borage attracts bees and hornworms' natural predators, which means fewer hornworms on your tomatoes. Nasturtiums act as a trap crop — pests prefer them to tomatoes, so they draw insects away from your main plants.
Key Takeaways
- Basil, carrots, and parsley grow alongside tomatoes without competing for nutrients or water.
- Marigolds, garlic, and onions repel common tomato pests like nematodes, spider mites, and whiteflies.
- Borage and nasturtiums attract beneficial insects or draw pests away from tomato plants.
- Avoid planting tomatoes near brassicas (cabbage, broccoli) and fennel, which inhibit tomato growth.
Plants that harm tomatoes and should be kept separate
Cabbage, broccoli, cauliflower, and other brassicas release compounds into the soil that slow tomato growth. If you grow both in the same garden, space them at least three feet apart or plant them in different beds. Fennel is especially problematic — it secretes a substance that actively stunts tomato development, so keep it out of the tomato bed entirely.
Potatoes and tomatoes are both nightshades and attract the same pests and diseases. Planting them near each other increases the risk that a disease affecting one will spread to the other. Kohlrabi also inhibits tomato growth through root competition and chemical interference. Dill can attract hornworms, which feed heavily on tomato foliage, so plant it away from your tomato bed.
How to arrange companion plants in your tomato bed
Space basil and parsley six to eight inches from the tomato stem. These herbs stay low and do not shade the tomato plant as it grows. Carrots can be planted in rows between tomato plants, since their roots go deep while tomato roots spread sideways. Plant marigolds at the corners of your bed or every two feet along the edges — they do not need to touch the tomato plant to work.
Garlic and onions go at the perimeter, about one foot from the tomato stem. Borage can grow larger, so give it at least two feet of space. If you are using nasturtiums as a trap crop, plant them slightly farther from the tomato than your other companions — the goal is to draw pests away, not right next to your main plant. In containers, stick to one tomato plant with basil or parsley in the same pot; other companions work better in ground beds.
Spacing and soil needs when planting companions
Tomatoes need six to eight hours of direct sun and soil that drains well. Most companion plants tolerate the same conditions, but check the seed packet for each herb or vegetable you choose. Basil and parsley prefer the same moisture level as tomatoes — soil that is moist but not waterlogged. Carrots need looser soil than tomatoes, so if your bed is compacted, break it up before planting.
Marigolds and nasturtiums are drought-tolerant and can handle drier soil than tomatoes, so water them separately if possible or plant them at the edge where they receive less water. Garlic and onions prefer drier conditions than tomatoes as well. If your tomato bed stays consistently wet, skip the garlic and onions and focus on basil, parsley, and carrots instead. Borage is hardy and adapts to most soil types, making it a flexible choice for any tomato bed.
When to plant companions relative to your tomatoes
Plant basil, parsley, and carrots at the same time as your tomato transplants or seeds. These companions establish quickly and do not compete during the critical early weeks. Marigolds can go in at the same time or two weeks later — they germinate fast and catch up quickly. Garlic and onions are planted in fall for spring harvest, so if you are starting a new tomato bed in spring, add them the previous autumn.
Borage and nasturtiums germinate quickly and can be direct-seeded two to three weeks after transplanting tomatoes. By that point, your tomato plant is established and less vulnerable to competition. If you are planting in containers, sow basil or parsley seeds at the same time as the tomato transplant. Avoid planting companions too early — if they are large and established before the tomato plant arrives, they will shade it and slow its growth.
Companion planting in containers versus garden beds
Container growing limits your options because space is tight and roots compete more directly. A five-gallon pot can hold one tomato plant and one basil plant comfortably. A ten-gallon container can fit a tomato with basil and parsley. Do not crowd more than three plants into one container — the tomato will not produce well if it is fighting for water and nutrients.
Garden beds give you more flexibility. A four-by-eight-foot bed can hold four tomato plants with basil, parsley, and carrots filling the gaps. Marigolds and nasturtiums work well around the perimeter. In containers, skip the larger companions like borage and focus on herbs that stay compact. If you are growing tomatoes in pots on a patio, plant marigolds in separate containers nearby — they still repel pests even if they are not touching the tomato pot.
Frequently Asked Questions
Can I plant tomatoes and basil in the same pot?
Yes. A five-gallon pot holds one tomato plant and one basil plant with room for both to grow. Water and feed them together since they prefer the same moisture level. Basil will stay bushy and low while the tomato grows tall, so they do not compete for light. Pinch basil leaves regularly to keep it from flowering and going woody.
Do I have to use all these companion plants, or can I pick just a few?
Pick the ones that solve your specific problem. If spider mites are your main pest, basil is enough. If nematodes are the issue, marigolds do the job. You do not need all of them — even one or two companions will improve your tomato bed compared to planting tomatoes alone.
What if I plant something on the "avoid" list by accident?
Move it as soon as you notice. If a brassica or fennel is already in the bed, dig it out and replant it at least three feet away. The longer it stays near the tomato, the more it slows growth. If you catch it early, the tomato plant usually recovers once the harmful plant is removed.
Will companion plants reduce my tomato harvest?
No. Good companions either do not compete for resources or actively improve growing conditions. Basil, parsley, and carrots actually increase your harvest by taking up space that would otherwise sit empty. Marigolds and garlic do not reduce yield — they reduce pest damage, which protects your harvest.