Plan · field guide
Companion Plants for Onions: Keep Them Away From Beans
Onions are slow, shallow-rooted, and terrible at competing with weeds, so their neighbors matter more than most crops. One pairing to avoid has genuine science behind it, one pairing has decent field evidence for it, and the rotation rule for onions is the strictest in the whole garden.

Some links on this page are affiliate links. If you buy through them we may earn a small commission, at no extra cost to you. We only point to seeds and gear we would use ourselves. See our full affiliate disclosure.
Carrots and onions, the pairing with actual support
This one shows up in real intercropping trials, not just charts. The carrot rust fly and the onion fly both find their crop largely by smell. Grow the two mixed together and each masks the other, so fewer flies land on either.
The effect is modest, not a replacement for row cover, but it is the rare companion claim with field data behind it. It also uses space well, since onion tops are narrow and upright while carrot foliage is fine and low.
- Carrots: mutual pest confusion, plus efficient use of space.
- Beets: similar shape and rooting depth, no competition for light.
- Lettuce: shallow and quick, fills the gaps while onions bulk up slowly.
- Onions never shade a neighbor, so almost any low crop works alongside them.
Keep onions well away from beans and peas
This is the enemy pairing worth taking seriously. Onions, garlic, leeks, shallots, and chives release sulfur compounds that interfere with the rhizobia bacteria on the roots of beans and peas. Those bacteria are how legumes pull nitrogen from the air.
Slow the bacteria and the legume grows smaller and paler and yields less. Keep at least a row between them, and never sow beans straight into ground that just finished a garlic or onion crop.
Asparagus is the other one to keep apart. Both are long-lived, shallow-rooted, and compete directly, and asparagus crowns do not move once planted.
- Beans, peas, fava beans, and edamame all belong away from the onion family.
- The mechanism is real: sulfur compounds interfere with nitrogen-fixing bacteria.
- Keep onions out of asparagus beds entirely.
Why onion ground needs the longest rest
White rot is the reason. It is a soil fungus that attacks onions, garlic, leeks, and shallots, and its resting bodies survive in soil for 15 years or more. Nothing you spray removes it. Once a bed has it, that bed is finished for the whole family for most of a gardening lifetime.
So rotate the onion family harder than anything else. Give a bed at least 3 years between onion crops as normal practice, keep the family together as one rotation group, and never move soil or tools from a bed where onions rotted at the base into a clean one.
- Do not follow onions with garlic, leeks, shallots, or more onions.
- Give onion ground 3 years minimum, and treat the whole family as one group.
- White rot survives 15 years or more in soil, so prevention is the only control.
What matters more than any pairing
Onions bulb on day length, not on calendar dates, which is why the variety type matters more than any neighbor. Long-day varieties bulb in the north, short-day in the south, and planting the wrong one is the single most common reason a gardener harvests scallions instead of onions.
After that it is weeding. Onions have almost no leaf area to shade out competition, and a weedy onion bed produces small bulbs no matter what grows beside it.
The free planner picks planting dates from your own frost dates and spaces the bed so you can actually reach in and weed it.
Keep going
Questions, answered straight
Beans and peas. Onions release sulfur compounds that interfere with the nitrogen-fixing bacteria on legume roots, leaving them smaller and less productive. Asparagus should also be kept apart, since both are shallow-rooted and compete directly.
This is one of the few companion claims with field evidence. The carrot rust fly and onion fly both locate their crop by smell, and interplanting masks both scents so fewer flies land. The effect is modest but real.
At least 3 years, and treat garlic, leeks, and shallots as the same crop for rotation. White rot resting bodies survive in soil for 15 years or more, and there is no treatment once a bed is infected.
Know when it's time to plant
Give us your ZIP and we'll email you a planting checklist for your exact frost dates, this month's list right now, then once a month when sow windows open.
One email a month, only when there's something to plant. Unsubscribe anytime.