Tomatoes are one of the most popular garden crops, but their success hinges on avoiding problematic neighbors. Experts warn that certain plants and locations can stunt growth, spread disease, or deplete nutrients. Below, we break down the five worst spots to plant tomatoes and why they pose risks.
Walnut trees, particularly black walnuts, secrete juglone, a chemical that inhibits tomato growth and can kill seedlings. This toxin persists in soil and plant debris, making nearby areas unsuitable for tomatoes.
Contents
Why juglone is a problem
Juglone disrupts cellular respiration in tomatoes, causing yellowing leaves, stunted growth, and reduced yields. Even mature trees can affect soil chemistry for years after removal.
How to test your soil for juglone
Gardeners can perform a juglone test by planting a small tomato seedling in the suspected area. If it wilts or dies within weeks, juglone contamination is likely.
Alternatives to walnut trees
Replace walnuts with apple trees or peach trees, which don’t produce toxic chemicals. For smaller gardens, opt for herbs like basil or marigolds, which repel pests without harming tomatoes.
Nightshades: Avoiding disease and competition
Tomatoes belong to the nightshade family (Solanaceae), which includes eggplants, peppers, and potatoes. Planting these together increases disease risk and competition for resources.
Nightshades attract tomato hornworms and aphids, while diseases like tomato blight spread easily between them. Potatoes, in particular, can damage tomato roots when harvested.
How to rotate crops
Rotate nightshades with non-related crops like carrots or radishes. Allow at least two seasons between planting nightshades in the same bed.
Better companions for nightshades
Pair tomatoes with chives or garlic, which repel pests, or comfrey, which acts as a fertilizer plant. Avoid planting nightshades near fennel, which inhibits growth.
Cucumbers: A risky pairing
Cucumbers and tomatoes share vulnerabilities to cucumber mosaic virus and phytophthora blight, which spread through contact or contaminated tools.
Virus transmission risks
The cucumber mosaic virus causes yellowing leaves and distorted fruit in tomatoes. It’s highly contagious and can persist in soil for years.
Safe planting practices
Grow cucumbers and tomatoes in separate beds. Use transplants instead of seeds to reduce cross-contamination.
Herbs that repel cucumber pests
Plant dill (in moderation) or mint near cucumbers to deter aphids and spider mites. Avoid mature dill, which can harm tomato roots.
Dill: A double-edged sword
Dill’s early growth repels aphids and caterpillars, but mature plants compete with tomatoes for nutrients and water.
Early benefits vs. later harm
Young dill improves tomato flavor and pest resistance, but large dill plants shade tomatoes and deplete soil nitrogen.
Managing dill growth
Harvest dill before it flowers to prevent seed dispersal. Plant it in containers to control its spread.
Alternative pest deterrents
Replace dill with basil or borage, which attract beneficial insects without outcompeting tomatoes.
Rosemary: A nutrient competitor
Rosemary absorbs soil nutrients like nitrogen and phosphorus, leaving tomatoes deficient. It also prefers well-drained soil, unlike tomatoes’ need for moist, rich soil.
Soil nutrient depletion
Rosemary’s deep roots exhaust resources, causing tomato leaves to turn yellow and fruits to develop blossom-end rot.
Growing conditions mismatch
Tomatoes thrive in slightly acidic, loamy soil, while rosemary prefers alkaline, sandy soil. These conflicting needs make co-planting impractical.
Herbs that complement tomatoes
Pair tomatoes with parsley or oregano, which improve flavor and repel pests. Avoid sage and thyme, which also compete for nutrients.
Best practices for tomato success
Soil preparation tips
Test soil pH and amend with compost or manure. For deeper root systems, plant tomatoes sideways in trenches, burying the stem up to the first leaves to encourage root growth.
Crop rotation strategies
Rotate tomatoes with legumes (e.g., beans) to replenish nitrogen. Avoid planting nightshades in the same bed for at least two seasons.
Companion planting guide
Beneficial plants: Basil, chives, garlic, marigolds, and nasturtiums.
Avoid: Cucumbers, dill, fennel, nightshades, rosemary, and walnuts.
By avoiding these five problematic spots and following expert guidelines, gardeners can maximize tomato yields while maintaining a balanced, pest-resistant garden.

Allan is a lifelong gardening enthusiast who still gets excited when the first seedlings pop up in spring. With a deep love for nature and a hands-in-the-soil approach, he shares practical tips, plant discoveries, and clever tricks picked up over years of digging, planting, and observing. Whether you’re a new gardener or have a shed full of tools, Allan writes like a neighbor who’s always happy to swap cuttings and stories over the fence.
You can find more about Allan’s work on Malt or connect with him on LinkedIn.
