Yes, onions and tomatoes grow well as companion plants
You can plant onions near tomatoes, and they actually help each other. Onions repel some of the insects that damage tomatoes, particularly spider mites and aphids. Tomatoes grow tall and provide afternoon shade, which onions tolerate well. The two plants have different root depths—tomatoes root deep, onions root shallow—so they do not compete for the same soil nutrients or water.
The main thing to watch is spacing. Both plants need air circulation to prevent fungal disease, so give each one room to breathe. Plant onions 4 to 6 inches apart and tomatoes 24 to 36 inches apart, depending on the tomato variety. If you crowd them, you lose the benefit of the shade and create a damp microclimate where mildew thrives.
Key Takeaways
- Onions repel spider mites and aphids, two common tomato pests, making them an effective companion plant.
- Space onions 4 to 6 inches apart and tomatoes 24 to 36 inches apart to may support both plants get enough air circulation.
- Plant onions on the south or east side of tomato plants so the tomato does not shade the onion too heavily during early growth.
- Water onions and tomatoes separately if possible, since onions need less frequent watering than tomatoes do.
- Avoid planting beans or peas near the onions, as onions inhibit their growth.
Where to position onions around your tomato plants
Place onions on the south or east side of your tomato plants. Tomatoes need 6 to 8 hours of direct sun daily, and onions need 4 to 6 hours. By putting onions where they catch morning sun and afternoon shade from the tomato, you give the onion enough light without overheating it during the hottest part of the day. This also keeps the onion from being shaded out completely as the tomato grows taller.
If you are growing determinate tomatoes (bush types that stay compact), you have more flexibility. Indeterminate tomatoes (vining types) grow tall and spread wide, so keep onions at least 12 inches away from the base of the plant. As the tomato sprawls, it will shade the onion gradually, which is fine—onions actually prefer less intense heat as they mature and form bulbs.
Watering and feeding when onions and tomatoes share space
Tomatoes are thirsty plants that need consistent moisture, especially once fruit sets. Onions need less water and prefer to dry out between waterings. If you water both plants the same way, the onion bulb may rot or split. Water at the soil level rather than overhead, and if possible, water the tomato section more frequently than the onion section.
Fertilize tomatoes every 2 to 3 weeks once they flower, using a formula higher in phosphorus and potassium (the second and third numbers on the bag). Onions need less nitrogen than tomatoes do—too much nitrogen delays bulb formation and produces mostly leaves. A balanced fertilizer like 10-10-10 works for onions, or you can skip fertilizer altogether if your soil is reasonably rich. explore fertilizer to each plant's root zone rather than broadcasting it across both.
Common problems when growing onions near tomatoes
The most frequent issue is poor air circulation leading to powdery mildew or early blight on the tomato. If leaves start showing white powder or brown spots with concentric rings, thin out lower tomato branches and space the plants farther apart. Mildew thrives in humidity, so water in the morning and let foliage dry quickly.
Onion maggots and thrips can occasionally move from onions to tomatoes, though this is rare. If you notice tiny holes in tomato leaves or silvery streaks, inspect the onion foliage. Removing affected onion leaves usually stops the problem before it spreads. Tomato hornworms do not bother onions, so the onion does not attract new pests to your tomato bed.
Timing your planting so onions and tomatoes mature together
Onions and tomatoes have different growing timelines, but you can stagger them so both are productive at the same time. If you start tomato seedlings indoors 6 to 8 weeks before your last frost date, plant them outside after frost danger passes. At that same time, plant onion sets (small bulbs) or transplants directly in the soil. Both will be established and growing during the warm season.
Onions mature in 100 to 120 days from planting, depending on the variety. Tomatoes produce fruit 60 to 85 days after transplanting. If you plant them together in spring, onions will be ready to harvest in mid to late summer, and tomatoes will still be producing fruit. In fall gardens, plant onions in late summer and tomatoes in early summer so the onion is well-established before the tomato is removed.
Varieties of onions that work best with tomatoes
Long-day onions (varieties like Walla Walla, Ailsa Craig, and Candy) grow well in northern regions and pair well with tomatoes because they mature in mid to late summer when tomatoes are at peak production. Short-day onions (Texas 1015, Vidalia) are better for southern gardens and mature earlier, which can work if you want to clear the space before tomato vines sprawl.
Bunching onions (also called scallions or green onions) are an even better choice if you have limited space. They stay narrow, do not form large bulbs, and you can harvest them continuously without removing the plant. Plant them 2 to 3 inches apart around the base of your tomato, and you will have fresh onion greens all season while the tomato grows above.
What not to plant near your onions and tomatoes
Avoid planting beans or peas anywhere near the onions. Onions release a compound that inhibits nitrogen-fixing bacteria in the soil, which beans and peas rely on to grow. If you want legumes in your garden, plant them at least 3 feet away from the onion section.
Fennel and dill also inhibit onion growth, so keep those herbs separate. Cabbage and other brassicas can grow near tomatoes but not near onions. Corn is fine with both. If you are planning a larger bed, think of it as two zones: the tomato-onion zone, and a separate zone for beans, peas, fennel, or dill.
Frequently Asked Questions
Do onions really keep pests off tomatoes?
Onions repel spider mites and aphids through their sulfur compounds, which many insects dislike. They do not prevent all tomato pests—hornworms, whiteflies, and some beetles are not deterred—but they do reduce pressure from two common ones. The benefit is real but not absolute.
Can I plant onion seeds directly in the ground next to tomatoes?
Yes, but onion seeds are slow to germinate and take 120 to 150 days to reach harvest size. Onion sets (small bulbs) are faster and more reliable, reaching maturity in 100 to 120 days. If you want onions ready by late summer, use sets rather than seeds.
What if my tomato is already planted and I want to add onions?
You can plant onions around an established tomato as long as the tomato is not more than 4 to 6 weeks old. Dig carefully to avoid damaging the tomato roots, which spread outward in the top 12 inches of soil. Plant onions at least 12 inches from the tomato stem and water gently after planting.
Will onions shade out my tomato if I plant them too close?
No—onions stay short and do not shade tomatoes. Tomatoes shade onions, which is fine. The risk is the reverse: if you plant onions too close, the tomato's sprawling vines will smother the onion as it grows. Keep at least 12 inches between the tomato stem and onion bulb.
Can I harvest onions before the tomato is done producing?
Yes. Once onions are mature (usually mid to late summer), pull them and cure them in a warm, dry place for 2 to 3 weeks. The tomato will continue growing and producing fruit in the space the onion occupied. You can even replant a second crop of bunching onions in that spot if you have 6 to 8 weeks of warm weather left.