← All Articles

Tomato Companion Planting: What's Actually Happening Underground

June 29, 2026
tomatoescompanion-plantingraised-bedssoilpest-control

If your tomatoes aren't producing, the problem might be what you planted next to them. Here's how to design a system that actually works.

You do everything right — consistent watering, good fertilizer, decent soil — and your tomatoes still underperform. Before you start adjusting your feed schedule again, take a look at what's growing around them. The plants you put next to your tomatoes aren't just filling space. They're actively changing the soil environment those tomatoes are trying to grow in.

Most gardening advice about companion planting reads like folklore. Plant basil with tomatoes because someone's grandmother did it. Avoid planting this next to that because of bad vibes or something. The reality is more interesting than that, and more useful. There's an actual system happening in the soil — microbes, root interactions, nutrient movement — and every plant you add to the bed is either helping that system or working against it.

The framework here isn't complicated once you understand what's driving it. Your goal is to build the right underground environment for your tomatoes, not just feed the tomatoes directly. When you reduce nitrogen inputs and plant the right companions, you're essentially recruiting the soil to do the work for you. That shift alone — from feeding plants to supporting the system that feeds them — can increase your yield significantly.

Basil is the obvious starting point, and it earns its reputation. Planted at the base of your tomatoes, it accelerates early growth and supports stronger root development. Onions work as a biological barrier while also helping recruit beneficial microbes into the root zone. Marigolds do their real work below the surface, not above it — they help repel pests and suppress harmful nematodes. Carrots loosen compacted soil as they grow, which gives tomato roots more room to expand without you having to do anything extra. And asparagus is genuinely underrated here: tomatoes repel asparagus beetles, and asparagus helps suppress soilborne disease. That's a real trade, not a coincidence.

Now for the part where most people quietly sabotage their own garden. Corn is a common one — it attracts the same pests that go after tomatoes, including the tomato fruitworm. If you're growing both in a small raised bed setup, you're basically setting a trap for yourself. Potatoes are another problem because they compete for the same nutrients and share the same disease vulnerabilities. Plant them too close and you're not doubling your production — you're splitting your resources and concentrating your disease risk.

Cabbage and broccoli are heavy feeders that will drain the soil and limit what your tomatoes can pull from it. And dill is the sneaky one. Early in the season it's actually fine, but as it matures it can slow tomato development. A lot of gardeners don't catch that because the timing is delayed — the dill looks fine, the tomatoes just never quite take off the way they should, and you spend the rest of the summer wondering what you did wrong with your watering.

For this season, here's the practical version: plant basil close, add marigolds at the edges, and consider onions as a border. If you're in a Zone 5b climate like Denver or Wheat Ridge, you're already working with a compressed growing window, so you want every plant in that bed earning its spot. Carrots can pull double duty as a companion and an actual crop. Skip the corn and potatoes in any bed where tomatoes are the priority. And if you're growing dill, keep it in its own container or at least well away from your tomato beds once it starts to mature.

The simple framework is this: reduce nitrogen, plant your allies, and eliminate the saboteurs. Stop filling beds by accident and start making intentional choices about what goes where and why. The full walkthrough of this system — including more detail on how these underground interactions actually work — is in the video above.

If you want to follow along with what's actually happening in the beds week by week, we share that kind of thing daily over on Facebook at https://www.facebook.com/theurbangardeningneighbor — come find us there.

← Back to all articles

Watch the video version on YouTube.

Weekly proof-first gardening content from Zone 5b Denver.

Watch on YouTube
Tomato Companion Planting: What's Actually Happening Underground | The Urban Gardening Neighbor