
Can You Plant Onions and Tomatoes Together? Yes, Here's How
If you're wondering can you plant onions and tomatoes together, the answer is yes—they are excellent companion plants. Onions help repel pests that commonly attack tomatoes, such as aphids and thrips, while tomatoes can provide light shade that benefits onions in hot climates. Both have similar sun and soil requirements, making them ideal bedfellows in the vegetable garden. However, proper spacing and crop rotation practices are essential to prevent competition and disease buildup. Below, we explore the science, benefits, and best practices for growing these two crops side by side.
Why Onions and Tomatoes Make Great Companions
Companion planting is a time-tested gardening strategy that leverages plant relationships to improve growth, deter pests, and maximize space. Onions (Allium cepa) and tomatoes (Solanum lycopersicum) complement each other in several key ways:
- Pest Deterrence: Onions emit a strong odor that masks the scent of tomatoes, deterring pests like tomato hornworms and aphids.
- Space Efficiency: Onions have shallow roots, while tomatoes grow deep, minimizing root competition.
- Disease Prevention: The aromatic compounds in onions may suppress fungal pathogens in the soil.
- Weed Suppression: When planted closely (but not too close), their foliage can shade the soil, reducing weed growth.
Common Questions About Planting Them Together
Gardeners often ask whether these two popular vegetables interfere with each other's growth. Research and horticultural experience show no allelopathic (growth-inhibiting) effects between them. In fact, intercropping onions with tomatoes has been shown to increase overall yield per square foot compared to monoculture planting.
Optimal Growing Conditions for Both Crops
To ensure success when planting onions and tomatoes together, it's crucial to align their environmental needs. While they are compatible, slight differences in care must be managed carefully.
| Factor | Tomatoes | Onions |
|---|---|---|
| Sunlight | 6–8 hours (full sun) | 6–8 hours (full sun) |
| Soil pH | 6.0–6.8 | 6.0–7.0 |
| Water Needs | 1–2 inches/week | 1 inch/week |
| Soil Type | Well-draining, loamy | Well-draining, sandy loam |
| Fertilizer Preference | High potassium, moderate nitrogen | High nitrogen early, reduced later |
| Spacing | 18–24 inches apart | 4–6 inches apart |
The table shows strong overlap in sunlight and soil pH preferences, making co-planting feasible. However, fertilizer needs differ: tomatoes require more potassium for fruiting, while onions need higher nitrogen early in growth. To manage this, use balanced organic compost at planting and supplement tomatoes with potassium-rich side dressing later in the season. Avoid high-nitrogen fertilizers once tomatoes begin flowering to prevent excessive leafy growth.
Best Practices for Planting Onions and Tomatoes Together
While compatibility is high, following best practices ensures both crops thrive without competition.
1. Proper Spacing
Plant onions 4–6 inches apart in rows spaced 12 inches from tomato plants. This prevents root competition and allows adequate airflow, reducing fungal disease risk. For example, place one row of onions between every two rows of tomatoes.
2. Staggered Planting Schedule
Start onions earlier, as they tolerate cooler spring temperatures. Transplant tomatoes after the last frost when soil temperatures exceed 55°F (13°C). This stagger reduces early competition and optimizes space use.
3. Mulching and Water Management
Apply organic mulch (straw or shredded leaves) to retain moisture and regulate soil temperature. Use drip irrigation to deliver water directly to roots, keeping foliage dry and minimizing blight risks in tomatoes.
4. Crop Rotation
Do not plant onions or tomatoes in the same spot year after year. Rotate them on a 3-year cycle to prevent buildup of soil-borne diseases like fusarium wilt and onion white rot.
Frequently Asked Questions About Planting Onions and Tomatoes Together
Can onions and tomatoes be planted next to each other?
Yes, onions and tomatoes can be safely planted next to each other. They are considered beneficial companions due to shared environmental needs and mutual pest-repelling properties. Just ensure adequate spacing—at least 12 inches between tomato stems and onion rows—to prevent overcrowding.
Do onions affect tomato growth negatively?
No, onions do not negatively affect tomato growth. There is no scientific evidence of allelopathic interference between the two. On the contrary, onions may enhance tomato health by deterring insect pests and improving biodiversity in the garden ecosystem.
What should not be planted with tomatoes?
Avoid planting tomatoes near members of the Brassica family (like cabbage, broccoli, and kale) and corn, which attracts pests that also target tomatoes. Also, avoid fennel and potatoes, as they can inhibit tomato growth or share common diseases.
Can I grow onions and tomatoes in containers together?
Yes, but only in large containers (at least 18 inches in diameter and depth). Use a quality potting mix and ensure proper drainage. Place 1 tomato plant in the center and surround it with 3–4 onion sets at the edges. Monitor watering and fertilizing closely, as container soils dry out faster and nutrients deplete quickly.
Do onions and tomatoes compete for nutrients?
They can if planted too closely. Tomatoes are heavy feeders, especially for potassium, while onions need more nitrogen early on. With proper spacing and balanced fertilization, competition is minimal. Using compost and targeted feeding reduces nutrient conflicts significantly.









