Plant tomatoes near basil, carrots, marigolds, and parsley to improve growth and reduce pest damage

Companion planting means growing certain plants close together because they help each other. Some plants repel insects that eat tomatoes. Others improve soil or use space that would otherwise sit empty. A few actually attract beneficial insects that hunt the pests you want to avoid. The strongest companions for tomatoes are basil, carrots, marigolds, and parsley — each works in a different way.

You do not need special seeds or techniques. Plant them in the same bed or in containers nearby. The effect is real but modest: a companion plant will not save a neglected tomato, but it can reduce the number of aphids or whiteflies you see, and it uses space you would otherwise leave bare.

Key Takeaways

  • Basil planted near tomatoes repels spider mites and whiteflies while improving the flavor of both plants.
  • Marigolds attract hoverflies and parasitic wasps, which hunt aphids and other small pests that damage tomato leaves.
  • Carrots and parsley do not compete with tomatoes for nutrients and can be harvested before tomatoes reach full size.
  • Avoid planting tomatoes near brassicas (cabbage, broccoli) and fennel, which slow tomato growth or attract the same pests.
  • Space companions 12 to 18 inches from the tomato stem so roots do not tangle and air can flow around all plants.

Basil: The strongest tomato companion

Basil is the most reliable companion for tomatoes. It repels spider mites, whiteflies, and some beetles. Plant it 12 inches away from the tomato stem in spring, after the soil has warmed. Basil needs the same water and sunlight as tomatoes, so they thrive in the same conditions.

The benefit runs both ways. Tomatoes shade basil slightly in midsummer heat, which can prevent basil from bolting (flowering and turning bitter) too early. You can harvest basil leaves all season without harming the plant, and the leaves improve the flavor of tomato dishes. Many gardeners plant basil specifically for this reason, whether or not they care about pest control.

Marigolds: Attracting beneficial insects

Marigolds draw hoverflies and parasitic wasps into your garden. These insects lay eggs in or near aphids, and the larvae eat the aphids before they can damage tomato leaves. Marigolds also repel some beetles and nematodes in the soil. Plant them around the edge of your tomato bed or in containers nearby.

Marigolds are tough and flower all summer with almost no care. They tolerate dry soil better than tomatoes, so you can plant them slightly farther from the drip line if your garden dries out between waterings. The flowers are edible and add color to salads. Unlike basil, marigolds do not improve the taste of tomatoes, but they cost almost nothing and take up minimal space.

Carrots and parsley: Space-efficient companions

Carrots and parsley grow in the same soil as tomatoes without competing for nutrients. Carrots stay shallow-rooted and pull nitrogen from the upper few inches of soil, while tomato roots go deeper. Parsley is a slow grower that does not shade tomatoes or crowd them. Both can be harvested before tomatoes reach full size, freeing up space in mid to late summer.

Plant carrots in rows 12 to 18 inches from the tomato stem. They take 60 to 80 days to mature, so you can pull them in early summer and replant the space with a quick-growing crop like lettuce or spinach. Parsley grows slowly and stays low, so it can stay in place all season. Neither plant repels pests, but both make efficient use of garden space and add to your harvest.

Plants to keep away from tomatoes

Some plants actively harm tomato growth or attract the same pests. Brassicas — cabbage, broccoli, kale, and cauliflower — compete with tomatoes for nutrients and can slow their growth. Fennel releases a chemical that inhibits tomato root development, so keep it at least 3 feet away or in a separate bed entirely.

Avoid planting tomatoes near potatoes or peppers. All three are in the nightshade family and attract the same insects, especially the Colorado potato beetle and spider mites. If you grow potatoes in one bed, plant tomatoes in a different area of the garden. Corn can also be problematic because it grows tall, shades tomatoes, and attracts some of the same beetles.

How to space companions correctly

Plant basil, carrots, and parsley at least 12 to 18 inches from the tomato stem. This distance prevents roots from tangling underground and allows air to flow around all the plants, which reduces fungal disease. Marigolds can be slightly closer — 10 to 12 inches — because they have shallow roots and do not compete for water or nutrients.

If you grow tomatoes in containers, plant a single basil plant or a few marigold seeds in the same pot, at the edge. The container should be at least 5 gallons for a tomato plus a companion. If space is tight, grow companions in separate small pots and place them nearby. The benefit is smaller but still real.

Timing and season for planting companions

Plant basil and marigolds at the same time as tomatoes, after the last frost date in your area. Both are warm-season plants that will not survive a cold snap. Carrots and parsley can go in the ground 2 to 3 weeks before tomatoes, since they tolerate cooler soil. If you start tomatoes from seed indoors, start basil indoors at the same time so they are the same size when you transplant.

You can also direct-seed carrots and parsley into the garden bed before you plant tomatoes. They will be small when tomatoes go in, and they will not compete for space. Basil and marigolds are easier to start from seed indoors or to buy as small plants from a nursery, since they germinate slowly outdoors.

Frequently Asked Questions

Can I plant tomatoes and basil in the same pot?

Yes, if the pot is at least 5 gallons. Plant the tomato in the center and basil at the edge, 6 to 8 inches away. Water regularly because two plants in one pot dry out faster than one. A 5-gallon pot is the minimum; a 10-gallon pot gives better results.

Do companion plants actually reduce pests, or is it just a myth?

Companion planting reduces pests, but the effect is modest. Basil and marigolds do repel or attract insects that eat tomato pests, but they will not eliminate the problem on their own. They work best as part of a larger strategy that includes watering at the soil line, removing damaged leaves, and checking plants regularly.

What if I do not have room for companions?

Companion planting is helpful but not required. Tomatoes grow fine without companions. If space is limited, focus on watering deeply, staking or caging plants, and removing lower leaves to improve air flow. These steps prevent more problems than companions do.

Can I plant companions after the tomatoes are already in the ground?

Yes. Basil, carrots, parsley, and marigolds can go in after tomatoes are established, as long as you plant them at least 12 inches away from the stem. They will not have as much effect as if they had been planted together, but they will still help. Avoid disturbing the tomato roots when you dig the planting hole.

Do I need to buy special companion plant seeds?

No. Any basil, carrot, parsley, or marigold seed will work. Buy whatever variety you like to eat or look at. Heirloom and hybrid varieties both work as companions. The effect comes from the plant itself, not from a special variety.