Peppers and Onions
Beneficial Pair — Good Match
As with most allium scent-masking claims in this reference, the chemistry behind onions' strong smell is real, but no controlled trial we know of has confirmed a measurable drop in aphid or pepper maggot pressure specifically from interplanting onions with peppers. Treat it as a reasonable, low-cost pairing rather than a proven pest-control method.
Mechanism: Pest Masking (Scent Confusion)
The case for onions near peppers rests on the same sulfur-compound scent-masking idea used for onions and tomatoes, but the pests it's supposed to help with differ - aphids and pepper maggot flies are the more commonly cited targets on peppers, rather than the hornworm moths associated with tomatoes. The underlying chemistry (onions releasing strong sulfur volatiles) is the same; the claimed target pest is what actually shifts crop to crop.
Peppers and onions are planted together at least as much for the kitchen as for the garden - they're a near-universal pairing in cooking - but the horticultural case for growing them side by side holds up reasonably well on its own, independent of how often they end up in the same skillet.
A Practical Match Beyond the Scent Claim
Both crops want full sun and similar watering, and onions' shallow, narrow footprint means they don't meaningfully compete with a pepper plant's root zone even at fairly close spacing. That practical compatibility - not the scent-masking theory - is the more dependable reason to plant them together, and it holds regardless of whether the pest-deterrent claim turns out to be true.
Spacing
Peppers want 12-18 inches and onions need only 4-6, so a row of onions fits comfortably along the base of a pepper row without crowding either crop's canopy - onions stay low and out of the way of a pepper plant's branching top growth.
Watch For
Peppers are notably more sensitive to blossom drop under heat stress than onions are affected by comparable heat, so during a hot spell, prioritize shade cloth or extra watering for the peppers - the onions nearby will generally tolerate the same conditions with little issue.
Frequently Asked Questions
Since onions and peppers are grown together so often in the kitchen, do they also share disease or pest risks in the garden?
No, and that's actually a small advantage of this pairing - onions belong to the allium family and peppers to the nightshade family, two unrelated plant groups that don't share the soil-borne diseases or crop-rotation restrictions that come up when you plant two crops from the same family in the same spot repeatedly. Pairing across families like this carries none of that shared-vulnerability risk.
Do onions and peppers finish around the same time, or does one need to come out before the other?
Onions are usually ready first - most bulb onions mature and get pulled by mid-to-late summer once the tops fall over, while peppers keep producing until frost. That timing works in the pairing's favor: the onion row can be harvested out from along the pepper bed's edge partway through the season without disturbing the peppers, which just keep going in the space that opens up.