Plant basil, carrots, and marigolds near your tomatoes to improve growth and reduce pests

Companion planting—growing certain plants close together for mutual benefit—works well with tomatoes. Some plants repel the insects that damage tomato leaves and fruit. Others improve soil nutrients or shade the roots during hot weather. A few actually taste better when grown nearby because the flavors develop differently.

The most reliable companions are basil, carrots, marigolds, and parsley. Basil repels spider mites and whiteflies while its flavor deepens when planted at the tomato base. Carrots loosen soil so tomato roots spread easily, and their shallow roots do not compete for water. Marigolds deter nematodes—tiny soil pests that damage roots—and their bright flowers attract pollinators. Parsley draws beneficial insects that eat tomato hornworms and other leaf-eating pests.

Key Takeaways

  • Basil, carrots, marigolds, and parsley are the most effective companions because they repel pests, improve soil, or attract beneficial insects.
  • Plant basil directly at the base of tomato plants to reduce spider mites and whiteflies while improving basil flavor.
  • Avoid planting brassicas (cabbage, broccoli, kale) and fennel near tomatoes because they compete for nutrients and inhibit growth.
  • Space companion plants so they do not shade tomato leaves or crowd the stem, which reduces air circulation and invites disease.
  • Companion planting works best when combined with regular watering, mulching, and removal of diseased leaves.

Why basil is the strongest tomato companion

Basil and tomato are often planted together because basil repels two of the most common tomato pests: spider mites and whiteflies. Spider mites create fine webbing on leaves and cause yellowing; whiteflies cluster on the undersides of leaves and weaken the plant by feeding on sap. Basil's strong scent masks the tomato plant's smell, making it harder for these insects to find it.

Plant basil within 6 inches of the tomato stem, at ground level or slightly above. The two plants will share the same watering schedule and soil conditions. As a bonus, basil grown this way develops a richer flavor—likely because the tomato plant's root system brings up minerals that enhance basil's taste. You can harvest basil leaves throughout the season without harming the tomato plant's growth.

Carrots and other root vegetables that improve soil structure

Carrots, beets, and radishes grow well near tomatoes because their roots work at different soil depths. Carrot roots go 8 to 12 inches down and break up compacted soil, creating channels for tomato roots to penetrate deeper and access water during dry spells. Beet roots stay shallower but still loosen the top 6 inches. Radishes germinate and mature in 25 to 30 days, so you can harvest them before they compete with the tomato plant for space.

Plant carrots in rows alongside tomatoes, spacing them 2 to 3 inches apart. They do not need the same nutrients as tomatoes—carrots prefer phosphorus while tomatoes need more nitrogen—so they do not deplete the soil. Radishes can be planted between tomato plants and harvested early, leaving the loosened soil for the tomato roots to use as the season progresses.

Marigolds for pest control without chemicals

Marigolds are one of the most widely recommended tomato companions because they target root-knot nematodes, microscopic worms that live in soil and pierce tomato roots to feed. Infested roots become knotted and cannot absorb water or nutrients, stunting growth and reducing yield. Marigold roots release a chemical that nematodes avoid, and when marigolds are planted densely around tomatoes, they create a protective zone.

Plant marigolds 12 to 18 inches from the tomato stem so they do not shade the leaves. They need the same water and sunlight as tomatoes, so they fit easily into the same bed. Marigolds also attract pollinators and beneficial insects like ladybugs, which eat aphids and other soft-bodied pests. Leave the marigold flowers on the plant—do not deadhead them—because the insects are drawn to open blooms.

Herbs and flowers that attract beneficial insects

Parsley, dill, cilantro, and nasturtiums attract parasitic wasps and hover flies—insects that lay eggs in or near tomato pests. When the eggs hatch, the larvae feed on hornworms, aphids, and other leaf-eating insects. These beneficial insects need nectar and pollen to survive, so they are drawn to plants with small flowers or feathery foliage.

Parsley and cilantro can be planted directly in the tomato bed, 12 inches from the stem. Dill grows taller and should be placed on the north side of tomatoes so it does not shade them. Nasturtiums can be planted at the edge of the bed or in containers nearby. All of these plants mature quickly enough that you can harvest leaves for cooking while they still support beneficial insects.

Plants to keep away from tomatoes

Some plants actively inhibit tomato growth and should not be planted nearby. Brassicas—cabbage, broccoli, kale, and Brussels sprouts—compete with tomatoes for nitrogen and produce compounds that slow tomato root development. Fennel releases a chemical that stunts growth in most plants, including tomatoes. Potatoes and peppers are in the same plant family as tomatoes and attract the same pests and diseases, so planting them together concentrates the problem.

Corn and tomatoes should be separated because corn attracts corn borers, which also damage tomato fruit. Kohlrabi, another brassica, has the same inhibiting effect as cabbage. If your garden space is limited, plant these vegetables at least 3 feet away from tomatoes, or grow them in a separate bed entirely. Rotating crops year to year—not planting tomatoes in the same spot two seasons in a row—also reduces pest and disease buildup.

Spacing and layout for healthy companion plants

Companion planting only works if the plants have room to grow without crowding. Tomatoes need air circulation around their leaves to prevent fungal diseases like early blight and powdery mildew. If companion plants shade the lower leaves or press against the stem, humidity builds up and disease spreads faster.

Space basil 6 inches from the tomato stem. Plant carrots and other root vegetables in rows 12 to 18 inches away. Place marigolds and taller herbs like dill on the north side of tomatoes so they do not block afternoon sun. Mulch around all plants with 2 to 3 inches of straw or wood chips to retain moisture and keep soil cool, but leave a 2-inch gap around the tomato stem to prevent rot. Water at the soil level in the morning so leaves dry quickly and disease spores do not germinate.

Frequently Asked Questions

Can I plant tomatoes with onions and garlic?

Onions and garlic do not harm tomatoes, but they are not strong companions either. They do not repel major tomato pests or improve soil structure. If you have space, plant them 18 inches away. They will not interfere with tomato growth, and you can harvest them separately.

Does companion planting replace pest management?

Companion planting reduces pest pressure but does not eliminate it. Basil and marigolds help, but you still need to remove diseased leaves, water at soil level, and inspect plants weekly for early signs of damage. In severe infestations, you may need to use organic insecticidal soap or neem oil alongside companion plants.

When should I plant companions alongside tomatoes?

Plant basil and other herbs at the same time as tomato transplants, or a week after if you are starting from seed. Plant carrots and root vegetables 2 to 3 weeks after tomatoes are established, so they do not compete during the critical early growth phase. Marigolds can go in anytime after tomatoes are 6 inches tall.

What if I do not have space for companion plants?

Companion planting helps but is not required for tomatoes to grow. If space is tight, focus on consistent watering, mulching, and removing lower leaves as the plant grows. These practices prevent most common diseases and pests without needing extra plants in the bed.

Can I use companion planting in containers?

Yes, but only with smaller companions. A 5-gallon container can hold one tomato plant and basil or parsley at the edge. Larger containers—20 gallons or more—can accommodate a tomato, basil, and a marigold. Make sure the container has drainage holes and water more frequently because soil in containers dries faster than garden beds.