Yes, you can plant tomatoes and onions together, but timing and spacing matter
Tomatoes and onions are compatible garden companions — they don't compete for the same nutrients, and onions don't shade out tomato plants. You can grow them in the same bed, and many gardeners do. The key is giving each plant enough room to develop properly and planting them at times when they won't interfere with each other's growth cycles.
The main challenge isn't whether they can coexist, but how to manage two plants with different maturity schedules in the same space. Onions mature in 100 to 120 days from seed, or 60 to 90 days from sets (small bulbs). Tomatoes take 60 to 85 days from transplant to first fruit. If you plant them at the same time, your onions will be ready to harvest before your tomatoes are producing heavily, which actually works in your favor — you'll free up space.
Key Takeaways
- Tomatoes and onions don't compete for nutrients and won't harm each other when planted together in the same bed.
- Space onions 4 to 6 inches apart and tomatoes 24 to 36 inches apart to give each plant room to grow without crowding.
- Plant onion sets or seeds early in spring so they mature and can be harvested before tomato plants reach full size.
- Onions actually improve the soil around tomatoes by not depleting the same nutrients, making them a beneficial pairing.
- Harvest onions as soon as they're ready rather than leaving them in the bed, which prevents competition for water and nutrients later in the season.
How to space tomatoes and onions in the same bed
Onions need 4 to 6 inches of space between plants — they're shallow-rooted and don't require much room, but they do need air circulation to prevent disease. Tomatoes need 24 to 36 inches between plants, depending on the variety. Determinate (bush) tomatoes can be closer; indeterminate (vining) tomatoes need more space.
The practical layout is to plant onions in rows between your tomato plants. If your tomatoes are spaced 30 inches apart, you can fit a row of onions in the 15-inch gap on either side. This uses the bed efficiently and keeps the onions far enough from the tomato roots that they won't interfere. Onions are also shorter — they top out at 12 to 18 inches — so they won't shade the tomatoes as they grow taller.
Timing: when to plant each crop
Start onions first, either from seed indoors 8 to 10 weeks before your last spring frost, or from sets (small bulbs) planted directly in the garden 2 to 4 weeks before your last frost. Sets are faster and more reliable for most home gardeners. Plant them 4 to 6 inches apart in prepared soil.
Wait to transplant tomatoes until after your last frost date and the soil has warmed to at least 60°F — usually 2 to 4 weeks after you plant onions. By the time your tomato seedlings go in the ground, your onions will already be established and growing. This staggered start prevents the tomato transplants from shading out young onion seedlings.
Harvesting onions before they compete with tomatoes
Onions are ready to harvest when the tops begin to yellow and fall over, usually 60 to 90 days after planting sets. Don't wait for the foliage to completely die back — harvest them as soon as the tops start to collapse. This is important: leaving mature onions in the bed while your tomatoes are in peak growth means both plants are competing for water and nutrients.
Once you harvest the onions, you've opened up space and freed up soil resources for your tomato plants during their heaviest fruiting period. You can even plant a second crop of onions in late summer if your growing season is long enough, though this is optional and depends on your climate.
Soil and nutrient considerations
Tomatoes are heavy feeders — they pull a lot of nitrogen from the soil, especially during flowering and fruiting. Onions are light feeders and don't deplete the same nutrients at the same rate. This means onions won't rob your tomatoes of what they need, and they won't compete for phosphorus and potassium either.
Before planting, work compost or aged manure into the bed to give tomatoes the nutrient base they'll need. Once onions are harvested and removed, you can side-dress the tomato plants with a balanced fertilizer or compost to support fruiting. The onions will have done no harm to the soil's ability to feed your tomatoes.
Pest and disease management when growing both together
Onions and tomatoes don't share many pests, which is another reason they're good companions. Onion flies and thrips target onions; hornworms and spider mites target tomatoes. The main shared risk is fungal disease in humid conditions, but this is a spacing and air-circulation issue, not a pairing problem.
Keep the bed well-weeded and water at soil level rather than overhead to reduce humidity around the foliage. Onions actually benefit from good air circulation, so the spacing you're already using for tomatoes will help prevent onion disease too. Once onions are harvested, the remaining space around tomatoes improves airflow even more.
Alternative arrangements if space is tight
If your bed is very narrow or you want to maximize tomato space, you can plant onions in a separate container or a different part of the garden. Onions grow well in pots — a 5-gallon bucket holds 4 to 6 onion sets comfortably. This gives you full control over watering and harvest timing without any interaction with the tomato bed.
You can also plant onions at the edges of the tomato bed, where they're straightforward to access and harvest without disturbing tomato roots. Edge planting works especially well if you're using drip irrigation, since you can water each plant on its own schedule without affecting the other.
Frequently Asked Questions
Do onions help tomatoes grow better?
Onions don't actively improve tomato growth, but they don't harm it either. They're neutral companions — they occupy space without competing for the same nutrients. Some gardeners believe onions repel certain pests, but this isn't well-documented. The real benefit is that you can grow two crops in one bed without conflict.
Can I plant onions after I harvest tomatoes in the fall?
Yes, if your growing season is long enough. Fall onions planted in late summer can mature before the first frost in many regions. Check your local frost dates and count backward from your first fall frost — you need at least 60 to 90 days for onion sets to mature. This works well in mild climates but may not be possible in short-season areas.
What if my onions and tomatoes are competing for water?
Water deeply but less frequently for tomatoes, and more often but shallowly for onions — onions have shallow roots and prefer consistent moisture without waterlogging. Use drip irrigation or soaker hoses to water each plant separately if possible. Once onions are harvested, you can water the tomatoes more generously without worrying about overwatering the onion roots.
Should I use the same fertilizer for both plants?
A balanced, all-purpose fertilizer works for both, but tomatoes benefit from extra phosphorus and potassium once they start flowering. Feed onions lightly early in the season, then stop once they're established. Once onions are harvested, you can switch to a tomato-specific fertilizer or side-dress with compost to support fruiting without affecting the onions.