Why Do You Plant Marigolds With Tomatoes?

Marigolds are planted with tomatoes primarily to kill root-knot nematodes in the soil and repel whiteflies, two of the most damaging tomato pests. This isn’t just garden folklore. Research has identified the specific chemicals marigolds release from their roots and leaves that make them one of the most effective companion plants for tomatoes.

Nematode Control Is the Strongest Reason

Root-knot nematodes are microscopic worms that burrow into tomato roots, forming lumpy galls that block the plant’s ability to absorb water and nutrients. Infected plants wilt, yellow, and produce fewer tomatoes. These nematodes are invisible to the naked eye and can persist in soil for years, making them especially frustrating to deal with.

Marigold roots release a compound that penetrates the outer layer of nematodes and kills them through oxidative stress, essentially destroying them from the inside. Research on root-knot nematode larvae found this compound killed 99% of them at relatively low concentrations. A greenhouse study found marigolds reduced root-knot nematode invasion by about 46%, and importantly, planting marigolds alongside tomatoes did not significantly reduce tomato yield.

The compound works even in dark soil where no light reaches, which matters because the roots are doing the heavy lifting underground. This is a genuine, well-documented biological control mechanism, not speculation.

Timing Matters for Nematode Protection

Here’s the detail most gardeners miss: for nematode control specifically, marigolds need to be planted as a cover crop at least two months before your tomatoes go in. Planting marigolds and tomatoes at the same time, or after you’ve already noticed a nematode problem, doesn’t appear to work. The roots need time to release enough of the nematicidal compound to suppress the population in the soil. If nematodes are your main concern, plan ahead and grow a patch of marigolds in the bed the season before, or at least a couple of months in advance.

Whitefly Repellency Has Strong Evidence

The second well-supported benefit is whitefly control. French marigolds release a volatile compound called limonene (the same chemical that gives citrus peels their smell) from both their flowers and leaves. Limonene makes up roughly 24% of the volatile output from marigold flowers and 21% from the leaves, making it the single most abundant airborne chemical the plant produces.

A study published in PLOS One confirmed that French marigolds effectively repel glasshouse whiteflies and that limonene is the probable mechanism. Researchers even tested standalone limonene dispensers and found they replicated the repellent effect, confirming it wasn’t some other factor. Whiteflies are a common tomato pest that feeds on sap, weakens plants, and can transmit viruses, so keeping them away has real value.

Other marigold species have also shown repellent effects against green peach aphids, cabbage aphids, flea beetles, and diamondback moths, though most of these pests are more relevant to brassicas than tomatoes.

Pest Deterrence Beyond the Science

Many gardeners report that the strong, pungent scent of marigolds discourages tomato hornworms, thrips, and even rabbits. The scientific evidence for these specific claims is thinner than for nematodes and whiteflies, but there’s a plausible basis. Marigolds produce a complex mix of volatile chemicals, and strong-smelling companion plants can mask the scent signatures that pests use to locate their preferred host plants.

Marigolds also attract beneficial insects, including hover flies, ladybugs, and parasitic wasps. Hover flies and ladybugs feed on aphids, while parasitic wasps lay their eggs in caterpillars like tomato hornworms. By drawing these predators into your garden, marigolds provide a layer of biological pest control that complements their direct repellent effects.

Choose French Marigolds, Not African

Not all marigolds are equally useful. French marigolds (the smaller, bushier variety that typically grows 6 to 12 inches tall) are the most effective for pest control. They produce higher levels of the root compounds that kill nematodes and the airborne limonene that repels whiteflies. African marigolds (the tall ones with large pom-pom flowers) are not as effective against pests. If you’re planting marigolds specifically as companions for tomatoes, stick with French varieties.

One Potential Drawback to Watch

Marigolds aren’t without risk. Yellow flowering marigolds are highly attractive to western flower thrips, which can build up rapidly on the plants. Marigolds are also attractive to spider mites. In greenhouse research, some marigold plantings became so infested with spider mites that the experiment had to be terminated early. If you’re growing in an enclosed greenhouse or hoop house where pests can’t easily disperse, marigolds could potentially serve as a reservoir for thrips or spider mites that then move to your tomatoes. In an open garden, this is less of a concern because natural predators help keep populations in check, but it’s worth monitoring.

How to Plant Them Together

Get your tomatoes established first. Once they’re transplanted and settled, plant marigolds about 18 to 24 inches away to give both plants room to fill in without competing for light or airflow. This spacing is close enough for the airborne chemicals to reach the tomato plants but far enough that the marigolds won’t shade out lower tomato foliage.

For nematode-heavy soil, the more effective strategy is to grow a dense planting of French marigolds as a cover crop in the bed for at least two months before transplanting tomatoes. You can then till the marigold plants into the soil to add organic matter, or pull them and transplant your tomatoes into the treated bed. For general pest repellency and beneficial insect attraction, planting them at the same time works fine. Scatter marigolds throughout the tomato bed rather than confining them to a single border row. The closer they are to your tomato plants, the more concentrated the repellent effect.