Companion plants that grow well with tomatoes
The best plants to grow next to tomatoes are ones that either repel common pests, improve soil nutrients, or use space your tomato plant doesn't need. Basil is the most reliable choice—it repels spider mites and whiteflies while improving tomato flavor. Carrots work in the same bed because their roots go deep while tomato roots stay shallow, so they don't compete for water or nutrients. Marigolds deter nematodes (tiny soil worms that damage roots) and look attractive around the base of your plant.
Other strong companions include parsley, which attracts beneficial insects that eat tomato pests, and borage, a flowering herb that brings pollinators and deters hornworms. Garlic and onions planted nearby repel spider mites and aphids. All of these can be planted in the same bed or in containers right next to your tomato plant without shading it or stealing its nutrients.
Key Takeaways
- Basil, carrots, and marigolds are the three easiest companion plants to start with because they actively repel common tomato pests.
- Herbs like parsley and borage attract beneficial insects that eat the pests that damage tomatoes, reducing the need for sprays.
- Root vegetables such as carrots and onions don't compete with tomatoes for water or nutrients because they feed at different soil depths.
- Space companion plants at least 12 inches from the tomato stem to avoid crowding and to keep air flowing around the main plant.
Plants to avoid near tomatoes
Some plants actively harm tomato growth or attract the same pests. Brassicas (cabbage, broccoli, kale) compete with tomatoes for the same nutrients and can stunt both plants. Fennel releases a chemical into the soil that inhibits tomato growth—keep it at least 3 feet away or in a separate bed entirely. Potatoes attract the same pests as tomatoes (especially the Colorado potato beetle) and can spread early blight fungus to your tomato leaves.
Corn and dill also attract hornworms, the same caterpillar that eats tomato fruit. If you grow these elsewhere in your garden, plant them far from your tomato bed. Walnut trees produce a toxin called juglone that kills most plants nearby, including tomatoes—if you have a walnut tree, grow tomatoes in containers at least 50 feet away.
How to space companion plants around tomatoes
Keep the area directly under your tomato plant clear for at least 12 inches in all directions. This prevents crowding, allows air to circulate around the stem (which reduces fungal disease), and gives you room to water and prune. Plant basil, parsley, or other herbs in a ring around this cleared zone, starting about 12 to 18 inches from the main stem.
If you're growing tomatoes in a bed with multiple plants, space the tomatoes themselves 24 to 36 inches apart depending on the variety. Companion plants fit into the gaps between tomatoes. Carrots can be planted in rows between tomato plants, and marigolds work as a border around the entire bed. In containers, plant one tomato per pot and place herb companions in separate small pots nearby rather than crowding them into the same soil.
Companion plants for specific tomato problems
If you've had trouble with spider mites in past seasons, plant basil and garlic close to your tomatoes. Spider mites thrive in hot, dry conditions and hate the smell of both plants. If whiteflies have been a problem, basil again is your best choice, along with marigolds. For hornworms (large green caterpillars that eat whole leaves and fruit), borage and dill attract parasitic wasps that lay eggs in hornworm bodies and kill them from inside.
If your tomatoes have suffered from early blight (brown spots on lower leaves that spread upward), the issue is usually soil splash and poor air flow rather than a companion plant problem. In this case, plant parsley and basil to attract beneficial insects, but focus more on spacing tomatoes farther apart and removing lower leaves once the plant is established. For root-knot nematodes (which cause stunted growth and knotty roots), marigolds are proven to reduce nematode populations when planted in the same bed the season before.
Timing: when to plant companions with tomatoes
Plant basil, parsley, and other herbs at the same time you transplant your tomato seedling into the garden—usually after the last frost date in your area. These herbs grow quickly and will be ready to help repel pests within two to three weeks. If you're direct-seeding herbs like borage, sow them two to three weeks before you plant tomatoes so they're established and flowering by the time pests arrive.
Carrots and onions should go in the ground at the same time as tomatoes or slightly earlier. Marigolds can be started from seed indoors four to six weeks before your tomato transplant date, or you can buy small plants from a garden center and plant them out at the same time as tomatoes. If you're planting in containers, start everything together in pots so the companion plants have time to grow before the tomato plant gets large and shades them.
Container gardening with tomato companions
In a large container (at least 5 gallons for a determinate tomato, 10 gallons for an indeterminate), you can grow one tomato plant with basil or parsley in the same pot. Plant the tomato in the center and the herb around the edge, about 4 to 6 inches away from the stem. Use a quality potting mix (not garden soil) so water drains well and roots have room to spread.
For smaller companion plants like marigolds, use separate pots placed right next to the tomato container. This gives you more control over watering—herbs and flowers often need less water than tomatoes—and makes it easier to move plants if one isn't thriving. A cluster of three to four pots (one tomato, two or three companions) on a sunny patio works just as well as a garden bed and takes up less space.
Frequently Asked Questions
Can I plant basil and tomatoes in the same pot?
Yes. Use a container at least 5 gallons and plant the tomato in the center, basil around the edge about 4 to 6 inches away from the stem. Basil grows quickly and won't shade the tomato if you keep it trimmed. Both plants like warm soil and regular water, so they're compatible in one pot.
Will marigolds actually stop pests from eating my tomatoes?
Marigolds reduce nematode populations in soil and can deter some insects, but they're not a complete pest solution on their own. They work best as part of a strategy that includes spacing plants for air flow, removing affected leaves, and watching for early signs of pests. Think of them as one tool, not a may provide.
What if I don't have room for companion plants?
Companion planting helps but isn't required for tomatoes to grow. If space is tight, focus on good watering, full sun (at least six hours daily), and removing lower leaves once the plant is established. These practices prevent many of the same problems that companion plants address.
Can I plant lettuce or spinach near tomatoes?
Yes, both work well. Lettuce and spinach are shallow-rooted and won't compete with tomatoes for deep soil nutrients. They also appreciate the partial shade a large tomato plant provides in hot climates. Plant them at the base of the tomato, at least 12 inches from the stem.
Do I need to buy special companion plant seeds?
No. Any basil, parsley, marigold, or carrot seed from a regular garden center will work. You don't need a special "companion planting mix." Buy what's available locally and what you'll actually use in the kitchen (basil and parsley are useful herbs to have on hand).