Can you plant tomatoes and onions together?
Fine together
Folklore
Yes, they can share a bed; onions deterring tomato pests is unproven.
Why
Onions are shallow rooted and compact, so they do not shade or crowd tomatoes. Pest-repelling claims are repeated by charts but not backed by trials. Onions are harvested in midsummer, leaving gaps you can fill.
Timing
Tomato goes out 1–3 weeks after last frost; onions 2–4 weeks before last frost. The windows do not overlap: onions can go in first.
Spacing
- Tomato
- 24 in (61 cm) between plants, rows 48 in (122 cm) apart
- Onion
- 4 in (10 cm) between plants, rows 15 in (38 cm) apart
Sources
No study is cited for this pairing. We found no evidence either way, so treat it as folklore.
More tomato pairings
French marigoldGood companionsBacked by research
Worth it if you have root-knot nematodes: grow a dense stand of French marigolds first, not a few plants between tomatoes.
LettuceGood companionsPractical reason
Yes: lettuce fits under and around tomatoes and gets useful summer shade.
Sweet alyssumGood companionsPractical reason
Yes: alyssum is a low edging, and its flowers feed hoverflies whose larvae eat aphids.
More onion pairings
CarrotGood companionsBacked by research
Yes, onions can reduce carrot fly attacks, though the effect fades once onions start to bulb and varies between studies.
BeetFine togetherPractical reason
Yes, they pair well: different root depths and little shared pest pressure.
LettuceFine togetherPractical reason
Yes, they fit together; both are shallow, compact and cool-season friendly.