Growing Onions with Tomatoes: Companion Planting Guide
In this article
- Can onions and tomatoes be planted together?
- What spacing and timing work best?
- How do onions benefit tomato plants?
- What problems can arise and how to avoid them?
- Example garden layout for a small raised bed
- How to manage water and fertilization for onions and tomatoes together?
- When to harvest onions and tomatoes in a mixed bed?
- What should I check before planting?
Onions and tomatoes make excellent companion plants when their spacing, timing, and soil needs are matched. The most common mistake is planting them too close, which can cause competition for water and nutrients.
Can onions and tomatoes be planted together?
Yes, onions and tomatoes can share the same garden bed or raised bed without harming each other if you follow a few simple rules.
Both crops thrive in full sun—at least six to eight hours of direct light each day—and prefer well‑draining soil with a pH between 6.0 and 6.8. Onions develop a shallow root system, while tomatoes send deeper roots down into the subsoil, so they occupy different soil layers and generally do not compete for the same resources.
The sulfur‑rich scent of onions repels aphids, spider mites, and some beetles that commonly attack tomato foliage. In return, the taller tomato plants provide a modest shade that can protect onion tops from scorching in very hot afternoons, extending the usable growing window for onions in warm climates.
What spacing and timing work best?
Proper spacing is the single most important factor for a healthy onion‑tomato pairing.
| Factor | Ideal Range |
|---|---|
| Sunlight | 6–8 hours full sun per day |
| Soil pH | 6.0–6.8 |
| Water | 1–1.5 inches (2.5–3.8 cm) per week, evenly distributed |
Space onion sets or seedlings 4–6 inches (10–15 cm) apart in rows that are 12–14 inches (30–35 cm) apart. Plant tomato seedlings 24–36 inches (60–90 cm) apart, leaving a 12‑inch (30 cm) buffer between the edge of a tomato row and the nearest onion row. This layout allows each plant enough room for root expansion, airflow, and light penetration.
Plant onions early in the spring, as soon as the soil can be worked—usually when soil temperature reaches about 45 °F (7 °C). Transplant tomato seedlings after the last frost date, when nighttime temperatures stay above 50 °F (10 °C). By staggering planting dates, onions get a head start and are less likely to be outcompeted for early moisture.
If you are using onion seeds rather than sets, sow them ¼‑inch (0.6 cm) deep and thin to the recommended spacing once seedlings have two true leaves. For tomatoes, start seeds indoors 6–8 weeks before the last frost, then harden off seedlings for 7–10 days before moving them outdoors.
How do onions benefit tomato plants?
Onions act as a natural pest deterrent for tomatoes.
The volatile compounds released by onion foliage—mainly sulfur‑containing molecules—repel aphids, thrips, and some beetles that would otherwise feed on tomato leaves and fruit. This reduces the need for chemical sprays and can improve overall tomato yield by up to 10 % in typical home gardens.
Because onions have shallow roots, they leave the deeper soil layers available for tomatoes to explore. During dry spells, tomato roots can access moisture that onions cannot reach, helping the tomato plant stay hydrated while the onions rely on surface moisture and mulch.
In hot climates, the low‑growing onion foliage shades the lower portion of tomato stems, reducing stem temperature by a few degrees Celsius. Cooler stems are less prone to sun‑induced cracking of fruit and can maintain more consistent transpiration rates.
What problems can arise and how to avoid them?
Even a good companion pair can encounter issues if conditions are not managed.
Over‑watering is a frequent problem; both onions and tomatoes dislike waterlogged soil, which can cause root rot in tomatoes and fungal rot in onion bulbs. Use raised beds or amend heavy clay soil with compost and coarse sand to improve drainage. A simple test: dig a hole 6 inches (15 cm) deep, fill it with water, and watch how long it takes to drain. If it takes more than 30 minutes, improve drainage before planting.
Another misconception is that onions will shade tomatoes too much, reducing fruit set. In reality, onions are low‑growing and only create a modest shade. If you grow a very dense onion patch, thin the rows to the recommended 4‑inch spacing to keep the tomato canopy fully exposed to sunlight.
Both crops are susceptible to fungal diseases that thrive in humid conditions. To minimize disease pressure, space plants as recommended, water at the soil surface rather than overhead, and apply a thin layer of organic mulch (straw or shredded leaves) 2 inches (5 cm) thick to keep soil moisture even without splashing leaves.
Finally, rotate crops each year. Planting onions and tomatoes in the same spot year after year can lead to a buildup of soil‑borne pathogens such as Fusarium wilt or Verticillium wilt. Rotate to a different bed or incorporate a cover crop (e.g., clover or rye) for at least one season before replanting.
Example garden layout for a small raised bed
Below is a step‑by‑step plan for a 4‑ft × 8‑ft (1.2 m × 2.4 m) raised bed that yields both a modest tomato harvest and a full onion crop.
- Fill the bed with a mix of two parts loamy topsoil, one part well‑rotted compost, and a handful of coarse sand to improve drainage.
- Mark two tomato rows running lengthwise, spaced 30 inches (76 cm) apart, leaving a 12‑inch (30 cm) border on each side for onions.
- Along each tomato row, plant three tomato seedlings 24 inches (60 cm) apart, for a total of six tomato plants. Use a determinate variety if space is limited, or an indeterminate variety with cages.
- On each side of the tomato rows, create onion borders 12 inches (30 cm) wide. These borders will hold the shallow‑rooted onions.
- Plant onion sets in the borders at 5‑inch (13 cm) intervals, staggering the rows so onions are not directly opposite each other. This will give you about 48 onion plants, enough for a full bag of storage onions.
- Water the bed gently after planting, then apply a mulch layer of straw or shredded leaves about 2 inches (5 cm) thick to conserve moisture and suppress weeds.
- Maintain weekly watering of 1 inch (2.5 cm) per week, adjusting for rainfall. During hot spells, increase to 1.5 inches (3.8 cm) per week.
- Fertilize with a balanced 10‑10‑10 granular fertilizer once when tomatoes set fruit, using the label rate of about 1 Tbsp per 10 gal of water. Avoid high‑nitrogen fertilizers for onions after they have sprouted, as excess nitrogen encourages leaf growth at the expense of bulb formation.
- Stake or cage each tomato plant by the time it reaches 12 inches (30 cm) tall. This keeps foliage upright, improves air circulation, and makes harvesting easier.
- Harvest onions when tops begin to yellow and fall over, usually 90–120 days after planting depending on variety. Pull the bulbs, cure them in a warm, dry location for 2–3 weeks, then store in a cool, well‑ventilated pantry.
- Harvest tomatoes when they reach full color (red, orange, yellow, or purple, depending on the cultivar) and feel firm but slightly yielding to gentle pressure. Pick regularly to encourage further fruit set.
This layout provides enough space for each plant’s root zone, maximizes pest‑deterring benefits, and yields roughly 12–15 lb (5–7 kg) of tomatoes and a full bag of onions for kitchen use.
How to manage water and fertilization for onions and tomatoes together?
Consistent, moderate moisture is the key to success for both crops.
Install a drip‑irrigation line that runs the length of the raised bed, delivering water directly to the soil at a rate of about 0.5 gallon (1.9 L) per hour per 10 ft (3 m) of line. Drip irrigation reduces leaf wetness, which in turn lowers the risk of fungal diseases on tomatoes and onion rot.
Schedule watering early in the morning, before the sun dries the soil surface. Aim for a total of 1–1.5 inches (2.5–3.8 cm) per week, measured with a rain gauge or a simple 1‑gallon container placed in the bed for a full week.
Fertilization should be split into two phases. Early in the season, apply a light starter fertilizer with a higher phosphorus ratio (e.g., 5‑10‑5) at a rate of 1 lb (0.45 kg) per 100 sq ft (9 m²) to promote root development for both onions and tomatoes. After tomatoes begin to set fruit, switch to a balanced 10‑10‑10 fertilizer applied at the label rate (usually 1 Tbsp per 10 gal of water) every four weeks. Avoid high‑nitrogen fertilizers after the onion seedlings have emerged, as excess nitrogen can delay bulb formation.
Monitor soil moisture with a handheld probe or by feeling the top 2 inches (5 cm) of soil. If it feels dry to the touch, water immediately; if it feels damp, skip that day's watering.
When to harvest onions and tomatoes in a mixed bed?
Harvest timing depends on the specific varieties but follows clear visual cues.
Onions are ready when the green tops turn yellow, begin to fall over, and the outer skins start to dry. Pull a test bulb; if the neck is soft and the bulb feels firm, let it cure for a few days before final harvest. For storage onions, wait until the neck is completely dry and the outer skins are papery.
Tomatoes should be harvested when they reach full color for the chosen variety and yield a slight give when gently squeezed. Indeterminate varieties may continue producing fruit throughout the season; pick each fruit as it ripens to encourage further production.
In a mixed bed, start harvesting onions first because they often mature earlier (90–120 days) than tomatoes (70–85 days for early varieties, 85–100 days for later varieties). Removing onion tops early can improve airflow for the remaining tomato foliage, reducing disease pressure.
Keep a record of planting dates and expected days to maturity for each variety. This helps you plan staggered harvests and ensures you don’t miss the optimal window for flavor and storage quality.
What should I check before planting?
Test your soil pH with a home kit; adjust with garden lime to raise pH or elemental sulfur to lower it if needed.
Inspect the site for good drainage by digging a small hole 6 inches (15 cm) deep, filling it with water, and watching how long it takes to drain. If the water remains for more than 30 minutes, amend the soil with compost and coarse sand or consider a raised bed.
Plan your watering schedule based on local rainfall. Use a rain gauge or a simple 1‑gallon container to measure weekly precipitation and subtract that amount from your irrigation schedule.
Verify that the onion and tomato varieties you choose are suited to your USDA hardiness zone. Short‑day tomatoes perform best in warm southern zones, while day‑neutral or indeterminate varieties are more adaptable across zones 4–9.
Finally, check for any known pest or disease history in your garden. If you previously had problems with early blight on tomatoes or onion maggots, consider rotating crops or using row covers during the vulnerable early growth stages.