Yes, onions and tomatoes grow well as companion plants
Onions and tomatoes can be planted together in the same bed or garden space. They have different root depths, nutrient needs, and pest pressures, which means they do not compete heavily for resources. Onions actually help tomatoes by repelling some common tomato pests, particularly spider mites and aphids. The smell of onion plants confuses insects that would otherwise target your tomato foliage.
This pairing works because onions are shallow-rooted (roots stay in the top 6 to 8 inches of soil) while tomatoes develop deeper root systems that reach down 12 to 18 inches or more. When you space them correctly, each plant can access the water and nutrients it needs without the other getting in the way. You will harvest onions long before tomatoes reach full size, which also reduces crowding as the season goes on.
Key Takeaways
- Plant onions 4 to 6 inches away from tomato plants to give each enough space without competition.
- Onions mature in 90 to 120 days depending on variety, while tomatoes take 60 to 85 days to first fruit, so you will harvest onions before tomatoes need the space.
- Onion smell deters spider mites, aphids, and some other pests that commonly damage tomato leaves.
- Both plants prefer similar watering schedules and full sun, making them straightforward to manage in the same bed.
Spacing and layout for onions next to tomatoes
Plant onion sets or seedlings 4 to 6 inches away from the base of each tomato plant. If you are using transplants (small plants from a nursery), measure from the center of the tomato stem. Onions do not need the same support structure as tomatoes, so you can tuck them into the gaps between tomato cages or stakes without creating a tangle.
A practical layout is to plant onions in a single row along the edge of a tomato bed, or in a checkerboard pattern if your space is wide enough. This keeps onions where they receive the same sunlight as tomatoes (both need 6 to 8 hours of direct sun daily) without shading each other. As onions mature and their tops begin to yellow and fall over, they will naturally take up less space, opening room for tomato foliage to spread.
Watering and feeding both plants in one bed
Onions and tomatoes both prefer soil that is moist but not waterlogged, so a single watering schedule works for both. Water deeply when the top inch of soil feels dry to the touch—usually once or twice per week depending on heat and rainfall. Onions need slightly less water than tomatoes, but overwatering onions is a bigger risk than underwatering them, so if you are erring on the side of caution, tomatoes will tolerate it better.
For feeding, work a balanced fertilizer (such as a 5-5-5 or 10-10-10 formula) into the soil before planting both crops. Tomatoes benefit from extra phosphorus and potassium once they start flowering, so you may side-dress tomato plants with a tomato-specific fertilizer around week 4 or 5 of growth. Onions do not need this extra feeding and will actually produce smaller bulbs if the soil is too rich in nitrogen, so avoid fertilizing directly over onion rows once they are growing.
Pests that onions help prevent on tomatoes
Spider mites are among the most common tomato pests, especially in hot, dry weather. They create fine webbing on leaves and cause yellowing and spotting. Onion plants release a sulfur compound that spider mites find repellent, so their presence in the bed reduces infestations. You will still need to monitor tomato leaves regularly, but the pressure is noticeably lower when onions are nearby.
Aphids cluster on new tomato growth and suck sap from stems and leaves. Onions do not kill aphids, but the smell masks the tomato plant's scent, making it harder for aphids to locate it. Combined with regular inspection and removal of affected leaves, this makes a real difference in keeping aphid populations manageable without sprays.
Onions do not repel all tomato pests—hornworms, whiteflies, and early blight fungus are unaffected by onion proximity. You will still need to scout for these problems and handle them separately. But the reduction in spider mites and aphids alone makes the pairing worth doing.
Timing the harvest so plants do not crowd each other
Most onion varieties mature in 90 to 120 days from planting, while tomatoes typically produce their first ripe fruit in 60 to 85 days. This means onions will be ready to pull before tomatoes reach peak growth and leaf spread. Once you harvest onions (when the tops fall over and dry), you remove them from the bed entirely, freeing up space and nutrients for tomato plants to expand.
If you plant onion sets in early spring at the same time as tomato transplants, you will harvest onions by early to mid-summer. Tomatoes will still be flowering and setting fruit at that point, so removing onions actually helps by reducing competition for water and nutrients during the critical fruiting phase. This natural timing works in your favor without requiring any special planning.
Onion varieties that pair best with tomatoes
Long-day onion varieties (which need 14 to 16 hours of daylight to form bulbs) work well in northern regions and pair seamlessly with tomatoes. Common long-day types include Walla Walla, Ailsa Craig, and Candy. Short-day varieties (which need 10 to 12 hours of daylight) are better for southern gardens and include Vidalia and Texas 1015. Both types grow well alongside tomatoes; the difference is which one will actually form a bulb in your climate.
Bunching onions (also called scallions or green onions) are another option if you prefer to harvest them young rather than waiting for full bulbs. They mature faster (50 to 60 days), so you can plant them, harvest them, and replant a second crop in the same space while tomatoes are still growing. This gives you more flexibility and a longer harvest window without crowding tomato plants.
Soil preparation before planting onions and tomatoes together
Both onions and tomatoes prefer well-draining soil rich in organic matter. Before planting, work 2 to 3 inches of compost or aged manure into the top 8 to 10 inches of soil. This improves drainage (important for onions, which rot in waterlogged conditions) and provides slow-release nutrients for both crops. Test your soil pH if possible—both plants do best in soil between 6.0 and 7.0.
If your soil is heavy clay, add extra compost and consider raising the bed slightly to improve drainage. Onions are especially sensitive to poor drainage and will develop rot or disease if water pools around the bulbs. Tomatoes tolerate clay better but still produce better fruit in loose, well-amended soil. Spending time on soil prep before planting saves you trouble later and gives both crops the best chance to thrive.
Frequently Asked Questions
Do onions stunt the growth of tomato plants?
No. Onions and tomatoes have different root depths and nutrient needs, so they do not compete significantly. Onions actually reduce pest pressure on tomatoes, which can improve overall plant health. As long as you space them 4 to 6 inches apart, both will grow normally.
Can I plant onions after I harvest tomatoes in the same spot?
Yes. Onions and tomatoes are not in the same plant family, so there is no disease carryover risk. You can plant onion sets in fall (in mild climates) or early spring in the same bed where tomatoes grew the previous season. Just refresh the soil with compost before replanting.
What if I see onion flies or thrips on my onions—will they spread to tomatoes?
Onion flies and thrips target onions specifically and do not move to tomatoes. If you notice damage on onion leaves, remove affected plants or leaves promptly to prevent the pest population from exploding. Tomatoes will not be harmed by these pests.
Should I plant onions in front of or behind tomato plants?
Plant onions in front (on the south or west side in most climates) so they receive full sun without being shaded by tomato foliage. Tomatoes grow taller and will eventually shade shorter plants, so positioning onions where they get direct light early in the day prevents stunting. Onions need 6 to 8 hours of sun just like tomatoes.
Can I use onion plants as a border around a tomato bed?
Yes, this is an effective layout. Plant onions in a single row around the perimeter of your tomato bed, spacing them 4 to 6 inches apart. This keeps them visible for monitoring, makes harvesting straightforward, and maximizes the pest-repellent effect by surrounding tomato plants with onion scent.