Yes, you can plant onions and tomatoes together, but with limits
Onions and tomatoes can grow in the same garden bed, and they won't actively harm each other. However, they have different watering needs and compete for some of the same nutrients, so planting them side by side requires planning. Onions prefer drier soil and need less frequent watering than tomatoes do. If you plant them close together, you'll have to choose a watering schedule that works for both—which usually means compromising on what each plant prefers.
The real issue isn't toxicity or disease; it's that they make different demands on the soil and water. Tomatoes are heavy feeders that need consistent moisture and nitrogen. Onions are lighter feeders and actually prefer the soil to dry out between waterings. You can make this work by spacing them properly and adjusting your care routine, but it requires more attention than planting them separately.
Key Takeaways
- Onions and tomatoes won't poison or infect each other, so they are safe to plant in the same bed.
- Tomatoes need frequent, consistent watering while onions prefer drier soil, so you'll need to water more often than onions alone would require.
- Space onions at least 6 inches away from tomato plants to reduce competition for nutrients and allow air to move between them.
- Onions actually help tomatoes by repelling some pests like spider mites and aphids, making them useful companion plants despite their different care needs.
How their watering needs differ and why it matters
Tomatoes need the soil to stay consistently moist—not waterlogged, but never bone dry. They're shallow-rooted and will wilt and drop fruit if they go too long without water. During hot weather, a tomato plant may need water every day or every other day, depending on how much rain falls and how much the soil drains.
Onions, by contrast, prefer the soil to dry out between waterings. They're prone to rot if the soil stays wet for too long, especially around the bulb. Once onions are established, they can go longer between waterings than tomatoes can. If you plant them together and water on a tomato schedule, the onions may develop fungal rot. If you water on an onion schedule, the tomatoes will suffer.
The compromise is to water more often than you would for onions alone, but to let the top inch of soil dry out between waterings. This isn't ideal for either plant, but it keeps both alive. Mulching around the tomatoes (but not touching the stem) helps retain moisture for them while keeping the onion area slightly drier.
Spacing and placement to reduce competition
Plant onions at least 6 inches away from the base of each tomato plant. This distance reduces direct competition for nutrients in the root zone and allows air to circulate between them, which lowers the risk of fungal disease on the tomato foliage. Onions are shallow-rooted and won't compete as aggressively for deep nutrients as other plants would, but they still draw from the same top layer of soil where tomato roots also feed.
If you're planting from sets (small onion bulbs) or transplants, space them in a row or cluster away from the tomato plant's main stem. Avoid planting onions directly under the tomato's canopy, where they'll be shaded and where water dripping from tomato leaves will keep them too wet. A row of onions along the edge of the bed, with tomatoes in the center or back, works better than mixing them throughout.
Nutrient demands and soil preparation
Tomatoes are heavy feeders and will deplete nitrogen and potassium quickly, especially once they start flowering and setting fruit. Onions need much less fertilizer and can actually grow well in soil that's been depleted by a previous crop. If you're planting both in the same bed, amend the soil with compost or a balanced fertilizer before planting, then side-dress the tomatoes with extra nitrogen once they flower.
You don't need to add extra nutrients for the onions—they'll do fine with what you've added for the tomatoes. In fact, over-fertilizing onions, especially with nitrogen, can delay bulb formation and produce plants that are all leaf and no bulb. Let the tomatoes take the bulk of the fertilizer and the onions will benefit from the runoff without being overfed.
Pest control benefits of planting them together
Onions actually repel some common tomato pests. The sulfur compounds in onions deter spider mites, aphids, and some beetles. Planting onions nearby won't eliminate these pests entirely, but it can reduce their numbers enough to make a difference, especially early in the season. This is one genuine advantage to the pairing, even if the watering and nutrient needs don't align perfectly.
Tomatoes don't offer much pest protection to onions in return, but they don't attract pests that harm onions either. The relationship is one-sided in terms of pest control, but that's still a reason to consider the pairing if you're already planning to grow both.
When to separate them instead
If you have limited space and are choosing between growing them together or apart, consider your climate and how much time you have to manage watering. In hot, dry climates where you're already watering daily, the compromise between their needs is easier to manage. In cool, wet climates where the soil stays moist naturally, onions will struggle in a tomato bed no matter what you do.
If you're a new gardener or don't have time to water carefully, it's simpler to plant them in separate beds. Tomatoes in one area with consistent moisture and frequent feeding, onions in another with less water and less fertilizer. This removes the guesswork and lets each plant get what it actually needs. There's no shame in choosing the easier route—a healthy tomato plant and a healthy onion plant in separate beds beats two struggling plants in the same bed.
Container growing as an alternative
If you're growing in containers, you can plant onions and tomatoes together more easily because you control the soil and water completely. Use a large pot—at least 5 gallons for a tomato plant—and plant onions around the edge. The tomato roots will occupy the center and deeper soil, while onion roots stay in the top few inches around the perimeter. Water the tomato side more frequently and let the onion side dry out slightly between waterings by watering more carefully around the edges.
Container growing also makes it easier to move plants if one isn't thriving. If the onions start to rot, you can move the pot to a sunnier, drier spot. If the tomato is wilting, you can water just that side without overwatering the onions. This flexibility makes the pairing work better in containers than in the ground.
Frequently Asked Questions
Do onions and tomatoes attract the same diseases?
No, they're susceptible to different fungal and bacterial diseases. Tomatoes get early blight and late blight; onions get pink root and fusarium. Planting them together doesn't increase disease risk for either one, as long as you space them far enough apart for air to move between them and avoid overhead watering that wets the foliage.
Can I plant onions after I harvest tomatoes from the same spot?
Yes. Onions can follow tomatoes in a rotation because they don't compete for the same nutrients and onions actually prefer soil that's been depleted of nitrogen. Plant onions in fall or early spring after the tomato season ends, and they'll do well in the same bed without needing much additional fertilizer.
What if I plant onions and tomatoes in the same hole?
Don't do this. The onion bulb will rot from the constant moisture the tomato needs, and the onion's shallow roots will compete directly with the tomato's roots in a space too small for both. Plant them at least 6 inches apart so each has its own root zone.
Do I need to use a special fertilizer if I grow them together?
No. Use a balanced fertilizer or one slightly higher in nitrogen when you plant, then side-dress the tomatoes with extra nitrogen once they flower. The onions will get what they need from the base fertilizer without any special treatment.
Will onions shade the tomato plant?
Not if you space them correctly. Onions stay low and don't grow tall enough to shade a tomato plant that's staked or caged. Plant the onions to the side or in front of the tomato, not between it and the sun, and shading won't be an issue.